Class VolumeRelocationProperties

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

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

    • VolumeRelocationProperties

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

    • relocationRequested

      public Boolean relocationRequested()
      Get the relocationRequested property: Has relocation been requested for this volume.
      Returns:
      the relocationRequested value.
    • withRelocationRequested

      public VolumeRelocationProperties withRelocationRequested(Boolean relocationRequested)
      Set the relocationRequested property: Has relocation been requested for this volume.
      Parameters:
      relocationRequested - the relocationRequested value to set.
      Returns:
      the VolumeRelocationProperties object itself.
    • readyToBeFinalized

      public Boolean readyToBeFinalized()
      Get the readyToBeFinalized property: Has relocation finished and is ready to be cleaned up.
      Returns:
      the readyToBeFinalized 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<VolumeRelocationProperties>
      Throws:
      IOException
    • fromJson

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