Class ProvisionedThroughputDescription
- java.lang.Object
-
- com.amazonaws.services.dynamodbv2.model.ProvisionedThroughputDescription
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ProvisionedThroughputDescription extends Object implements Serializable, Cloneable
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
Constructors Constructor Description ProvisionedThroughputDescription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProvisionedThroughputDescriptionclone()booleanequals(Object obj)DategetLastDecreaseDateTime()The date and time of the last provisioned throughput decrease for this table.DategetLastIncreaseDateTime()The date and time of the last provisioned throughput increase for this table.LonggetNumberOfDecreasesToday()The number of provisioned throughput decreases for this table during this UTC calendar day.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()voidsetLastDecreaseDateTime(Date lastDecreaseDateTime)The date and time of the last provisioned throughput decrease for this table.voidsetLastIncreaseDateTime(Date lastIncreaseDateTime)The date and time of the last provisioned throughput increase for this table.voidsetNumberOfDecreasesToday(Long numberOfDecreasesToday)The number of provisioned throughput decreases for this table during this UTC calendar day.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.ProvisionedThroughputDescriptionwithLastDecreaseDateTime(Date lastDecreaseDateTime)The date and time of the last provisioned throughput decrease for this table.ProvisionedThroughputDescriptionwithLastIncreaseDateTime(Date lastIncreaseDateTime)The date and time of the last provisioned throughput increase for this table.ProvisionedThroughputDescriptionwithNumberOfDecreasesToday(Long numberOfDecreasesToday)The number of provisioned throughput decreases for this table during this UTC calendar day.ProvisionedThroughputDescriptionwithReadCapacityUnits(Long readCapacityUnits)The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException.ProvisionedThroughputDescriptionwithWriteCapacityUnits(Long writeCapacityUnits)The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.
-
-
-
Method Detail
-
setLastIncreaseDateTime
public void setLastIncreaseDateTime(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.
-
getLastIncreaseDateTime
public 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.
-
withLastIncreaseDateTime
public ProvisionedThroughputDescription withLastIncreaseDateTime(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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLastDecreaseDateTime
public void setLastDecreaseDateTime(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.
-
getLastDecreaseDateTime
public 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.
-
withLastDecreaseDateTime
public ProvisionedThroughputDescription withLastDecreaseDateTime(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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNumberOfDecreasesToday
public void setNumberOfDecreasesToday(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.
- 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.
-
getNumberOfDecreasesToday
public 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.
- 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.
-
withNumberOfDecreasesToday
public ProvisionedThroughputDescription withNumberOfDecreasesToday(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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
setReadCapacityUnits
public void setReadCapacityUnits(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.
- 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.
-
getReadCapacityUnits
public 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.
- 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.
-
withReadCapacityUnits
public ProvisionedThroughputDescription withReadCapacityUnits(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.
- 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:
- 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.
- Parameters:
writeCapacityUnits- The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.
-
getWriteCapacityUnits
public Long getWriteCapacityUnits()
The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.
- Returns:
- The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.
-
withWriteCapacityUnits
public ProvisionedThroughputDescription withWriteCapacityUnits(Long writeCapacityUnits)
The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.
- Parameters:
writeCapacityUnits- The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.- 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 ProvisionedThroughputDescription clone()
-
-