Class VolumeMount
java.lang.Object
com.azure.resourcemanager.containerinstance.models.VolumeMount
The properties of the volume mount.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the mountPath property: The path within the container where the volume should be mounted.name()Get the name property: The name of the volume mount.readOnly()Get the readOnly property: The flag indicating whether the volume mount is read-only.voidvalidate()Validates the instance.withMountPath(String mountPath) Set the mountPath property: The path within the container where the volume should be mounted.Set the name property: The name of the volume mount.withReadOnly(Boolean readOnly) Set the readOnly property: The flag indicating whether the volume mount is read-only.
-
Constructor Details
-
VolumeMount
public VolumeMount()Creates an instance of VolumeMount class.
-
-
Method Details
-
name
Get the name property: The name of the volume mount.- Returns:
- the name value.
-
withName
Set the name property: The name of the volume mount.- Parameters:
name- the name value to set.- Returns:
- the VolumeMount object itself.
-
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
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
Get the readOnly property: The flag indicating whether the volume mount is read-only.- Returns:
- the readOnly value.
-
withReadOnly
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.
-