#[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<EksContainerVolumeMountBuilder> for EksContainerVolumeMountBuilder
impl PartialEq<EksContainerVolumeMountBuilder> 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 ==
.