public static interface LoadBasedAutoScalingConfiguration.Builder extends CopyableBuilder<LoadBasedAutoScalingConfiguration.Builder,LoadBasedAutoScalingConfiguration>
Modifier and Type | Method and Description |
---|---|
LoadBasedAutoScalingConfiguration.Builder |
downScaling(AutoScalingThresholds downScaling)
An
AutoScalingThresholds object that describes the downscaling configuration, which defines how
and when AWS OpsWorks Stacks reduces the number of instances. |
default LoadBasedAutoScalingConfiguration.Builder |
downScaling(Consumer<AutoScalingThresholds.Builder> downScaling)
An
AutoScalingThresholds object that describes the downscaling configuration, which defines how
and when AWS OpsWorks Stacks reduces the number of instances. |
LoadBasedAutoScalingConfiguration.Builder |
enable(Boolean enable)
Whether load-based auto scaling is enabled for the layer.
|
LoadBasedAutoScalingConfiguration.Builder |
layerId(String layerId)
The layer ID.
|
LoadBasedAutoScalingConfiguration.Builder |
upScaling(AutoScalingThresholds upScaling)
An
AutoScalingThresholds object that describes the upscaling configuration, which defines how
and when AWS OpsWorks Stacks increases the number of instances. |
default LoadBasedAutoScalingConfiguration.Builder |
upScaling(Consumer<AutoScalingThresholds.Builder> upScaling)
An
AutoScalingThresholds object that describes the upscaling configuration, which defines how
and when AWS OpsWorks Stacks increases the number of instances. |
copy
apply, build
LoadBasedAutoScalingConfiguration.Builder layerId(String layerId)
The layer ID.
layerId
- The layer ID.LoadBasedAutoScalingConfiguration.Builder enable(Boolean enable)
Whether load-based auto scaling is enabled for the layer.
enable
- Whether load-based auto scaling is enabled for the layer.LoadBasedAutoScalingConfiguration.Builder upScaling(AutoScalingThresholds upScaling)
An AutoScalingThresholds
object that describes the upscaling configuration, which defines how
and when AWS OpsWorks Stacks increases the number of instances.
upScaling
- An AutoScalingThresholds
object that describes the upscaling configuration, which defines
how and when AWS OpsWorks Stacks increases the number of instances.default LoadBasedAutoScalingConfiguration.Builder upScaling(Consumer<AutoScalingThresholds.Builder> upScaling)
An AutoScalingThresholds
object that describes the upscaling configuration, which defines how
and when AWS OpsWorks Stacks increases the number of instances.
AutoScalingThresholds.Builder
avoiding the need
to create one manually via AutoScalingThresholds.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to upScaling(AutoScalingThresholds)
.upScaling
- a consumer that will call methods on AutoScalingThresholds.Builder
upScaling(AutoScalingThresholds)
LoadBasedAutoScalingConfiguration.Builder downScaling(AutoScalingThresholds downScaling)
An AutoScalingThresholds
object that describes the downscaling configuration, which defines how
and when AWS OpsWorks Stacks reduces the number of instances.
downScaling
- An AutoScalingThresholds
object that describes the downscaling configuration, which
defines how and when AWS OpsWorks Stacks reduces the number of instances.default LoadBasedAutoScalingConfiguration.Builder downScaling(Consumer<AutoScalingThresholds.Builder> downScaling)
An AutoScalingThresholds
object that describes the downscaling configuration, which defines how
and when AWS OpsWorks Stacks reduces the number of instances.
AutoScalingThresholds.Builder
avoiding the need
to create one manually via AutoScalingThresholds.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to downScaling(AutoScalingThresholds)
.downScaling
- a consumer that will call methods on AutoScalingThresholds.Builder
downScaling(AutoScalingThresholds)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.