Class ClusterPoolUpgradeHistoryProperties

java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolUpgradeHistoryProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterPoolUpgradeHistoryProperties>
Direct Known Subclasses:
ClusterPoolAksPatchUpgradeHistoryProperties, ClusterPoolNodeOsUpgradeHistoryProperties

public class ClusterPoolUpgradeHistoryProperties extends Object implements com.azure.json.JsonSerializable<ClusterPoolUpgradeHistoryProperties>
Properties of cluster pool upgrade history.
  • Constructor Details

    • ClusterPoolUpgradeHistoryProperties

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

    • upgradeType

      public ClusterPoolUpgradeHistoryType upgradeType()
      Get the upgradeType property: Type of upgrade.
      Returns:
      the upgradeType value.
    • utcTime

      public String utcTime()
      Get the utcTime property: Time when created this upgrade history.
      Returns:
      the utcTime value.
    • withUtcTime

      public ClusterPoolUpgradeHistoryProperties withUtcTime(String utcTime)
      Set the utcTime property: Time when created this upgrade history.
      Parameters:
      utcTime - the utcTime value to set.
      Returns:
      the ClusterPoolUpgradeHistoryProperties object itself.
    • upgradeResult

      Get the upgradeResult property: Result of this upgrade.
      Returns:
      the upgradeResult value.
    • withUpgradeResult

      Set the upgradeResult property: Result of this upgrade.
      Parameters:
      upgradeResult - the upgradeResult value to set.
      Returns:
      the ClusterPoolUpgradeHistoryProperties object itself.
    • 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<ClusterPoolUpgradeHistoryProperties>
      Throws:
      IOException
    • fromJson

      public static ClusterPoolUpgradeHistoryProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ClusterPoolUpgradeHistoryProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ClusterPoolUpgradeHistoryProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ClusterPoolUpgradeHistoryProperties.