public static final class SharedVolumeDevice.SharedVolumeDeviceBuilder extends Object
SharedVolumeDevice
.Modifier and Type | Method and Description |
---|---|
SharedVolumeDevice |
build()
Construct a
SharedVolumeDevice from the provided values. |
SharedVolumeDevice.SharedVolumeDeviceBuilder |
mountConfig(Map<String,Object> mountConfig)
Add a set of configuration properties from the provided Map to the volume device configuration.
|
SharedVolumeDevice.SharedVolumeDeviceBuilder |
mountConfig(String key,
Object value)
Add a key/value pair to the volume device configuration.
|
SharedVolumeDevice.SharedVolumeDeviceBuilder |
volumeId(String volumeId)
Set the ID of the shared volume device to mount on each app instance.
|
public SharedVolumeDevice.SharedVolumeDeviceBuilder volumeId(String volumeId)
This value sets the volume_id field in the body of the response to the platform.
volumeId
- the volume IDpublic SharedVolumeDevice.SharedVolumeDeviceBuilder mountConfig(Map<String,Object> mountConfig)
This value sets the mount_config field in the body of the response to the platform.
mountConfig
- the configuration properties to addpublic SharedVolumeDevice.SharedVolumeDeviceBuilder mountConfig(String key, Object value)
This value sets the mount_config field in the body of the response to the platform.
key
- the configuration properties keyvalue
- the configuration properties valuepublic SharedVolumeDevice build()
SharedVolumeDevice
from the provided values.