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 ==.impl StructuralPartialEq for TaskVolumeConfigurationBuilder
Auto Trait Implementations§
impl Freeze for TaskVolumeConfigurationBuilder
impl RefUnwindSafe for TaskVolumeConfigurationBuilder
impl Send for TaskVolumeConfigurationBuilder
impl Sync for TaskVolumeConfigurationBuilder
impl Unpin for TaskVolumeConfigurationBuilder
impl UnwindSafe for TaskVolumeConfigurationBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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