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 get_protected_tasks(&self) -> &Option<Vec<ProtectedTask>>
pub fn get_protected_tasks(&self) -> &Option<Vec<ProtectedTask>>
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 get_failures(&self) -> &Option<Vec<Failure>>
pub fn get_failures(&self) -> &Option<Vec<Failure>>
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 for GetTaskProtectionOutputBuilder
impl PartialEq 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 ==
.impl StructuralPartialEq for GetTaskProtectionOutputBuilder
Auto Trait Implementations§
impl Freeze for GetTaskProtectionOutputBuilder
impl RefUnwindSafe for GetTaskProtectionOutputBuilder
impl Send for GetTaskProtectionOutputBuilder
impl Sync for GetTaskProtectionOutputBuilder
impl Unpin for GetTaskProtectionOutputBuilder
impl UnwindSafe for GetTaskProtectionOutputBuilder
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