Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Device |
build()
Builds the configured instance.
|
Device.Builder |
containerPath(String containerPath)
Sets the value of
Device.getContainerPath() |
Device.Builder |
hostPath(String hostPath)
Sets the value of
Device.getHostPath() |
Device.Builder |
permissions(List<? extends DevicePermission> permissions)
Sets the value of
Device.getPermissions() |
@Stability(value=Stable) public Device.Builder hostPath(String hostPath)
Device.getHostPath()
hostPath
- The path for the device on the host container instance. This parameter is required.this
@Stability(value=Stable) public Device.Builder containerPath(String containerPath)
Device.getContainerPath()
containerPath
- The path inside the container at which to expose the host device.this
@Stability(value=Stable) public Device.Builder permissions(List<? extends DevicePermission> permissions)
Device.getPermissions()
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.this
@Stability(value=Stable) public Device build()
build
in interface software.amazon.jsii.Builder<Device>
Device
NullPointerException
- if any required attribute was not providedCopyright © 2020. All rights reserved.