Class SharedVolumeDevice.SharedVolumeDeviceBuilder
java.lang.Object
org.springframework.cloud.servicebroker.model.binding.SharedVolumeDevice.SharedVolumeDeviceBuilder
- Enclosing class:
- SharedVolumeDevice
Provides a fluent API for constructing a
SharedVolumeDevice
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Construct aSharedVolumeDevice
from the provided values.mountConfig
(String key, Object value) Add a key/value pair to the volume device configuration.mountConfig
(Map<String, Object> mountConfig) Add a set of configuration properties from the provided Map to the volume device configuration.Set the ID of the shared volume device to mount on each app instance.
-
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 keyvalue
- the configuration properties value- Returns:
- the builder
-
build
Construct aSharedVolumeDevice
from the provided values.- Returns:
- the newly constructed SharedVolumeDevice
-