Struct aws_sdk_ec2::operation::create_instance_export_task::builders::CreateInstanceExportTaskInputBuilder
source · #[non_exhaustive]pub struct CreateInstanceExportTaskInputBuilder { /* private fields */ }
Expand description
A builder for CreateInstanceExportTaskInput
.
Implementations§
source§impl CreateInstanceExportTaskInputBuilder
impl CreateInstanceExportTaskInputBuilder
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description for the conversion task or the resource being exported. The maximum length is 255 characters.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description for the conversion task or the resource being exported. The maximum length is 255 characters.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description for the conversion task or the resource being exported. The maximum length is 255 characters.
sourcepub fn export_to_s3_task(self, input: ExportToS3TaskSpecification) -> Self
pub fn export_to_s3_task(self, input: ExportToS3TaskSpecification) -> Self
The format and location for an export instance task.
This field is required.sourcepub fn set_export_to_s3_task(
self,
input: Option<ExportToS3TaskSpecification>
) -> Self
pub fn set_export_to_s3_task( self, input: Option<ExportToS3TaskSpecification> ) -> Self
The format and location for an export instance task.
sourcepub fn get_export_to_s3_task(&self) -> &Option<ExportToS3TaskSpecification>
pub fn get_export_to_s3_task(&self) -> &Option<ExportToS3TaskSpecification>
The format and location for an export instance task.
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The ID of the instance.
This field is required.sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The ID of the instance.
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
The ID of the instance.
sourcepub fn target_environment(self, input: ExportEnvironment) -> Self
pub fn target_environment(self, input: ExportEnvironment) -> Self
The target virtualization environment.
This field is required.sourcepub fn set_target_environment(self, input: Option<ExportEnvironment>) -> Self
pub fn set_target_environment(self, input: Option<ExportEnvironment>) -> Self
The target virtualization environment.
sourcepub fn get_target_environment(&self) -> &Option<ExportEnvironment>
pub fn get_target_environment(&self) -> &Option<ExportEnvironment>
The target virtualization environment.
sourcepub fn tag_specifications(self, input: TagSpecification) -> Self
pub fn tag_specifications(self, input: TagSpecification) -> Self
Appends an item to tag_specifications
.
To override the contents of this collection use set_tag_specifications
.
The tags to apply to the export instance task during creation.
sourcepub fn set_tag_specifications(
self,
input: Option<Vec<TagSpecification>>
) -> Self
pub fn set_tag_specifications( self, input: Option<Vec<TagSpecification>> ) -> Self
The tags to apply to the export instance task during creation.
sourcepub fn get_tag_specifications(&self) -> &Option<Vec<TagSpecification>>
pub fn get_tag_specifications(&self) -> &Option<Vec<TagSpecification>>
The tags to apply to the export instance task during creation.
sourcepub fn build(self) -> Result<CreateInstanceExportTaskInput, BuildError>
pub fn build(self) -> Result<CreateInstanceExportTaskInput, BuildError>
Consumes the builder and constructs a CreateInstanceExportTaskInput
.
source§impl CreateInstanceExportTaskInputBuilder
impl CreateInstanceExportTaskInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateInstanceExportTaskOutput, SdkError<CreateInstanceExportTaskError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateInstanceExportTaskOutput, SdkError<CreateInstanceExportTaskError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateInstanceExportTaskInputBuilder
impl Clone for CreateInstanceExportTaskInputBuilder
source§fn clone(&self) -> CreateInstanceExportTaskInputBuilder
fn clone(&self) -> CreateInstanceExportTaskInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateInstanceExportTaskInputBuilder
impl Default for CreateInstanceExportTaskInputBuilder
source§fn default() -> CreateInstanceExportTaskInputBuilder
fn default() -> CreateInstanceExportTaskInputBuilder
source§impl PartialEq for CreateInstanceExportTaskInputBuilder
impl PartialEq for CreateInstanceExportTaskInputBuilder
source§fn eq(&self, other: &CreateInstanceExportTaskInputBuilder) -> bool
fn eq(&self, other: &CreateInstanceExportTaskInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateInstanceExportTaskInputBuilder
Auto Trait Implementations§
impl Freeze for CreateInstanceExportTaskInputBuilder
impl RefUnwindSafe for CreateInstanceExportTaskInputBuilder
impl Send for CreateInstanceExportTaskInputBuilder
impl Sync for CreateInstanceExportTaskInputBuilder
impl Unpin for CreateInstanceExportTaskInputBuilder
impl UnwindSafe for CreateInstanceExportTaskInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more