Struct aws_sdk_ecs::operation::update_task_protection::builders::UpdateTaskProtectionOutputBuilder
source · #[non_exhaustive]pub struct UpdateTaskProtectionOutputBuilder { /* private fields */ }
Expand description
A builder for UpdateTaskProtectionOutput
.
Implementations§
source§impl UpdateTaskProtectionOutputBuilder
impl UpdateTaskProtectionOutputBuilder
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) -> UpdateTaskProtectionOutput
pub fn build(self) -> UpdateTaskProtectionOutput
Consumes the builder and constructs a UpdateTaskProtectionOutput
.
Trait Implementations§
source§impl Clone for UpdateTaskProtectionOutputBuilder
impl Clone for UpdateTaskProtectionOutputBuilder
source§fn clone(&self) -> UpdateTaskProtectionOutputBuilder
fn clone(&self) -> UpdateTaskProtectionOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateTaskProtectionOutputBuilder
impl Default for UpdateTaskProtectionOutputBuilder
source§fn default() -> UpdateTaskProtectionOutputBuilder
fn default() -> UpdateTaskProtectionOutputBuilder
source§impl PartialEq for UpdateTaskProtectionOutputBuilder
impl PartialEq for UpdateTaskProtectionOutputBuilder
source§fn eq(&self, other: &UpdateTaskProtectionOutputBuilder) -> bool
fn eq(&self, other: &UpdateTaskProtectionOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateTaskProtectionOutputBuilder
Auto Trait Implementations§
impl Freeze for UpdateTaskProtectionOutputBuilder
impl RefUnwindSafe for UpdateTaskProtectionOutputBuilder
impl Send for UpdateTaskProtectionOutputBuilder
impl Sync for UpdateTaskProtectionOutputBuilder
impl Unpin for UpdateTaskProtectionOutputBuilder
impl UnwindSafe for UpdateTaskProtectionOutputBuilder
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