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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.management.exception.ManagementErrorerror()Get the error property: The errors that were encountered during the hotpatch capability enrollment or disenrollment.static PatchSettingsStatusfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PatchSettingsStatus from the JsonReader.Get the hotpatchEnablementStatus property: Indicates the current status of the hotpatch being enabled or disabled.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withHotpatchEnablementStatus(HotpatchEnablementStatus hotpatchEnablementStatus) Set the hotpatchEnablementStatus property: Indicates the current status of the hotpatch being enabled or disabled.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
-
PatchSettingsStatus
public PatchSettingsStatus()Creates an instance of PatchSettingsStatus class.
-
-
Method Details
-
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<PatchSettingsStatus>- Throws:
IOException
-
fromJson
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.
-