com.amazonaws.services.dynamodbv2.model
Class DeleteTableRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.dynamodbv2.model.DeleteTableRequest
All Implemented Interfaces:
java.io.Serializable

public class DeleteTableRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

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 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.

See Also:
AmazonDynamoDB.deleteTable(DeleteTableRequest), Serialized Form

Constructor Summary
DeleteTableRequest()
          Default constructor for a new DeleteTableRequest object.
DeleteTableRequest(java.lang.String tableName)
          Constructs a new DeleteTableRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getTableName()
          The name of the table to delete.
 int hashCode()
           
 void setTableName(java.lang.String tableName)
          The name of the table to delete.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DeleteTableRequest withTableName(java.lang.String tableName)
          The name of the table to delete.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeleteTableRequest

public DeleteTableRequest()
Default constructor for a new DeleteTableRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


DeleteTableRequest

public DeleteTableRequest(java.lang.String tableName)
Constructs a new DeleteTableRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
tableName - The name of the table to delete.
Method Detail

getTableName

public java.lang.String getTableName()
The name of the table to delete.

Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+

Returns:
The name of the table to delete.

setTableName

public void setTableName(java.lang.String tableName)
The name of the table to delete.

Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+

Parameters:
tableName - The name of the table to delete.

withTableName

public DeleteTableRequest withTableName(java.lang.String tableName)
The name of the table to delete.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+

Parameters:
tableName - The name of the table to delete.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.