Class AutoscaleProfile

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

public final class AutoscaleProfile extends Object implements com.azure.json.JsonSerializable<AutoscaleProfile>
This is the Autoscale profile for the cluster. This will allow customer to create cluster enabled with Autoscale.
  • Constructor Details

    • AutoscaleProfile

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

    • enabled

      public boolean enabled()
      Get the enabled property: This indicates whether auto scale is enabled on HDInsight on AKS cluster.
      Returns:
      the enabled value.
    • withEnabled

      public AutoscaleProfile withEnabled(boolean enabled)
      Set the enabled property: This indicates whether auto scale is enabled on HDInsight on AKS cluster.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the AutoscaleProfile object itself.
    • gracefulDecommissionTimeout

      public Integer gracefulDecommissionTimeout()
      Get the gracefulDecommissionTimeout property: This property is for graceful decommission timeout; It has a default setting of 3600 seconds before forced shutdown takes place. This is the maximal time to wait for running containers and applications to complete before transition a DECOMMISSIONING node into DECOMMISSIONED. The default value is 3600 seconds. Negative value (like -1) is handled as infinite timeout.
      Returns:
      the gracefulDecommissionTimeout value.
    • withGracefulDecommissionTimeout

      public AutoscaleProfile withGracefulDecommissionTimeout(Integer gracefulDecommissionTimeout)
      Set the gracefulDecommissionTimeout property: This property is for graceful decommission timeout; It has a default setting of 3600 seconds before forced shutdown takes place. This is the maximal time to wait for running containers and applications to complete before transition a DECOMMISSIONING node into DECOMMISSIONED. The default value is 3600 seconds. Negative value (like -1) is handled as infinite timeout.
      Parameters:
      gracefulDecommissionTimeout - the gracefulDecommissionTimeout value to set.
      Returns:
      the AutoscaleProfile object itself.
    • autoscaleType

      public AutoscaleType autoscaleType()
      Get the autoscaleType property: User to specify which type of Autoscale to be implemented - Scheduled Based or Load Based.
      Returns:
      the autoscaleType value.
    • withAutoscaleType

      public AutoscaleProfile withAutoscaleType(AutoscaleType autoscaleType)
      Set the autoscaleType property: User to specify which type of Autoscale to be implemented - Scheduled Based or Load Based.
      Parameters:
      autoscaleType - the autoscaleType value to set.
      Returns:
      the AutoscaleProfile object itself.
    • scheduleBasedConfig

      public ScheduleBasedConfig scheduleBasedConfig()
      Get the scheduleBasedConfig property: Profiles of schedule based Autoscale.
      Returns:
      the scheduleBasedConfig value.
    • withScheduleBasedConfig

      public AutoscaleProfile withScheduleBasedConfig(ScheduleBasedConfig scheduleBasedConfig)
      Set the scheduleBasedConfig property: Profiles of schedule based Autoscale.
      Parameters:
      scheduleBasedConfig - the scheduleBasedConfig value to set.
      Returns:
      the AutoscaleProfile object itself.
    • loadBasedConfig

      public LoadBasedConfig loadBasedConfig()
      Get the loadBasedConfig property: Profiles of load based Autoscale.
      Returns:
      the loadBasedConfig value.
    • withLoadBasedConfig

      public AutoscaleProfile withLoadBasedConfig(LoadBasedConfig loadBasedConfig)
      Set the loadBasedConfig property: Profiles of load based Autoscale.
      Parameters:
      loadBasedConfig - the loadBasedConfig value to set.
      Returns:
      the AutoscaleProfile 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<AutoscaleProfile>
      Throws:
      IOException
    • fromJson

      public static AutoscaleProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AutoscaleProfile from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AutoscaleProfile 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 AutoscaleProfile.