Class VirtualMachinePatchStatus
java.lang.Object
com.azure.resourcemanager.compute.models.VirtualMachinePatchStatus
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualMachinePatchStatus>
public final class VirtualMachinePatchStatus
extends Object
implements com.azure.json.JsonSerializable<VirtualMachinePatchStatus>
The status of virtual machine patch operations.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachinePatchStatus class. -
Method Summary
Modifier and TypeMethodDescriptionGet the availablePatchSummary property: The available patch summary of the latest assessment operation for the virtual machine.Get the configurationStatuses property: The enablement status of the specified patchMode.static VirtualMachinePatchStatusfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualMachinePatchStatus from the JsonReader.Get the lastPatchInstallationSummary property: The installation summary of the latest installation operation for the virtual machine.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAvailablePatchSummary(AvailablePatchSummary availablePatchSummary) Set the availablePatchSummary property: The available patch summary of the latest assessment operation for the virtual machine.withLastPatchInstallationSummary(LastPatchInstallationSummary lastPatchInstallationSummary) Set the lastPatchInstallationSummary property: The installation summary of the latest installation operation for the virtual machine.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
-
VirtualMachinePatchStatus
public VirtualMachinePatchStatus()Creates an instance of VirtualMachinePatchStatus class.
-
-
Method Details
-
availablePatchSummary
Get the availablePatchSummary property: The available patch summary of the latest assessment operation for the virtual machine.- Returns:
- the availablePatchSummary value.
-
withAvailablePatchSummary
public VirtualMachinePatchStatus withAvailablePatchSummary(AvailablePatchSummary availablePatchSummary) Set the availablePatchSummary property: The available patch summary of the latest assessment operation for the virtual machine.- Parameters:
availablePatchSummary- the availablePatchSummary value to set.- Returns:
- the VirtualMachinePatchStatus object itself.
-
lastPatchInstallationSummary
Get the lastPatchInstallationSummary property: The installation summary of the latest installation operation for the virtual machine.- Returns:
- the lastPatchInstallationSummary value.
-
withLastPatchInstallationSummary
public VirtualMachinePatchStatus withLastPatchInstallationSummary(LastPatchInstallationSummary lastPatchInstallationSummary) Set the lastPatchInstallationSummary property: The installation summary of the latest installation operation for the virtual machine.- Parameters:
lastPatchInstallationSummary- the lastPatchInstallationSummary value to set.- Returns:
- the VirtualMachinePatchStatus object itself.
-
configurationStatuses
Get the configurationStatuses property: The enablement status of the specified patchMode.- Returns:
- the configurationStatuses 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<VirtualMachinePatchStatus>- Throws:
IOException
-
fromJson
public static VirtualMachinePatchStatus fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualMachinePatchStatus from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualMachinePatchStatus 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 VirtualMachinePatchStatus.
-