Interface AutoScalingSettings.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AutoScalingSettings.Builder,
,AutoScalingSettings> SdkBuilder<AutoScalingSettings.Builder,
,AutoScalingSettings> SdkPojo
- Enclosing class:
AutoScalingSettings
-
Method Summary
Modifier and TypeMethodDescriptionautoScalingDisabled
(Boolean autoScalingDisabled) This optional parameter enables auto scaling for the table if set tofalse
.maximumUnits
(Long maximumUnits) Manage costs by specifying the maximum amount of throughput to provision.minimumUnits
(Long minimumUnits) The minimum level of throughput the table should always be ready to support.default AutoScalingSettings.Builder
scalingPolicy
(Consumer<AutoScalingPolicy.Builder> scalingPolicy) Amazon Keyspaces supports thetarget tracking
auto scaling policy.scalingPolicy
(AutoScalingPolicy scalingPolicy) Amazon Keyspaces supports thetarget tracking
auto scaling policy.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
autoScalingDisabled
This optional parameter enables auto scaling for the table if set to
false
.- Parameters:
autoScalingDisabled
- This optional parameter enables auto scaling for the table if set tofalse
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
minimumUnits
The minimum level of throughput the table should always be ready to support. The value must be between 1 and the max throughput per second quota for your account (40,000 by default).
- Parameters:
minimumUnits
- The minimum level of throughput the table should always be ready to support. The value must be between 1 and the max throughput per second quota for your account (40,000 by default).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maximumUnits
Manage costs by specifying the maximum amount of throughput to provision. The value must be between 1 and the max throughput per second quota for your account (40,000 by default).
- Parameters:
maximumUnits
- Manage costs by specifying the maximum amount of throughput to provision. The value must be between 1 and the max throughput per second quota for your account (40,000 by default).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scalingPolicy
Amazon Keyspaces supports the
target tracking
auto scaling policy. With this policy, Amazon Keyspaces auto scaling ensures that the table's ratio of consumed to provisioned capacity stays at or near the target value that you specify. You define the target value as a percentage between 20 and 90.- Parameters:
scalingPolicy
- Amazon Keyspaces supports thetarget tracking
auto scaling policy. With this policy, Amazon Keyspaces auto scaling ensures that the table's ratio of consumed to provisioned capacity stays at or near the target value that you specify. You define the target value as a percentage between 20 and 90.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scalingPolicy
default AutoScalingSettings.Builder scalingPolicy(Consumer<AutoScalingPolicy.Builder> scalingPolicy) Amazon Keyspaces supports the
This is a convenience method that creates an instance of thetarget tracking
auto scaling policy. With this policy, Amazon Keyspaces auto scaling ensures that the table's ratio of consumed to provisioned capacity stays at or near the target value that you specify. You define the target value as a percentage between 20 and 90.AutoScalingPolicy.Builder
avoiding the need to create one manually viaAutoScalingPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toscalingPolicy(AutoScalingPolicy)
.- Parameters:
scalingPolicy
- a consumer that will call methods onAutoScalingPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-