Struct aws_sdk_ec2::input::import_instance_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ImportInstanceInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description for the instance being imported.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description for the instance being imported.
sourcepub fn disk_images(self, input: DiskImage) -> Self
pub fn disk_images(self, input: DiskImage) -> Self
Appends an item to disk_images
.
To override the contents of this collection use set_disk_images
.
The disk image.
sourcepub fn set_disk_images(self, input: Option<Vec<DiskImage>>) -> Self
pub fn set_disk_images(self, input: Option<Vec<DiskImage>>) -> Self
The disk image.
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 launch_specification(
self,
input: ImportInstanceLaunchSpecification
) -> Self
pub fn launch_specification(
self,
input: ImportInstanceLaunchSpecification
) -> Self
The launch specification.
sourcepub fn set_launch_specification(
self,
input: Option<ImportInstanceLaunchSpecification>
) -> Self
pub fn set_launch_specification(
self,
input: Option<ImportInstanceLaunchSpecification>
) -> Self
The launch specification.
sourcepub fn platform(self, input: PlatformValues) -> Self
pub fn platform(self, input: PlatformValues) -> Self
The instance operating system.
sourcepub fn set_platform(self, input: Option<PlatformValues>) -> Self
pub fn set_platform(self, input: Option<PlatformValues>) -> Self
The instance operating system.
sourcepub fn build(self) -> Result<ImportInstanceInput, BuildError>
pub fn build(self) -> Result<ImportInstanceInput, BuildError>
Consumes the builder and constructs a ImportInstanceInput
.