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 |
requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
Add an optional request override configuration.
|
SetLoadBasedAutoScalingRequest.Builder |
requestOverrideConfig(Consumer<AwsRequestOverrideConfig.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. |
buildrequestOverrideConfigcopyapply, buildSetLoadBasedAutoScalingRequest.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.BuilderupScaling(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.BuilderdownScaling(AutoScalingThresholds)SetLoadBasedAutoScalingRequest.Builder requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.BuilderrequestOverrideConfig in interface AwsRequest.BuilderawsRequestOverrideConfig - The override configuration.SetLoadBasedAutoScalingRequest.Builder requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
AwsRequest.BuilderrequestOverrideConfig in interface AwsRequest.BuilderbuilderConsumer - A Consumer to which an empty AwsRequestOverrideConfig.Builder will be given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.