VolumeMount Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. VolumeMount
- com.
Implements
public final class VolumeMount
implements JsonSerializable<VolumeMount>
The properties of the volume mount.
Constructor Summary
Constructor | Description |
---|---|
VolumeMount() |
Creates an instance of Volume |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Volume |
fromJson(JsonReader jsonReader)
Reads an instance of Volume |
String |
mountPath()
Get the mount |
String |
name()
Get the name property: The name of the volume mount. |
Boolean |
readOnly()
Get the read |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Volume |
withMountPath(String mountPath)
Set the mount |
Volume |
withName(String name)
Set the name property: The name of the volume mount. |
Volume |
withReadOnly(Boolean readOnly)
Set the read |
Methods inherited from java.lang.Object
Constructor Details
VolumeMount
public VolumeMount()
Creates an instance of VolumeMount class.
Method Details
fromJson
public static VolumeMount fromJson(JsonReader jsonReader)
Reads an instance of VolumeMount from the JsonReader.
Parameters:
Returns:
Throws:
mountPath
public String mountPath()
Get the mountPath property: The path within the container where the volume should be mounted. Must not contain colon (:).
Returns:
name
public String name()
Get the name property: The name of the volume mount.
Returns:
readOnly
public Boolean readOnly()
Get the readOnly property: The flag indicating whether the volume mount is read-only.
Returns:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
withName
public VolumeMount withName(String name)
Set the name property: The name of the volume mount.
Parameters:
Returns:
withReadOnly
public VolumeMount withReadOnly(Boolean readOnly)
Set the readOnly property: The flag indicating whether the volume mount is read-only.
Parameters:
Returns:
Applies to
Azure SDK for Java