Interface Device.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Device.Builder,Device>, SdkBuilder<Device.Builder,Device>, SdkPojo
Enclosing class:
Device

public static interface Device.Builder extends SdkPojo, CopyableBuilder<Device.Builder,Device>
  • Method Details

    • hostPath

      Device.Builder hostPath(String hostPath)

      The path for the device on the host container instance.

      Parameters:
      hostPath - The path for the device on the host container instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • containerPath

      Device.Builder containerPath(String containerPath)

      The path inside the container at which to expose the host device.

      Parameters:
      containerPath - The path inside the container at which to expose the host device.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • permissionsWithStrings

      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.

      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:
      Returns a reference to this object so that method calls can be chained together.
    • permissionsWithStrings

      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.

      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:
      Returns a reference to this object so that method calls can be chained together.
    • 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.

      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:
      Returns a reference to this object so that method calls can be chained together.
    • permissions

      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.

      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:
      Returns a reference to this object so that method calls can be chained together.