Class ClusterPatchVersionUpgradeHistoryProperties
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterUpgradeHistoryProperties
com.azure.resourcemanager.hdinsight.containers.models.ClusterInPlaceUpgradeHistoryProperties
com.azure.resourcemanager.hdinsight.containers.models.ClusterPatchVersionUpgradeHistoryProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterUpgradeHistoryProperties>
public final class ClusterPatchVersionUpgradeHistoryProperties
extends ClusterInPlaceUpgradeHistoryProperties
Cluster patch version upgrade history properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterPatchVersionUpgradeHistoryProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterPatchVersionUpgradeHistoryProperties from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the upgradeType property: Type of upgrade.voidvalidate()Validates the instance.withComponentName(String componentName) Set the componentName property: Component name to upgrade.Set the severity property: Severity of this upgrade.withSourceBuildNumber(String sourceBuildNumber) Set the sourceBuildNumber property: Source build number.withSourceClusterVersion(String sourceClusterVersion) Set the sourceClusterVersion property: Version with three part.withSourceOssVersion(String sourceOssVersion) Set the sourceOssVersion property: Version with three part.withTargetBuildNumber(String targetBuildNumber) Set the targetBuildNumber property: Target build number.withTargetClusterVersion(String targetClusterVersion) Set the targetClusterVersion property: Version with three part.withTargetOssVersion(String targetOssVersion) Set the targetOssVersion property: Version with three part.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 ClusterInPlaceUpgradeHistoryProperties
componentName, severity, sourceBuildNumber, sourceClusterVersion, sourceOssVersion, targetBuildNumber, targetClusterVersion, targetOssVersionMethods 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
-
ClusterPatchVersionUpgradeHistoryProperties
public ClusterPatchVersionUpgradeHistoryProperties()Creates an instance of ClusterPatchVersionUpgradeHistoryProperties class.
-
-
Method Details
-
upgradeType
Get the upgradeType property: Type of upgrade.- Overrides:
upgradeTypein classClusterInPlaceUpgradeHistoryProperties- Returns:
- the upgradeType value.
-
withSourceClusterVersion
public ClusterPatchVersionUpgradeHistoryProperties withSourceClusterVersion(String sourceClusterVersion) Set the sourceClusterVersion property: Version with three part.- Overrides:
withSourceClusterVersionin classClusterInPlaceUpgradeHistoryProperties- Parameters:
sourceClusterVersion- the sourceClusterVersion value to set.- Returns:
- the ClusterInPlaceUpgradeHistoryProperties object itself.
-
withSourceOssVersion
Set the sourceOssVersion property: Version with three part.- Overrides:
withSourceOssVersionin classClusterInPlaceUpgradeHistoryProperties- Parameters:
sourceOssVersion- the sourceOssVersion value to set.- Returns:
- the ClusterInPlaceUpgradeHistoryProperties object itself.
-
withSourceBuildNumber
Set the sourceBuildNumber property: Source build number.- Overrides:
withSourceBuildNumberin classClusterInPlaceUpgradeHistoryProperties- Parameters:
sourceBuildNumber- the sourceBuildNumber value to set.- Returns:
- the ClusterInPlaceUpgradeHistoryProperties object itself.
-
withTargetClusterVersion
public ClusterPatchVersionUpgradeHistoryProperties withTargetClusterVersion(String targetClusterVersion) Set the targetClusterVersion property: Version with three part.- Overrides:
withTargetClusterVersionin classClusterInPlaceUpgradeHistoryProperties- Parameters:
targetClusterVersion- the targetClusterVersion value to set.- Returns:
- the ClusterInPlaceUpgradeHistoryProperties object itself.
-
withTargetOssVersion
Set the targetOssVersion property: Version with three part.- Overrides:
withTargetOssVersionin classClusterInPlaceUpgradeHistoryProperties- Parameters:
targetOssVersion- the targetOssVersion value to set.- Returns:
- the ClusterInPlaceUpgradeHistoryProperties object itself.
-
withTargetBuildNumber
Set the targetBuildNumber property: Target build number.- Overrides:
withTargetBuildNumberin classClusterInPlaceUpgradeHistoryProperties- Parameters:
targetBuildNumber- the targetBuildNumber value to set.- Returns:
- the ClusterInPlaceUpgradeHistoryProperties object itself.
-
withComponentName
Set the componentName property: Component name to upgrade.- Overrides:
withComponentNamein classClusterInPlaceUpgradeHistoryProperties- Parameters:
componentName- the componentName value to set.- Returns:
- the ClusterInPlaceUpgradeHistoryProperties object itself.
-
withSeverity
public ClusterPatchVersionUpgradeHistoryProperties withSeverity(ClusterUpgradeHistorySeverityType severity) Set the severity property: Severity of this upgrade.- Overrides:
withSeverityin classClusterInPlaceUpgradeHistoryProperties- Parameters:
severity- the severity value to set.- Returns:
- the ClusterInPlaceUpgradeHistoryProperties object itself.
-
withUtcTime
Set the utcTime property: Time when created this upgrade history.- Overrides:
withUtcTimein classClusterInPlaceUpgradeHistoryProperties- Parameters:
utcTime- the utcTime value to set.- Returns:
- the ClusterUpgradeHistoryProperties object itself.
-
withUpgradeResult
public ClusterPatchVersionUpgradeHistoryProperties withUpgradeResult(ClusterUpgradeHistoryUpgradeResultType upgradeResult) Set the upgradeResult property: Result of this upgrade.- Overrides:
withUpgradeResultin classClusterInPlaceUpgradeHistoryProperties- Parameters:
upgradeResult- the upgradeResult value to set.- Returns:
- the ClusterUpgradeHistoryProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classClusterInPlaceUpgradeHistoryProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ClusterUpgradeHistoryProperties>- Overrides:
toJsonin classClusterInPlaceUpgradeHistoryProperties- Throws:
IOException
-
fromJson
public static ClusterPatchVersionUpgradeHistoryProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ClusterPatchVersionUpgradeHistoryProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ClusterPatchVersionUpgradeHistoryProperties 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 ClusterPatchVersionUpgradeHistoryProperties.
-