Struct aws_sdk_ec2::model::import_image_task::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ImportImageTask
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn architecture(self, input: impl Into<String>) -> Self
pub fn architecture(self, input: impl Into<String>) -> Self
The architecture of the virtual machine.
Valid values: i386
| x86_64
| arm64
sourcepub fn set_architecture(self, input: Option<String>) -> Self
pub fn set_architecture(self, input: Option<String>) -> Self
The architecture of the virtual machine.
Valid values: i386
| x86_64
| arm64
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the import task.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the import task.
sourcepub fn set_encrypted(self, input: Option<bool>) -> Self
pub fn set_encrypted(self, input: Option<bool>) -> Self
Indicates whether the image is encrypted.
sourcepub fn hypervisor(self, input: impl Into<String>) -> Self
pub fn hypervisor(self, input: impl Into<String>) -> Self
The target hypervisor for the import task.
Valid values: xen
sourcepub fn set_hypervisor(self, input: Option<String>) -> Self
pub fn set_hypervisor(self, input: Option<String>) -> Self
The target hypervisor for the import task.
Valid values: xen
sourcepub fn image_id(self, input: impl Into<String>) -> Self
pub fn image_id(self, input: impl Into<String>) -> Self
The ID of the Amazon Machine Image (AMI) of the imported virtual machine.
sourcepub fn set_image_id(self, input: Option<String>) -> Self
pub fn set_image_id(self, input: Option<String>) -> Self
The ID of the Amazon Machine Image (AMI) of the imported virtual machine.
sourcepub fn import_task_id(self, input: impl Into<String>) -> Self
pub fn import_task_id(self, input: impl Into<String>) -> Self
The ID of the import image task.
sourcepub fn set_import_task_id(self, input: Option<String>) -> Self
pub fn set_import_task_id(self, input: Option<String>) -> Self
The ID of the import image task.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The identifier for the KMS key that was used to create the encrypted image.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The identifier for the KMS key that was used to create the encrypted image.
sourcepub fn license_type(self, input: impl Into<String>) -> Self
pub fn license_type(self, input: impl Into<String>) -> Self
The license type of the virtual machine.
sourcepub fn set_license_type(self, input: Option<String>) -> Self
pub fn set_license_type(self, input: Option<String>) -> Self
The license type of the virtual machine.
sourcepub fn platform(self, input: impl Into<String>) -> Self
pub fn platform(self, input: impl Into<String>) -> Self
The description string for the import image task.
sourcepub fn set_platform(self, input: Option<String>) -> Self
pub fn set_platform(self, input: Option<String>) -> Self
The description string for the import image task.
sourcepub fn progress(self, input: impl Into<String>) -> Self
pub fn progress(self, input: impl Into<String>) -> Self
The percentage of progress of the import image task.
sourcepub fn set_progress(self, input: Option<String>) -> Self
pub fn set_progress(self, input: Option<String>) -> Self
The percentage of progress of the import image task.
sourcepub fn snapshot_details(self, input: SnapshotDetail) -> Self
pub fn snapshot_details(self, input: SnapshotDetail) -> Self
Appends an item to snapshot_details
.
To override the contents of this collection use set_snapshot_details
.
Information about the snapshots.
sourcepub fn set_snapshot_details(self, input: Option<Vec<SnapshotDetail>>) -> Self
pub fn set_snapshot_details(self, input: Option<Vec<SnapshotDetail>>) -> Self
Information about the snapshots.
sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
A brief status for the import image task.
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
A brief status for the import image task.
sourcepub fn status_message(self, input: impl Into<String>) -> Self
pub fn status_message(self, input: impl Into<String>) -> Self
A descriptive status message for the import image task.
sourcepub fn set_status_message(self, input: Option<String>) -> Self
pub fn set_status_message(self, input: Option<String>) -> Self
A descriptive status message for the import image task.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tags for the import image task.
The tags for the import image task.
sourcepub fn license_specifications(
self,
input: ImportImageLicenseConfigurationResponse
) -> Self
pub fn license_specifications(
self,
input: ImportImageLicenseConfigurationResponse
) -> Self
Appends an item to license_specifications
.
To override the contents of this collection use set_license_specifications
.
The ARNs of the license configurations that are associated with the import image task.
sourcepub fn set_license_specifications(
self,
input: Option<Vec<ImportImageLicenseConfigurationResponse>>
) -> Self
pub fn set_license_specifications(
self,
input: Option<Vec<ImportImageLicenseConfigurationResponse>>
) -> Self
The ARNs of the license configurations that are associated with the import image task.
sourcepub fn usage_operation(self, input: impl Into<String>) -> Self
pub fn usage_operation(self, input: impl Into<String>) -> Self
The usage operation value.
sourcepub fn set_usage_operation(self, input: Option<String>) -> Self
pub fn set_usage_operation(self, input: Option<String>) -> Self
The usage operation value.
sourcepub fn boot_mode(self, input: BootModeValues) -> Self
pub fn boot_mode(self, input: BootModeValues) -> Self
The boot mode of the virtual machine.
sourcepub fn set_boot_mode(self, input: Option<BootModeValues>) -> Self
pub fn set_boot_mode(self, input: Option<BootModeValues>) -> Self
The boot mode of the virtual machine.
sourcepub fn build(self) -> ImportImageTask
pub fn build(self) -> ImportImageTask
Consumes the builder and constructs a ImportImageTask
.