Class ClusterPoolUpgradeHistoryProperties
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolUpgradeHistoryProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterPoolUpgradeHistoryProperties>
- Direct Known Subclasses:
ClusterPoolAksPatchUpgradeHistoryProperties, ClusterPoolNodeOsUpgradeHistoryProperties
public class ClusterPoolUpgradeHistoryProperties
extends Object
implements com.azure.json.JsonSerializable<ClusterPoolUpgradeHistoryProperties>
Properties of cluster pool upgrade history.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterPoolUpgradeHistoryProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterPoolUpgradeHistoryProperties from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the upgradeResult property: Result of this upgrade.Get the upgradeType property: Type of upgrade.utcTime()Get the utcTime property: Time when created this upgrade history.voidvalidate()Validates the instance.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 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
-
ClusterPoolUpgradeHistoryProperties
public ClusterPoolUpgradeHistoryProperties()Creates an instance of ClusterPoolUpgradeHistoryProperties class.
-
-
Method Details
-
upgradeType
Get the upgradeType property: Type of upgrade.- Returns:
- the upgradeType value.
-
utcTime
Get the utcTime property: Time when created this upgrade history.- Returns:
- the utcTime value.
-
withUtcTime
Set the utcTime property: Time when created this upgrade history.- Parameters:
utcTime- the utcTime value to set.- Returns:
- the ClusterPoolUpgradeHistoryProperties object itself.
-
upgradeResult
Get the upgradeResult property: Result of this upgrade.- Returns:
- the upgradeResult value.
-
withUpgradeResult
public ClusterPoolUpgradeHistoryProperties withUpgradeResult(ClusterPoolUpgradeHistoryUpgradeResultType upgradeResult) Set the upgradeResult property: Result of this upgrade.- Parameters:
upgradeResult- the upgradeResult value to set.- Returns:
- the ClusterPoolUpgradeHistoryProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ClusterPoolUpgradeHistoryProperties>- Throws:
IOException
-
fromJson
public static ClusterPoolUpgradeHistoryProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ClusterPoolUpgradeHistoryProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ClusterPoolUpgradeHistoryProperties 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 ClusterPoolUpgradeHistoryProperties.
-