#[non_exhaustive]pub struct GetTaskProtectionInputBuilder { /* private fields */ }
Expand description
A builder for GetTaskProtectionInput
.
Implementations§
source§impl GetTaskProtectionInputBuilder
impl GetTaskProtectionInputBuilder
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 service that the task sets exist in.
This field is required.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 service that the task sets exist in.
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 service that the task sets exist in.
sourcepub fn tasks(self, input: impl Into<String>) -> Self
pub fn tasks(self, input: impl Into<String>) -> Self
Appends an item to tasks
.
To override the contents of this collection use set_tasks
.
A list of up to 100 task IDs or full ARN entries.
sourcepub fn set_tasks(self, input: Option<Vec<String>>) -> Self
pub fn set_tasks(self, input: Option<Vec<String>>) -> Self
A list of up to 100 task IDs or full ARN entries.
sourcepub fn get_tasks(&self) -> &Option<Vec<String>>
pub fn get_tasks(&self) -> &Option<Vec<String>>
A list of up to 100 task IDs or full ARN entries.
sourcepub fn build(self) -> Result<GetTaskProtectionInput, BuildError>
pub fn build(self) -> Result<GetTaskProtectionInput, BuildError>
Consumes the builder and constructs a GetTaskProtectionInput
.
source§impl GetTaskProtectionInputBuilder
impl GetTaskProtectionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<GetTaskProtectionOutput, SdkError<GetTaskProtectionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<GetTaskProtectionOutput, SdkError<GetTaskProtectionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetTaskProtectionInputBuilder
impl Clone for GetTaskProtectionInputBuilder
source§fn clone(&self) -> GetTaskProtectionInputBuilder
fn clone(&self) -> GetTaskProtectionInputBuilder
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 GetTaskProtectionInputBuilder
impl Default for GetTaskProtectionInputBuilder
source§fn default() -> GetTaskProtectionInputBuilder
fn default() -> GetTaskProtectionInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for GetTaskProtectionInputBuilder
impl PartialEq for GetTaskProtectionInputBuilder
source§fn eq(&self, other: &GetTaskProtectionInputBuilder) -> bool
fn eq(&self, other: &GetTaskProtectionInputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetTaskProtectionInputBuilder
Auto Trait Implementations§
impl Freeze for GetTaskProtectionInputBuilder
impl RefUnwindSafe for GetTaskProtectionInputBuilder
impl Send for GetTaskProtectionInputBuilder
impl Sync for GetTaskProtectionInputBuilder
impl Unpin for GetTaskProtectionInputBuilder
impl UnwindSafe for GetTaskProtectionInputBuilder
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.