com.amazonaws.services.dynamodbv2.model
Class ProvisionedThroughput

java.lang.Object
  extended by com.amazonaws.services.dynamodbv2.model.ProvisionedThroughput
All Implemented Interfaces:
java.io.Serializable

public class ProvisionedThroughput
extends java.lang.Object
implements java.io.Serializable

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
ProvisionedThroughput()
          Default constructor for a new ProvisionedThroughput object.
ProvisionedThroughput(java.lang.Long readCapacityUnits, java.lang.Long writeCapacityUnits)
          Constructs a new ProvisionedThroughput object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Long getReadCapacityUnits()
          The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException.
 java.lang.Long getWriteCapacityUnits()
          The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.
 int hashCode()
           
 void setReadCapacityUnits(java.lang.Long readCapacityUnits)
          The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException.
 void setWriteCapacityUnits(java.lang.Long writeCapacityUnits)
          The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ProvisionedThroughput withReadCapacityUnits(java.lang.Long readCapacityUnits)
          The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException.
 ProvisionedThroughput withWriteCapacityUnits(java.lang.Long writeCapacityUnits)
          The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProvisionedThroughput

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


ProvisionedThroughput

public ProvisionedThroughput(java.lang.Long readCapacityUnits,
                             java.lang.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

getReadCapacityUnits

public java.lang.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.

Constraints:
Range: 1 -

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.

setReadCapacityUnits

public void setReadCapacityUnits(java.lang.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.

Constraints:
Range: 1 -

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.

withReadCapacityUnits

public ProvisionedThroughput withReadCapacityUnits(java.lang.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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Range: 1 -

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:
A reference to this updated object so that method calls can be chained together.

getWriteCapacityUnits

public java.lang.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.

Constraints:
Range: 1 -

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.

setWriteCapacityUnits

public void setWriteCapacityUnits(java.lang.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.

Constraints:
Range: 1 -

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.

withWriteCapacityUnits

public ProvisionedThroughput withWriteCapacityUnits(java.lang.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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Range: 1 -

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:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.