Class VolumeUpdateProperties

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

public final class VolumeUpdateProperties extends Object implements com.azure.json.JsonSerializable<VolumeUpdateProperties>
Volume response properties.
  • Constructor Details

    • VolumeUpdateProperties

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

    • sizeGiB

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

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

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

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

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