Interface SetLoadBasedAutoScalingRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<SetLoadBasedAutoScalingRequest.Builder,SetLoadBasedAutoScalingRequest>,OpsWorksRequest.Builder,SdkBuilder<SetLoadBasedAutoScalingRequest.Builder,SetLoadBasedAutoScalingRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- SetLoadBasedAutoScalingRequest
public static interface SetLoadBasedAutoScalingRequest.Builder extends OpsWorksRequest.Builder, SdkPojo, CopyableBuilder<SetLoadBasedAutoScalingRequest.Builder,SetLoadBasedAutoScalingRequest>
-
-
Method Summary
-
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 Detail
-
layerId
SetLoadBasedAutoScalingRequest.Builder layerId(String 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
SetLoadBasedAutoScalingRequest.Builder enable(Boolean 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
SetLoadBasedAutoScalingRequest.Builder upScaling(AutoScalingThresholds upScaling)
An
AutoScalingThresholdsobject 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- AnAutoScalingThresholdsobject 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 theAutoScalingThresholdsobject 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.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:
upScaling(AutoScalingThresholds)
-
downScaling
SetLoadBasedAutoScalingRequest.Builder downScaling(AutoScalingThresholds downScaling)
An
AutoScalingThresholdsobject 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- AnAutoScalingThresholdsobject 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 theAutoScalingThresholdsobject 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.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:
downScaling(AutoScalingThresholds)
-
overrideConfiguration
SetLoadBasedAutoScalingRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
SetLoadBasedAutoScalingRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-