Class ClusterPoolAksPatchVersionUpgradeProperties

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

public final class ClusterPoolAksPatchVersionUpgradeProperties extends ClusterPoolUpgradeProperties
Properties of upgrading cluster pool's AKS patch version.
  • Constructor Details

    • ClusterPoolAksPatchVersionUpgradeProperties

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

    • upgradeType

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

      public Boolean upgradeClusterPool()
      Get the upgradeClusterPool property: whether upgrade cluster pool or not. If it's true, upgradeAllClusterNodes should be false.
      Returns:
      the upgradeClusterPool value.
    • withUpgradeClusterPool

      public ClusterPoolAksPatchVersionUpgradeProperties withUpgradeClusterPool(Boolean upgradeClusterPool)
      Set the upgradeClusterPool property: whether upgrade cluster pool or not. If it's true, upgradeAllClusterNodes should be false.
      Parameters:
      upgradeClusterPool - the upgradeClusterPool value to set.
      Returns:
      the ClusterPoolAksPatchVersionUpgradeProperties object itself.
    • upgradeAllClusterNodes

      public Boolean upgradeAllClusterNodes()
      Get the upgradeAllClusterNodes property: whether upgrade all clusters' nodes. If it's true, upgradeClusterPool should be false.
      Returns:
      the upgradeAllClusterNodes value.
    • withUpgradeAllClusterNodes

      public ClusterPoolAksPatchVersionUpgradeProperties withUpgradeAllClusterNodes(Boolean upgradeAllClusterNodes)
      Set the upgradeAllClusterNodes property: whether upgrade all clusters' nodes. If it's true, upgradeClusterPool should be false.
      Parameters:
      upgradeAllClusterNodes - the upgradeAllClusterNodes value to set.
      Returns:
      the ClusterPoolAksPatchVersionUpgradeProperties object itself.
    • targetAksVersion

      public String targetAksVersion()
      Get the targetAksVersion property: Target AKS version. When it's not set, latest version will be used. When upgradeClusterPool is true and upgradeAllClusterNodes is false, target version should be greater or equal to current version. When upgradeClusterPool is false and upgradeAllClusterNodes is true, target version should be equal to AKS version of cluster pool.
      Returns:
      the targetAksVersion value.
    • withTargetAksVersion

      public ClusterPoolAksPatchVersionUpgradeProperties withTargetAksVersion(String targetAksVersion)
      Set the targetAksVersion property: Target AKS version. When it's not set, latest version will be used. When upgradeClusterPool is true and upgradeAllClusterNodes is false, target version should be greater or equal to current version. When upgradeClusterPool is false and upgradeAllClusterNodes is true, target version should be equal to AKS version of cluster pool.
      Parameters:
      targetAksVersion - the targetAksVersion value to set.
      Returns:
      the ClusterPoolAksPatchVersionUpgradeProperties object itself.
    • validate

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

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