Struct aws_sdk_securityhub::types::builders::AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetailsBuilder
source · #[non_exhaustive]pub struct AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetailsBuilder { /* private fields */ }Expand description
A builder for AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails.
Implementations§
source§impl AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetailsBuilder
impl AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetailsBuilder
sourcepub fn autoprovision(self, input: bool) -> Self
pub fn autoprovision(self, input: bool) -> Self
Whether to create the Docker volume automatically if it does not already exist.
sourcepub fn set_autoprovision(self, input: Option<bool>) -> Self
pub fn set_autoprovision(self, input: Option<bool>) -> Self
Whether to create the Docker volume automatically if it does not already exist.
sourcepub fn get_autoprovision(&self) -> &Option<bool>
pub fn get_autoprovision(&self) -> &Option<bool>
Whether to create the Docker volume automatically if it does not already exist.
sourcepub fn set_driver(self, input: Option<String>) -> Self
pub fn set_driver(self, input: Option<String>) -> Self
The Docker volume driver to use.
sourcepub fn get_driver(&self) -> &Option<String>
pub fn get_driver(&self) -> &Option<String>
The Docker volume driver to use.
sourcepub fn driver_opts(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn driver_opts(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to driver_opts.
To override the contents of this collection use set_driver_opts.
A map of Docker driver-specific options that are passed through.
sourcepub fn set_driver_opts(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_driver_opts(self, input: Option<HashMap<String, String>>) -> Self
A map of Docker driver-specific options that are passed through.
sourcepub fn get_driver_opts(&self) -> &Option<HashMap<String, String>>
pub fn get_driver_opts(&self) -> &Option<HashMap<String, String>>
A map of Docker driver-specific options that are passed through.
sourcepub fn labels(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn labels(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to labels.
To override the contents of this collection use set_labels.
Custom metadata to add to the Docker volume.
sourcepub fn set_labels(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_labels(self, input: Option<HashMap<String, String>>) -> Self
Custom metadata to add to the Docker volume.
sourcepub fn get_labels(&self) -> &Option<HashMap<String, String>>
pub fn get_labels(&self) -> &Option<HashMap<String, String>>
Custom metadata to add to the Docker volume.
sourcepub fn scope(self, input: impl Into<String>) -> Self
pub fn scope(self, input: impl Into<String>) -> Self
The scope for the Docker volume that determines its lifecycle. Docker volumes that are scoped to a task are provisioned automatically when the task starts and destroyed when the task stops. Docker volumes that are shared persist after the task stops. Valid values are shared or task.
sourcepub fn set_scope(self, input: Option<String>) -> Self
pub fn set_scope(self, input: Option<String>) -> Self
The scope for the Docker volume that determines its lifecycle. Docker volumes that are scoped to a task are provisioned automatically when the task starts and destroyed when the task stops. Docker volumes that are shared persist after the task stops. Valid values are shared or task.
sourcepub fn get_scope(&self) -> &Option<String>
pub fn get_scope(&self) -> &Option<String>
The scope for the Docker volume that determines its lifecycle. Docker volumes that are scoped to a task are provisioned automatically when the task starts and destroyed when the task stops. Docker volumes that are shared persist after the task stops. Valid values are shared or task.
sourcepub fn build(
self
) -> AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails
pub fn build( self ) -> AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails
Consumes the builder and constructs a AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails.
Trait Implementations§
source§impl Clone for AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetailsBuilder
impl Clone for AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetailsBuilder
source§fn clone(
&self
) -> AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetailsBuilder
fn clone( &self ) -> AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetailsBuilder
impl Default for AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetailsBuilder
source§fn default(
) -> AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetailsBuilder
fn default( ) -> AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetailsBuilder
source§impl PartialEq for AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetailsBuilder
impl PartialEq for AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetailsBuilder
source§fn eq(
&self,
other: &AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetailsBuilder
) -> bool
fn eq( &self, other: &AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetailsBuilder ) -> bool
self and other values to be equal, and is used
by ==.