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) AnAutoScalingThresholdsobject with the downscaling threshold configuration.downScaling(AutoScalingThresholds downScaling) AnAutoScalingThresholdsobject 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) AnAutoScalingThresholdsobject with the upscaling threshold configuration.upScaling(AutoScalingThresholds upScaling) AnAutoScalingThresholdsobject with the upscaling threshold configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.opsworks.model.OpsWorksRequest.Builder
buildMethods 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
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
AutoScalingThresholdsobject with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, OpsWorks Stacks starts a specified number of instances.- Parameters:
upScaling- AnAutoScalingThresholdsobject with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, 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 theAutoScalingThresholdsobject with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, OpsWorks Stacks starts a specified 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 with the downscaling threshold configuration. If the load falls below these thresholds for a specified amount of time, OpsWorks Stacks stops a specified number of instances.- Parameters:
downScaling- AnAutoScalingThresholdsobject with the downscaling threshold configuration. If the load falls below these thresholds for a specified amount of time, 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 theAutoScalingThresholdsobject with the downscaling threshold configuration. If the load falls below these thresholds for a specified amount of time, OpsWorks Stacks stops a specified 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:
-
overrideConfiguration
SetLoadBasedAutoScalingRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-