Class LastPatchInstallationSummary

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

public final class LastPatchInstallationSummary extends Object implements com.azure.json.JsonSerializable<LastPatchInstallationSummary>
Describes the properties of the last installed patch summary.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of LastPatchInstallationSummary class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the error property: The errors that were encountered during execution of the operation.
    Get the excludedPatchCount property: The number of all available patches but excluded explicitly by a customer-specified exclusion list match.
    Get the failedPatchCount property: The count of patches that failed installation.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of LastPatchInstallationSummary from the JsonReader.
    Get the installationActivityId property: The activity ID of the operation that produced this result.
    Get the installedPatchCount property: The count of patches that successfully installed.
    Get the lastModifiedTime property: The UTC timestamp when the operation began.
    Get the maintenanceWindowExceeded property: Describes whether the operation ran out of time before it completed all its intended actions.
    Get the notSelectedPatchCount property: The number of all available patches but not going to be installed because it didn't match a classification or inclusion list entry.
    Get the pendingPatchCount property: The number of all available patches expected to be installed over the course of the patch installation operation.
    Get the startTime property: The UTC timestamp when the operation began.
    Get the status property: The overall success or failure status of the operation.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • LastPatchInstallationSummary

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

    • status

      public PatchOperationStatus status()
      Get the status property: The overall success or failure status of the operation. It remains "InProgress" until the operation completes. At that point it will become "Unknown", "Failed", "Succeeded", or "CompletedWithWarnings.".
      Returns:
      the status value.
    • installationActivityId

      public String installationActivityId()
      Get the installationActivityId property: The activity ID of the operation that produced this result. It is used to correlate across CRP and extension logs.
      Returns:
      the installationActivityId value.
    • maintenanceWindowExceeded

      public Boolean maintenanceWindowExceeded()
      Get the maintenanceWindowExceeded property: Describes whether the operation ran out of time before it completed all its intended actions.
      Returns:
      the maintenanceWindowExceeded value.
    • notSelectedPatchCount

      public Integer notSelectedPatchCount()
      Get the notSelectedPatchCount property: The number of all available patches but not going to be installed because it didn't match a classification or inclusion list entry.
      Returns:
      the notSelectedPatchCount value.
    • excludedPatchCount

      public Integer excludedPatchCount()
      Get the excludedPatchCount property: The number of all available patches but excluded explicitly by a customer-specified exclusion list match.
      Returns:
      the excludedPatchCount value.
    • pendingPatchCount

      public Integer pendingPatchCount()
      Get the pendingPatchCount property: The number of all available patches expected to be installed over the course of the patch installation operation.
      Returns:
      the pendingPatchCount value.
    • installedPatchCount

      public Integer installedPatchCount()
      Get the installedPatchCount property: The count of patches that successfully installed.
      Returns:
      the installedPatchCount value.
    • failedPatchCount

      public Integer failedPatchCount()
      Get the failedPatchCount property: The count of patches that failed installation.
      Returns:
      the failedPatchCount value.
    • startTime

      public OffsetDateTime startTime()
      Get the startTime property: The UTC timestamp when the operation began.
      Returns:
      the startTime value.
    • lastModifiedTime

      public OffsetDateTime lastModifiedTime()
      Get the lastModifiedTime property: The UTC timestamp when the operation began.
      Returns:
      the lastModifiedTime value.
    • error

      public ApiError error()
      Get the error property: The errors that were encountered during execution of the operation. The details array contains the list of them.
      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<LastPatchInstallationSummary>
      Throws:
      IOException
    • fromJson

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