Interface AutoScalingSettings.Builder

  • Method Details

    • 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 to false.
      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 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 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.
      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 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.

      This is a convenience method that creates an instance of the AutoScalingPolicy.Builder avoiding the need to create one manually via AutoScalingPolicy.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to scalingPolicy(AutoScalingPolicy).

      Parameters:
      scalingPolicy - a consumer that will call methods on AutoScalingPolicy.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: