Struct aws_sdk_ecs::operation::submit_attachment_state_changes::builders::SubmitAttachmentStateChangesInputBuilder
source · #[non_exhaustive]pub struct SubmitAttachmentStateChangesInputBuilder { /* private fields */ }
Expand description
A builder for SubmitAttachmentStateChangesInput
.
Implementations§
source§impl SubmitAttachmentStateChangesInputBuilder
impl SubmitAttachmentStateChangesInputBuilder
sourcepub fn cluster(self, input: impl Into<String>) -> Self
pub fn cluster(self, input: impl Into<String>) -> Self
The short name or full ARN of the cluster that hosts the container instance the attachment belongs to.
sourcepub fn set_cluster(self, input: Option<String>) -> Self
pub fn set_cluster(self, input: Option<String>) -> Self
The short name or full ARN of the cluster that hosts the container instance the attachment belongs to.
sourcepub fn get_cluster(&self) -> &Option<String>
pub fn get_cluster(&self) -> &Option<String>
The short name or full ARN of the cluster that hosts the container instance the attachment belongs to.
sourcepub fn attachments(self, input: AttachmentStateChange) -> Self
pub fn attachments(self, input: AttachmentStateChange) -> Self
Appends an item to attachments
.
To override the contents of this collection use set_attachments
.
Any attachments associated with the state change request.
sourcepub fn set_attachments(self, input: Option<Vec<AttachmentStateChange>>) -> Self
pub fn set_attachments(self, input: Option<Vec<AttachmentStateChange>>) -> Self
Any attachments associated with the state change request.
sourcepub fn get_attachments(&self) -> &Option<Vec<AttachmentStateChange>>
pub fn get_attachments(&self) -> &Option<Vec<AttachmentStateChange>>
Any attachments associated with the state change request.
sourcepub fn build(self) -> Result<SubmitAttachmentStateChangesInput, BuildError>
pub fn build(self) -> Result<SubmitAttachmentStateChangesInput, BuildError>
Consumes the builder and constructs a SubmitAttachmentStateChangesInput
.
source§impl SubmitAttachmentStateChangesInputBuilder
impl SubmitAttachmentStateChangesInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<SubmitAttachmentStateChangesOutput, SdkError<SubmitAttachmentStateChangesError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<SubmitAttachmentStateChangesOutput, SdkError<SubmitAttachmentStateChangesError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for SubmitAttachmentStateChangesInputBuilder
impl Clone for SubmitAttachmentStateChangesInputBuilder
source§fn clone(&self) -> SubmitAttachmentStateChangesInputBuilder
fn clone(&self) -> SubmitAttachmentStateChangesInputBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for SubmitAttachmentStateChangesInputBuilder
impl Default for SubmitAttachmentStateChangesInputBuilder
source§fn default() -> SubmitAttachmentStateChangesInputBuilder
fn default() -> SubmitAttachmentStateChangesInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for SubmitAttachmentStateChangesInputBuilder
impl PartialEq for SubmitAttachmentStateChangesInputBuilder
source§fn eq(&self, other: &SubmitAttachmentStateChangesInputBuilder) -> bool
fn eq(&self, other: &SubmitAttachmentStateChangesInputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SubmitAttachmentStateChangesInputBuilder
Auto Trait Implementations§
impl Freeze for SubmitAttachmentStateChangesInputBuilder
impl RefUnwindSafe for SubmitAttachmentStateChangesInputBuilder
impl Send for SubmitAttachmentStateChangesInputBuilder
impl Sync for SubmitAttachmentStateChangesInputBuilder
impl Unpin for SubmitAttachmentStateChangesInputBuilder
impl UnwindSafe for SubmitAttachmentStateChangesInputBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.