|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.dynamodbv2.model.DeleteTableRequest
public class DeleteTableRequest
Container for the parameters to the 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 Amazon 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 Amazon DynamoDB returns a
ResourceInUseException . If the specified table does not exist, Amazon DynamoDB returns a ResourceNotFoundException
. If table is already in the DELETING
state, no error is returned.
NOTE: Amazon 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.
Tables are unique among those associated with the AWS Account issuing the request, and the AWS region that receives the request (such as dynamodb.us-east-1.amazonaws.com). Each Amazon DynamoDB endpoint is entirely independent. For example, if you have two tables called "MyTable," one in dynamodb.us-east-1.amazonaws.com and one in dynamodb.us-west-1.amazonaws.com, they are completely independent and do not share any data; deleting one does not delete the other.
When you delete a table, any local secondary indexes on that table are also deleted.
Use the DescribeTable API to check the status of the table.
AmazonDynamoDB.deleteTable(DeleteTableRequest)
,
Serialized FormConstructor Summary | |
---|---|
DeleteTableRequest()
Default constructor for a new DeleteTableRequest object. |
|
DeleteTableRequest(String tableName)
Constructs a new DeleteTableRequest object. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DeleteTableRequest()
public DeleteTableRequest(String tableName)
tableName
- The name of the table to delete.Method Detail |
---|
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 Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |