#[non_exhaustive]pub struct ServiceVolumeConfigurationBuilder { /* private fields */ }
Expand description
A builder for ServiceVolumeConfiguration
.
Implementations§
source§impl ServiceVolumeConfigurationBuilder
impl ServiceVolumeConfigurationBuilder
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: ServiceManagedEbsVolumeConfiguration
) -> Self
pub fn managed_ebs_volume( self, input: ServiceManagedEbsVolumeConfiguration ) -> 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 in the service. 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<ServiceManagedEbsVolumeConfiguration>
) -> Self
pub fn set_managed_ebs_volume( self, input: Option<ServiceManagedEbsVolumeConfiguration> ) -> 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 in the service. 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<ServiceManagedEbsVolumeConfiguration>
pub fn get_managed_ebs_volume( &self ) -> &Option<ServiceManagedEbsVolumeConfiguration>
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 in the service. The Amazon EBS volumes are visible in your account in the Amazon EC2 console once they are created.
sourcepub fn build(self) -> Result<ServiceVolumeConfiguration, BuildError>
pub fn build(self) -> Result<ServiceVolumeConfiguration, BuildError>
Consumes the builder and constructs a ServiceVolumeConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ServiceVolumeConfigurationBuilder
impl Clone for ServiceVolumeConfigurationBuilder
source§fn clone(&self) -> ServiceVolumeConfigurationBuilder
fn clone(&self) -> ServiceVolumeConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ServiceVolumeConfigurationBuilder
impl Default for ServiceVolumeConfigurationBuilder
source§fn default() -> ServiceVolumeConfigurationBuilder
fn default() -> ServiceVolumeConfigurationBuilder
source§impl PartialEq for ServiceVolumeConfigurationBuilder
impl PartialEq for ServiceVolumeConfigurationBuilder
source§fn eq(&self, other: &ServiceVolumeConfigurationBuilder) -> bool
fn eq(&self, other: &ServiceVolumeConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.