public static interface Device.Builder extends SdkPojo, CopyableBuilder<Device.Builder,Device>
Modifier and Type | Method and Description |
---|---|
Device.Builder |
containerPath(String containerPath)
The path inside the container at which to expose the host device.
|
Device.Builder |
hostPath(String hostPath)
The path for the device on the host container instance.
|
Device.Builder |
permissions(Collection<DeviceCgroupPermission> permissions)
The explicit permissions to provide to the container for the device.
|
Device.Builder |
permissions(DeviceCgroupPermission... permissions)
The explicit permissions to provide to the container for the device.
|
Device.Builder |
permissionsWithStrings(Collection<String> permissions)
The explicit permissions to provide to the container for the device.
|
Device.Builder |
permissionsWithStrings(String... permissions)
The explicit permissions to provide to the container for the device.
|
copy
applyMutation, build
Device.Builder hostPath(String hostPath)
The path for the device on the host container instance.
hostPath
- The path for the device on the host container instance.Device.Builder containerPath(String containerPath)
The path inside the container at which to expose the host device.
containerPath
- The path inside the container at which to expose the host device.Device.Builder permissionsWithStrings(Collection<String> 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.
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.Device.Builder permissionsWithStrings(String... 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.
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.Device.Builder permissions(Collection<DeviceCgroupPermission> 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.
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.Device.Builder permissions(DeviceCgroupPermission... 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.
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.Copyright © 2019. All rights reserved.