#[non_exhaustive]pub struct TaskManagedEbsVolumeTerminationPolicyBuilder { /* private fields */ }
Expand description
A builder for TaskManagedEbsVolumeTerminationPolicy
.
Implementations§
source§impl TaskManagedEbsVolumeTerminationPolicyBuilder
impl TaskManagedEbsVolumeTerminationPolicyBuilder
sourcepub fn delete_on_termination(self, input: bool) -> Self
pub fn delete_on_termination(self, input: bool) -> Self
Indicates whether the volume should be deleted on when the task stops. If a value of true
is specified,
Amazon ECS deletes the Amazon EBS volume on your behalf when the task goes into the STOPPED
state. If no value is specified, the
default value is true
is used. When set to false
, Amazon ECS leaves the volume in your
account.
sourcepub fn set_delete_on_termination(self, input: Option<bool>) -> Self
pub fn set_delete_on_termination(self, input: Option<bool>) -> Self
Indicates whether the volume should be deleted on when the task stops. If a value of true
is specified,
Amazon ECS deletes the Amazon EBS volume on your behalf when the task goes into the STOPPED
state. If no value is specified, the
default value is true
is used. When set to false
, Amazon ECS leaves the volume in your
account.
sourcepub fn get_delete_on_termination(&self) -> &Option<bool>
pub fn get_delete_on_termination(&self) -> &Option<bool>
Indicates whether the volume should be deleted on when the task stops. If a value of true
is specified,
Amazon ECS deletes the Amazon EBS volume on your behalf when the task goes into the STOPPED
state. If no value is specified, the
default value is true
is used. When set to false
, Amazon ECS leaves the volume in your
account.
sourcepub fn build(self) -> Result<TaskManagedEbsVolumeTerminationPolicy, BuildError>
pub fn build(self) -> Result<TaskManagedEbsVolumeTerminationPolicy, BuildError>
Consumes the builder and constructs a TaskManagedEbsVolumeTerminationPolicy
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TaskManagedEbsVolumeTerminationPolicyBuilder
impl Clone for TaskManagedEbsVolumeTerminationPolicyBuilder
source§fn clone(&self) -> TaskManagedEbsVolumeTerminationPolicyBuilder
fn clone(&self) -> TaskManagedEbsVolumeTerminationPolicyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TaskManagedEbsVolumeTerminationPolicyBuilder
impl Default for TaskManagedEbsVolumeTerminationPolicyBuilder
source§fn default() -> TaskManagedEbsVolumeTerminationPolicyBuilder
fn default() -> TaskManagedEbsVolumeTerminationPolicyBuilder
source§impl PartialEq for TaskManagedEbsVolumeTerminationPolicyBuilder
impl PartialEq for TaskManagedEbsVolumeTerminationPolicyBuilder
source§fn eq(&self, other: &TaskManagedEbsVolumeTerminationPolicyBuilder) -> bool
fn eq(&self, other: &TaskManagedEbsVolumeTerminationPolicyBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TaskManagedEbsVolumeTerminationPolicyBuilder
Auto Trait Implementations§
impl Freeze for TaskManagedEbsVolumeTerminationPolicyBuilder
impl RefUnwindSafe for TaskManagedEbsVolumeTerminationPolicyBuilder
impl Send for TaskManagedEbsVolumeTerminationPolicyBuilder
impl Sync for TaskManagedEbsVolumeTerminationPolicyBuilder
impl Unpin for TaskManagedEbsVolumeTerminationPolicyBuilder
impl UnwindSafe for TaskManagedEbsVolumeTerminationPolicyBuilder
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