public class ProvisionedThroughput extends Object implements 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 .
Constructor and Description |
---|
ProvisionedThroughput()
Default constructor for a new ProvisionedThroughput object.
|
ProvisionedThroughput(Long readCapacityUnits,
Long writeCapacityUnits)
Constructs a new ProvisionedThroughput object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Long |
getReadCapacityUnits()
The maximum number of strongly consistent reads consumed per second
before DynamoDB returns a ThrottlingException.
|
Long |
getWriteCapacityUnits()
The maximum number of writes consumed per second before DynamoDB
returns a ThrottlingException.
|
int |
hashCode() |
void |
setReadCapacityUnits(Long readCapacityUnits)
The maximum number of strongly consistent reads consumed per second
before DynamoDB returns a ThrottlingException.
|
void |
setWriteCapacityUnits(Long writeCapacityUnits)
The maximum number of writes consumed per second before DynamoDB
returns a ThrottlingException.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ProvisionedThroughput |
withReadCapacityUnits(Long readCapacityUnits)
The maximum number of strongly consistent reads consumed per second
before DynamoDB returns a ThrottlingException.
|
ProvisionedThroughput |
withWriteCapacityUnits(Long writeCapacityUnits)
The maximum number of writes consumed per second before DynamoDB
returns a ThrottlingException.
|
public ProvisionedThroughput()
public ProvisionedThroughput(Long readCapacityUnits, Long writeCapacityUnits)
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.public Long getReadCapacityUnits()
Constraints:
Range: 1 -
public void setReadCapacityUnits(Long readCapacityUnits)
Constraints:
Range: 1 -
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.public ProvisionedThroughput withReadCapacityUnits(Long readCapacityUnits)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 -
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.public Long getWriteCapacityUnits()
Constraints:
Range: 1 -
public void setWriteCapacityUnits(Long writeCapacityUnits)
Constraints:
Range: 1 -
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.public ProvisionedThroughput withWriteCapacityUnits(Long writeCapacityUnits)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 -
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.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.