com.amazonaws.services.dynamodb.model
Class ProvisionedThroughput

java.lang.Object
  extended by com.amazonaws.services.dynamodb.model.ProvisionedThroughput

public class ProvisionedThroughput
extends Object

Provisioned throughput reserves the required read and write resources for your table in terms of ReadCapacityUnits and WriteCapacityUnits . Values for provisioned throughput depend upon your expected read/write rates, item size, and consistency. Provide the expected number of read and write operations, assuming an item size of 1k and strictly consistent reads. For 2k item size, double the value. For 3k, triple the value, etc. Eventually-consistent reads consume half the resources of strictly consistent reads.


Constructor Summary
ProvisionedThroughput()
           
 
Method Summary
 boolean equals(Object obj)
           
 Long getReadCapacityUnits()
          ReadCapacityUnits are in terms of strictly consistent reads, assuming items of 1k.
 Long getWriteCapacityUnits()
          WriteCapacityUnits are in terms of strictly consistent reads, assuming items of 1k.
 int hashCode()
           
 void setReadCapacityUnits(Long readCapacityUnits)
          ReadCapacityUnits are in terms of strictly consistent reads, assuming items of 1k.
 void setWriteCapacityUnits(Long writeCapacityUnits)
          WriteCapacityUnits are in terms of strictly consistent reads, assuming items of 1k.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ProvisionedThroughput withReadCapacityUnits(Long readCapacityUnits)
          ReadCapacityUnits are in terms of strictly consistent reads, assuming items of 1k.
 ProvisionedThroughput withWriteCapacityUnits(Long writeCapacityUnits)
          WriteCapacityUnits are in terms of strictly consistent reads, assuming items of 1k.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProvisionedThroughput

public ProvisionedThroughput()
Method Detail

getReadCapacityUnits

public Long getReadCapacityUnits()
ReadCapacityUnits are in terms of strictly consistent reads, assuming items of 1k. 2k items require twice the ReadCapacityUnits. Eventually-consistent reads only require half the ReadCapacityUnits of stirctly consistent reads.

Constraints:
Range: 1 -

Returns:
ReadCapacityUnits are in terms of strictly consistent reads, assuming items of 1k. 2k items require twice the ReadCapacityUnits. Eventually-consistent reads only require half the ReadCapacityUnits of stirctly consistent reads.

setReadCapacityUnits

public void setReadCapacityUnits(Long readCapacityUnits)
ReadCapacityUnits are in terms of strictly consistent reads, assuming items of 1k. 2k items require twice the ReadCapacityUnits. Eventually-consistent reads only require half the ReadCapacityUnits of stirctly consistent reads.

Constraints:
Range: 1 -

Parameters:
readCapacityUnits - ReadCapacityUnits are in terms of strictly consistent reads, assuming items of 1k. 2k items require twice the ReadCapacityUnits. Eventually-consistent reads only require half the ReadCapacityUnits of stirctly consistent reads.

withReadCapacityUnits

public ProvisionedThroughput withReadCapacityUnits(Long readCapacityUnits)
ReadCapacityUnits are in terms of strictly consistent reads, assuming items of 1k. 2k items require twice the ReadCapacityUnits. Eventually-consistent reads only require half the ReadCapacityUnits of stirctly consistent reads.

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

Constraints:
Range: 1 -

Parameters:
readCapacityUnits - ReadCapacityUnits are in terms of strictly consistent reads, assuming items of 1k. 2k items require twice the ReadCapacityUnits. Eventually-consistent reads only require half the ReadCapacityUnits of stirctly consistent reads.
Returns:
A reference to this updated object so that method calls can be chained together.

getWriteCapacityUnits

public Long getWriteCapacityUnits()
WriteCapacityUnits are in terms of strictly consistent reads, assuming items of 1k. 2k items require twice the WriteCapacityUnits.

Constraints:
Range: 1 -

Returns:
WriteCapacityUnits are in terms of strictly consistent reads, assuming items of 1k. 2k items require twice the WriteCapacityUnits.

setWriteCapacityUnits

public void setWriteCapacityUnits(Long writeCapacityUnits)
WriteCapacityUnits are in terms of strictly consistent reads, assuming items of 1k. 2k items require twice the WriteCapacityUnits.

Constraints:
Range: 1 -

Parameters:
writeCapacityUnits - WriteCapacityUnits are in terms of strictly consistent reads, assuming items of 1k. 2k items require twice the WriteCapacityUnits.

withWriteCapacityUnits

public ProvisionedThroughput withWriteCapacityUnits(Long writeCapacityUnits)
WriteCapacityUnits are in terms of strictly consistent reads, assuming items of 1k. 2k items require twice the WriteCapacityUnits.

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

Constraints:
Range: 1 -

Parameters:
writeCapacityUnits - WriteCapacityUnits are in terms of strictly consistent reads, assuming items of 1k. 2k items require twice the WriteCapacityUnits.
Returns:
A reference to this updated 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:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


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