public class DeleteTableRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
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.
Use the DescribeTable API to check the status of the table.
NOOP| 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 |
|---|---|
DeleteTableRequest |
clone()
Creates a shallow clone of this request.
|
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.
|
copyBaseTo, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, 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()public DeleteTableRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2015. All rights reserved.