Interface AutoScalingSettings.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AutoScalingSettings.Builder,AutoScalingSettings>,SdkBuilder<AutoScalingSettings.Builder,AutoScalingSettings>,SdkPojo
- Enclosing class:
- AutoScalingSettings
public static interface AutoScalingSettings.Builder extends SdkPojo, CopyableBuilder<AutoScalingSettings.Builder,AutoScalingSettings>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AutoScalingSettings.BuilderautoScalingDisabled(Boolean autoScalingDisabled)This optional parameter enables auto scaling for the table if set tofalse.AutoScalingSettings.BuildermaximumUnits(Long maximumUnits)Manage costs by specifying the maximum amount of throughput to provision.AutoScalingSettings.BuilderminimumUnits(Long minimumUnits)The minimum level of throughput the table should always be ready to support.default AutoScalingSettings.BuilderscalingPolicy(Consumer<AutoScalingPolicy.Builder> scalingPolicy)Amazon Keyspaces supports thetarget trackingauto scaling policy.AutoScalingSettings.BuilderscalingPolicy(AutoScalingPolicy scalingPolicy)Amazon Keyspaces supports thetarget trackingauto 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, sdkFields
-
-
-
-
Method Detail
-
autoScalingDisabled
AutoScalingSettings.Builder autoScalingDisabled(Boolean 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
AutoScalingSettings.Builder minimumUnits(Long 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
AutoScalingSettings.Builder maximumUnits(Long 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
AutoScalingSettings.Builder scalingPolicy(AutoScalingPolicy scalingPolicy)
Amazon Keyspaces supports the
target trackingauto 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 trackingauto 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 trackingauto 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.Builderavoiding the need to create one manually viaAutoScalingPolicy.builder().When the
Consumercompletes,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:
scalingPolicy(AutoScalingPolicy)
-
-