Class ClusterPoolAksPatchUpgradeHistoryProperties

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

public final class ClusterPoolAksPatchUpgradeHistoryProperties extends ClusterPoolUpgradeHistoryProperties
Cluster pool aks upgrade history properties.
  • Constructor Details

    • ClusterPoolAksPatchUpgradeHistoryProperties

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

    • upgradeType

      public ClusterPoolUpgradeHistoryType upgradeType()
      Get the upgradeType property: Type of upgrade.
      Overrides:
      upgradeType in class ClusterPoolUpgradeHistoryProperties
      Returns:
      the upgradeType value.
    • upgradeClusterPool

      public Boolean upgradeClusterPool()
      Get the upgradeClusterPool property: Whether upgrade cluster pool.
      Returns:
      the upgradeClusterPool value.
    • withUpgradeClusterPool

      public ClusterPoolAksPatchUpgradeHistoryProperties withUpgradeClusterPool(Boolean upgradeClusterPool)
      Set the upgradeClusterPool property: Whether upgrade cluster pool.
      Parameters:
      upgradeClusterPool - the upgradeClusterPool value to set.
      Returns:
      the ClusterPoolAksPatchUpgradeHistoryProperties object itself.
    • upgradeAllClusterNodes

      public Boolean upgradeAllClusterNodes()
      Get the upgradeAllClusterNodes property: Whether upgrade all cluster nodes.
      Returns:
      the upgradeAllClusterNodes value.
    • withUpgradeAllClusterNodes

      public ClusterPoolAksPatchUpgradeHistoryProperties withUpgradeAllClusterNodes(Boolean upgradeAllClusterNodes)
      Set the upgradeAllClusterNodes property: Whether upgrade all cluster nodes.
      Parameters:
      upgradeAllClusterNodes - the upgradeAllClusterNodes value to set.
      Returns:
      the ClusterPoolAksPatchUpgradeHistoryProperties object itself.
    • originalVersion

      public String originalVersion()
      Get the originalVersion property: Version before update.
      Returns:
      the originalVersion value.
    • withOriginalVersion

      public ClusterPoolAksPatchUpgradeHistoryProperties withOriginalVersion(String originalVersion)
      Set the originalVersion property: Version before update.
      Parameters:
      originalVersion - the originalVersion value to set.
      Returns:
      the ClusterPoolAksPatchUpgradeHistoryProperties object itself.
    • newVersion

      public String newVersion()
      Get the newVersion property: Version going to update.
      Returns:
      the newVersion value.
    • withNewVersion

      public ClusterPoolAksPatchUpgradeHistoryProperties withNewVersion(String newVersion)
      Set the newVersion property: Version going to update.
      Parameters:
      newVersion - the newVersion value to set.
      Returns:
      the ClusterPoolAksPatchUpgradeHistoryProperties object itself.
    • withUtcTime

      Set the utcTime property: Time when created this upgrade history.
      Overrides:
      withUtcTime in class ClusterPoolUpgradeHistoryProperties
      Parameters:
      utcTime - the utcTime value to set.
      Returns:
      the ClusterPoolUpgradeHistoryProperties object itself.
    • withUpgradeResult

      Set the upgradeResult property: Result of this upgrade.
      Overrides:
      withUpgradeResult in class ClusterPoolUpgradeHistoryProperties
      Parameters:
      upgradeResult - the upgradeResult value to set.
      Returns:
      the ClusterPoolUpgradeHistoryProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ClusterPoolUpgradeHistoryProperties
      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>
      Overrides:
      toJson in class ClusterPoolUpgradeHistoryProperties
      Throws:
      IOException
    • fromJson

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