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 Details

    • ClusterVersionProperties

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

    • clusterType

      public String clusterType()
      Get the clusterType property: The type of cluster.
      Returns:
      the clusterType value.
    • withClusterType

      public ClusterVersionProperties withClusterType(String clusterType)
      Set the clusterType property: The type of cluster.
      Parameters:
      clusterType - the clusterType value to set.
      Returns:
      the ClusterVersionProperties object itself.
    • clusterVersion

      public String clusterVersion()
      Get the clusterVersion property: Version with three part.
      Returns:
      the clusterVersion value.
    • withClusterVersion

      public ClusterVersionProperties withClusterVersion(String clusterVersion)
      Set the clusterVersion property: Version with three part.
      Parameters:
      clusterVersion - the clusterVersion value to set.
      Returns:
      the ClusterVersionProperties object itself.
    • ossVersion

      public String ossVersion()
      Get the ossVersion property: Version with three part.
      Returns:
      the ossVersion value.
    • withOssVersion

      public ClusterVersionProperties withOssVersion(String ossVersion)
      Set the ossVersion property: Version with three part.
      Parameters:
      ossVersion - the ossVersion value to set.
      Returns:
      the ClusterVersionProperties object itself.
    • clusterPoolVersion

      public String 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

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

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

      public ClusterVersionProperties 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 ClusterVersionProperties object itself.
    • components

      public List<ClusterComponentsItem> 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

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