Class VolumeMount
java.lang.Object
com.azure.resourcemanager.appservice.models.VolumeMount
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VolumeMount>
public final class VolumeMount
extends Object
implements com.azure.json.JsonSerializable<VolumeMount>
The VolumeMount model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the containerMountPath property: Target path on the container where volume is mounted on.data()
Get the data property: Config Data to be mounted on the volume.static VolumeMount
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of VolumeMount from the JsonReader.readOnly()
Get the readOnly property: Boolean to specify if the mount is read only on the container.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Get the volumeSubPath property: Sub path in the volume where volume is mounted from.withContainerMountPath
(String containerMountPath) Set the containerMountPath property: Target path on the container where volume is mounted on.Set the data property: Config Data to be mounted on the volume.withReadOnly
(Boolean readOnly) Set the readOnly property: Boolean to specify if the mount is read only on the container.withVolumeSubPath
(String volumeSubPath) Set the volumeSubPath property: Sub path in the volume where volume is mounted from.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VolumeMount
public VolumeMount()Creates an instance of VolumeMount class.
-
-
Method Details
-
volumeSubPath
Get the volumeSubPath property: Sub path in the volume where volume is mounted from.- Returns:
- the volumeSubPath value.
-
withVolumeSubPath
Set the volumeSubPath property: Sub path in the volume where volume is mounted from.- Parameters:
volumeSubPath
- the volumeSubPath value to set.- Returns:
- the VolumeMount object itself.
-
containerMountPath
Get the containerMountPath property: Target path on the container where volume is mounted on.- Returns:
- the containerMountPath value.
-
withContainerMountPath
Set the containerMountPath property: Target path on the container where volume is mounted on.- Parameters:
containerMountPath
- the containerMountPath value to set.- Returns:
- the VolumeMount object itself.
-
data
Get the data property: Config Data to be mounted on the volume.- Returns:
- the data value.
-
withData
Set the data property: Config Data to be mounted on the volume.- Parameters:
data
- the data value to set.- Returns:
- the VolumeMount object itself.
-
readOnly
Get the readOnly property: Boolean to specify if the mount is read only on the container.- Returns:
- the readOnly value.
-
withReadOnly
Set the readOnly property: Boolean to specify if the mount is read only on the container.- 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.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<VolumeMount>
- Throws:
IOException
-
fromJson
Reads an instance of VolumeMount from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of VolumeMount if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the VolumeMount.
-