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 Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterPoolAksPatchUpgradeHistoryProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterPoolAksPatchUpgradeHistoryProperties from the JsonReader.Get the newVersion property: Version going to update.Get the originalVersion property: Version before update.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the upgradeAllClusterNodes property: Whether upgrade all cluster nodes.Get the upgradeClusterPool property: Whether upgrade cluster pool.Get the upgradeType property: Type of upgrade.voidvalidate()Validates the instance.withNewVersion(String newVersion) Set the newVersion property: Version going to update.withOriginalVersion(String originalVersion) Set the originalVersion property: Version before update.withUpgradeAllClusterNodes(Boolean upgradeAllClusterNodes) Set the upgradeAllClusterNodes property: Whether upgrade all cluster nodes.withUpgradeClusterPool(Boolean upgradeClusterPool) Set the upgradeClusterPool property: Whether upgrade cluster pool.withUpgradeResult(ClusterPoolUpgradeHistoryUpgradeResultType upgradeResult) Set the upgradeResult property: Result of this upgrade.withUtcTime(String utcTime) Set the utcTime property: Time when created this upgrade history.Methods inherited from class ClusterPoolUpgradeHistoryProperties
upgradeResult, utcTimeMethods 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
-
ClusterPoolAksPatchUpgradeHistoryProperties
public ClusterPoolAksPatchUpgradeHistoryProperties()Creates an instance of ClusterPoolAksPatchUpgradeHistoryProperties class.
-
-
Method Details
-
upgradeType
Get the upgradeType property: Type of upgrade.- Overrides:
upgradeTypein classClusterPoolUpgradeHistoryProperties- Returns:
- the upgradeType value.
-
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
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
Get the originalVersion property: Version before update.- Returns:
- the originalVersion value.
-
withOriginalVersion
Set the originalVersion property: Version before update.- Parameters:
originalVersion- the originalVersion value to set.- Returns:
- the ClusterPoolAksPatchUpgradeHistoryProperties object itself.
-
newVersion
Get the newVersion property: Version going to update.- Returns:
- the newVersion value.
-
withNewVersion
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:
withUtcTimein classClusterPoolUpgradeHistoryProperties- Parameters:
utcTime- the utcTime value to set.- Returns:
- the ClusterPoolUpgradeHistoryProperties object itself.
-
withUpgradeResult
public ClusterPoolAksPatchUpgradeHistoryProperties withUpgradeResult(ClusterPoolUpgradeHistoryUpgradeResultType upgradeResult) Set the upgradeResult property: Result of this upgrade.- Overrides:
withUpgradeResultin classClusterPoolUpgradeHistoryProperties- Parameters:
upgradeResult- the upgradeResult value to set.- Returns:
- the ClusterPoolUpgradeHistoryProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classClusterPoolUpgradeHistoryProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ClusterPoolUpgradeHistoryProperties>- Overrides:
toJsonin classClusterPoolUpgradeHistoryProperties- 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.
-