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