Class VolumeMount
java.lang.Object
com.microsoft.azure.management.containerinstance.VolumeMount
The properties of the volume mount.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the path within the container where the volume should be mounted.name()
Get the name of the volume mount.readOnly()
Get the flag indicating whether the volume mount is read-only.withMountPath
(String mountPath) Set the path within the container where the volume should be mounted.Set the name of the volume mount.withReadOnly
(Boolean readOnly) Set the flag indicating whether the volume mount is read-only.
-
Constructor Details
-
VolumeMount
public VolumeMount()
-
-
Method Details
-
name
Get the name of the volume mount.- Returns:
- the name value
-
withName
Set the name of the volume mount.- Parameters:
name
- the name value to set- Returns:
- the VolumeMount object itself.
-
mountPath
Get the path within the container where the volume should be mounted. Must not contain colon (:).- Returns:
- the mountPath value
-
withMountPath
Set the path within the container where the volume should be mounted. Must not contain colon (:).- Parameters:
mountPath
- the mountPath value to set- Returns:
- the VolumeMount object itself.
-
readOnly
Get the flag indicating whether the volume mount is read-only.- Returns:
- the readOnly value
-
withReadOnly
Set the flag indicating whether the volume mount is read-only.- Parameters:
readOnly
- the readOnly value to set- Returns:
- the VolumeMount object itself.
-