public class DeleteTableRequest extends AmazonWebServiceRequest implements java.io.Serializable
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.
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
action to check the status of the table.
Constructor and Description |
---|
DeleteTableRequest()
Default constructor for DeleteTableRequest object.
|
DeleteTableRequest(java.lang.String tableName)
Constructs a new DeleteTableRequest object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public DeleteTableRequest()
public DeleteTableRequest(java.lang.String tableName)
tableName
- The name of the table to delete.
public java.lang.String getTableName()
The name of the table to delete.
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
The name of the table to delete.
public void setTableName(java.lang.String tableName)
The name of the table to delete.
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
tableName
- The name of the table to delete.
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_.-]+
tableName
- The name of the table to delete.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.