Class VolumeMount
java.lang.Object
com.azure.resourcemanager.appcontainers.models.VolumeMount
Volume mount for the Container App.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the mountPath property: Path within the container at which the volume should be mounted.Must not contain ':'.void
validate()
Validates the instance.Get the volumeName property: This must match the Name of a Volume.withMountPath
(String mountPath) Set the mountPath property: Path within the container at which the volume should be mounted.Must not contain ':'.withVolumeName
(String volumeName) Set the volumeName property: This must match the Name of a Volume.
-
Constructor Details
-
VolumeMount
public VolumeMount()Creates an instance of VolumeMount class.
-
-
Method Details
-
volumeName
Get the volumeName property: This must match the Name of a Volume.- Returns:
- the volumeName value.
-
withVolumeName
Set the volumeName property: This must match the Name of a Volume.- Parameters:
volumeName
- the volumeName value to set.- Returns:
- the VolumeMount object itself.
-
mountPath
Get the mountPath property: Path within the container at which the volume should be mounted.Must not contain ':'.- Returns:
- the mountPath value.
-
withMountPath
Set the mountPath property: Path within the container at which the volume should be mounted.Must not contain ':'.- Parameters:
mountPath
- the mountPath value to set.- Returns:
- the VolumeMount object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-