Class ResiliencyProfile
java.lang.Object
com.azure.resourcemanager.compute.models.ResiliencyProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResiliencyProfile>
public final class ResiliencyProfile
extends Object
implements com.azure.json.JsonSerializable<ResiliencyProfile>
Gets resiliency solutions enabled on the VM. This includes backup or disaster recovery solutions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResiliencyProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResiliencyProfile from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withZoneMovement(ZoneMovement zoneMovement) Set the zoneMovement property: Zone movement configuration.Get the zoneMovement property: Zone movement configuration.Methods inherited from class 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
-
ResiliencyProfile
public ResiliencyProfile()Creates an instance of ResiliencyProfile class.
-
-
Method Details
-
zoneMovement
Get the zoneMovement property: Zone movement configuration.- Returns:
- the zoneMovement value.
-
withZoneMovement
Set the zoneMovement property: Zone movement configuration.- Parameters:
zoneMovement- the zoneMovement value to set.- Returns:
- the ResiliencyProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResiliencyProfile>- Throws:
IOException
-
fromJson
Reads an instance of ResiliencyProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ResiliencyProfile 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 ResiliencyProfile.
-