Class OptimizedAutoscale

java.lang.Object
com.azure.resourcemanager.synapse.models.OptimizedAutoscale

public final class OptimizedAutoscale extends Object
A class that contains the optimized auto scale definition.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of OptimizedAutoscale class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Get the isEnabled property: A boolean value that indicate if the optimized autoscale feature is enabled or not.
    int
    Get the maximum property: Maximum allowed instances count.
    int
    Get the minimum property: Minimum allowed instances count.
    void
    Validates the instance.
    int
    Get the version property: The version of the template defined, for instance 1.
    withIsEnabled(boolean isEnabled)
    Set the isEnabled property: A boolean value that indicate if the optimized autoscale feature is enabled or not.
    withMaximum(int maximum)
    Set the maximum property: Maximum allowed instances count.
    withMinimum(int minimum)
    Set the minimum property: Minimum allowed instances count.
    withVersion(int version)
    Set the version property: The version of the template defined, for instance 1.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OptimizedAutoscale

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

    • version

      public int version()
      Get the version property: The version of the template defined, for instance 1.
      Returns:
      the version value.
    • withVersion

      public OptimizedAutoscale withVersion(int version)
      Set the version property: The version of the template defined, for instance 1.
      Parameters:
      version - the version value to set.
      Returns:
      the OptimizedAutoscale object itself.
    • isEnabled

      public boolean isEnabled()
      Get the isEnabled property: A boolean value that indicate if the optimized autoscale feature is enabled or not.
      Returns:
      the isEnabled value.
    • withIsEnabled

      public OptimizedAutoscale withIsEnabled(boolean isEnabled)
      Set the isEnabled property: A boolean value that indicate if the optimized autoscale feature is enabled or not.
      Parameters:
      isEnabled - the isEnabled value to set.
      Returns:
      the OptimizedAutoscale object itself.
    • minimum

      public int minimum()
      Get the minimum property: Minimum allowed instances count.
      Returns:
      the minimum value.
    • withMinimum

      public OptimizedAutoscale withMinimum(int minimum)
      Set the minimum property: Minimum allowed instances count.
      Parameters:
      minimum - the minimum value to set.
      Returns:
      the OptimizedAutoscale object itself.
    • maximum

      public int maximum()
      Get the maximum property: Maximum allowed instances count.
      Returns:
      the maximum value.
    • withMaximum

      public OptimizedAutoscale withMaximum(int maximum)
      Set the maximum property: Maximum allowed instances count.
      Parameters:
      maximum - the maximum value to set.
      Returns:
      the OptimizedAutoscale object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.