#[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.
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 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 build(self) -> Result<GetTaskProtectionInput, BuildError>
pub fn build(self) -> Result<GetTaskProtectionInput, BuildError>
Consumes the builder and constructs a GetTaskProtectionInput.
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<GetTaskProtectionInputBuilder> for GetTaskProtectionInputBuilder
impl PartialEq<GetTaskProtectionInputBuilder> 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 ==.