#[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 ==
.impl StructuralPartialEq for ServiceVolumeConfigurationBuilder
Auto Trait Implementations§
impl Freeze for ServiceVolumeConfigurationBuilder
impl RefUnwindSafe for ServiceVolumeConfigurationBuilder
impl Send for ServiceVolumeConfigurationBuilder
impl Sync for ServiceVolumeConfigurationBuilder
impl Unpin for ServiceVolumeConfigurationBuilder
impl UnwindSafe for ServiceVolumeConfigurationBuilder
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