Class ClusterInPlaceUpgradeHistoryProperties
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterUpgradeHistoryProperties
com.azure.resourcemanager.hdinsight.containers.models.ClusterInPlaceUpgradeHistoryProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterUpgradeHistoryProperties>
- Direct Known Subclasses:
ClusterHotfixUpgradeHistoryProperties, ClusterHotfixUpgradeRollbackHistoryProperties, ClusterPatchVersionUpgradeHistoryProperties, ClusterPatchVersionUpgradeRollbackHistoryProperties
Cluster in-place upgrade history properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterInPlaceUpgradeHistoryProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the componentName property: Component name to upgrade.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterInPlaceUpgradeHistoryProperties from the JsonReader.severity()Get the severity property: Severity of this upgrade.Get the sourceBuildNumber property: Source build number.Get the sourceClusterVersion property: Version with three part.Get the sourceOssVersion property: Version with three part.Get the targetBuildNumber property: Target build number.Get the targetClusterVersion property: Version with three part.Get the targetOssVersion property: Version with three part.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 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
-
ClusterInPlaceUpgradeHistoryProperties
public ClusterInPlaceUpgradeHistoryProperties()Creates an instance of ClusterInPlaceUpgradeHistoryProperties class.
-
-
Method Details
-
upgradeType
Get the upgradeType property: Type of upgrade.- Overrides:
upgradeTypein classClusterUpgradeHistoryProperties- Returns:
- the upgradeType value.
-
sourceClusterVersion
Get the sourceClusterVersion property: Version with three part.- Returns:
- the sourceClusterVersion value.
-
withSourceClusterVersion
Set the sourceClusterVersion property: Version with three part.- Parameters:
sourceClusterVersion- the sourceClusterVersion value to set.- Returns:
- the ClusterInPlaceUpgradeHistoryProperties object itself.
-
sourceOssVersion
Get the sourceOssVersion property: Version with three part.- Returns:
- the sourceOssVersion value.
-
withSourceOssVersion
Set the sourceOssVersion property: Version with three part.- Parameters:
sourceOssVersion- the sourceOssVersion value to set.- Returns:
- the ClusterInPlaceUpgradeHistoryProperties object itself.
-
sourceBuildNumber
Get the sourceBuildNumber property: Source build number.- Returns:
- the sourceBuildNumber value.
-
withSourceBuildNumber
Set the sourceBuildNumber property: Source build number.- Parameters:
sourceBuildNumber- the sourceBuildNumber value to set.- Returns:
- the ClusterInPlaceUpgradeHistoryProperties object itself.
-
targetClusterVersion
Get the targetClusterVersion property: Version with three part.- Returns:
- the targetClusterVersion value.
-
withTargetClusterVersion
Set the targetClusterVersion property: Version with three part.- Parameters:
targetClusterVersion- the targetClusterVersion value to set.- Returns:
- the ClusterInPlaceUpgradeHistoryProperties object itself.
-
targetOssVersion
Get the targetOssVersion property: Version with three part.- Returns:
- the targetOssVersion value.
-
withTargetOssVersion
Set the targetOssVersion property: Version with three part.- Parameters:
targetOssVersion- the targetOssVersion value to set.- Returns:
- the ClusterInPlaceUpgradeHistoryProperties object itself.
-
targetBuildNumber
Get the targetBuildNumber property: Target build number.- Returns:
- the targetBuildNumber value.
-
withTargetBuildNumber
Set the targetBuildNumber property: Target build number.- Parameters:
targetBuildNumber- the targetBuildNumber value to set.- Returns:
- the ClusterInPlaceUpgradeHistoryProperties object itself.
-
componentName
Get the componentName property: Component name to upgrade.- Returns:
- the componentName value.
-
withComponentName
Set the componentName property: Component name to upgrade.- Parameters:
componentName- the componentName value to set.- Returns:
- the ClusterInPlaceUpgradeHistoryProperties object itself.
-
severity
Get the severity property: Severity of this upgrade.- Returns:
- the severity value.
-
withSeverity
public ClusterInPlaceUpgradeHistoryProperties withSeverity(ClusterUpgradeHistorySeverityType severity) Set the severity property: Severity of this upgrade.- 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 classClusterUpgradeHistoryProperties- Parameters:
utcTime- the utcTime value to set.- Returns:
- the ClusterUpgradeHistoryProperties object itself.
-
withUpgradeResult
public ClusterInPlaceUpgradeHistoryProperties 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 ClusterInPlaceUpgradeHistoryProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ClusterInPlaceUpgradeHistoryProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ClusterInPlaceUpgradeHistoryProperties 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 ClusterInPlaceUpgradeHistoryProperties.
-