Class ClusterAksPatchUpgradeHistoryProperties
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterUpgradeHistoryProperties
com.azure.resourcemanager.hdinsight.containers.models.ClusterAksPatchUpgradeHistoryProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterUpgradeHistoryProperties>
Cluster aks patch upgrade history properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterAksPatchUpgradeHistoryProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterAksPatchUpgradeHistoryProperties 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 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.withUpgradeResult(ClusterUpgradeHistoryUpgradeResultType 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 ClusterUpgradeHistoryProperties
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
-
ClusterAksPatchUpgradeHistoryProperties
public ClusterAksPatchUpgradeHistoryProperties()Creates an instance of ClusterAksPatchUpgradeHistoryProperties class.
-
-
Method Details
-
upgradeType
Get the upgradeType property: Type of upgrade.- Overrides:
upgradeTypein classClusterUpgradeHistoryProperties- Returns:
- the upgradeType value.
-
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 ClusterAksPatchUpgradeHistoryProperties 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 ClusterAksPatchUpgradeHistoryProperties object itself.
-
withUtcTime
Set the utcTime property: Time when created this upgrade history.- Overrides:
withUtcTimein classClusterUpgradeHistoryProperties- Parameters:
utcTime- the utcTime value to set.- Returns:
- the ClusterUpgradeHistoryProperties object itself.
-
withUpgradeResult
public ClusterAksPatchUpgradeHistoryProperties withUpgradeResult(ClusterUpgradeHistoryUpgradeResultType upgradeResult) Set the upgradeResult property: Result of this upgrade.- Overrides:
withUpgradeResultin classClusterUpgradeHistoryProperties- Parameters:
upgradeResult- the upgradeResult value to set.- Returns:
- the ClusterUpgradeHistoryProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classClusterUpgradeHistoryProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ClusterUpgradeHistoryProperties>- Overrides:
toJsonin classClusterUpgradeHistoryProperties- Throws:
IOException
-
fromJson
public static ClusterAksPatchUpgradeHistoryProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ClusterAksPatchUpgradeHistoryProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ClusterAksPatchUpgradeHistoryProperties 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 ClusterAksPatchUpgradeHistoryProperties.
-