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 Summary
ConstructorsConstructorDescriptionCreates an instance of VolumeRelocationProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VolumeRelocationPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VolumeRelocationProperties from the JsonReader.Get the readyToBeFinalized property: Has relocation finished and is ready to be cleaned up.Get the relocationRequested property: Has relocation been requested for this volume.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withRelocationRequested(Boolean relocationRequested) Set the relocationRequested property: Has relocation been requested for this volume.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VolumeRelocationProperties
public VolumeRelocationProperties()Creates an instance of VolumeRelocationProperties class.
-
-
Method Details
-
relocationRequested
Get the relocationRequested property: Has relocation been requested for this volume.- Returns:
- the relocationRequested value.
-
withRelocationRequested
Set the relocationRequested property: Has relocation been requested for this volume.- Parameters:
relocationRequested- the relocationRequested value to set.- Returns:
- the VolumeRelocationProperties object itself.
-
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
- Specified by:
toJsonin interfacecom.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.
-