Class VolumeMount
- java.lang.Object
-
- com.azure.resourcemanager.appcontainers.models.VolumeMount
-
public final class VolumeMount extends Object
Volume mount for the Container App.
-
-
Constructor Summary
Constructors Constructor Description VolumeMount()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
mountPath()
Get the mountPath property: Path within the container at which the volume should be mounted.Must not contain ':'.void
validate()
Validates the instance.String
volumeName()
Get the volumeName property: This must match the Name of a Volume.VolumeMount
withMountPath(String mountPath)
Set the mountPath property: Path within the container at which the volume should be mounted.Must not contain ':'.VolumeMount
withVolumeName(String volumeName)
Set the volumeName property: This must match the Name of a Volume.
-
-
-
Method Detail
-
volumeName
public String volumeName()
Get the volumeName property: This must match the Name of a Volume.- Returns:
- the volumeName value.
-
withVolumeName
public VolumeMount withVolumeName(String volumeName)
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
public String mountPath()
Get the mountPath property: Path within the container at which the volume should be mounted.Must not contain ':'.- Returns:
- the mountPath value.
-
withMountPath
public VolumeMount withMountPath(String mountPath)
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.
-
-