Class ClusterAvailableInPlaceUpgradeProperties
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterAvailableUpgradeProperties
com.azure.resourcemanager.hdinsight.containers.models.ClusterAvailableInPlaceUpgradeProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterAvailableUpgradeProperties>
- Direct Known Subclasses:
ClusterAvailableUpgradeHotfixUpgradeProperties, ClusterAvailableUpgradePatchVersionUpgradeProperties
Cluster available in-place upgrade.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterAvailableInPlaceUpgradeProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the componentName property: Name of component to be upgraded.Get the createdTime property: Created time of current available upgrade version.Get the description property: Hotfix version upgrade description.Get the extendedProperties property: Extended properties of current available upgrade version.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterAvailableInPlaceUpgradeProperties from the JsonReader.severity()Get the severity property: Severity of this upgrade.Get the sourceBuildNumber property: Source build number of current cluster component.Get the sourceClusterVersion property: Source cluster version of current cluster component.Get the sourceOssVersion property: Source OSS version of current cluster component.Get the targetBuildNumber property: Target build number of component to be upgraded.Get the targetClusterVersion property: Target cluster version of component to be upgraded.Get the targetOssVersion property: Target OSS version of component to be upgraded.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 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
-
ClusterAvailableInPlaceUpgradeProperties
public ClusterAvailableInPlaceUpgradeProperties()Creates an instance of ClusterAvailableInPlaceUpgradeProperties class.
-
-
Method Details
-
upgradeType
Get the upgradeType property: Type of upgrade.- Overrides:
upgradeTypein classClusterAvailableUpgradeProperties- Returns:
- the upgradeType value.
-
description
Get the description property: Hotfix version upgrade description.- Returns:
- the description value.
-
withDescription
Set the description property: Hotfix version upgrade description.- Parameters:
description- the description value to set.- Returns:
- the ClusterAvailableInPlaceUpgradeProperties object itself.
-
sourceOssVersion
Get the sourceOssVersion property: Source OSS version of current cluster component.- Returns:
- the sourceOssVersion value.
-
withSourceOssVersion
Set the sourceOssVersion property: Source OSS version of current cluster component.- Parameters:
sourceOssVersion- the sourceOssVersion value to set.- Returns:
- the ClusterAvailableInPlaceUpgradeProperties object itself.
-
sourceClusterVersion
Get the sourceClusterVersion property: Source cluster version of current cluster component.- Returns:
- the sourceClusterVersion value.
-
withSourceClusterVersion
public ClusterAvailableInPlaceUpgradeProperties withSourceClusterVersion(String sourceClusterVersion) Set the sourceClusterVersion property: Source cluster version of current cluster component.- Parameters:
sourceClusterVersion- the sourceClusterVersion value to set.- Returns:
- the ClusterAvailableInPlaceUpgradeProperties object itself.
-
sourceBuildNumber
Get the sourceBuildNumber property: Source build number of current cluster component.- Returns:
- the sourceBuildNumber value.
-
withSourceBuildNumber
Set the sourceBuildNumber property: Source build number of current cluster component.- Parameters:
sourceBuildNumber- the sourceBuildNumber value to set.- Returns:
- the ClusterAvailableInPlaceUpgradeProperties object itself.
-
targetOssVersion
Get the targetOssVersion property: Target OSS version of component to be upgraded.- Returns:
- the targetOssVersion value.
-
withTargetOssVersion
Set the targetOssVersion property: Target OSS version of component to be upgraded.- Parameters:
targetOssVersion- the targetOssVersion value to set.- Returns:
- the ClusterAvailableInPlaceUpgradeProperties object itself.
-
targetClusterVersion
Get the targetClusterVersion property: Target cluster version of component to be upgraded.- Returns:
- the targetClusterVersion value.
-
withTargetClusterVersion
public ClusterAvailableInPlaceUpgradeProperties withTargetClusterVersion(String targetClusterVersion) Set the targetClusterVersion property: Target cluster version of component to be upgraded.- Parameters:
targetClusterVersion- the targetClusterVersion value to set.- Returns:
- the ClusterAvailableInPlaceUpgradeProperties object itself.
-
targetBuildNumber
Get the targetBuildNumber property: Target build number of component to be upgraded.- Returns:
- the targetBuildNumber value.
-
withTargetBuildNumber
Set the targetBuildNumber property: Target build number of component to be upgraded.- Parameters:
targetBuildNumber- the targetBuildNumber value to set.- Returns:
- the ClusterAvailableInPlaceUpgradeProperties object itself.
-
componentName
Get the componentName property: Name of component to be upgraded.- Returns:
- the componentName value.
-
withComponentName
Set the componentName property: Name of component to be upgraded.- Parameters:
componentName- the componentName value to set.- Returns:
- the ClusterAvailableInPlaceUpgradeProperties object itself.
-
severity
Get the severity property: Severity of this upgrade.- Returns:
- the severity value.
-
withSeverity
Set the severity property: Severity of this upgrade.- Parameters:
severity- the severity value to set.- Returns:
- the ClusterAvailableInPlaceUpgradeProperties object itself.
-
extendedProperties
Get the extendedProperties property: Extended properties of current available upgrade version.- Returns:
- the extendedProperties value.
-
withExtendedProperties
Set the extendedProperties property: Extended properties of current available upgrade version.- Parameters:
extendedProperties- the extendedProperties value to set.- Returns:
- the ClusterAvailableInPlaceUpgradeProperties object itself.
-
createdTime
Get the createdTime property: Created time of current available upgrade version.- Returns:
- the createdTime value.
-
withCreatedTime
Set the createdTime property: Created time of current available upgrade version.- Parameters:
createdTime- the createdTime value to set.- Returns:
- the ClusterAvailableInPlaceUpgradeProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classClusterAvailableUpgradeProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ClusterAvailableUpgradeProperties>- Overrides:
toJsonin classClusterAvailableUpgradeProperties- Throws:
IOException
-
fromJson
public static ClusterAvailableInPlaceUpgradeProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ClusterAvailableInPlaceUpgradeProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ClusterAvailableInPlaceUpgradeProperties 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 ClusterAvailableInPlaceUpgradeProperties.
-