Class ClusterProfile

java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterProfile
All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterProfile>

public final class ClusterProfile extends Object implements com.azure.json.JsonSerializable<ClusterProfile>
Cluster profile.
  • Constructor Details

    • ClusterProfile

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

    • clusterVersion

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

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

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

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

      public List<ClusterComponentsItem> components()
      Get the components property: Component list of this cluster type and version.
      Returns:
      the components value.
    • identityProfile

      public IdentityProfile identityProfile()
      Get the identityProfile property: This is deprecated. Please use managed identity profile instead.
      Returns:
      the identityProfile value.
    • withIdentityProfile

      public ClusterProfile withIdentityProfile(IdentityProfile identityProfile)
      Set the identityProfile property: This is deprecated. Please use managed identity profile instead.
      Parameters:
      identityProfile - the identityProfile value to set.
      Returns:
      the ClusterProfile object itself.
    • managedIdentityProfile

      public ManagedIdentityProfile managedIdentityProfile()
      Get the managedIdentityProfile property: This property is required by Trino, Spark and Flink cluster but is optional for Kafka cluster.
      Returns:
      the managedIdentityProfile value.
    • withManagedIdentityProfile

      public ClusterProfile withManagedIdentityProfile(ManagedIdentityProfile managedIdentityProfile)
      Set the managedIdentityProfile property: This property is required by Trino, Spark and Flink cluster but is optional for Kafka cluster.
      Parameters:
      managedIdentityProfile - the managedIdentityProfile value to set.
      Returns:
      the ClusterProfile object itself.
    • authorizationProfile

      public AuthorizationProfile authorizationProfile()
      Get the authorizationProfile property: Authorization profile with details of AAD user Ids and group Ids authorized for data plane access.
      Returns:
      the authorizationProfile value.
    • withAuthorizationProfile

      public ClusterProfile withAuthorizationProfile(AuthorizationProfile authorizationProfile)
      Set the authorizationProfile property: Authorization profile with details of AAD user Ids and group Ids authorized for data plane access.
      Parameters:
      authorizationProfile - the authorizationProfile value to set.
      Returns:
      the ClusterProfile object itself.
    • secretsProfile

      public SecretsProfile secretsProfile()
      Get the secretsProfile property: The cluster secret profile.
      Returns:
      the secretsProfile value.
    • withSecretsProfile

      public ClusterProfile withSecretsProfile(SecretsProfile secretsProfile)
      Set the secretsProfile property: The cluster secret profile.
      Parameters:
      secretsProfile - the secretsProfile value to set.
      Returns:
      the ClusterProfile object itself.
    • serviceConfigsProfiles

      public List<ClusterServiceConfigsProfile> serviceConfigsProfiles()
      Get the serviceConfigsProfiles property: The service configs profiles.
      Returns:
      the serviceConfigsProfiles value.
    • withServiceConfigsProfiles

      public ClusterProfile withServiceConfigsProfiles(List<ClusterServiceConfigsProfile> serviceConfigsProfiles)
      Set the serviceConfigsProfiles property: The service configs profiles.
      Parameters:
      serviceConfigsProfiles - the serviceConfigsProfiles value to set.
      Returns:
      the ClusterProfile object itself.
    • connectivityProfile

      public ConnectivityProfile connectivityProfile()
      Get the connectivityProfile property: Cluster connectivity profile.
      Returns:
      the connectivityProfile value.
    • clusterAccessProfile

      public ClusterAccessProfile clusterAccessProfile()
      Get the clusterAccessProfile property: Cluster access profile.
      Returns:
      the clusterAccessProfile value.
    • withClusterAccessProfile

      public ClusterProfile withClusterAccessProfile(ClusterAccessProfile clusterAccessProfile)
      Set the clusterAccessProfile property: Cluster access profile.
      Parameters:
      clusterAccessProfile - the clusterAccessProfile value to set.
      Returns:
      the ClusterProfile object itself.
    • logAnalyticsProfile

      public ClusterLogAnalyticsProfile logAnalyticsProfile()
      Get the logAnalyticsProfile property: Cluster log analytics profile to enable or disable OMS agent for cluster.
      Returns:
      the logAnalyticsProfile value.
    • withLogAnalyticsProfile

      public ClusterProfile withLogAnalyticsProfile(ClusterLogAnalyticsProfile logAnalyticsProfile)
      Set the logAnalyticsProfile property: Cluster log analytics profile to enable or disable OMS agent for cluster.
      Parameters:
      logAnalyticsProfile - the logAnalyticsProfile value to set.
      Returns:
      the ClusterProfile object itself.
    • prometheusProfile

      public ClusterPrometheusProfile prometheusProfile()
      Get the prometheusProfile property: Cluster Prometheus profile.
      Returns:
      the prometheusProfile value.
    • withPrometheusProfile

      public ClusterProfile withPrometheusProfile(ClusterPrometheusProfile prometheusProfile)
      Set the prometheusProfile property: Cluster Prometheus profile.
      Parameters:
      prometheusProfile - the prometheusProfile value to set.
      Returns:
      the ClusterProfile object itself.
    • sshProfile

      public SshProfile sshProfile()
      Get the sshProfile property: Ssh profile for the cluster.
      Returns:
      the sshProfile value.
    • withSshProfile

      public ClusterProfile withSshProfile(SshProfile sshProfile)
      Set the sshProfile property: Ssh profile for the cluster.
      Parameters:
      sshProfile - the sshProfile value to set.
      Returns:
      the ClusterProfile object itself.
    • autoscaleProfile

      public AutoscaleProfile autoscaleProfile()
      Get the autoscaleProfile property: This is the Autoscale profile for the cluster. This will allow customer to create cluster enabled with Autoscale.
      Returns:
      the autoscaleProfile value.
    • withAutoscaleProfile

      public ClusterProfile withAutoscaleProfile(AutoscaleProfile autoscaleProfile)
      Set the autoscaleProfile property: This is the Autoscale profile for the cluster. This will allow customer to create cluster enabled with Autoscale.
      Parameters:
      autoscaleProfile - the autoscaleProfile value to set.
      Returns:
      the ClusterProfile object itself.
    • rangerPluginProfile

      public ClusterRangerPluginProfile rangerPluginProfile()
      Get the rangerPluginProfile property: Cluster Ranger plugin profile.
      Returns:
      the rangerPluginProfile value.
    • withRangerPluginProfile

      public ClusterProfile withRangerPluginProfile(ClusterRangerPluginProfile rangerPluginProfile)
      Set the rangerPluginProfile property: Cluster Ranger plugin profile.
      Parameters:
      rangerPluginProfile - the rangerPluginProfile value to set.
      Returns:
      the ClusterProfile object itself.
    • kafkaProfile

      public KafkaProfile kafkaProfile()
      Get the kafkaProfile property: The Kafka cluster profile.
      Returns:
      the kafkaProfile value.
    • withKafkaProfile

      public ClusterProfile withKafkaProfile(KafkaProfile kafkaProfile)
      Set the kafkaProfile property: The Kafka cluster profile.
      Parameters:
      kafkaProfile - the kafkaProfile value to set.
      Returns:
      the ClusterProfile object itself.
    • trinoProfile

      public TrinoProfile trinoProfile()
      Get the trinoProfile property: Trino Cluster profile.
      Returns:
      the trinoProfile value.
    • withTrinoProfile

      public ClusterProfile withTrinoProfile(TrinoProfile trinoProfile)
      Set the trinoProfile property: Trino Cluster profile.
      Parameters:
      trinoProfile - the trinoProfile value to set.
      Returns:
      the ClusterProfile object itself.
    • llapProfile

      public Map<String,Object> llapProfile()
      Get the llapProfile property: LLAP cluster profile.
      Returns:
      the llapProfile value.
    • withLlapProfile

      public ClusterProfile withLlapProfile(Map<String,Object> llapProfile)
      Set the llapProfile property: LLAP cluster profile.
      Parameters:
      llapProfile - the llapProfile value to set.
      Returns:
      the ClusterProfile object itself.
    • flinkProfile

      public FlinkProfile flinkProfile()
      Get the flinkProfile property: The Flink cluster profile.
      Returns:
      the flinkProfile value.
    • withFlinkProfile

      public ClusterProfile withFlinkProfile(FlinkProfile flinkProfile)
      Set the flinkProfile property: The Flink cluster profile.
      Parameters:
      flinkProfile - the flinkProfile value to set.
      Returns:
      the ClusterProfile object itself.
    • sparkProfile

      public SparkProfile sparkProfile()
      Get the sparkProfile property: The spark cluster profile.
      Returns:
      the sparkProfile value.
    • withSparkProfile

      public ClusterProfile withSparkProfile(SparkProfile sparkProfile)
      Set the sparkProfile property: The spark cluster profile.
      Parameters:
      sparkProfile - the sparkProfile value to set.
      Returns:
      the ClusterProfile object itself.
    • rangerProfile

      public RangerProfile rangerProfile()
      Get the rangerProfile property: The ranger cluster profile.
      Returns:
      the rangerProfile value.
    • withRangerProfile

      public ClusterProfile withRangerProfile(RangerProfile rangerProfile)
      Set the rangerProfile property: The ranger cluster profile.
      Parameters:
      rangerProfile - the rangerProfile value to set.
      Returns:
      the ClusterProfile object itself.
    • stubProfile

      public Map<String,Object> stubProfile()
      Get the stubProfile property: Stub cluster profile.
      Returns:
      the stubProfile value.
    • withStubProfile

      public ClusterProfile withStubProfile(Map<String,Object> stubProfile)
      Set the stubProfile property: Stub cluster profile.
      Parameters:
      stubProfile - the stubProfile value to set.
      Returns:
      the ClusterProfile object itself.
    • scriptActionProfiles

      public List<ScriptActionProfile> scriptActionProfiles()
      Get the scriptActionProfiles property: The script action profile list.
      Returns:
      the scriptActionProfiles value.
    • withScriptActionProfiles

      public ClusterProfile withScriptActionProfiles(List<ScriptActionProfile> scriptActionProfiles)
      Set the scriptActionProfiles property: The script action profile list.
      Parameters:
      scriptActionProfiles - the scriptActionProfiles value to set.
      Returns:
      the ClusterProfile 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<ClusterProfile>
      Throws:
      IOException
    • fromJson

      public static ClusterProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ClusterProfile from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ClusterProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ClusterProfile.