Class ClusterPoolVersionProperties
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolVersionProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterPoolVersionProperties>
public final class ClusterPoolVersionProperties
extends Object
implements com.azure.json.JsonSerializable<ClusterPoolVersionProperties>
Cluster pool version properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterPoolVersionProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the aksVersion property: AKS version.Get the clusterPoolVersion property: Cluster pool version is a 2-part version.static ClusterPoolVersionPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterPoolVersionProperties from the JsonReader.Get the isPreview property: Indicate if this version is in preview or not.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAksVersion(String aksVersion) Set the aksVersion property: AKS version.withClusterPoolVersion(String clusterPoolVersion) Set the clusterPoolVersion property: Cluster pool version is a 2-part version.withIsPreview(Boolean isPreview) Set the isPreview property: Indicate if this version is in preview or not.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
-
ClusterPoolVersionProperties
public ClusterPoolVersionProperties()Creates an instance of ClusterPoolVersionProperties class.
-
-
Method Details
-
clusterPoolVersion
Get the clusterPoolVersion property: Cluster pool version is a 2-part version.- Returns:
- the clusterPoolVersion value.
-
withClusterPoolVersion
Set the clusterPoolVersion property: Cluster pool version is a 2-part version.- Parameters:
clusterPoolVersion- the clusterPoolVersion value to set.- Returns:
- the ClusterPoolVersionProperties object itself.
-
aksVersion
-
withAksVersion
Set the aksVersion property: AKS version.- Parameters:
aksVersion- the aksVersion value to set.- Returns:
- the ClusterPoolVersionProperties 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 ClusterPoolVersionProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ClusterPoolVersionProperties>- Throws:
IOException
-
fromJson
public static ClusterPoolVersionProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ClusterPoolVersionProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ClusterPoolVersionProperties 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 ClusterPoolVersionProperties.
-