Struct aws_sdk_outposts::operation::get_capacity_task::builders::GetCapacityTaskOutputBuilder
source · #[non_exhaustive]pub struct GetCapacityTaskOutputBuilder { /* private fields */ }
Expand description
A builder for GetCapacityTaskOutput
.
Implementations§
source§impl GetCapacityTaskOutputBuilder
impl GetCapacityTaskOutputBuilder
sourcepub fn capacity_task_id(self, input: impl Into<String>) -> Self
pub fn capacity_task_id(self, input: impl Into<String>) -> Self
ID of the capacity task.
sourcepub fn set_capacity_task_id(self, input: Option<String>) -> Self
pub fn set_capacity_task_id(self, input: Option<String>) -> Self
ID of the capacity task.
sourcepub fn get_capacity_task_id(&self) -> &Option<String>
pub fn get_capacity_task_id(&self) -> &Option<String>
ID of the capacity task.
sourcepub fn outpost_id(self, input: impl Into<String>) -> Self
pub fn outpost_id(self, input: impl Into<String>) -> Self
ID of the Outpost associated with the specified capacity task.
sourcepub fn set_outpost_id(self, input: Option<String>) -> Self
pub fn set_outpost_id(self, input: Option<String>) -> Self
ID of the Outpost associated with the specified capacity task.
sourcepub fn get_outpost_id(&self) -> &Option<String>
pub fn get_outpost_id(&self) -> &Option<String>
ID of the Outpost associated with the specified capacity task.
sourcepub fn order_id(self, input: impl Into<String>) -> Self
pub fn order_id(self, input: impl Into<String>) -> Self
ID of the Amazon Web Services Outposts order associated with the specified capacity task.
sourcepub fn set_order_id(self, input: Option<String>) -> Self
pub fn set_order_id(self, input: Option<String>) -> Self
ID of the Amazon Web Services Outposts order associated with the specified capacity task.
sourcepub fn get_order_id(&self) -> &Option<String>
pub fn get_order_id(&self) -> &Option<String>
ID of the Amazon Web Services Outposts order associated with the specified capacity task.
sourcepub fn requested_instance_pools(self, input: InstanceTypeCapacity) -> Self
pub fn requested_instance_pools(self, input: InstanceTypeCapacity) -> Self
Appends an item to requested_instance_pools
.
To override the contents of this collection use set_requested_instance_pools
.
List of instance pools requested in the capacity task.
sourcepub fn set_requested_instance_pools(
self,
input: Option<Vec<InstanceTypeCapacity>>,
) -> Self
pub fn set_requested_instance_pools( self, input: Option<Vec<InstanceTypeCapacity>>, ) -> Self
List of instance pools requested in the capacity task.
sourcepub fn get_requested_instance_pools(&self) -> &Option<Vec<InstanceTypeCapacity>>
pub fn get_requested_instance_pools(&self) -> &Option<Vec<InstanceTypeCapacity>>
List of instance pools requested in the capacity task.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
Performs a dry run to determine if you are above or below instance capacity.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
Performs a dry run to determine if you are above or below instance capacity.
sourcepub fn get_dry_run(&self) -> &Option<bool>
pub fn get_dry_run(&self) -> &Option<bool>
Performs a dry run to determine if you are above or below instance capacity.
sourcepub fn capacity_task_status(self, input: CapacityTaskStatus) -> Self
pub fn capacity_task_status(self, input: CapacityTaskStatus) -> Self
Status of the capacity task.
A capacity task can have one of the following statuses:
-
REQUESTED
- The capacity task was created and is awaiting the next step by Amazon Web Services Outposts. -
IN_PROGRESS
- The capacity task is running and cannot be cancelled. -
WAITING_FOR_EVACUATION
- The capacity task requires capacity to run. You must stop the recommended EC2 running instances to free up capacity for the task to run.
sourcepub fn set_capacity_task_status(self, input: Option<CapacityTaskStatus>) -> Self
pub fn set_capacity_task_status(self, input: Option<CapacityTaskStatus>) -> Self
Status of the capacity task.
A capacity task can have one of the following statuses:
-
REQUESTED
- The capacity task was created and is awaiting the next step by Amazon Web Services Outposts. -
IN_PROGRESS
- The capacity task is running and cannot be cancelled. -
WAITING_FOR_EVACUATION
- The capacity task requires capacity to run. You must stop the recommended EC2 running instances to free up capacity for the task to run.
sourcepub fn get_capacity_task_status(&self) -> &Option<CapacityTaskStatus>
pub fn get_capacity_task_status(&self) -> &Option<CapacityTaskStatus>
Status of the capacity task.
A capacity task can have one of the following statuses:
-
REQUESTED
- The capacity task was created and is awaiting the next step by Amazon Web Services Outposts. -
IN_PROGRESS
- The capacity task is running and cannot be cancelled. -
WAITING_FOR_EVACUATION
- The capacity task requires capacity to run. You must stop the recommended EC2 running instances to free up capacity for the task to run.
sourcepub fn failed(self, input: CapacityTaskFailure) -> Self
pub fn failed(self, input: CapacityTaskFailure) -> Self
Reason why the capacity task failed.
sourcepub fn set_failed(self, input: Option<CapacityTaskFailure>) -> Self
pub fn set_failed(self, input: Option<CapacityTaskFailure>) -> Self
Reason why the capacity task failed.
sourcepub fn get_failed(&self) -> &Option<CapacityTaskFailure>
pub fn get_failed(&self) -> &Option<CapacityTaskFailure>
Reason why the capacity task failed.
sourcepub fn creation_date(self, input: DateTime) -> Self
pub fn creation_date(self, input: DateTime) -> Self
The date the capacity task was created.
sourcepub fn set_creation_date(self, input: Option<DateTime>) -> Self
pub fn set_creation_date(self, input: Option<DateTime>) -> Self
The date the capacity task was created.
sourcepub fn get_creation_date(&self) -> &Option<DateTime>
pub fn get_creation_date(&self) -> &Option<DateTime>
The date the capacity task was created.
sourcepub fn completion_date(self, input: DateTime) -> Self
pub fn completion_date(self, input: DateTime) -> Self
The date the capacity task ran successfully.
sourcepub fn set_completion_date(self, input: Option<DateTime>) -> Self
pub fn set_completion_date(self, input: Option<DateTime>) -> Self
The date the capacity task ran successfully.
sourcepub fn get_completion_date(&self) -> &Option<DateTime>
pub fn get_completion_date(&self) -> &Option<DateTime>
The date the capacity task ran successfully.
sourcepub fn last_modified_date(self, input: DateTime) -> Self
pub fn last_modified_date(self, input: DateTime) -> Self
The date the capacity task was last modified.
sourcepub fn set_last_modified_date(self, input: Option<DateTime>) -> Self
pub fn set_last_modified_date(self, input: Option<DateTime>) -> Self
The date the capacity task was last modified.
sourcepub fn get_last_modified_date(&self) -> &Option<DateTime>
pub fn get_last_modified_date(&self) -> &Option<DateTime>
The date the capacity task was last modified.
sourcepub fn build(self) -> GetCapacityTaskOutput
pub fn build(self) -> GetCapacityTaskOutput
Consumes the builder and constructs a GetCapacityTaskOutput
.
Trait Implementations§
source§impl Clone for GetCapacityTaskOutputBuilder
impl Clone for GetCapacityTaskOutputBuilder
source§fn clone(&self) -> GetCapacityTaskOutputBuilder
fn clone(&self) -> GetCapacityTaskOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetCapacityTaskOutputBuilder
impl Debug for GetCapacityTaskOutputBuilder
source§impl Default for GetCapacityTaskOutputBuilder
impl Default for GetCapacityTaskOutputBuilder
source§fn default() -> GetCapacityTaskOutputBuilder
fn default() -> GetCapacityTaskOutputBuilder
source§impl PartialEq for GetCapacityTaskOutputBuilder
impl PartialEq for GetCapacityTaskOutputBuilder
source§fn eq(&self, other: &GetCapacityTaskOutputBuilder) -> bool
fn eq(&self, other: &GetCapacityTaskOutputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for GetCapacityTaskOutputBuilder
Auto Trait Implementations§
impl Freeze for GetCapacityTaskOutputBuilder
impl RefUnwindSafe for GetCapacityTaskOutputBuilder
impl Send for GetCapacityTaskOutputBuilder
impl Sync for GetCapacityTaskOutputBuilder
impl Unpin for GetCapacityTaskOutputBuilder
impl UnwindSafe for GetCapacityTaskOutputBuilder
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