Class ClusterInPlaceUpgradeProperties
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterUpgradeProperties
com.azure.resourcemanager.hdinsight.containers.models.ClusterInPlaceUpgradeProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterUpgradeProperties>
- Direct Known Subclasses:
ClusterHotfixUpgradeProperties, ClusterPatchVersionUpgradeProperties
Properties of in-place upgrading cluster.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterInPlaceUpgradeProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the componentName property: Name of component to be upgraded.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterInPlaceUpgradeProperties from the JsonReader.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.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
-
ClusterInPlaceUpgradeProperties
public ClusterInPlaceUpgradeProperties()Creates an instance of ClusterInPlaceUpgradeProperties class.
-
-
Method Details
-
upgradeType
Get the upgradeType property: Type of upgrade.- Overrides:
upgradeTypein classClusterUpgradeProperties- Returns:
- the upgradeType value.
-
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 ClusterInPlaceUpgradeProperties object itself.
-
targetClusterVersion
Get the targetClusterVersion property: Target cluster version of component to be upgraded.- Returns:
- the targetClusterVersion value.
-
withTargetClusterVersion
Set the targetClusterVersion property: Target cluster version of component to be upgraded.- Parameters:
targetClusterVersion- the targetClusterVersion value to set.- Returns:
- the ClusterInPlaceUpgradeProperties 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 ClusterInPlaceUpgradeProperties 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 ClusterInPlaceUpgradeProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classClusterUpgradeProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ClusterUpgradeProperties>- Overrides:
toJsonin classClusterUpgradeProperties- Throws:
IOException
-
fromJson
public static ClusterInPlaceUpgradeProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ClusterInPlaceUpgradeProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ClusterInPlaceUpgradeProperties 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 ClusterInPlaceUpgradeProperties.
-