Interface LoadBasedAutoScalingConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LoadBasedAutoScalingConfiguration.Builder,
,LoadBasedAutoScalingConfiguration> SdkBuilder<LoadBasedAutoScalingConfiguration.Builder,
,LoadBasedAutoScalingConfiguration> SdkPojo
- Enclosing class:
LoadBasedAutoScalingConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondownScaling
(Consumer<AutoScalingThresholds.Builder> downScaling) AnAutoScalingThresholds
object that describes the downscaling configuration, which defines how and when OpsWorks Stacks reduces the number of instances.downScaling
(AutoScalingThresholds downScaling) AnAutoScalingThresholds
object that describes the downscaling configuration, which defines how and when OpsWorks Stacks reduces the number of instances.Whether load-based auto scaling is enabled for the layer.The layer ID.upScaling
(Consumer<AutoScalingThresholds.Builder> upScaling) AnAutoScalingThresholds
object that describes the upscaling configuration, which defines how and when OpsWorks Stacks increases the number of instances.upScaling
(AutoScalingThresholds upScaling) AnAutoScalingThresholds
object that describes the upscaling configuration, which defines how and when OpsWorks Stacks increases the number of instances.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 Details
-
layerId
The layer ID.
- Parameters:
layerId
- The layer ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enable
Whether load-based auto scaling is enabled for the layer.
- Parameters:
enable
- Whether load-based auto scaling is enabled for the layer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
upScaling
An
AutoScalingThresholds
object that describes the upscaling configuration, which defines how and when OpsWorks Stacks increases the number of instances.- Parameters:
upScaling
- AnAutoScalingThresholds
object that describes the upscaling configuration, which defines how and when OpsWorks Stacks increases the number of instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
upScaling
default LoadBasedAutoScalingConfiguration.Builder upScaling(Consumer<AutoScalingThresholds.Builder> upScaling) An
This is a convenience method that creates an instance of theAutoScalingThresholds
object that describes the upscaling configuration, which defines how and when OpsWorks Stacks increases the number of instances.AutoScalingThresholds.Builder
avoiding the need to create one manually viaAutoScalingThresholds.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toupScaling(AutoScalingThresholds)
.- Parameters:
upScaling
- a consumer that will call methods onAutoScalingThresholds.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
downScaling
An
AutoScalingThresholds
object that describes the downscaling configuration, which defines how and when OpsWorks Stacks reduces the number of instances.- Parameters:
downScaling
- AnAutoScalingThresholds
object that describes the downscaling configuration, which defines how and when OpsWorks Stacks reduces the number of instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
downScaling
default LoadBasedAutoScalingConfiguration.Builder downScaling(Consumer<AutoScalingThresholds.Builder> downScaling) An
This is a convenience method that creates an instance of theAutoScalingThresholds
object that describes the downscaling configuration, which defines how and when OpsWorks Stacks reduces the number of instances.AutoScalingThresholds.Builder
avoiding the need to create one manually viaAutoScalingThresholds.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todownScaling(AutoScalingThresholds)
.- Parameters:
downScaling
- a consumer that will call methods onAutoScalingThresholds.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-