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