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