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>
Properties of upgrading cluster pool's AKS patch version.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterPoolAksPatchVersionUpgradeProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterPoolAksPatchVersionUpgradeProperties from the JsonReader.Get the targetAksVersion property: Target AKS version.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the upgradeAllClusterNodes property: whether upgrade all clusters' nodes.Get the upgradeClusterPool property: whether upgrade cluster pool or not.Get the upgradeType property: Type of upgrade.voidvalidate()Validates the instance.withTargetAksVersion(String targetAksVersion) Set the targetAksVersion property: Target AKS version.withUpgradeAllClusterNodes(Boolean upgradeAllClusterNodes) Set the upgradeAllClusterNodes property: whether upgrade all clusters' nodes.withUpgradeClusterPool(Boolean upgradeClusterPool) Set the upgradeClusterPool property: whether upgrade cluster pool or not.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ClusterPoolAksPatchVersionUpgradeProperties
public ClusterPoolAksPatchVersionUpgradeProperties()Creates an instance of ClusterPoolAksPatchVersionUpgradeProperties class.
-
-
Method Details
-
upgradeType
Get the upgradeType property: Type of upgrade.- Overrides:
upgradeTypein classClusterPoolUpgradeProperties- Returns:
- the upgradeType value.
-
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
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
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
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:
validatein classClusterPoolUpgradeProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ClusterPoolUpgradeProperties>- Overrides:
toJsonin classClusterPoolUpgradeProperties- 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.
-