Class VolumeMount.VolumeMountBuilder

java.lang.Object
org.springframework.cloud.servicebroker.model.binding.VolumeMount.VolumeMountBuilder
Enclosing class:
VolumeMount

public static final class VolumeMount.VolumeMountBuilder extends Object
Provides a fluent API for constructing a VolumeMount.
  • Method Details

    • driver

      public VolumeMount.VolumeMountBuilder driver(String driver)
      Set the name of the volume driver plugin which manages the device.

      This value will set the driver field in the body of the response to the platform.

      Parameters:
      driver - the driver name
      Returns:
      the builder
    • containerDir

      public VolumeMount.VolumeMountBuilder containerDir(String containerDir)
      Set the directory to mount inside the application container.

      This value will set the container_dir field in the body of the response to the platform.

      Parameters:
      containerDir - the container directory
      Returns:
      the builder
    • mode

      Set a value indicating whether the volume can be mounted in read-only or read-write mode.

      This value will set the mode field in the body of the response to the platform.

      Parameters:
      mode - the volume read/write mode
      Returns:
      the builder
    • deviceType

      Set the type of the volume device to mount.

      This value will set the device_type field in the body of the response to the platform.

      Parameters:
      deviceType - the volume device type
      Returns:
      the builder
    • device

      Set the details of the volume device to mount, specific to the device type.

      This value will set the device field in the body of the response to the platform.

      Parameters:
      device - the volume device details
      Returns:
      the builder
    • build

      public VolumeMount build()
      Construct a VolumeMount from the provided values.
      Returns:
      the newly constructed VolumeMount