Class SubvolumeProperties

java.lang.Object
com.azure.resourcemanager.netapp.fluent.models.SubvolumeProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<SubvolumeProperties>

public final class SubvolumeProperties extends Object implements com.azure.json.JsonSerializable<SubvolumeProperties>
This represents path associated with the subvolume.
  • Constructor Details

    • SubvolumeProperties

      public SubvolumeProperties()
      Creates an instance of SubvolumeProperties class.
  • Method Details

    • path

      public String path()
      Get the path property: Path to the subvolume.
      Returns:
      the path value.
    • withPath

      public SubvolumeProperties withPath(String path)
      Set the path property: Path to the subvolume.
      Parameters:
      path - the path value to set.
      Returns:
      the SubvolumeProperties object itself.
    • size

      public Long size()
      Get the size property: Truncate subvolume to the provided size in bytes.
      Returns:
      the size value.
    • withSize

      public SubvolumeProperties withSize(Long size)
      Set the size property: Truncate subvolume to the provided size in bytes.
      Parameters:
      size - the size value to set.
      Returns:
      the SubvolumeProperties object itself.
    • parentPath

      public String parentPath()
      Get the parentPath property: parent path to the subvolume.
      Returns:
      the parentPath value.
    • withParentPath

      public SubvolumeProperties withParentPath(String parentPath)
      Set the parentPath property: parent path to the subvolume.
      Parameters:
      parentPath - the parentPath value to set.
      Returns:
      the SubvolumeProperties object itself.
    • provisioningState

      public String provisioningState()
      Get the provisioningState property: Azure lifecycle management.
      Returns:
      the provisioningState value.
    • 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<SubvolumeProperties>
      Throws:
      IOException
    • fromJson

      public static SubvolumeProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SubvolumeProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SubvolumeProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the SubvolumeProperties.