public class ProvisionedThroughputDescription
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents the provisioned throughput settings for the table, consisting of read and write capacity units, along with data about increases and decreases.
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
lastDecreaseDateTime
The date and time of the last provisioned throughput decrease for this
table.
|
private java.util.Date |
lastIncreaseDateTime
The date and time of the last provisioned throughput increase for this
table.
|
private java.lang.Long |
numberOfDecreasesToday
The number of provisioned throughput decreases for this table during this
UTC calendar day.
|
private java.lang.Long |
readCapacityUnits
The maximum number of strongly consistent reads consumed per second
before DynamoDB returns a ThrottlingException.
|
private java.lang.Long |
writeCapacityUnits
The maximum number of writes consumed per second before DynamoDB returns
a ThrottlingException.
|
Constructor and Description |
---|
ProvisionedThroughputDescription() |
Modifier and Type | Method and Description |
---|---|
ProvisionedThroughputDescription |
clone() |
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.
|
private java.util.Date lastIncreaseDateTime
The date and time of the last provisioned throughput increase for this table.
private java.util.Date lastDecreaseDateTime
The date and time of the last provisioned throughput decrease for this table.
private 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.
private 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.
private java.lang.Long writeCapacityUnits
The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.
public void setLastIncreaseDateTime(java.util.Date lastIncreaseDateTime)
The date and time of the last provisioned throughput increase for this table.
lastIncreaseDateTime
- The date and time of the last provisioned throughput increase for
this table.public java.util.Date getLastIncreaseDateTime()
The date and time of the last provisioned throughput increase for this table.
public ProvisionedThroughputDescription withLastIncreaseDateTime(java.util.Date lastIncreaseDateTime)
The date and time of the last provisioned throughput increase for this table.
lastIncreaseDateTime
- The date and time of the last provisioned throughput increase for
this table.public void setLastDecreaseDateTime(java.util.Date lastDecreaseDateTime)
The date and time of the last provisioned throughput decrease for this table.
lastDecreaseDateTime
- The date and time of the last provisioned throughput decrease for
this table.public java.util.Date getLastDecreaseDateTime()
The date and time of the last provisioned throughput decrease for this table.
public ProvisionedThroughputDescription withLastDecreaseDateTime(java.util.Date lastDecreaseDateTime)
The date and time of the last provisioned throughput decrease for this table.
lastDecreaseDateTime
- The date and time of the last provisioned throughput decrease for
this table.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.
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.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.
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.
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.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.
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.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.
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.
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.public void setWriteCapacityUnits(java.lang.Long writeCapacityUnits)
The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.
writeCapacityUnits
- The maximum number of writes consumed per second before DynamoDB
returns a ThrottlingException.public java.lang.Long getWriteCapacityUnits()
The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.
public ProvisionedThroughputDescription withWriteCapacityUnits(java.lang.Long writeCapacityUnits)
The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.
writeCapacityUnits
- The maximum number of writes consumed per second before DynamoDB
returns a ThrottlingException.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ProvisionedThroughputDescription clone()
clone
in class java.lang.Object