Class PatchSettingsStatus

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

public final class PatchSettingsStatus extends Object implements com.azure.json.JsonSerializable<PatchSettingsStatus>
Status of the hotpatch capability enrollment or disenrollment.
  • Constructor Details

    • PatchSettingsStatus

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

    • hotpatchEnablementStatus

      public HotpatchEnablementStatus hotpatchEnablementStatus()
      Get the hotpatchEnablementStatus property: Indicates the current status of the hotpatch being enabled or disabled.
      Returns:
      the hotpatchEnablementStatus value.
    • withHotpatchEnablementStatus

      public PatchSettingsStatus withHotpatchEnablementStatus(HotpatchEnablementStatus hotpatchEnablementStatus)
      Set the hotpatchEnablementStatus property: Indicates the current status of the hotpatch being enabled or disabled.
      Parameters:
      hotpatchEnablementStatus - the hotpatchEnablementStatus value to set.
      Returns:
      the PatchSettingsStatus object itself.
    • error

      public com.azure.core.management.exception.ManagementError error()
      Get the error property: The errors that were encountered during the hotpatch capability enrollment or disenrollment.
      Returns:
      the error 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<PatchSettingsStatus>
      Throws:
      IOException
    • fromJson

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