VolumeMount Class
- java.
lang. Object - com.
microsoft. azure. management. containerinstance. VolumeMount
- com.
public class VolumeMount
The properties of the volume mount.
Constructor Summary
Constructor | Description | |
---|---|---|
VolumeMount() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
mountPath()
Get the path within the container where the volume should be mounted. |
java.lang.String |
name()
Get the name of the volume mount. |
java.lang.Boolean |
readOnly()
Get the flag indicating whether the volume mount is read-only. |
Volume |
withMountPath(String mountPath)
Set the path within the container where the volume should be mounted. |
Volume |
withName(String name)
Set the name of the volume mount. |
Volume |
withReadOnly(Boolean readOnly)
Set the flag indicating whether the volume mount is read-only. |
Methods inherited from java.lang.Object
Constructor Details
VolumeMount
public VolumeMount()
Method Details
mountPath
public String mountPath()
Get the path within the container where the volume should be mounted. Must not contain colon (:).
Returns:
name
public String name()
Get the name of the volume mount.
Returns:
readOnly
public Boolean readOnly()
Get the flag indicating whether the volume mount is read-only.
Returns:
withMountPath
public VolumeMount withMountPath(String mountPath)
Set the path within the container where the volume should be mounted. Must not contain colon (:).
Parameters:
Returns:
withName
public VolumeMount withName(String name)
Set the name of the volume mount.
Parameters:
Returns:
withReadOnly
public VolumeMount withReadOnly(Boolean readOnly)
Set the flag indicating whether the volume mount is read-only.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for