Class SubvolumePatchRequest

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

public final class SubvolumePatchRequest extends Object implements com.azure.json.JsonSerializable<SubvolumePatchRequest>
Subvolume Patch Request properties.
  • Constructor Details

    • SubvolumePatchRequest

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

    • size

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

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

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

      public SubvolumePatchRequest withPath(String path)
      Set the path property: path to the subvolume.
      Parameters:
      path - the path value to set.
      Returns:
      the SubvolumePatchRequest 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<SubvolumePatchRequest>
      Throws:
      IOException
    • fromJson

      public static SubvolumePatchRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SubvolumePatchRequest from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SubvolumePatchRequest 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 SubvolumePatchRequest.