Class CfnTaskDefinition.DeviceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnTaskDefinition.DeviceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskDefinition.DeviceProperty>
- Enclosing interface:
- CfnTaskDefinition.DeviceProperty
@Stability(Stable)
public static final class CfnTaskDefinition.DeviceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskDefinition.DeviceProperty>
A builder for
CfnTaskDefinition.DeviceProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.containerPath
(String containerPath) Sets the value ofCfnTaskDefinition.DeviceProperty.getContainerPath()
Sets the value ofCfnTaskDefinition.DeviceProperty.getHostPath()
permissions
(List<String> permissions) Sets the value ofCfnTaskDefinition.DeviceProperty.getPermissions()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerPath
@Stability(Stable) public CfnTaskDefinition.DeviceProperty.Builder containerPath(String containerPath) Sets the value ofCfnTaskDefinition.DeviceProperty.getContainerPath()
- Parameters:
containerPath
- The path inside the container at which to expose the host device.- Returns:
this
-
hostPath
Sets the value ofCfnTaskDefinition.DeviceProperty.getHostPath()
- Parameters:
hostPath
- The path for the device on the host container instance.- Returns:
this
-
permissions
@Stability(Stable) public CfnTaskDefinition.DeviceProperty.Builder permissions(List<String> permissions) Sets the value ofCfnTaskDefinition.DeviceProperty.getPermissions()
- Parameters:
permissions
- The explicit permissions to provide to the container for the device. By default, the container has permissions forread
,write
, andmknod
for the device.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTaskDefinition.DeviceProperty>
- Returns:
- a new instance of
CfnTaskDefinition.DeviceProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-