public class UpdateTableRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable
UpdateTable operation
.
Updates the provisioned throughput for the given table. Setting the throughput for a table helps you manage performance and is part of the provisioned throughput feature of DynamoDB.
The provisioned throughput values can be upgraded or downgraded based on the maximums and minimums listed in the Limits section in the Amazon DynamoDB Developer Guide .
The table must be in the ACTIVE
state for this operation
to succeed. UpdateTable is an asynchronous operation; while
executing the operation, the table is in the UPDATING
state. While the table is in the UPDATING
state, the
table still has the provisioned throughput from before the call. The
new provisioned throughput setting is in effect only when the table
returns to the ACTIVE
state after the UpdateTable
operation.
You cannot add, modify or delete indexes using UpdateTable . Indexes can only be defined at table creation time.
Constructor and Description |
---|
UpdateTableRequest()
Default constructor for a new UpdateTableRequest object.
|
UpdateTableRequest(String tableName,
ProvisionedThroughput provisionedThroughput)
Constructs a new UpdateTableRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<GlobalSecondaryIndexUpdate> |
getGlobalSecondaryIndexUpdates()
An array of one or more global secondary indexes on the table,
together with provisioned throughput settings for each index.
|
ProvisionedThroughput |
getProvisionedThroughput()
Represents the provisioned throughput settings for a specified table
or index.
|
String |
getTableName()
The name of the table to be updated.
|
int |
hashCode() |
void |
setGlobalSecondaryIndexUpdates(Collection<GlobalSecondaryIndexUpdate> globalSecondaryIndexUpdates)
An array of one or more global secondary indexes on the table,
together with provisioned throughput settings for each index.
|
void |
setProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
Represents the provisioned throughput settings for a specified table
or index.
|
void |
setTableName(String tableName)
The name of the table to be updated.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateTableRequest |
withGlobalSecondaryIndexUpdates(Collection<GlobalSecondaryIndexUpdate> globalSecondaryIndexUpdates)
An array of one or more global secondary indexes on the table,
together with provisioned throughput settings for each index.
|
UpdateTableRequest |
withGlobalSecondaryIndexUpdates(GlobalSecondaryIndexUpdate... globalSecondaryIndexUpdates)
An array of one or more global secondary indexes on the table,
together with provisioned throughput settings for each index.
|
UpdateTableRequest |
withProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
Represents the provisioned throughput settings for a specified table
or index.
|
UpdateTableRequest |
withTableName(String tableName)
The name of the table to be updated.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public UpdateTableRequest()
public UpdateTableRequest(String tableName, ProvisionedThroughput provisionedThroughput)
tableName
- The name of the table to be updated.provisionedThroughput
- 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.
public String getTableName()
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
public void setTableName(String tableName)
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
tableName
- The name of the table to be updated.public UpdateTableRequest withTableName(String tableName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
tableName
- The name of the table to be updated.public ProvisionedThroughput getProvisionedThroughput()
For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.
For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.
public void setProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.
provisionedThroughput
- 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.
public UpdateTableRequest withProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.
Returns a reference to this object so that method calls can be chained together.
provisionedThroughput
- 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.
public List<GlobalSecondaryIndexUpdate> getGlobalSecondaryIndexUpdates()
public void setGlobalSecondaryIndexUpdates(Collection<GlobalSecondaryIndexUpdate> globalSecondaryIndexUpdates)
globalSecondaryIndexUpdates
- An array of one or more global secondary indexes on the table,
together with provisioned throughput settings for each index.public UpdateTableRequest withGlobalSecondaryIndexUpdates(GlobalSecondaryIndexUpdate... globalSecondaryIndexUpdates)
Returns a reference to this object so that method calls can be chained together.
globalSecondaryIndexUpdates
- An array of one or more global secondary indexes on the table,
together with provisioned throughput settings for each index.public UpdateTableRequest withGlobalSecondaryIndexUpdates(Collection<GlobalSecondaryIndexUpdate> globalSecondaryIndexUpdates)
Returns a reference to this object so that method calls can be chained together.
globalSecondaryIndexUpdates
- An array of one or more global secondary indexes on the table,
together with provisioned throughput settings for each index.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.