Struct aws_sdk_ec2::model::import_image_task::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for ImportImageTask
.
Implementations
sourceimpl 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
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more