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 Details

    • ResiliencyProfile

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

    • zoneMovement

      public ZoneMovement zoneMovement()
      Get the zoneMovement property: Zone movement configuration.
      Returns:
      the zoneMovement value.
    • withZoneMovement

      public ResiliencyProfile withZoneMovement(ZoneMovement zoneMovement)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ResiliencyProfile>
      Throws:
      IOException
    • fromJson

      public static ResiliencyProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.