Class TargetUtilizationScaleSettings


  • public final class TargetUtilizationScaleSettings
    extends OnlineScaleSettings
    The TargetUtilizationScaleSettings model.
    • Constructor Detail

      • TargetUtilizationScaleSettings

        public TargetUtilizationScaleSettings()
    • Method Detail

      • maxInstances

        public Integer maxInstances()
        Get the maxInstances property: The maximum number of instances that the deployment can scale to. The quota will be reserved for max_instances.
        Returns:
        the maxInstances value.
      • withMaxInstances

        public TargetUtilizationScaleSettings withMaxInstances​(Integer maxInstances)
        Set the maxInstances property: The maximum number of instances that the deployment can scale to. The quota will be reserved for max_instances.
        Parameters:
        maxInstances - the maxInstances value to set.
        Returns:
        the TargetUtilizationScaleSettings object itself.
      • minInstances

        public Integer minInstances()
        Get the minInstances property: The minimum number of instances to always be present.
        Returns:
        the minInstances value.
      • withMinInstances

        public TargetUtilizationScaleSettings withMinInstances​(Integer minInstances)
        Set the minInstances property: The minimum number of instances to always be present.
        Parameters:
        minInstances - the minInstances value to set.
        Returns:
        the TargetUtilizationScaleSettings object itself.
      • pollingInterval

        public Duration pollingInterval()
        Get the pollingInterval property: The polling interval in ISO 8691 format. Only supports duration with precision as low as Seconds.
        Returns:
        the pollingInterval value.
      • withPollingInterval

        public TargetUtilizationScaleSettings withPollingInterval​(Duration pollingInterval)
        Set the pollingInterval property: The polling interval in ISO 8691 format. Only supports duration with precision as low as Seconds.
        Parameters:
        pollingInterval - the pollingInterval value to set.
        Returns:
        the TargetUtilizationScaleSettings object itself.
      • targetUtilizationPercentage

        public Integer targetUtilizationPercentage()
        Get the targetUtilizationPercentage property: Target CPU usage for the autoscaler.
        Returns:
        the targetUtilizationPercentage value.
      • withTargetUtilizationPercentage

        public TargetUtilizationScaleSettings withTargetUtilizationPercentage​(Integer targetUtilizationPercentage)
        Set the targetUtilizationPercentage property: Target CPU usage for the autoscaler.
        Parameters:
        targetUtilizationPercentage - the targetUtilizationPercentage value to set.
        Returns:
        the TargetUtilizationScaleSettings object itself.