com.amazonaws.services.dynamodbv2.model
Class ProvisionedThroughputDescription

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

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

Represents the provisioned throughput settings for the table, consisting of read and write capacity units, along with data about increases and decreases.

See Also:
Serialized Form

Constructor Summary
ProvisionedThroughputDescription()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.Date getLastDecreaseDateTime()
          The date and time of the last provisioned throughput decrease for this table.
 java.util.Date getLastIncreaseDateTime()
          The date and time of the last provisioned throughput increase for this table.
 java.lang.Long getNumberOfDecreasesToday()
          The number of provisioned throughput decreases for this table during this UTC calendar day.
 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 setLastDecreaseDateTime(java.util.Date lastDecreaseDateTime)
          The date and time of the last provisioned throughput decrease for this table.
 void setLastIncreaseDateTime(java.util.Date lastIncreaseDateTime)
          The date and time of the last provisioned throughput increase for this table.
 void setNumberOfDecreasesToday(java.lang.Long numberOfDecreasesToday)
          The number of provisioned throughput decreases for this table during this UTC calendar day.
 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.
 ProvisionedThroughputDescription withLastDecreaseDateTime(java.util.Date lastDecreaseDateTime)
          The date and time of the last provisioned throughput decrease for this table.
 ProvisionedThroughputDescription withLastIncreaseDateTime(java.util.Date lastIncreaseDateTime)
          The date and time of the last provisioned throughput increase for this table.
 ProvisionedThroughputDescription withNumberOfDecreasesToday(java.lang.Long numberOfDecreasesToday)
          The number of provisioned throughput decreases for this table during this UTC calendar day.
 ProvisionedThroughputDescription withReadCapacityUnits(java.lang.Long readCapacityUnits)
          The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException.
 ProvisionedThroughputDescription 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

ProvisionedThroughputDescription

public ProvisionedThroughputDescription()
Method Detail

getLastIncreaseDateTime

public java.util.Date getLastIncreaseDateTime()
The date and time of the last provisioned throughput increase for this table.

Returns:
The date and time of the last provisioned throughput increase for this table.

setLastIncreaseDateTime

public void setLastIncreaseDateTime(java.util.Date lastIncreaseDateTime)
The date and time of the last provisioned throughput increase for this table.

Parameters:
lastIncreaseDateTime - The date and time of the last provisioned throughput increase for this table.

withLastIncreaseDateTime

public ProvisionedThroughputDescription withLastIncreaseDateTime(java.util.Date lastIncreaseDateTime)
The date and time of the last provisioned throughput increase for this table.

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

Parameters:
lastIncreaseDateTime - The date and time of the last provisioned throughput increase for this table.
Returns:
A reference to this updated object so that method calls can be chained together.

getLastDecreaseDateTime

public java.util.Date getLastDecreaseDateTime()
The date and time of the last provisioned throughput decrease for this table.

Returns:
The date and time of the last provisioned throughput decrease for this table.

setLastDecreaseDateTime

public void setLastDecreaseDateTime(java.util.Date lastDecreaseDateTime)
The date and time of the last provisioned throughput decrease for this table.

Parameters:
lastDecreaseDateTime - The date and time of the last provisioned throughput decrease for this table.

withLastDecreaseDateTime

public ProvisionedThroughputDescription withLastDecreaseDateTime(java.util.Date lastDecreaseDateTime)
The date and time of the last provisioned throughput decrease for this table.

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

Parameters:
lastDecreaseDateTime - The date and time of the last provisioned throughput decrease for this table.
Returns:
A reference to this updated object so that method calls can be chained together.

getNumberOfDecreasesToday

public java.lang.Long getNumberOfDecreasesToday()
The number of provisioned throughput decreases for this table during this UTC calendar day. For current maximums on provisioned throughput decreases, see Limits in the Amazon DynamoDB Developer Guide.

Constraints:
Range: 1 -

Returns:
The number of provisioned throughput decreases for this table during this UTC calendar day. For current maximums on provisioned throughput decreases, see Limits in the Amazon DynamoDB Developer Guide.

setNumberOfDecreasesToday

public void setNumberOfDecreasesToday(java.lang.Long numberOfDecreasesToday)
The number of provisioned throughput decreases for this table during this UTC calendar day. For current maximums on provisioned throughput decreases, see Limits in the Amazon DynamoDB Developer Guide.

Constraints:
Range: 1 -

Parameters:
numberOfDecreasesToday - The number of provisioned throughput decreases for this table during this UTC calendar day. For current maximums on provisioned throughput decreases, see Limits in the Amazon DynamoDB Developer Guide.

withNumberOfDecreasesToday

public ProvisionedThroughputDescription withNumberOfDecreasesToday(java.lang.Long numberOfDecreasesToday)
The number of provisioned throughput decreases for this table during this UTC calendar day. For current maximums on provisioned throughput decreases, see Limits in the Amazon DynamoDB Developer Guide.

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

Constraints:
Range: 1 -

Parameters:
numberOfDecreasesToday - The number of provisioned throughput decreases for this table during this UTC calendar day. For current maximums on provisioned throughput decreases, see Limits in the Amazon DynamoDB Developer Guide.
Returns:
A reference to this updated object so that method calls can be chained together.

getReadCapacityUnits

public java.lang.Long getReadCapacityUnits()
The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. Eventually consistent reads require less effort than strongly consistent reads, so a setting of 50 ReadCapacityUnits per second provides 100 eventually consistent ReadCapacityUnits per second.

Constraints:
Range: 1 -

Returns:
The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. Eventually consistent reads require less effort than strongly consistent reads, so a setting of 50 ReadCapacityUnits per second provides 100 eventually consistent ReadCapacityUnits per second.

setReadCapacityUnits

public void setReadCapacityUnits(java.lang.Long readCapacityUnits)
The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. Eventually consistent reads require less effort than strongly consistent reads, so a setting of 50 ReadCapacityUnits per second provides 100 eventually consistent ReadCapacityUnits per second.

Constraints:
Range: 1 -

Parameters:
readCapacityUnits - The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. Eventually consistent reads require less effort than strongly consistent reads, so a setting of 50 ReadCapacityUnits per second provides 100 eventually consistent ReadCapacityUnits per second.

withReadCapacityUnits

public ProvisionedThroughputDescription withReadCapacityUnits(java.lang.Long readCapacityUnits)
The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. Eventually consistent reads require less effort than strongly consistent reads, so a setting of 50 ReadCapacityUnits per second provides 100 eventually consistent ReadCapacityUnits per second.

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. Eventually consistent reads require less effort than strongly consistent reads, so a setting of 50 ReadCapacityUnits per second provides 100 eventually consistent ReadCapacityUnits per second.
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.

Constraints:
Range: 1 -

Returns:
The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.

setWriteCapacityUnits

public void setWriteCapacityUnits(java.lang.Long writeCapacityUnits)
The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.

Constraints:
Range: 1 -

Parameters:
writeCapacityUnits - The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.

withWriteCapacityUnits

public ProvisionedThroughputDescription withWriteCapacityUnits(java.lang.Long writeCapacityUnits)
The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.

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.
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.