Class ProvisionedThroughput

java.lang.Object
com.amazonaws.services.dynamodbv2.model.ProvisionedThroughput
All Implemented Interfaces:
Serializable, Cloneable

public class ProvisionedThroughput extends Object implements Serializable, Cloneable

Represents the provisioned throughput settings for a specified table or index. The settings can be modified using the UpdateTable operation.

For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.

See Also:
  • Constructor Details

    • ProvisionedThroughput

      public ProvisionedThroughput()
      Default constructor for ProvisionedThroughput object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
    • ProvisionedThroughput

      public ProvisionedThroughput(Long readCapacityUnits, Long writeCapacityUnits)
      Constructs a new ProvisionedThroughput object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      Parameters:
      readCapacityUnits - The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
      writeCapacityUnits - The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
  • Method Details

    • setReadCapacityUnits

      public void setReadCapacityUnits(Long readCapacityUnits)

      The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.

      Parameters:
      readCapacityUnits - The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
    • getReadCapacityUnits

      public Long getReadCapacityUnits()

      The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.

      Returns:
      The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
    • withReadCapacityUnits

      public ProvisionedThroughput withReadCapacityUnits(Long readCapacityUnits)

      The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.

      Parameters:
      readCapacityUnits - The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setWriteCapacityUnits

      public void setWriteCapacityUnits(Long writeCapacityUnits)

      The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.

      Parameters:
      writeCapacityUnits - The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
    • getWriteCapacityUnits

      public Long getWriteCapacityUnits()

      The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.

      Returns:
      The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
    • withWriteCapacityUnits

      public ProvisionedThroughput withWriteCapacityUnits(Long writeCapacityUnits)

      The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.

      Parameters:
      writeCapacityUnits - The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public ProvisionedThroughput clone()
      Overrides:
      clone in class Object