Class ClusterAvailableUpgradePatchVersionUpgradeProperties
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterAvailableUpgradeProperties
com.azure.resourcemanager.hdinsight.containers.models.ClusterAvailableInPlaceUpgradeProperties
com.azure.resourcemanager.hdinsight.containers.models.ClusterAvailableUpgradePatchVersionUpgradeProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterAvailableUpgradeProperties>
public final class ClusterAvailableUpgradePatchVersionUpgradeProperties
extends ClusterAvailableInPlaceUpgradeProperties
Cluster available patch version upgrade.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterAvailableUpgradePatchVersionUpgradeProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterAvailableUpgradePatchVersionUpgradeProperties 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: Name of component to be upgraded.withCreatedTime(OffsetDateTime createdTime) Set the createdTime property: Created time of current available upgrade version.withDescription(String description) Set the description property: Hotfix version upgrade description.withExtendedProperties(String extendedProperties) Set the extendedProperties property: Extended properties of current available upgrade version.withSeverity(Severity severity) Set the severity property: Severity of this upgrade.withSourceBuildNumber(String sourceBuildNumber) Set the sourceBuildNumber property: Source build number of current cluster component.withSourceClusterVersion(String sourceClusterVersion) Set the sourceClusterVersion property: Source cluster version of current cluster component.withSourceOssVersion(String sourceOssVersion) Set the sourceOssVersion property: Source OSS version of current cluster component.withTargetBuildNumber(String targetBuildNumber) Set the targetBuildNumber property: Target build number of component to be upgraded.withTargetClusterVersion(String targetClusterVersion) Set the targetClusterVersion property: Target cluster version of component to be upgraded.withTargetOssVersion(String targetOssVersion) Set the targetOssVersion property: Target OSS version of component to be upgraded.Methods inherited from class ClusterAvailableInPlaceUpgradeProperties
componentName, createdTime, description, extendedProperties, severity, sourceBuildNumber, sourceClusterVersion, sourceOssVersion, targetBuildNumber, targetClusterVersion, targetOssVersionMethods 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
-
ClusterAvailableUpgradePatchVersionUpgradeProperties
public ClusterAvailableUpgradePatchVersionUpgradeProperties()Creates an instance of ClusterAvailableUpgradePatchVersionUpgradeProperties class.
-
-
Method Details
-
upgradeType
Get the upgradeType property: Type of upgrade.- Overrides:
upgradeTypein classClusterAvailableInPlaceUpgradeProperties- Returns:
- the upgradeType value.
-
withDescription
Set the description property: Hotfix version upgrade description.- Overrides:
withDescriptionin classClusterAvailableInPlaceUpgradeProperties- Parameters:
description- the description value to set.- Returns:
- the ClusterAvailableInPlaceUpgradeProperties object itself.
-
withSourceOssVersion
public ClusterAvailableUpgradePatchVersionUpgradeProperties withSourceOssVersion(String sourceOssVersion) Set the sourceOssVersion property: Source OSS version of current cluster component.- Overrides:
withSourceOssVersionin classClusterAvailableInPlaceUpgradeProperties- Parameters:
sourceOssVersion- the sourceOssVersion value to set.- Returns:
- the ClusterAvailableInPlaceUpgradeProperties object itself.
-
withSourceClusterVersion
public ClusterAvailableUpgradePatchVersionUpgradeProperties withSourceClusterVersion(String sourceClusterVersion) Set the sourceClusterVersion property: Source cluster version of current cluster component.- Overrides:
withSourceClusterVersionin classClusterAvailableInPlaceUpgradeProperties- Parameters:
sourceClusterVersion- the sourceClusterVersion value to set.- Returns:
- the ClusterAvailableInPlaceUpgradeProperties object itself.
-
withSourceBuildNumber
public ClusterAvailableUpgradePatchVersionUpgradeProperties withSourceBuildNumber(String sourceBuildNumber) Set the sourceBuildNumber property: Source build number of current cluster component.- Overrides:
withSourceBuildNumberin classClusterAvailableInPlaceUpgradeProperties- Parameters:
sourceBuildNumber- the sourceBuildNumber value to set.- Returns:
- the ClusterAvailableInPlaceUpgradeProperties object itself.
-
withTargetOssVersion
public ClusterAvailableUpgradePatchVersionUpgradeProperties withTargetOssVersion(String targetOssVersion) Set the targetOssVersion property: Target OSS version of component to be upgraded.- Overrides:
withTargetOssVersionin classClusterAvailableInPlaceUpgradeProperties- Parameters:
targetOssVersion- the targetOssVersion value to set.- Returns:
- the ClusterAvailableInPlaceUpgradeProperties object itself.
-
withTargetClusterVersion
public ClusterAvailableUpgradePatchVersionUpgradeProperties withTargetClusterVersion(String targetClusterVersion) Set the targetClusterVersion property: Target cluster version of component to be upgraded.- Overrides:
withTargetClusterVersionin classClusterAvailableInPlaceUpgradeProperties- Parameters:
targetClusterVersion- the targetClusterVersion value to set.- Returns:
- the ClusterAvailableInPlaceUpgradeProperties object itself.
-
withTargetBuildNumber
public ClusterAvailableUpgradePatchVersionUpgradeProperties withTargetBuildNumber(String targetBuildNumber) Set the targetBuildNumber property: Target build number of component to be upgraded.- Overrides:
withTargetBuildNumberin classClusterAvailableInPlaceUpgradeProperties- Parameters:
targetBuildNumber- the targetBuildNumber value to set.- Returns:
- the ClusterAvailableInPlaceUpgradeProperties object itself.
-
withComponentName
Set the componentName property: Name of component to be upgraded.- Overrides:
withComponentNamein classClusterAvailableInPlaceUpgradeProperties- Parameters:
componentName- the componentName value to set.- Returns:
- the ClusterAvailableInPlaceUpgradeProperties object itself.
-
withSeverity
Set the severity property: Severity of this upgrade.- Overrides:
withSeverityin classClusterAvailableInPlaceUpgradeProperties- Parameters:
severity- the severity value to set.- Returns:
- the ClusterAvailableInPlaceUpgradeProperties object itself.
-
withExtendedProperties
public ClusterAvailableUpgradePatchVersionUpgradeProperties withExtendedProperties(String extendedProperties) Set the extendedProperties property: Extended properties of current available upgrade version.- Overrides:
withExtendedPropertiesin classClusterAvailableInPlaceUpgradeProperties- Parameters:
extendedProperties- the extendedProperties value to set.- Returns:
- the ClusterAvailableInPlaceUpgradeProperties object itself.
-
withCreatedTime
public ClusterAvailableUpgradePatchVersionUpgradeProperties withCreatedTime(OffsetDateTime createdTime) Set the createdTime property: Created time of current available upgrade version.- Overrides:
withCreatedTimein classClusterAvailableInPlaceUpgradeProperties- Parameters:
createdTime- the createdTime value to set.- Returns:
- the ClusterAvailableInPlaceUpgradeProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classClusterAvailableInPlaceUpgradeProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ClusterAvailableUpgradeProperties>- Overrides:
toJsonin classClusterAvailableInPlaceUpgradeProperties- Throws:
IOException
-
fromJson
public static ClusterAvailableUpgradePatchVersionUpgradeProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ClusterAvailableUpgradePatchVersionUpgradeProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ClusterAvailableUpgradePatchVersionUpgradeProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ClusterAvailableUpgradePatchVersionUpgradeProperties.
-