Class SharedVolumeDevice.SharedVolumeDeviceBuilder

java.lang.Object
org.springframework.cloud.servicebroker.model.binding.SharedVolumeDevice.SharedVolumeDeviceBuilder
Enclosing class:
SharedVolumeDevice

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

    • volumeId

      Set the ID of the shared volume device to mount on each app instance.

      This value sets the volume_id field in the body of the response to the platform.

      Parameters:
      volumeId - the volume ID
      Returns:
      the builder
    • mountConfig

      Add a set of configuration properties from the provided Map to the volume device configuration.

      This value sets the mount_config field in the body of the response to the platform.

      Parameters:
      mountConfig - the configuration properties to add
      Returns:
      the builder
    • mountConfig

      Add a key/value pair to the volume device configuration.

      This value sets the mount_config field in the body of the response to the platform.

      Parameters:
      key - the configuration properties key
      value - the configuration properties value
      Returns:
      the builder
    • build

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