#[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 ==.