Class ReimageRecoveryPolicy

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

public final class ReimageRecoveryPolicy extends Object implements com.azure.json.JsonSerializable<ReimageRecoveryPolicy>
The configuration parameters used while performing reimage recovery.
  • Constructor Details

    • ReimageRecoveryPolicy

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

    • enabled

      public Boolean enabled()
      Get the enabled property: Specifies whether reimage recovery should be enabled. The default value is false.
      Returns:
      the enabled value.
    • withEnabled

      public ReimageRecoveryPolicy withEnabled(Boolean enabled)
      Set the enabled property: Specifies whether reimage recovery should be enabled. The default value is false.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the ReimageRecoveryPolicy 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<ReimageRecoveryPolicy>
      Throws:
      IOException
    • fromJson

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