public class DeleteTableRequest extends AmazonWebServiceRequest implements Serializable
DeleteTable operation.
The DeleteTable operation deletes a table and all of its items.
After a DeleteTable request, the specified table is in the
DELETING state until DynamoDB completes the deletion. If
the table is in the ACTIVE state, you can delete it. If a
table is in CREATING or UPDATING states,
then DynamoDB returns a
ResourceInUseException . If the specified
table does not exist, DynamoDB returns a
ResourceNotFoundException . If table is already in the
DELETING state, no error is returned.
NOTE: DynamoDB might continue to accept data read and write operations, such as GetItem and PutItem, on a table in the DELETING state until the table deletion is complete.
When you delete a table, any indexes on that table are also deleted.
If you have DynamoDB Streams enabled on the table, then the
corresponding stream on that table goes into the DISABLED
state, and the stream is automatically deleted after 24 hours.
Use the DescribeTable API to check the status of the table.
| Constructor and Description |
|---|
DeleteTableRequest()
Default constructor for a new DeleteTableRequest object.
|
DeleteTableRequest(String tableName)
Constructs a new DeleteTableRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getTableName()
The name of the table to delete.
|
int |
hashCode() |
void |
setTableName(String tableName)
The name of the table to delete.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteTableRequest |
withTableName(String tableName)
The name of the table to delete.
|
getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollectorpublic DeleteTableRequest()
public DeleteTableRequest(String tableName)
tableName - The name of the table to delete.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 delete.public DeleteTableRequest 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 delete.public String toString()
toString in class ObjectObject.toString()Copyright © 2016. All rights reserved.