Struct aws_sdk_ecs::types::builders::TaskVolumeConfigurationBuilder
source · #[non_exhaustive]pub struct TaskVolumeConfigurationBuilder { /* private fields */ }
Expand description
A builder for TaskVolumeConfiguration
.
Implementations§
source§impl TaskVolumeConfigurationBuilder
impl TaskVolumeConfigurationBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the volume. This value must match the volume name from the Volume
object in the task definition.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the volume. This value must match the volume name from the Volume
object in the task definition.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the volume. This value must match the volume name from the Volume
object in the task definition.
sourcepub fn managed_ebs_volume(
self,
input: TaskManagedEbsVolumeConfiguration
) -> Self
pub fn managed_ebs_volume( self, input: TaskManagedEbsVolumeConfiguration ) -> Self
The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These settings are used to create each Amazon EBS volume, with one volume created for each task. The Amazon EBS volumes are visible in your account in the Amazon EC2 console once they are created.
sourcepub fn set_managed_ebs_volume(
self,
input: Option<TaskManagedEbsVolumeConfiguration>
) -> Self
pub fn set_managed_ebs_volume( self, input: Option<TaskManagedEbsVolumeConfiguration> ) -> Self
The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These settings are used to create each Amazon EBS volume, with one volume created for each task. The Amazon EBS volumes are visible in your account in the Amazon EC2 console once they are created.
sourcepub fn get_managed_ebs_volume(
&self
) -> &Option<TaskManagedEbsVolumeConfiguration>
pub fn get_managed_ebs_volume( &self ) -> &Option<TaskManagedEbsVolumeConfiguration>
The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These settings are used to create each Amazon EBS volume, with one volume created for each task. The Amazon EBS volumes are visible in your account in the Amazon EC2 console once they are created.
sourcepub fn build(self) -> Result<TaskVolumeConfiguration, BuildError>
pub fn build(self) -> Result<TaskVolumeConfiguration, BuildError>
Consumes the builder and constructs a TaskVolumeConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TaskVolumeConfigurationBuilder
impl Clone for TaskVolumeConfigurationBuilder
source§fn clone(&self) -> TaskVolumeConfigurationBuilder
fn clone(&self) -> TaskVolumeConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TaskVolumeConfigurationBuilder
impl Default for TaskVolumeConfigurationBuilder
source§fn default() -> TaskVolumeConfigurationBuilder
fn default() -> TaskVolumeConfigurationBuilder
source§impl PartialEq for TaskVolumeConfigurationBuilder
impl PartialEq for TaskVolumeConfigurationBuilder
source§fn eq(&self, other: &TaskVolumeConfigurationBuilder) -> bool
fn eq(&self, other: &TaskVolumeConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.