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 Details

    • ClusterPoolVersionProperties

      public ClusterPoolVersionProperties()
      Creates an instance of ClusterPoolVersionProperties class.
  • Method Details

    • clusterPoolVersion

      public String clusterPoolVersion()
      Get the clusterPoolVersion property: Cluster pool version is a 2-part version.
      Returns:
      the clusterPoolVersion value.
    • withClusterPoolVersion

      public ClusterPoolVersionProperties withClusterPoolVersion(String clusterPoolVersion)
      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

      public String aksVersion()
      Get the aksVersion property: AKS version.
      Returns:
      the aksVersion value.
    • withAksVersion

      public ClusterPoolVersionProperties withAksVersion(String aksVersion)
      Set the aksVersion property: AKS version.
      Parameters:
      aksVersion - the aksVersion value to set.
      Returns:
      the ClusterPoolVersionProperties object itself.
    • isPreview

      public Boolean isPreview()
      Get the isPreview property: Indicate if this version is in preview or not.
      Returns:
      the isPreview value.
    • withIsPreview

      public ClusterPoolVersionProperties withIsPreview(Boolean isPreview)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.