#[non_exhaustive]pub struct StartCapacityTaskOutput {
pub capacity_task_id: Option<String>,
pub outpost_id: Option<String>,
pub order_id: Option<String>,
pub requested_instance_pools: Option<Vec<InstanceTypeCapacity>>,
pub dry_run: bool,
pub capacity_task_status: Option<CapacityTaskStatus>,
pub failed: Option<CapacityTaskFailure>,
pub creation_date: Option<DateTime>,
pub completion_date: Option<DateTime>,
pub last_modified_date: Option<DateTime>,
/* private fields */
}
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.capacity_task_id: Option<String>
ID of the capacity task that you want to start.
outpost_id: Option<String>
ID of the Outpost associated with the capacity task.
order_id: Option<String>
ID of the Amazon Web Services Outposts order of the host associated with the capacity task.
requested_instance_pools: Option<Vec<InstanceTypeCapacity>>
List of the instance pools requested in the specified capacity task.
dry_run: bool
Results of the dry run showing if the specified capacity task is above or below the available instance capacity.
capacity_task_status: Option<CapacityTaskStatus>
Status of the specified capacity task.
failed: Option<CapacityTaskFailure>
Reason that the specified capacity task failed.
creation_date: Option<DateTime>
Date that the specified capacity task was created.
completion_date: Option<DateTime>
Date that the specified capacity task ran successfully.
last_modified_date: Option<DateTime>
Date that the specified capacity task was last modified.
Implementations§
source§impl StartCapacityTaskOutput
impl StartCapacityTaskOutput
sourcepub fn capacity_task_id(&self) -> Option<&str>
pub fn capacity_task_id(&self) -> Option<&str>
ID of the capacity task that you want to start.
sourcepub fn outpost_id(&self) -> Option<&str>
pub fn outpost_id(&self) -> Option<&str>
ID of the Outpost associated with the capacity task.
sourcepub fn order_id(&self) -> Option<&str>
pub fn order_id(&self) -> Option<&str>
ID of the Amazon Web Services Outposts order of the host associated with the capacity task.
sourcepub fn requested_instance_pools(&self) -> &[InstanceTypeCapacity]
pub fn requested_instance_pools(&self) -> &[InstanceTypeCapacity]
List of the instance pools requested in the specified capacity 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 .requested_instance_pools.is_none()
.
sourcepub fn dry_run(&self) -> bool
pub fn dry_run(&self) -> bool
Results of the dry run showing if the specified capacity task is above or below the available instance capacity.
sourcepub fn capacity_task_status(&self) -> Option<&CapacityTaskStatus>
pub fn capacity_task_status(&self) -> Option<&CapacityTaskStatus>
Status of the specified capacity task.
sourcepub fn failed(&self) -> Option<&CapacityTaskFailure>
pub fn failed(&self) -> Option<&CapacityTaskFailure>
Reason that the specified capacity task failed.
sourcepub fn creation_date(&self) -> Option<&DateTime>
pub fn creation_date(&self) -> Option<&DateTime>
Date that the specified capacity task was created.
sourcepub fn completion_date(&self) -> Option<&DateTime>
pub fn completion_date(&self) -> Option<&DateTime>
Date that the specified capacity task ran successfully.
sourcepub fn last_modified_date(&self) -> Option<&DateTime>
pub fn last_modified_date(&self) -> Option<&DateTime>
Date that the specified capacity task was last modified.
source§impl StartCapacityTaskOutput
impl StartCapacityTaskOutput
sourcepub fn builder() -> StartCapacityTaskOutputBuilder
pub fn builder() -> StartCapacityTaskOutputBuilder
Creates a new builder-style object to manufacture StartCapacityTaskOutput
.
Trait Implementations§
source§impl Clone for StartCapacityTaskOutput
impl Clone for StartCapacityTaskOutput
source§fn clone(&self) -> StartCapacityTaskOutput
fn clone(&self) -> StartCapacityTaskOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StartCapacityTaskOutput
impl Debug for StartCapacityTaskOutput
source§impl PartialEq for StartCapacityTaskOutput
impl PartialEq for StartCapacityTaskOutput
source§impl RequestId for StartCapacityTaskOutput
impl RequestId for StartCapacityTaskOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for StartCapacityTaskOutput
Auto Trait Implementations§
impl Freeze for StartCapacityTaskOutput
impl RefUnwindSafe for StartCapacityTaskOutput
impl Send for StartCapacityTaskOutput
impl Sync for StartCapacityTaskOutput
impl Unpin for StartCapacityTaskOutput
impl UnwindSafe for StartCapacityTaskOutput
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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