VolumeMount Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. VolumeMount
- com.
Implements
public final class VolumeMount
implements JsonSerializable<VolumeMount>
The VolumeMount model.
Constructor Summary
Constructor | Description |
---|---|
VolumeMount() |
Creates an instance of Volume |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
containerMountPath()
Get the container |
String |
data()
Get the data property: Config Data to be mounted on the volume. |
static
Volume |
fromJson(JsonReader jsonReader)
Reads an instance of Volume |
Boolean |
readOnly()
Get the read |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
String |
volumeSubPath()
Get the volume |
Volume |
withContainerMountPath(String containerMountPath)
Set the container |
Volume |
withData(String data)
Set the data property: Config Data to be mounted on the volume. |
Volume |
withReadOnly(Boolean readOnly)
Set the read |
Volume |
withVolumeSubPath(String volumeSubPath)
Set the volume |
Methods inherited from java.lang.Object
Constructor Details
VolumeMount
public VolumeMount()
Creates an instance of VolumeMount class.
Method Details
containerMountPath
public String containerMountPath()
Get the containerMountPath property: Target path on the container where volume is mounted on.
Returns:
data
public String data()
Get the data property: Config Data to be mounted on the volume.
Returns:
fromJson
public static VolumeMount fromJson(JsonReader jsonReader)
Reads an instance of VolumeMount from the JsonReader.
Parameters:
Returns:
Throws:
readOnly
public Boolean readOnly()
Get the readOnly property: Boolean to specify if the mount is read only on the container.
Returns:
toJson
validate
public void validate()
Validates the instance.
volumeSubPath
public String volumeSubPath()
Get the volumeSubPath property: Sub path in the volume where volume is mounted from.
Returns:
withContainerMountPath
public VolumeMount withContainerMountPath(String containerMountPath)
Set the containerMountPath property: Target path on the container where volume is mounted on.
Parameters:
Returns:
withData
public VolumeMount withData(String data)
Set the data property: Config Data to be mounted on the volume.
Parameters:
Returns:
withReadOnly
public VolumeMount withReadOnly(Boolean readOnly)
Set the readOnly property: Boolean to specify if the mount is read only on the container.
Parameters:
Returns:
withVolumeSubPath
public VolumeMount withVolumeSubPath(String volumeSubPath)
Set the volumeSubPath property: Sub path in the volume where volume is mounted from.
Parameters:
Returns:
Applies to
Azure SDK for Java