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 Details

    • VirtualMachineSoftwarePatchProperties

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

    • patchId

      public String patchId()
      Get the patchId property: A unique identifier for the patch.
      Returns:
      the patchId value.
    • name

      public String name()
      Get the name property: The friendly name of the patch.
      Returns:
      the name value.
    • version

      public String version()
      Get the version property: The version number of the patch. This property applies only to Linux patches.
      Returns:
      the version value.
    • kbId

      public String kbId()
      Get the kbId property: The KBID of the patch. Only applies to Windows patches.
      Returns:
      the kbId value.
    • classifications

      public List<String> classifications()
      Get the classifications property: The classification(s) of the patch as provided by the patch publisher.
      Returns:
      the classifications value.
    • rebootBehavior

      public VMGuestPatchRebootBehavior rebootBehavior()
      Get the rebootBehavior property: Describes the reboot requirements of the patch.
      Returns:
      the rebootBehavior value.
    • activityId

      public String 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

      public OffsetDateTime publishedDate()
      Get the publishedDate property: The UTC timestamp when the repository published this patch.
      Returns:
      the publishedDate value.
    • lastModifiedDateTime

      public OffsetDateTime lastModifiedDateTime()
      Get the lastModifiedDateTime property: The UTC timestamp of the last update to this patch record.
      Returns:
      the lastModifiedDateTime value.
    • assessmentState

      public PatchAssessmentState 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.