Class VolumeMount
java.lang.Object
org.springframework.cloud.servicebroker.model.binding.VolumeMount
Details of a volume mount in a service binding response.
Objects of this type are constructed by the service broker application, and used to build the response to the platform.
- Author:
- Scott Frederick
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Values specifying the type of device to mount.static enum
Values designating whether the mounted volume can be written to or read from.static final class
Provides a fluent API for constructing aVolumeMount
. -
Constructor Summary
ConstructorDescriptionConstruct a newVolumeMount
.VolumeMount
(String driver, String containerDir, VolumeMount.Mode mode, VolumeMount.DeviceType deviceType, VolumeDevice device) Construct a newVolumeMount
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder that provides a fluent API for constructing a VolumeMount.final boolean
Set the directory to mount inside the application container.Get the details of the volume device to mount.Get the type of the volume device to mount.Get the name of the volume driver plugin which manages the device.getMode()
Get a value indicating whether the volume can be mounted in read-only or read-write mode.final int
hashCode()
toString()
-
Constructor Details
-
VolumeMount
public VolumeMount()Construct a newVolumeMount
. -
VolumeMount
public VolumeMount(String driver, String containerDir, VolumeMount.Mode mode, VolumeMount.DeviceType deviceType, VolumeDevice device) Construct a newVolumeMount
.- Parameters:
driver
- the name of the drivercontainerDir
- the container directorymode
- the volume read/write modedeviceType
- the volume device typedevice
- the volume device details
-
-
Method Details
-
getDriver
Get the name of the volume driver plugin which manages the device.- Returns:
- the name of the driver
-
getContainerDir
Set the directory to mount inside the application container.- Returns:
- the container directory
-
getMode
Get a value indicating whether the volume can be mounted in read-only or read-write mode.- Returns:
- the volume read/write mode
-
getDeviceType
Get the type of the volume device to mount.- Returns:
- the volume device type
-
getDevice
Get the details of the volume device to mount.- Returns:
- the volume device details
-
builder
Create a builder that provides a fluent API for constructing a VolumeMount.- Returns:
- the builder
-
equals
-
hashCode
public final int hashCode() -
toString
-