Interface AutoScalingConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AutoScalingConfiguration.Builder,AutoScalingConfiguration>,SdkBuilder<AutoScalingConfiguration.Builder,AutoScalingConfiguration>,SdkPojo
- Enclosing class:
- AutoScalingConfiguration
public static interface AutoScalingConfiguration.Builder extends SdkPojo, CopyableBuilder<AutoScalingConfiguration.Builder,AutoScalingConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AutoScalingConfiguration.BuilderautoScalingMetric(String autoScalingMetric)The metric your cluster will track in order to scale in and out.AutoScalingConfiguration.BuilderautoScalingMetric(AutoScalingMetric autoScalingMetric)The metric your cluster will track in order to scale in and out.AutoScalingConfiguration.BuildermaxNodeCount(Integer maxNodeCount)The highest number of nodes to scale.AutoScalingConfiguration.BuildermetricTarget(Double metricTarget)The desired value of the chosenautoScalingMetric.AutoScalingConfiguration.BuilderminNodeCount(Integer minNodeCount)The lowest number of nodes to scale.AutoScalingConfiguration.BuilderscaleInCooldownSeconds(Double scaleInCooldownSeconds)The duration in seconds that FinSpace will wait after a scale in event before initiating another scaling event.AutoScalingConfiguration.BuilderscaleOutCooldownSeconds(Double scaleOutCooldownSeconds)The duration in seconds that FinSpace will wait after a scale out event before initiating another scaling event.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
minNodeCount
AutoScalingConfiguration.Builder minNodeCount(Integer minNodeCount)
The lowest number of nodes to scale. This value must be at least 1 and less than the
maxNodeCount. If the nodes in a cluster belong to multiple availability zones, thenminNodeCountmust be at least 3.- Parameters:
minNodeCount- The lowest number of nodes to scale. This value must be at least 1 and less than themaxNodeCount. If the nodes in a cluster belong to multiple availability zones, thenminNodeCountmust be at least 3.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxNodeCount
AutoScalingConfiguration.Builder maxNodeCount(Integer maxNodeCount)
The highest number of nodes to scale. This value cannot be greater than 5.
- Parameters:
maxNodeCount- The highest number of nodes to scale. This value cannot be greater than 5.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoScalingMetric
AutoScalingConfiguration.Builder autoScalingMetric(String autoScalingMetric)
The metric your cluster will track in order to scale in and out. For example,
CPU_UTILIZATION_PERCENTAGEis the average CPU usage across all the nodes in a cluster.- Parameters:
autoScalingMetric- The metric your cluster will track in order to scale in and out. For example,CPU_UTILIZATION_PERCENTAGEis the average CPU usage across all the nodes in a cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AutoScalingMetric,AutoScalingMetric
-
autoScalingMetric
AutoScalingConfiguration.Builder autoScalingMetric(AutoScalingMetric autoScalingMetric)
The metric your cluster will track in order to scale in and out. For example,
CPU_UTILIZATION_PERCENTAGEis the average CPU usage across all the nodes in a cluster.- Parameters:
autoScalingMetric- The metric your cluster will track in order to scale in and out. For example,CPU_UTILIZATION_PERCENTAGEis the average CPU usage across all the nodes in a cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AutoScalingMetric,AutoScalingMetric
-
metricTarget
AutoScalingConfiguration.Builder metricTarget(Double metricTarget)
The desired value of the chosen
autoScalingMetric. When the metric drops below this value, the cluster will scale in. When the metric goes above this value, the cluster will scale out. You can set the target value between 1 and 100 percent.- Parameters:
metricTarget- The desired value of the chosenautoScalingMetric. When the metric drops below this value, the cluster will scale in. When the metric goes above this value, the cluster will scale out. You can set the target value between 1 and 100 percent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scaleInCooldownSeconds
AutoScalingConfiguration.Builder scaleInCooldownSeconds(Double scaleInCooldownSeconds)
The duration in seconds that FinSpace will wait after a scale in event before initiating another scaling event.
- Parameters:
scaleInCooldownSeconds- The duration in seconds that FinSpace will wait after a scale in event before initiating another scaling event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scaleOutCooldownSeconds
AutoScalingConfiguration.Builder scaleOutCooldownSeconds(Double scaleOutCooldownSeconds)
The duration in seconds that FinSpace will wait after a scale out event before initiating another scaling event.
- Parameters:
scaleOutCooldownSeconds- The duration in seconds that FinSpace will wait after a scale out event before initiating another scaling event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-