Class ClusterUpgradeHistoryProperties
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterUpgradeHistoryProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterUpgradeHistoryProperties>
- Direct Known Subclasses:
ClusterAksPatchUpgradeHistoryProperties, ClusterInPlaceUpgradeHistoryProperties
public class ClusterUpgradeHistoryProperties
extends Object
implements com.azure.json.JsonSerializable<ClusterUpgradeHistoryProperties>
Properties of cluster upgrade history.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterUpgradeHistoryProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterUpgradeHistoryProperties 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(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 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
-
ClusterUpgradeHistoryProperties
public ClusterUpgradeHistoryProperties()Creates an instance of ClusterUpgradeHistoryProperties 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 ClusterUpgradeHistoryProperties object itself.
-
upgradeResult
Get the upgradeResult property: Result of this upgrade.- Returns:
- the upgradeResult value.
-
withUpgradeResult
public ClusterUpgradeHistoryProperties withUpgradeResult(ClusterUpgradeHistoryUpgradeResultType upgradeResult) Set the upgradeResult property: Result of this upgrade.- Parameters:
upgradeResult- the upgradeResult value to set.- Returns:
- the ClusterUpgradeHistoryProperties 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<ClusterUpgradeHistoryProperties>- Throws:
IOException
-
fromJson
public static ClusterUpgradeHistoryProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ClusterUpgradeHistoryProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ClusterUpgradeHistoryProperties 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 ClusterUpgradeHistoryProperties.
-