Struct aws_sdk_batch::types::builders::VolumeBuilder
source · #[non_exhaustive]pub struct VolumeBuilder { /* private fields */ }
Expand description
A builder for Volume
.
Implementations§
source§impl VolumeBuilder
impl VolumeBuilder
sourcepub fn host(self, input: Host) -> Self
pub fn host(self, input: Host) -> Self
The contents of the host
parameter determine whether your data volume persists on the host container instance and where it's stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume. However, the data isn't guaranteed to persist after the containers that are associated with it stop running.
This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
sourcepub fn set_host(self, input: Option<Host>) -> Self
pub fn set_host(self, input: Option<Host>) -> Self
The contents of the host
parameter determine whether your data volume persists on the host container instance and where it's stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume. However, the data isn't guaranteed to persist after the containers that are associated with it stop running.
This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
sourcepub fn get_host(&self) -> &Option<Host>
pub fn get_host(&self) -> &Option<Host>
The contents of the host
parameter determine whether your data volume persists on the host container instance and where it's stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume. However, the data isn't guaranteed to persist after the containers that are associated with it stop running.
This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the volume. It can be up to 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_). This name is referenced in the sourceVolume
parameter of container definition mountPoints
.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the volume. It can be up to 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_). This name is referenced in the sourceVolume
parameter of container definition mountPoints
.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the volume. It can be up to 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_). This name is referenced in the sourceVolume
parameter of container definition mountPoints
.
sourcepub fn efs_volume_configuration(self, input: EfsVolumeConfiguration) -> Self
pub fn efs_volume_configuration(self, input: EfsVolumeConfiguration) -> Self
This parameter is specified when you're using an Amazon Elastic File System file system for job storage. Jobs that are running on Fargate resources must specify a platformVersion
of at least 1.4.0
.
sourcepub fn set_efs_volume_configuration(
self,
input: Option<EfsVolumeConfiguration>
) -> Self
pub fn set_efs_volume_configuration( self, input: Option<EfsVolumeConfiguration> ) -> Self
This parameter is specified when you're using an Amazon Elastic File System file system for job storage. Jobs that are running on Fargate resources must specify a platformVersion
of at least 1.4.0
.
sourcepub fn get_efs_volume_configuration(&self) -> &Option<EfsVolumeConfiguration>
pub fn get_efs_volume_configuration(&self) -> &Option<EfsVolumeConfiguration>
This parameter is specified when you're using an Amazon Elastic File System file system for job storage. Jobs that are running on Fargate resources must specify a platformVersion
of at least 1.4.0
.
Trait Implementations§
source§impl Clone for VolumeBuilder
impl Clone for VolumeBuilder
source§fn clone(&self) -> VolumeBuilder
fn clone(&self) -> VolumeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VolumeBuilder
impl Debug for VolumeBuilder
source§impl Default for VolumeBuilder
impl Default for VolumeBuilder
source§fn default() -> VolumeBuilder
fn default() -> VolumeBuilder
source§impl PartialEq for VolumeBuilder
impl PartialEq for VolumeBuilder
source§fn eq(&self, other: &VolumeBuilder) -> bool
fn eq(&self, other: &VolumeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VolumeBuilder
Auto Trait Implementations§
impl Freeze for VolumeBuilder
impl RefUnwindSafe for VolumeBuilder
impl Send for VolumeBuilder
impl Sync for VolumeBuilder
impl Unpin for VolumeBuilder
impl UnwindSafe for VolumeBuilder
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