#[non_exhaustive]pub struct EksContainerVolumeMountBuilder { /* private fields */ }
Expand description
A builder for EksContainerVolumeMount
.
Implementations§
source§impl EksContainerVolumeMountBuilder
impl EksContainerVolumeMountBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name the volume mount. This must match the name of one of the volumes in the pod.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name the volume mount. This must match the name of one of the volumes in the pod.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name the volume mount. This must match the name of one of the volumes in the pod.
sourcepub fn mount_path(self, input: impl Into<String>) -> Self
pub fn mount_path(self, input: impl Into<String>) -> Self
The path on the container where the volume is mounted.
sourcepub fn set_mount_path(self, input: Option<String>) -> Self
pub fn set_mount_path(self, input: Option<String>) -> Self
The path on the container where the volume is mounted.
sourcepub fn get_mount_path(&self) -> &Option<String>
pub fn get_mount_path(&self) -> &Option<String>
The path on the container where the 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 get_read_only(&self) -> &Option<bool>
pub fn get_read_only(&self) -> &Option<bool>
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 build(self) -> EksContainerVolumeMount
pub fn build(self) -> EksContainerVolumeMount
Consumes the builder and constructs a EksContainerVolumeMount
.
Trait Implementations§
source§impl Clone for EksContainerVolumeMountBuilder
impl Clone for EksContainerVolumeMountBuilder
source§fn clone(&self) -> EksContainerVolumeMountBuilder
fn clone(&self) -> EksContainerVolumeMountBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for EksContainerVolumeMountBuilder
impl Default for EksContainerVolumeMountBuilder
source§fn default() -> EksContainerVolumeMountBuilder
fn default() -> EksContainerVolumeMountBuilder
source§impl PartialEq for EksContainerVolumeMountBuilder
impl PartialEq for EksContainerVolumeMountBuilder
source§fn eq(&self, other: &EksContainerVolumeMountBuilder) -> bool
fn eq(&self, other: &EksContainerVolumeMountBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EksContainerVolumeMountBuilder
Auto Trait Implementations§
impl Freeze for EksContainerVolumeMountBuilder
impl RefUnwindSafe for EksContainerVolumeMountBuilder
impl Send for EksContainerVolumeMountBuilder
impl Sync for EksContainerVolumeMountBuilder
impl Unpin for EksContainerVolumeMountBuilder
impl UnwindSafe for EksContainerVolumeMountBuilder
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