Class VolumeMount.VolumeMountBuilder
java.lang.Object
org.springframework.cloud.servicebroker.model.binding.VolumeMount.VolumeMountBuilder
- Enclosing class:
- VolumeMount
Provides a fluent API for constructing a
VolumeMount
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Construct aVolumeMount
from the provided values.containerDir
(String containerDir) Set the directory to mount inside the application container.device
(VolumeDevice device) Set the details of the volume device to mount, specific to the device type.deviceType
(VolumeMount.DeviceType deviceType) Set the type of the volume device to mount.Set the name of the volume driver plugin which manages the device.mode
(VolumeMount.Mode mode) Set a value indicating whether the volume can be mounted in read-only or read-write mode.
-
Method Details
-
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
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
Construct aVolumeMount
from the provided values.- Returns:
- the newly constructed VolumeMount
-