Struct aws_sdk_ecs::types::builders::ProtectedTaskBuilder
source · #[non_exhaustive]pub struct ProtectedTaskBuilder { /* private fields */ }
Expand description
A builder for ProtectedTask
.
Implementations§
source§impl ProtectedTaskBuilder
impl ProtectedTaskBuilder
sourcepub fn set_task_arn(self, input: Option<String>) -> Self
pub fn set_task_arn(self, input: Option<String>) -> Self
The task ARN.
sourcepub fn get_task_arn(&self) -> &Option<String>
pub fn get_task_arn(&self) -> &Option<String>
The task ARN.
sourcepub fn protection_enabled(self, input: bool) -> Self
pub fn protection_enabled(self, input: bool) -> Self
The protection status of the task. If scale-in protection is on for a task, the value is true
. Otherwise, it is false
.
sourcepub fn set_protection_enabled(self, input: Option<bool>) -> Self
pub fn set_protection_enabled(self, input: Option<bool>) -> Self
The protection status of the task. If scale-in protection is on for a task, the value is true
. Otherwise, it is false
.
sourcepub fn get_protection_enabled(&self) -> &Option<bool>
pub fn get_protection_enabled(&self) -> &Option<bool>
The protection status of the task. If scale-in protection is on for a task, the value is true
. Otherwise, it is false
.
sourcepub fn expiration_date(self, input: DateTime) -> Self
pub fn expiration_date(self, input: DateTime) -> Self
The epoch time when protection for the task will expire.
sourcepub fn set_expiration_date(self, input: Option<DateTime>) -> Self
pub fn set_expiration_date(self, input: Option<DateTime>) -> Self
The epoch time when protection for the task will expire.
sourcepub fn get_expiration_date(&self) -> &Option<DateTime>
pub fn get_expiration_date(&self) -> &Option<DateTime>
The epoch time when protection for the task will expire.
sourcepub fn build(self) -> ProtectedTask
pub fn build(self) -> ProtectedTask
Consumes the builder and constructs a ProtectedTask
.
Trait Implementations§
source§impl Clone for ProtectedTaskBuilder
impl Clone for ProtectedTaskBuilder
source§fn clone(&self) -> ProtectedTaskBuilder
fn clone(&self) -> ProtectedTaskBuilder
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 Debug for ProtectedTaskBuilder
impl Debug for ProtectedTaskBuilder
source§impl Default for ProtectedTaskBuilder
impl Default for ProtectedTaskBuilder
source§fn default() -> ProtectedTaskBuilder
fn default() -> ProtectedTaskBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ProtectedTaskBuilder
impl PartialEq for ProtectedTaskBuilder
source§fn eq(&self, other: &ProtectedTaskBuilder) -> bool
fn eq(&self, other: &ProtectedTaskBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ProtectedTaskBuilder
Auto Trait Implementations§
impl Freeze for ProtectedTaskBuilder
impl RefUnwindSafe for ProtectedTaskBuilder
impl Send for ProtectedTaskBuilder
impl Sync for ProtectedTaskBuilder
impl Unpin for ProtectedTaskBuilder
impl UnwindSafe for ProtectedTaskBuilder
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.