Class ClusterPoolNodeOsUpgradeHistoryProperties
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolUpgradeHistoryProperties
com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolNodeOsUpgradeHistoryProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterPoolUpgradeHistoryProperties>
public final class ClusterPoolNodeOsUpgradeHistoryProperties
extends ClusterPoolUpgradeHistoryProperties
Cluster pool node os upgrade history properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterPoolNodeOsUpgradeHistoryProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterPoolNodeOsUpgradeHistoryProperties from the JsonReader.Get the newNodeOs property: New Node Os version.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the upgradeType property: Type of upgrade.voidvalidate()Validates the instance.withNewNodeOs(String newNodeOs) Set the newNodeOs property: New Node Os version.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
-
ClusterPoolNodeOsUpgradeHistoryProperties
public ClusterPoolNodeOsUpgradeHistoryProperties()Creates an instance of ClusterPoolNodeOsUpgradeHistoryProperties class.
-
-
Method Details
-
upgradeType
Get the upgradeType property: Type of upgrade.- Overrides:
upgradeTypein classClusterPoolUpgradeHistoryProperties- Returns:
- the upgradeType value.
-
newNodeOs
Get the newNodeOs property: New Node Os version.- Returns:
- the newNodeOs value.
-
withNewNodeOs
Set the newNodeOs property: New Node Os version.- Parameters:
newNodeOs- the newNodeOs value to set.- Returns:
- the ClusterPoolNodeOsUpgradeHistoryProperties 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 ClusterPoolNodeOsUpgradeHistoryProperties 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 ClusterPoolNodeOsUpgradeHistoryProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ClusterPoolNodeOsUpgradeHistoryProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ClusterPoolNodeOsUpgradeHistoryProperties 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 ClusterPoolNodeOsUpgradeHistoryProperties.
-