Struct aws_sdk_batch::types::builders::MountPointBuilder
source · #[non_exhaustive]pub struct MountPointBuilder { /* private fields */ }
Expand description
A builder for MountPoint
.
Implementations§
source§impl MountPointBuilder
impl MountPointBuilder
sourcepub fn container_path(self, input: impl Into<String>) -> Self
pub fn container_path(self, input: impl Into<String>) -> Self
The path on the container where the host volume is mounted.
sourcepub fn set_container_path(self, input: Option<String>) -> Self
pub fn set_container_path(self, input: Option<String>) -> Self
The path on the container where the host volume is mounted.
sourcepub fn read_only(self, input: bool) -> Self
pub fn read_only(self, input: bool) -> Self
If this value is true
, the container has read-only access to the volume. Otherwise, the container can write to the volume. The default value is false
.
sourcepub fn set_read_only(self, input: Option<bool>) -> Self
pub fn set_read_only(self, input: Option<bool>) -> Self
If this value is true
, the container has read-only access to the volume. Otherwise, the container can write to the volume. The default value is false
.
sourcepub fn source_volume(self, input: impl Into<String>) -> Self
pub fn source_volume(self, input: impl Into<String>) -> Self
The name of the volume to mount.
sourcepub fn set_source_volume(self, input: Option<String>) -> Self
pub fn set_source_volume(self, input: Option<String>) -> Self
The name of the volume to mount.
sourcepub fn build(self) -> MountPoint
pub fn build(self) -> MountPoint
Consumes the builder and constructs a MountPoint
.
Trait Implementations§
source§impl Clone for MountPointBuilder
impl Clone for MountPointBuilder
source§fn clone(&self) -> MountPointBuilder
fn clone(&self) -> MountPointBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MountPointBuilder
impl Debug for MountPointBuilder
source§impl Default for MountPointBuilder
impl Default for MountPointBuilder
source§fn default() -> MountPointBuilder
fn default() -> MountPointBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<MountPointBuilder> for MountPointBuilder
impl PartialEq<MountPointBuilder> for MountPointBuilder
source§fn eq(&self, other: &MountPointBuilder) -> bool
fn eq(&self, other: &MountPointBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.