Struct aws_sdk_ecs::operation::get_task_protection::builders::GetTaskProtectionOutputBuilder
source · #[non_exhaustive]pub struct GetTaskProtectionOutputBuilder { /* private fields */ }Expand description
A builder for GetTaskProtectionOutput.
Implementations§
source§impl GetTaskProtectionOutputBuilder
impl GetTaskProtectionOutputBuilder
sourcepub fn protected_tasks(self, input: ProtectedTask) -> Self
pub fn protected_tasks(self, input: ProtectedTask) -> Self
Appends an item to protected_tasks.
To override the contents of this collection use set_protected_tasks.
A list of tasks with the following information.
-
taskArn: The task ARN. -
protectionEnabled: The protection status of the task. If scale-in protection is turned on for a task, the value istrue. Otherwise, it isfalse. -
expirationDate: The epoch time when protection for the task will expire.
sourcepub fn set_protected_tasks(self, input: Option<Vec<ProtectedTask>>) -> Self
pub fn set_protected_tasks(self, input: Option<Vec<ProtectedTask>>) -> Self
A list of tasks with the following information.
-
taskArn: The task ARN. -
protectionEnabled: The protection status of the task. If scale-in protection is turned on for a task, the value istrue. Otherwise, it isfalse. -
expirationDate: The epoch time when protection for the task will expire.
sourcepub fn failures(self, input: Failure) -> Self
pub fn failures(self, input: Failure) -> Self
Appends an item to failures.
To override the contents of this collection use set_failures.
Any failures associated with the call.
sourcepub fn set_failures(self, input: Option<Vec<Failure>>) -> Self
pub fn set_failures(self, input: Option<Vec<Failure>>) -> Self
Any failures associated with the call.
sourcepub fn build(self) -> GetTaskProtectionOutput
pub fn build(self) -> GetTaskProtectionOutput
Consumes the builder and constructs a GetTaskProtectionOutput.
Trait Implementations§
source§impl Clone for GetTaskProtectionOutputBuilder
impl Clone for GetTaskProtectionOutputBuilder
source§fn clone(&self) -> GetTaskProtectionOutputBuilder
fn clone(&self) -> GetTaskProtectionOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for GetTaskProtectionOutputBuilder
impl Default for GetTaskProtectionOutputBuilder
source§fn default() -> GetTaskProtectionOutputBuilder
fn default() -> GetTaskProtectionOutputBuilder
source§impl PartialEq<GetTaskProtectionOutputBuilder> for GetTaskProtectionOutputBuilder
impl PartialEq<GetTaskProtectionOutputBuilder> for GetTaskProtectionOutputBuilder
source§fn eq(&self, other: &GetTaskProtectionOutputBuilder) -> bool
fn eq(&self, other: &GetTaskProtectionOutputBuilder) -> bool
self and other values to be equal, and is used
by ==.