com.amazonaws.services.dynamodb.model
Class DeleteTableRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.dynamodb.model.DeleteTableRequest

public class DeleteTableRequest
extends AmazonWebServiceRequest

Container for the parameters to the DeleteTable operation.

The DeleteTable operation deletes a table and all of its items. If the table is in the ACTIVE state, you can delete it. If a table is in CREATING or UPDATING states, then DeleteTable returns a ResourceInUseException. If the specified table does not exist, Amazon DynamoDB returns a ResourceNotFoundException.

See Also:
AmazonDynamoDB.deleteTable(DeleteTableRequest)

Constructor 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()
          Returns the value of the TableName property for this object.
 int hashCode()
           
 void setTableName(String tableName)
          Sets the value of the TableName property for this object.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DeleteTableRequest withTableName(String tableName)
          Sets the value of the TableName property for this object.
 
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

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(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 -
Method Detail

getTableName

public String getTableName()
Returns the value of the TableName property for this object.

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

Returns:
The value of the TableName property for this object.

setTableName

public void setTableName(String tableName)
Sets the value of the TableName property for this object.

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

Parameters:
tableName - The new value for the TableName property for this object.

withTableName

public DeleteTableRequest withTableName(String tableName)
Sets the value of the TableName property for this object.

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 new value for the TableName property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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