public class ProvisionedThroughput
extends java.lang.Object
implements java.io.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 ProvisionedThroughput object.
|
ProvisionedThroughput(java.lang.Long readCapacityUnits,
java.lang.Long writeCapacityUnits)
Constructs a new ProvisionedThroughput object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
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 |
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.
|
ProvisionedThroughput |
withReadCapacityUnits(java.lang.Long readCapacityUnits)
The maximum number of strongly consistent reads consumed per second
before DynamoDB returns a ThrottlingException.
|
ProvisionedThroughput |
withWriteCapacityUnits(java.lang.Long writeCapacityUnits)
The maximum number of writes consumed per second before DynamoDB returns
a ThrottlingException.
|
public ProvisionedThroughput()
public ProvisionedThroughput(java.lang.Long readCapacityUnits, java.lang.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 java.lang.Long getReadCapacityUnits()
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.
Constraints:
Range: 1 -
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 void setReadCapacityUnits(java.lang.Long 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.
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(java.lang.Long 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.
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 java.lang.Long getWriteCapacityUnits()
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.
Constraints:
Range: 1 -
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 void setWriteCapacityUnits(java.lang.Long 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.
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(java.lang.Long 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.
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.