Class PatchInstallationDetail

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

public final class PatchInstallationDetail extends Object implements com.azure.json.JsonSerializable<PatchInstallationDetail>
Information about a specific patch that was encountered during an installation action.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    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 PatchInstallationDetail from the JsonReader.
    Get the installationState property: The state of the patch after the installation operation completed.
    Get the kbId property: The KBID of the patch.
    Get the name property: The friendly name of the patch.
    Get the patchId property: A unique identifier for the patch.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Get the version property: The version string of the package.

    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

    • PatchInstallationDetail

      public PatchInstallationDetail()
      Creates an instance of PatchInstallationDetail 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 string of the package. It may conform to Semantic Versioning. Only applies to Linux.
      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.
    • installationState

      public PatchInstallationState installationState()
      Get the installationState property: The state of the patch after the installation operation completed.
      Returns:
      the installationState 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<PatchInstallationDetail>
      Throws:
      IOException
    • fromJson

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