Class CfnTaskDefinition.VolumeFromProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnTaskDefinition.VolumeFromProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskDefinition.VolumeFromProperty>
- Enclosing interface:
CfnTaskDefinition.VolumeFromProperty
@Stability(Stable)
public static final class CfnTaskDefinition.VolumeFromProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskDefinition.VolumeFromProperty>
A builder for
CfnTaskDefinition.VolumeFromProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTaskDefinition.VolumeFromProperty.getReadOnly()readOnly(IResolvable readOnly) Sets the value ofCfnTaskDefinition.VolumeFromProperty.getReadOnly()sourceContainer(String sourceContainer) Sets the value ofCfnTaskDefinition.VolumeFromProperty.getSourceContainer()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
readOnly
Sets the value ofCfnTaskDefinition.VolumeFromProperty.getReadOnly()- Parameters:
readOnly- If this value istrue, the container has read-only access to the volume. If this value isfalse, then the container can write to the volume. The default value isfalse.- Returns:
this
-
readOnly
@Stability(Stable) public CfnTaskDefinition.VolumeFromProperty.Builder readOnly(IResolvable readOnly) Sets the value ofCfnTaskDefinition.VolumeFromProperty.getReadOnly()- Parameters:
readOnly- If this value istrue, the container has read-only access to the volume. If this value isfalse, then the container can write to the volume. The default value isfalse.- Returns:
this
-
sourceContainer
@Stability(Stable) public CfnTaskDefinition.VolumeFromProperty.Builder sourceContainer(String sourceContainer) Sets the value ofCfnTaskDefinition.VolumeFromProperty.getSourceContainer()- Parameters:
sourceContainer- The name of another container within the same task definition to mount volumes from.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTaskDefinition.VolumeFromProperty>- Returns:
- a new instance of
CfnTaskDefinition.VolumeFromProperty - Throws:
NullPointerException- if any required attribute was not provided
-