Class ClusterVersionProperties
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterVersionProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterVersionProperties>
public final class ClusterVersionProperties
extends Object
implements com.azure.json.JsonSerializable<ClusterVersionProperties>
Cluster version properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterVersionProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the clusterPoolVersion property: The two part cluster pool version.Get the clusterType property: The type of cluster.Get the clusterVersion property: Version with three part.Get the components property: Component list of this cluster type and version.static ClusterVersionPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterVersionProperties from the JsonReader.Get the isPreview property: Indicate if this version is in preview or not.Get the ossVersion property: Version with three part.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withClusterPoolVersion(String clusterPoolVersion) Set the clusterPoolVersion property: The two part cluster pool version.withClusterType(String clusterType) Set the clusterType property: The type of cluster.withClusterVersion(String clusterVersion) Set the clusterVersion property: Version with three part.withIsPreview(Boolean isPreview) Set the isPreview property: Indicate if this version is in preview or not.withOssVersion(String ossVersion) Set the ossVersion property: Version with three part.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
-
ClusterVersionProperties
public ClusterVersionProperties()Creates an instance of ClusterVersionProperties class.
-
-
Method Details
-
clusterType
Get the clusterType property: The type of cluster.- Returns:
- the clusterType value.
-
withClusterType
Set the clusterType property: The type of cluster.- Parameters:
clusterType- the clusterType value to set.- Returns:
- the ClusterVersionProperties object itself.
-
clusterVersion
Get the clusterVersion property: Version with three part.- Returns:
- the clusterVersion value.
-
withClusterVersion
Set the clusterVersion property: Version with three part.- Parameters:
clusterVersion- the clusterVersion value to set.- Returns:
- the ClusterVersionProperties object itself.
-
ossVersion
Get the ossVersion property: Version with three part.- Returns:
- the ossVersion value.
-
withOssVersion
Set the ossVersion property: Version with three part.- Parameters:
ossVersion- the ossVersion value to set.- Returns:
- the ClusterVersionProperties object itself.
-
clusterPoolVersion
Get the clusterPoolVersion property: The two part cluster pool version. If the cluster version is before cluster pool version on-board, the return value will be empty string.- Returns:
- the clusterPoolVersion value.
-
withClusterPoolVersion
Set the clusterPoolVersion property: The two part cluster pool version. If the cluster version is before cluster pool version on-board, the return value will be empty string.- Parameters:
clusterPoolVersion- the clusterPoolVersion value to set.- Returns:
- the ClusterVersionProperties object itself.
-
isPreview
Get the isPreview property: Indicate if this version is in preview or not.- Returns:
- the isPreview value.
-
withIsPreview
Set the isPreview property: Indicate if this version is in preview or not.- Parameters:
isPreview- the isPreview value to set.- Returns:
- the ClusterVersionProperties object itself.
-
components
Get the components property: Component list of this cluster type and version.- Returns:
- the components value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ClusterVersionProperties>- Throws:
IOException
-
fromJson
public static ClusterVersionProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ClusterVersionProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ClusterVersionProperties 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 ClusterVersionProperties.
-