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) AnAutoScalingThresholdsobject that describes the downscaling configuration, which defines how and when OpsWorks Stacks reduces the number of instances.downScaling(AutoScalingThresholds downScaling) AnAutoScalingThresholdsobject 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) AnAutoScalingThresholdsobject that describes the upscaling configuration, which defines how and when OpsWorks Stacks increases the number of instances.upScaling(AutoScalingThresholds upScaling) AnAutoScalingThresholdsobject 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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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
AutoScalingThresholdsobject that describes the upscaling configuration, which defines how and when OpsWorks Stacks increases the number of instances.- Parameters:
upScaling- AnAutoScalingThresholdsobject 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 theAutoScalingThresholdsobject that describes the upscaling configuration, which defines how and when OpsWorks Stacks increases the number of instances.AutoScalingThresholds.Builderavoiding the need to create one manually viaAutoScalingThresholds.builder().When the
Consumercompletes,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
AutoScalingThresholdsobject that describes the downscaling configuration, which defines how and when OpsWorks Stacks reduces the number of instances.- Parameters:
downScaling- AnAutoScalingThresholdsobject 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 theAutoScalingThresholdsobject that describes the downscaling configuration, which defines how and when OpsWorks Stacks reduces the number of instances.AutoScalingThresholds.Builderavoiding the need to create one manually viaAutoScalingThresholds.builder().When the
Consumercompletes,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:
-