Struct aws_sdk_ecs::operation::update_container_instances_state::builders::UpdateContainerInstancesStateInputBuilder
source · #[non_exhaustive]pub struct UpdateContainerInstancesStateInputBuilder { /* private fields */ }
Expand description
A builder for UpdateContainerInstancesStateInput
.
Implementations§
source§impl UpdateContainerInstancesStateInputBuilder
impl UpdateContainerInstancesStateInputBuilder
sourcepub fn cluster(self, input: impl Into<String>) -> Self
pub fn cluster(self, input: impl Into<String>) -> Self
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instance to update. If you do not specify a cluster, the default cluster is assumed.
sourcepub fn set_cluster(self, input: Option<String>) -> Self
pub fn set_cluster(self, input: Option<String>) -> Self
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instance to update. If you do not specify a cluster, the default cluster is assumed.
sourcepub fn get_cluster(&self) -> &Option<String>
pub fn get_cluster(&self) -> &Option<String>
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instance to update. If you do not specify a cluster, the default cluster is assumed.
sourcepub fn container_instances(self, input: impl Into<String>) -> Self
pub fn container_instances(self, input: impl Into<String>) -> Self
Appends an item to container_instances
.
To override the contents of this collection use set_container_instances
.
A list of up to 10 container instance IDs or full ARN entries.
sourcepub fn set_container_instances(self, input: Option<Vec<String>>) -> Self
pub fn set_container_instances(self, input: Option<Vec<String>>) -> Self
A list of up to 10 container instance IDs or full ARN entries.
sourcepub fn get_container_instances(&self) -> &Option<Vec<String>>
pub fn get_container_instances(&self) -> &Option<Vec<String>>
A list of up to 10 container instance IDs or full ARN entries.
sourcepub fn status(self, input: ContainerInstanceStatus) -> Self
pub fn status(self, input: ContainerInstanceStatus) -> Self
The container instance state to update the container instance with. The only valid values for this action are ACTIVE
and DRAINING
. A container instance can only be updated to DRAINING
status once it has reached an ACTIVE
state. If a container instance is in REGISTERING
, DEREGISTERING
, or REGISTRATION_FAILED
state you can describe the container instance but can't update the container instance state.
sourcepub fn set_status(self, input: Option<ContainerInstanceStatus>) -> Self
pub fn set_status(self, input: Option<ContainerInstanceStatus>) -> Self
The container instance state to update the container instance with. The only valid values for this action are ACTIVE
and DRAINING
. A container instance can only be updated to DRAINING
status once it has reached an ACTIVE
state. If a container instance is in REGISTERING
, DEREGISTERING
, or REGISTRATION_FAILED
state you can describe the container instance but can't update the container instance state.
sourcepub fn get_status(&self) -> &Option<ContainerInstanceStatus>
pub fn get_status(&self) -> &Option<ContainerInstanceStatus>
The container instance state to update the container instance with. The only valid values for this action are ACTIVE
and DRAINING
. A container instance can only be updated to DRAINING
status once it has reached an ACTIVE
state. If a container instance is in REGISTERING
, DEREGISTERING
, or REGISTRATION_FAILED
state you can describe the container instance but can't update the container instance state.
sourcepub fn build(self) -> Result<UpdateContainerInstancesStateInput, BuildError>
pub fn build(self) -> Result<UpdateContainerInstancesStateInput, BuildError>
Consumes the builder and constructs a UpdateContainerInstancesStateInput
.
source§impl UpdateContainerInstancesStateInputBuilder
impl UpdateContainerInstancesStateInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateContainerInstancesStateOutput, SdkError<UpdateContainerInstancesStateError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateContainerInstancesStateOutput, SdkError<UpdateContainerInstancesStateError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateContainerInstancesStateInputBuilder
impl Clone for UpdateContainerInstancesStateInputBuilder
source§fn clone(&self) -> UpdateContainerInstancesStateInputBuilder
fn clone(&self) -> UpdateContainerInstancesStateInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateContainerInstancesStateInputBuilder
impl Default for UpdateContainerInstancesStateInputBuilder
source§fn default() -> UpdateContainerInstancesStateInputBuilder
fn default() -> UpdateContainerInstancesStateInputBuilder
source§impl PartialEq for UpdateContainerInstancesStateInputBuilder
impl PartialEq for UpdateContainerInstancesStateInputBuilder
source§fn eq(&self, other: &UpdateContainerInstancesStateInputBuilder) -> bool
fn eq(&self, other: &UpdateContainerInstancesStateInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateContainerInstancesStateInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateContainerInstancesStateInputBuilder
impl RefUnwindSafe for UpdateContainerInstancesStateInputBuilder
impl Send for UpdateContainerInstancesStateInputBuilder
impl Sync for UpdateContainerInstancesStateInputBuilder
impl Unpin for UpdateContainerInstancesStateInputBuilder
impl UnwindSafe for UpdateContainerInstancesStateInputBuilder
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