public static interface SetLoadBasedAutoScalingRequest.Builder extends OpsWorksRequest.Builder, CopyableBuilder<SetLoadBasedAutoScalingRequest.Builder,SetLoadBasedAutoScalingRequest>
Modifier and Type | Method and Description |
---|---|
SetLoadBasedAutoScalingRequest.Builder |
downScaling(AutoScalingThresholds downScaling)
An
AutoScalingThresholds object with the downscaling threshold configuration. |
default SetLoadBasedAutoScalingRequest.Builder |
downScaling(Consumer<AutoScalingThresholds.Builder> downScaling)
An
AutoScalingThresholds object with the downscaling threshold configuration. |
SetLoadBasedAutoScalingRequest.Builder |
enable(Boolean enable)
Enables load-based auto scaling for the layer.
|
SetLoadBasedAutoScalingRequest.Builder |
layerId(String layerId)
The layer ID.
|
SetLoadBasedAutoScalingRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
SetLoadBasedAutoScalingRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
SetLoadBasedAutoScalingRequest.Builder |
upScaling(AutoScalingThresholds upScaling)
An
AutoScalingThresholds object with the upscaling threshold configuration. |
default SetLoadBasedAutoScalingRequest.Builder |
upScaling(Consumer<AutoScalingThresholds.Builder> upScaling)
An
AutoScalingThresholds object with the upscaling threshold configuration. |
build
overrideConfiguration
copy
applyMutation, build
SetLoadBasedAutoScalingRequest.Builder layerId(String layerId)
The layer ID.
layerId
- The layer ID.SetLoadBasedAutoScalingRequest.Builder enable(Boolean enable)
Enables load-based auto scaling for the layer.
enable
- Enables load-based auto scaling for the layer.SetLoadBasedAutoScalingRequest.Builder upScaling(AutoScalingThresholds upScaling)
An AutoScalingThresholds
object with the upscaling threshold configuration. If the load exceeds
these thresholds for a specified amount of time, AWS OpsWorks Stacks starts a specified number of instances.
upScaling
- An AutoScalingThresholds
object with the upscaling threshold configuration. If the load
exceeds these thresholds for a specified amount of time, AWS OpsWorks Stacks starts a specified number
of instances.default SetLoadBasedAutoScalingRequest.Builder upScaling(Consumer<AutoScalingThresholds.Builder> upScaling)
An AutoScalingThresholds
object with the upscaling threshold configuration. If the load exceeds
these thresholds for a specified amount of time, AWS OpsWorks Stacks starts a specified 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)
SetLoadBasedAutoScalingRequest.Builder downScaling(AutoScalingThresholds downScaling)
An AutoScalingThresholds
object with the downscaling threshold configuration. If the load falls
below these thresholds for a specified amount of time, AWS OpsWorks Stacks stops a specified number of
instances.
downScaling
- An AutoScalingThresholds
object with the downscaling threshold configuration. If the load
falls below these thresholds for a specified amount of time, AWS OpsWorks Stacks stops a specified
number of instances.default SetLoadBasedAutoScalingRequest.Builder downScaling(Consumer<AutoScalingThresholds.Builder> downScaling)
An AutoScalingThresholds
object with the downscaling threshold configuration. If the load falls
below these thresholds for a specified amount of time, AWS OpsWorks Stacks stops a specified 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)
SetLoadBasedAutoScalingRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.SetLoadBasedAutoScalingRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.