pub struct ImportVolumeFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ImportVolume
.
Creates an import volume task using metadata from the specified disk image.
This API action supports only single-volume VMs. To import multi-volume VMs, use ImportImage
instead. To import a disk to a snapshot, use ImportSnapshot
instead.
This API action is not supported by the Command Line Interface (CLI). For information about using the Amazon EC2 CLI, which is deprecated, see Importing Disks to Amazon EBS in the Amazon EC2 CLI Reference PDF file.
For information about the import manifest referenced by this API action, see VM Import Manifest.
Implementations§
source§impl ImportVolumeFluentBuilder
impl ImportVolumeFluentBuilder
sourcepub fn as_input(&self) -> &ImportVolumeInputBuilder
pub fn as_input(&self) -> &ImportVolumeInputBuilder
Access the ImportVolume as a reference.
sourcepub async fn send(
self
) -> Result<ImportVolumeOutput, SdkError<ImportVolumeError, HttpResponse>>
pub async fn send( self ) -> Result<ImportVolumeOutput, SdkError<ImportVolumeError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<ImportVolumeOutput, ImportVolumeError, Self>
pub fn customize( self ) -> CustomizableOperation<ImportVolumeOutput, ImportVolumeError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn availability_zone(self, input: impl Into<String>) -> Self
pub fn availability_zone(self, input: impl Into<String>) -> Self
The Availability Zone for the resulting EBS volume.
sourcepub fn set_availability_zone(self, input: Option<String>) -> Self
pub fn set_availability_zone(self, input: Option<String>) -> Self
The Availability Zone for the resulting EBS volume.
sourcepub fn get_availability_zone(&self) -> &Option<String>
pub fn get_availability_zone(&self) -> &Option<String>
The Availability Zone for the resulting EBS volume.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the volume.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the volume.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the volume.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn get_dry_run(&self) -> &Option<bool>
pub fn get_dry_run(&self) -> &Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn image(self, input: DiskImageDetail) -> Self
pub fn image(self, input: DiskImageDetail) -> Self
The disk image.
sourcepub fn set_image(self, input: Option<DiskImageDetail>) -> Self
pub fn set_image(self, input: Option<DiskImageDetail>) -> Self
The disk image.
sourcepub fn get_image(&self) -> &Option<DiskImageDetail>
pub fn get_image(&self) -> &Option<DiskImageDetail>
The disk image.
sourcepub fn volume(self, input: VolumeDetail) -> Self
pub fn volume(self, input: VolumeDetail) -> Self
The volume size.
sourcepub fn set_volume(self, input: Option<VolumeDetail>) -> Self
pub fn set_volume(self, input: Option<VolumeDetail>) -> Self
The volume size.
sourcepub fn get_volume(&self) -> &Option<VolumeDetail>
pub fn get_volume(&self) -> &Option<VolumeDetail>
The volume size.
Trait Implementations§
source§impl Clone for ImportVolumeFluentBuilder
impl Clone for ImportVolumeFluentBuilder
source§fn clone(&self) -> ImportVolumeFluentBuilder
fn clone(&self) -> ImportVolumeFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more