Class OptimizedAutoscale


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

      • OptimizedAutoscale

        public OptimizedAutoscale()
    • Method Detail

      • 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.