Class VirtualMachineSoftwarePatchProperties
java.lang.Object
com.azure.resourcemanager.compute.models.VirtualMachineSoftwarePatchProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualMachineSoftwarePatchProperties>
public final class VirtualMachineSoftwarePatchProperties
extends Object
implements com.azure.json.JsonSerializable<VirtualMachineSoftwarePatchProperties>
Describes the properties of a Virtual Machine software patch.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachineSoftwarePatchProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the activityId property: The activity ID of the operation that produced this result.Get the assessmentState property: Describes the availability of a given patch.Get the classifications property: The classification(s) of the patch as provided by the patch publisher.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualMachineSoftwarePatchProperties from the JsonReader.kbId()Get the kbId property: The KBID of the patch.Get the lastModifiedDateTime property: The UTC timestamp of the last update to this patch record.name()Get the name property: The friendly name of the patch.patchId()Get the patchId property: A unique identifier for the patch.Get the publishedDate property: The UTC timestamp when the repository published this patch.Get the rebootBehavior property: Describes the reboot requirements of the patch.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.version()Get the version property: The version number of the patch.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
-
VirtualMachineSoftwarePatchProperties
public VirtualMachineSoftwarePatchProperties()Creates an instance of VirtualMachineSoftwarePatchProperties class.
-
-
Method Details
-
patchId
Get the patchId property: A unique identifier for the patch.- Returns:
- the patchId value.
-
name
Get the name property: The friendly name of the patch.- Returns:
- the name value.
-
version
Get the version property: The version number of the patch. This property applies only to Linux patches.- Returns:
- the version value.
-
kbId
Get the kbId property: The KBID of the patch. Only applies to Windows patches.- Returns:
- the kbId value.
-
classifications
Get the classifications property: The classification(s) of the patch as provided by the patch publisher.- Returns:
- the classifications value.
-
rebootBehavior
Get the rebootBehavior property: Describes the reboot requirements of the patch.- Returns:
- the rebootBehavior value.
-
activityId
Get the activityId property: The activity ID of the operation that produced this result. It is used to correlate across CRP and extension logs.- Returns:
- the activityId value.
-
publishedDate
Get the publishedDate property: The UTC timestamp when the repository published this patch.- Returns:
- the publishedDate value.
-
lastModifiedDateTime
Get the lastModifiedDateTime property: The UTC timestamp of the last update to this patch record.- Returns:
- the lastModifiedDateTime value.
-
assessmentState
Get the assessmentState property: Describes the availability of a given patch.- Returns:
- the assessmentState 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<VirtualMachineSoftwarePatchProperties>- Throws:
IOException
-
fromJson
public static VirtualMachineSoftwarePatchProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualMachineSoftwarePatchProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualMachineSoftwarePatchProperties 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 VirtualMachineSoftwarePatchProperties.
-