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 Details

    • Builder

      public Builder()
  • Method Details

    • hostPath

      @Stability(Stable) public Device.Builder hostPath(String hostPath)
      Sets the value of Device.getHostPath()
      Parameters:
      hostPath - The path for the device on the host container instance. This parameter is required.
      Returns:
      this
    • containerPath

      @Stability(Stable) public Device.Builder containerPath(String containerPath)
      Sets the value of Device.getContainerPath()
      Parameters:
      containerPath - The path inside the container at which to expose the host device.
      Returns:
      this
    • permissions

      @Stability(Stable) public Device.Builder permissions(List<? extends DevicePermission> permissions)
      Sets the value of Device.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

      @Stability(Stable) public Device build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<Device>
      Returns:
      a new instance of Device
      Throws:
      NullPointerException - if any required attribute was not provided