Interface SetLoadBasedAutoScalingRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<SetLoadBasedAutoScalingRequest.Builder,
,SetLoadBasedAutoScalingRequest> OpsWorksRequest.Builder
,SdkBuilder<SetLoadBasedAutoScalingRequest.Builder,
,SetLoadBasedAutoScalingRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
SetLoadBasedAutoScalingRequest
-
Method Summary
Modifier and TypeMethodDescriptiondownScaling
(Consumer<AutoScalingThresholds.Builder> downScaling) AnAutoScalingThresholds
object with the downscaling threshold configuration.downScaling
(AutoScalingThresholds downScaling) AnAutoScalingThresholds
object with the downscaling threshold configuration.Enables load-based auto scaling for the layer.The layer ID.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.upScaling
(Consumer<AutoScalingThresholds.Builder> upScaling) AnAutoScalingThresholds
object with the upscaling threshold configuration.upScaling
(AutoScalingThresholds upScaling) AnAutoScalingThresholds
object with the upscaling threshold configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.opsworks.model.OpsWorksRequest.Builder
build
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
Enables load-based auto scaling for the layer.
- Parameters:
enable
- Enables load-based auto scaling for the layer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
upScaling
- AnAutoScalingThresholds
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
upScaling
default SetLoadBasedAutoScalingRequest.Builder upScaling(Consumer<AutoScalingThresholds.Builder> upScaling) An
This is a convenience method that creates an instance of theAutoScalingThresholds
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 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 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.- Parameters:
downScaling
- AnAutoScalingThresholds
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
downScaling
default SetLoadBasedAutoScalingRequest.Builder downScaling(Consumer<AutoScalingThresholds.Builder> downScaling) An
This is a convenience method that creates an instance of theAutoScalingThresholds
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 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:
-
overrideConfiguration
SetLoadBasedAutoScalingRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SetLoadBasedAutoScalingRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-