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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProvisionedThroughput()Default constructor for ProvisionedThroughput object.ProvisionedThroughput(Long readCapacityUnits, Long writeCapacityUnits)Constructs a new ProvisionedThroughput object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProvisionedThroughputclone()booleanequals(Object obj)LonggetReadCapacityUnits()The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException.LonggetWriteCapacityUnits()The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.inthashCode()voidsetReadCapacityUnits(Long readCapacityUnits)The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException.voidsetWriteCapacityUnits(Long writeCapacityUnits)The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.StringtoString()Returns a string representation of this object; useful for testing and debugging.ProvisionedThroughputwithReadCapacityUnits(Long readCapacityUnits)The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException.ProvisionedThroughputwithWriteCapacityUnits(Long writeCapacityUnits)The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.
-
-
-
Constructor Detail
-
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 Detail
-
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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ProvisionedThroughput clone()
-
-