Class VolumeMount
- java.lang.Object
-
- com.azure.resourcemanager.containerinstance.models.VolumeMount
-
public final class VolumeMount extends Object
The properties of the volume mount.
-
-
Constructor Summary
Constructors Constructor Description VolumeMount()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringmountPath()Get the mountPath property: The path within the container where the volume should be mounted.Stringname()Get the name property: The name of the volume mount.BooleanreadOnly()Get the readOnly property: The flag indicating whether the volume mount is read-only.voidvalidate()Validates the instance.VolumeMountwithMountPath(String mountPath)Set the mountPath property: The path within the container where the volume should be mounted.VolumeMountwithName(String name)Set the name property: The name of the volume mount.VolumeMountwithReadOnly(Boolean readOnly)Set the readOnly property: The flag indicating whether the volume mount is read-only.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The name of the volume mount.- Returns:
- the name value.
-
withName
public VolumeMount withName(String name)
Set the name property: The name of the volume mount.- Parameters:
name- the name value to set.- Returns:
- the VolumeMount object itself.
-
mountPath
public String mountPath()
Get the mountPath property: The path within the container where the volume should be mounted. Must not contain colon (:).- Returns:
- the mountPath value.
-
withMountPath
public VolumeMount withMountPath(String mountPath)
Set the mountPath property: 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
public Boolean readOnly()
Get the readOnly property: The flag indicating whether the volume mount is read-only.- Returns:
- the readOnly value.
-
withReadOnly
public VolumeMount withReadOnly(Boolean readOnly)
Set the readOnly property: The flag indicating whether the volume mount is read-only.- Parameters:
readOnly- the readOnly value to set.- Returns:
- the VolumeMount object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-