Struct aws_sdk_batch::model::eks_container_volume_mount::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for EksContainerVolumeMount
.
Implementations§
source§impl Builder
impl Builder
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 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 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 build(self) -> EksContainerVolumeMount
pub fn build(self) -> EksContainerVolumeMount
Consumes the builder and constructs a EksContainerVolumeMount
.