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
    Constructor
    Description
    Creates an instance of VolumeMount class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the containerMountPath property: Target path on the container where volume is mounted on.
    Get the data property: Config Data to be mounted on the volume.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of VolumeMount from the JsonReader.
    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
    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.
    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

      public String volumeSubPath()
      Get the volumeSubPath property: Sub path in the volume where volume is mounted from.
      Returns:
      the volumeSubPath value.
    • withVolumeSubPath

      public VolumeMount withVolumeSubPath(String volumeSubPath)
      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

      public String containerMountPath()
      Get the containerMountPath property: Target path on the container where volume is mounted on.
      Returns:
      the containerMountPath value.
    • withContainerMountPath

      public VolumeMount withContainerMountPath(String containerMountPath)
      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

      public String data()
      Get the data property: Config Data to be mounted on the volume.
      Returns:
      the data value.
    • withData

      public VolumeMount withData(String data)
      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

      public Boolean readOnly()
      Get the readOnly property: Boolean to specify if the mount is read only on the container.
      Returns:
      the readOnly value.
    • withReadOnly

      public VolumeMount withReadOnly(Boolean readOnly)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<VolumeMount>
      Throws:
      IOException
    • fromJson

      public static VolumeMount fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.