Class ClusterPatchVersionUpgradeRollbackHistoryProperties
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterUpgradeHistoryProperties
com.azure.resourcemanager.hdinsight.containers.models.ClusterInPlaceUpgradeHistoryProperties
com.azure.resourcemanager.hdinsight.containers.models.ClusterPatchVersionUpgradeRollbackHistoryProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterUpgradeHistoryProperties>
public final class ClusterPatchVersionUpgradeRollbackHistoryProperties
extends ClusterInPlaceUpgradeHistoryProperties
Cluster patch version upgrade rollback history properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterPatchVersionUpgradeRollbackHistoryProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterPatchVersionUpgradeRollbackHistoryProperties 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
-
ClusterPatchVersionUpgradeRollbackHistoryProperties
public ClusterPatchVersionUpgradeRollbackHistoryProperties()Creates an instance of ClusterPatchVersionUpgradeRollbackHistoryProperties class.
-
-
Method Details
-
upgradeType
Get the upgradeType property: Type of upgrade.- Overrides:
upgradeTypein classClusterInPlaceUpgradeHistoryProperties- Returns:
- the upgradeType value.
-
withSourceClusterVersion
public ClusterPatchVersionUpgradeRollbackHistoryProperties 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
public ClusterPatchVersionUpgradeRollbackHistoryProperties withSourceOssVersion(String sourceOssVersion) Set the sourceOssVersion property: Version with three part.- Overrides:
withSourceOssVersionin classClusterInPlaceUpgradeHistoryProperties- Parameters:
sourceOssVersion- the sourceOssVersion value to set.- Returns:
- the ClusterInPlaceUpgradeHistoryProperties object itself.
-
withSourceBuildNumber
public ClusterPatchVersionUpgradeRollbackHistoryProperties withSourceBuildNumber(String sourceBuildNumber) Set the sourceBuildNumber property: Source build number.- Overrides:
withSourceBuildNumberin classClusterInPlaceUpgradeHistoryProperties- Parameters:
sourceBuildNumber- the sourceBuildNumber value to set.- Returns:
- the ClusterInPlaceUpgradeHistoryProperties object itself.
-
withTargetClusterVersion
public ClusterPatchVersionUpgradeRollbackHistoryProperties 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
public ClusterPatchVersionUpgradeRollbackHistoryProperties withTargetOssVersion(String targetOssVersion) Set the targetOssVersion property: Version with three part.- Overrides:
withTargetOssVersionin classClusterInPlaceUpgradeHistoryProperties- Parameters:
targetOssVersion- the targetOssVersion value to set.- Returns:
- the ClusterInPlaceUpgradeHistoryProperties object itself.
-
withTargetBuildNumber
public ClusterPatchVersionUpgradeRollbackHistoryProperties withTargetBuildNumber(String targetBuildNumber) 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 ClusterPatchVersionUpgradeRollbackHistoryProperties 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 ClusterPatchVersionUpgradeRollbackHistoryProperties 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 ClusterPatchVersionUpgradeRollbackHistoryProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ClusterPatchVersionUpgradeRollbackHistoryProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ClusterPatchVersionUpgradeRollbackHistoryProperties 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 ClusterPatchVersionUpgradeRollbackHistoryProperties.
-