Struct aws_sdk_ec2::types::ConversionTask
source · #[non_exhaustive]pub struct ConversionTask {
pub conversion_task_id: Option<String>,
pub expiration_time: Option<String>,
pub import_instance: Option<ImportInstanceTaskDetails>,
pub import_volume: Option<ImportVolumeTaskDetails>,
pub state: Option<ConversionTaskState>,
pub status_message: Option<String>,
pub tags: Option<Vec<Tag>>,
}
Expand description
Describes a conversion task.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.conversion_task_id: Option<String>
The ID of the conversion task.
expiration_time: Option<String>
The time when the task expires. If the upload isn't complete before the expiration time, we automatically cancel the task.
import_instance: Option<ImportInstanceTaskDetails>
If the task is for importing an instance, this contains information about the import instance task.
import_volume: Option<ImportVolumeTaskDetails>
If the task is for importing a volume, this contains information about the import volume task.
state: Option<ConversionTaskState>
The state of the conversion task.
status_message: Option<String>
The status message related to the conversion task.
Any tags assigned to the task.
Implementations§
source§impl ConversionTask
impl ConversionTask
sourcepub fn conversion_task_id(&self) -> Option<&str>
pub fn conversion_task_id(&self) -> Option<&str>
The ID of the conversion task.
sourcepub fn expiration_time(&self) -> Option<&str>
pub fn expiration_time(&self) -> Option<&str>
The time when the task expires. If the upload isn't complete before the expiration time, we automatically cancel the task.
sourcepub fn import_instance(&self) -> Option<&ImportInstanceTaskDetails>
pub fn import_instance(&self) -> Option<&ImportInstanceTaskDetails>
If the task is for importing an instance, this contains information about the import instance task.
sourcepub fn import_volume(&self) -> Option<&ImportVolumeTaskDetails>
pub fn import_volume(&self) -> Option<&ImportVolumeTaskDetails>
If the task is for importing a volume, this contains information about the import volume task.
sourcepub fn state(&self) -> Option<&ConversionTaskState>
pub fn state(&self) -> Option<&ConversionTaskState>
The state of the conversion task.
sourcepub fn status_message(&self) -> Option<&str>
pub fn status_message(&self) -> Option<&str>
The status message related to the conversion task.
Any tags assigned to the task.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
source§impl ConversionTask
impl ConversionTask
sourcepub fn builder() -> ConversionTaskBuilder
pub fn builder() -> ConversionTaskBuilder
Creates a new builder-style object to manufacture ConversionTask
.
Trait Implementations§
source§impl Clone for ConversionTask
impl Clone for ConversionTask
source§fn clone(&self) -> ConversionTask
fn clone(&self) -> ConversionTask
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConversionTask
impl Debug for ConversionTask
source§impl PartialEq for ConversionTask
impl PartialEq for ConversionTask
source§fn eq(&self, other: &ConversionTask) -> bool
fn eq(&self, other: &ConversionTask) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConversionTask
Auto Trait Implementations§
impl Freeze for ConversionTask
impl RefUnwindSafe for ConversionTask
impl Send for ConversionTask
impl Sync for ConversionTask
impl Unpin for ConversionTask
impl UnwindSafe for ConversionTask
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