Struct aws_sdk_outposts::operation::start_capacity_task::builders::StartCapacityTaskInputBuilder
source · #[non_exhaustive]pub struct StartCapacityTaskInputBuilder { /* private fields */ }
Expand description
A builder for StartCapacityTaskInput
.
Implementations§
source§impl StartCapacityTaskInputBuilder
impl StartCapacityTaskInputBuilder
sourcepub fn outpost_identifier(self, input: impl Into<String>) -> Self
pub fn outpost_identifier(self, input: impl Into<String>) -> Self
The ID or ARN of the Outposts associated with the specified capacity task.
This field is required.sourcepub fn set_outpost_identifier(self, input: Option<String>) -> Self
pub fn set_outpost_identifier(self, input: Option<String>) -> Self
The ID or ARN of the Outposts associated with the specified capacity task.
sourcepub fn get_outpost_identifier(&self) -> &Option<String>
pub fn get_outpost_identifier(&self) -> &Option<String>
The ID or ARN of the Outposts 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
The ID of the Amazon Web Services Outposts order associated with the specified capacity task.
This field is required.sourcepub fn set_order_id(self, input: Option<String>) -> Self
pub fn set_order_id(self, input: Option<String>) -> Self
The 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>
The ID of the Amazon Web Services Outposts order associated with the specified capacity task.
sourcepub fn instance_pools(self, input: InstanceTypeCapacity) -> Self
pub fn instance_pools(self, input: InstanceTypeCapacity) -> Self
Appends an item to instance_pools
.
To override the contents of this collection use set_instance_pools
.
The instance pools specified in the capacity task.
sourcepub fn set_instance_pools(
self,
input: Option<Vec<InstanceTypeCapacity>>,
) -> Self
pub fn set_instance_pools( self, input: Option<Vec<InstanceTypeCapacity>>, ) -> Self
The instance pools specified in the capacity task.
sourcepub fn get_instance_pools(&self) -> &Option<Vec<InstanceTypeCapacity>>
pub fn get_instance_pools(&self) -> &Option<Vec<InstanceTypeCapacity>>
The instance pools specified in the capacity task.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
You can request a dry run to determine if the instance type and instance size changes is above or below available instance capacity. Requesting a dry run does not make any changes to your plan.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
You can request a dry run to determine if the instance type and instance size changes is above or below available instance capacity. Requesting a dry run does not make any changes to your plan.
sourcepub fn get_dry_run(&self) -> &Option<bool>
pub fn get_dry_run(&self) -> &Option<bool>
You can request a dry run to determine if the instance type and instance size changes is above or below available instance capacity. Requesting a dry run does not make any changes to your plan.
sourcepub fn build(self) -> Result<StartCapacityTaskInput, BuildError>
pub fn build(self) -> Result<StartCapacityTaskInput, BuildError>
Consumes the builder and constructs a StartCapacityTaskInput
.
source§impl StartCapacityTaskInputBuilder
impl StartCapacityTaskInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<StartCapacityTaskOutput, SdkError<StartCapacityTaskError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<StartCapacityTaskOutput, SdkError<StartCapacityTaskError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for StartCapacityTaskInputBuilder
impl Clone for StartCapacityTaskInputBuilder
source§fn clone(&self) -> StartCapacityTaskInputBuilder
fn clone(&self) -> StartCapacityTaskInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for StartCapacityTaskInputBuilder
impl Default for StartCapacityTaskInputBuilder
source§fn default() -> StartCapacityTaskInputBuilder
fn default() -> StartCapacityTaskInputBuilder
source§impl PartialEq for StartCapacityTaskInputBuilder
impl PartialEq for StartCapacityTaskInputBuilder
source§fn eq(&self, other: &StartCapacityTaskInputBuilder) -> bool
fn eq(&self, other: &StartCapacityTaskInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StartCapacityTaskInputBuilder
Auto Trait Implementations§
impl Freeze for StartCapacityTaskInputBuilder
impl RefUnwindSafe for StartCapacityTaskInputBuilder
impl Send for StartCapacityTaskInputBuilder
impl Sync for StartCapacityTaskInputBuilder
impl Unpin for StartCapacityTaskInputBuilder
impl UnwindSafe for StartCapacityTaskInputBuilder
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