Class VolumeUpdate

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

public final class VolumeUpdate extends Object implements com.azure.json.JsonSerializable<VolumeUpdate>
Response for Volume request.
  • Constructor Details

    • VolumeUpdate

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

    • sizeGiB

      public Long sizeGiB()
      Get the sizeGiB property: Volume size.
      Returns:
      the sizeGiB value.
    • withSizeGiB

      public VolumeUpdate withSizeGiB(Long sizeGiB)
      Set the sizeGiB property: Volume size.
      Parameters:
      sizeGiB - the sizeGiB value to set.
      Returns:
      the VolumeUpdate object itself.
    • managedBy

      public ManagedByInfo managedBy()
      Get the managedBy property: Parent resource information.
      Returns:
      the managedBy value.
    • withManagedBy

      public VolumeUpdate withManagedBy(ManagedByInfo managedBy)
      Set the managedBy property: Parent resource information.
      Parameters:
      managedBy - the managedBy value to set.
      Returns:
      the VolumeUpdate 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<VolumeUpdate>
      Throws:
      IOException
    • fromJson

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