Struct aws_sdk_ecs::model::volume_from::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for VolumeFrom.
Implementations§
source§impl Builder
impl Builder
sourcepub fn source_container(self, input: impl Into<String>) -> Self
pub fn source_container(self, input: impl Into<String>) -> Self
The name of another container within the same task definition to mount volumes from.
sourcepub fn set_source_container(self, input: Option<String>) -> Self
pub fn set_source_container(self, input: Option<String>) -> Self
The name of another container within the same task definition to mount volumes from.
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. If this value is false, then 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. If this value is false, then the container can write to the volume. The default value is false.
sourcepub fn build(self) -> VolumeFrom
pub fn build(self) -> VolumeFrom
Consumes the builder and constructs a VolumeFrom.