Struct aws_sdk_appstream::types::builders::ImageBuilder
source · #[non_exhaustive]pub struct ImageBuilder { /* private fields */ }
Expand description
A builder for Image
.
Implementations§
source§impl ImageBuilder
impl ImageBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the image.
This field is required.sourcepub fn base_image_arn(self, input: impl Into<String>) -> Self
pub fn base_image_arn(self, input: impl Into<String>) -> Self
The ARN of the image from which this image was created.
sourcepub fn set_base_image_arn(self, input: Option<String>) -> Self
pub fn set_base_image_arn(self, input: Option<String>) -> Self
The ARN of the image from which this image was created.
sourcepub fn get_base_image_arn(&self) -> &Option<String>
pub fn get_base_image_arn(&self) -> &Option<String>
The ARN of the image from which this image was created.
sourcepub fn display_name(self, input: impl Into<String>) -> Self
pub fn display_name(self, input: impl Into<String>) -> Self
The image name to display.
sourcepub fn set_display_name(self, input: Option<String>) -> Self
pub fn set_display_name(self, input: Option<String>) -> Self
The image name to display.
sourcepub fn get_display_name(&self) -> &Option<String>
pub fn get_display_name(&self) -> &Option<String>
The image name to display.
sourcepub fn state(self, input: ImageState) -> Self
pub fn state(self, input: ImageState) -> Self
The image starts in the PENDING
state. If image creation succeeds, the state is AVAILABLE
. If image creation fails, the state is FAILED
.
sourcepub fn set_state(self, input: Option<ImageState>) -> Self
pub fn set_state(self, input: Option<ImageState>) -> Self
The image starts in the PENDING
state. If image creation succeeds, the state is AVAILABLE
. If image creation fails, the state is FAILED
.
sourcepub fn get_state(&self) -> &Option<ImageState>
pub fn get_state(&self) -> &Option<ImageState>
The image starts in the PENDING
state. If image creation succeeds, the state is AVAILABLE
. If image creation fails, the state is FAILED
.
sourcepub fn visibility(self, input: VisibilityType) -> Self
pub fn visibility(self, input: VisibilityType) -> Self
Indicates whether the image is public or private.
sourcepub fn set_visibility(self, input: Option<VisibilityType>) -> Self
pub fn set_visibility(self, input: Option<VisibilityType>) -> Self
Indicates whether the image is public or private.
sourcepub fn get_visibility(&self) -> &Option<VisibilityType>
pub fn get_visibility(&self) -> &Option<VisibilityType>
Indicates whether the image is public or private.
sourcepub fn image_builder_supported(self, input: bool) -> Self
pub fn image_builder_supported(self, input: bool) -> Self
Indicates whether an image builder can be launched from this image.
sourcepub fn set_image_builder_supported(self, input: Option<bool>) -> Self
pub fn set_image_builder_supported(self, input: Option<bool>) -> Self
Indicates whether an image builder can be launched from this image.
sourcepub fn get_image_builder_supported(&self) -> &Option<bool>
pub fn get_image_builder_supported(&self) -> &Option<bool>
Indicates whether an image builder can be launched from this image.
sourcepub fn image_builder_name(self, input: impl Into<String>) -> Self
pub fn image_builder_name(self, input: impl Into<String>) -> Self
The name of the image builder that was used to create the private image. If the image is shared, this value is null.
sourcepub fn set_image_builder_name(self, input: Option<String>) -> Self
pub fn set_image_builder_name(self, input: Option<String>) -> Self
The name of the image builder that was used to create the private image. If the image is shared, this value is null.
sourcepub fn get_image_builder_name(&self) -> &Option<String>
pub fn get_image_builder_name(&self) -> &Option<String>
The name of the image builder that was used to create the private image. If the image is shared, this value is null.
sourcepub fn platform(self, input: PlatformType) -> Self
pub fn platform(self, input: PlatformType) -> Self
The operating system platform of the image.
sourcepub fn set_platform(self, input: Option<PlatformType>) -> Self
pub fn set_platform(self, input: Option<PlatformType>) -> Self
The operating system platform of the image.
sourcepub fn get_platform(&self) -> &Option<PlatformType>
pub fn get_platform(&self) -> &Option<PlatformType>
The operating system platform of the image.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description to display.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description to display.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description to display.
sourcepub fn state_change_reason(self, input: ImageStateChangeReason) -> Self
pub fn state_change_reason(self, input: ImageStateChangeReason) -> Self
The reason why the last state change occurred.
sourcepub fn set_state_change_reason(
self,
input: Option<ImageStateChangeReason>
) -> Self
pub fn set_state_change_reason( self, input: Option<ImageStateChangeReason> ) -> Self
The reason why the last state change occurred.
sourcepub fn get_state_change_reason(&self) -> &Option<ImageStateChangeReason>
pub fn get_state_change_reason(&self) -> &Option<ImageStateChangeReason>
The reason why the last state change occurred.
sourcepub fn applications(self, input: Application) -> Self
pub fn applications(self, input: Application) -> Self
Appends an item to applications
.
To override the contents of this collection use set_applications
.
The applications associated with the image.
sourcepub fn set_applications(self, input: Option<Vec<Application>>) -> Self
pub fn set_applications(self, input: Option<Vec<Application>>) -> Self
The applications associated with the image.
sourcepub fn get_applications(&self) -> &Option<Vec<Application>>
pub fn get_applications(&self) -> &Option<Vec<Application>>
The applications associated with the image.
sourcepub fn created_time(self, input: DateTime) -> Self
pub fn created_time(self, input: DateTime) -> Self
The time the image was created.
sourcepub fn set_created_time(self, input: Option<DateTime>) -> Self
pub fn set_created_time(self, input: Option<DateTime>) -> Self
The time the image was created.
sourcepub fn get_created_time(&self) -> &Option<DateTime>
pub fn get_created_time(&self) -> &Option<DateTime>
The time the image was created.
sourcepub fn public_base_image_released_date(self, input: DateTime) -> Self
pub fn public_base_image_released_date(self, input: DateTime) -> Self
The release date of the public base image. For private images, this date is the release date of the base image from which the image was created.
sourcepub fn set_public_base_image_released_date(
self,
input: Option<DateTime>
) -> Self
pub fn set_public_base_image_released_date( self, input: Option<DateTime> ) -> Self
The release date of the public base image. For private images, this date is the release date of the base image from which the image was created.
sourcepub fn get_public_base_image_released_date(&self) -> &Option<DateTime>
pub fn get_public_base_image_released_date(&self) -> &Option<DateTime>
The release date of the public base image. For private images, this date is the release date of the base image from which the image was created.
sourcepub fn appstream_agent_version(self, input: impl Into<String>) -> Self
pub fn appstream_agent_version(self, input: impl Into<String>) -> Self
The version of the AppStream 2.0 agent to use for instances that are launched from this image.
sourcepub fn set_appstream_agent_version(self, input: Option<String>) -> Self
pub fn set_appstream_agent_version(self, input: Option<String>) -> Self
The version of the AppStream 2.0 agent to use for instances that are launched from this image.
sourcepub fn get_appstream_agent_version(&self) -> &Option<String>
pub fn get_appstream_agent_version(&self) -> &Option<String>
The version of the AppStream 2.0 agent to use for instances that are launched from this image.
sourcepub fn image_permissions(self, input: ImagePermissions) -> Self
pub fn image_permissions(self, input: ImagePermissions) -> Self
The permissions to provide to the destination AWS account for the specified image.
sourcepub fn set_image_permissions(self, input: Option<ImagePermissions>) -> Self
pub fn set_image_permissions(self, input: Option<ImagePermissions>) -> Self
The permissions to provide to the destination AWS account for the specified image.
sourcepub fn get_image_permissions(&self) -> &Option<ImagePermissions>
pub fn get_image_permissions(&self) -> &Option<ImagePermissions>
The permissions to provide to the destination AWS account for the specified image.
sourcepub fn image_errors(self, input: ResourceError) -> Self
pub fn image_errors(self, input: ResourceError) -> Self
Appends an item to image_errors
.
To override the contents of this collection use set_image_errors
.
Describes the errors that are returned when a new image can't be created.
sourcepub fn set_image_errors(self, input: Option<Vec<ResourceError>>) -> Self
pub fn set_image_errors(self, input: Option<Vec<ResourceError>>) -> Self
Describes the errors that are returned when a new image can't be created.
sourcepub fn get_image_errors(&self) -> &Option<Vec<ResourceError>>
pub fn get_image_errors(&self) -> &Option<Vec<ResourceError>>
Describes the errors that are returned when a new image can't be created.
Trait Implementations§
source§impl Clone for ImageBuilder
impl Clone for ImageBuilder
source§fn clone(&self) -> ImageBuilder
fn clone(&self) -> ImageBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImageBuilder
impl Debug for ImageBuilder
source§impl Default for ImageBuilder
impl Default for ImageBuilder
source§fn default() -> ImageBuilder
fn default() -> ImageBuilder
source§impl PartialEq for ImageBuilder
impl PartialEq for ImageBuilder
source§fn eq(&self, other: &ImageBuilder) -> bool
fn eq(&self, other: &ImageBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.