DeleteItemRequest
instead.@Deprecated public class DeleteItemRequest extends AmazonWebServiceRequest implements Serializable
DeleteItem operation
.
Deletes a single item in a table by primary key.
You can perform a conditional delete operation that deletes the item if it exists, or if it has an expected attribute value.
NOOP
Constructor and Description |
---|
DeleteItemRequest()
Deprecated.
Default constructor for a new DeleteItemRequest object.
|
DeleteItemRequest(String tableName,
Key key)
Deprecated.
Constructs a new DeleteItemRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Deprecated.
|
Map<String,ExpectedAttributeValue> |
getExpected()
Deprecated.
Designates an attribute for a conditional modification.
|
Key |
getKey()
Deprecated.
The primary key that uniquely identifies each item in a table.
|
String |
getReturnValues()
Deprecated.
Use this parameter if you want to get the attribute name-value pairs
before or after they are modified.
|
String |
getTableName()
Deprecated.
The name of the table in which you want to delete an item.
|
int |
hashCode()
Deprecated.
|
void |
setExpected(Map<String,ExpectedAttributeValue> expected)
Deprecated.
Designates an attribute for a conditional modification.
|
void |
setKey(Key key)
Deprecated.
The primary key that uniquely identifies each item in a table.
|
void |
setReturnValues(ReturnValue returnValues)
Deprecated.
Use this parameter if you want to get the attribute name-value pairs
before or after they are modified.
|
void |
setReturnValues(String returnValues)
Deprecated.
Use this parameter if you want to get the attribute name-value pairs
before or after they are modified.
|
void |
setTableName(String tableName)
Deprecated.
The name of the table in which you want to delete an item.
|
String |
toString()
Deprecated.
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteItemRequest |
withExpected(Map<String,ExpectedAttributeValue> expected)
Deprecated.
Designates an attribute for a conditional modification.
|
DeleteItemRequest |
withKey(Key key)
Deprecated.
The primary key that uniquely identifies each item in a table.
|
DeleteItemRequest |
withReturnValues(ReturnValue returnValues)
Deprecated.
Use this parameter if you want to get the attribute name-value pairs
before or after they are modified.
|
DeleteItemRequest |
withReturnValues(String returnValues)
Deprecated.
Use this parameter if you want to get the attribute name-value pairs
before or after they are modified.
|
DeleteItemRequest |
withTableName(String tableName)
Deprecated.
The name of the table in which you want to delete an item.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public DeleteItemRequest()
public DeleteItemRequest(String tableName, Key key)
tableName
- The name of the table in which you want to delete an
item. Allowed characters are a-z
, A-Z
,
0-9
, _
(underscore), -
(hyphen)
and .
(period).key
- The primary key that uniquely identifies each item in a
table. A primary key can be a one attribute (hash) primary key or a
two attribute (hash-and-range) primary key.public String getTableName()
a-z
, A-Z
, 0-9
,
_
(underscore), -
(hyphen) and
.
(period).
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
a-z
, A-Z
, 0-9
,
_
(underscore), -
(hyphen) and
.
(period).public void setTableName(String tableName)
a-z
, A-Z
, 0-9
,
_
(underscore), -
(hyphen) and
.
(period).
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
tableName
- The name of the table in which you want to delete an item. Allowed
characters are a-z
, A-Z
, 0-9
,
_
(underscore), -
(hyphen) and
.
(period).public DeleteItemRequest withTableName(String tableName)
a-z
, A-Z
, 0-9
,
_
(underscore), -
(hyphen) and
.
(period).
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 in which you want to delete an item. Allowed
characters are a-z
, A-Z
, 0-9
,
_
(underscore), -
(hyphen) and
.
(period).public Key getKey()
public void setKey(Key key)
key
- The primary key that uniquely identifies each item in a table. A
primary key can be a one attribute (hash) primary key or a two
attribute (hash-and-range) primary key.public DeleteItemRequest withKey(Key key)
Returns a reference to this object so that method calls can be chained together.
key
- The primary key that uniquely identifies each item in a table. A
primary key can be a one attribute (hash) primary key or a two
attribute (hash-and-range) primary key.public Map<String,ExpectedAttributeValue> getExpected()
Expected
parameter allows you to provide an attribute
name, and whether or not Amazon DynamoDB should check to see if the
attribute has a particular value before modifying it.Expected
parameter allows you to provide an attribute
name, and whether or not Amazon DynamoDB should check to see if the
attribute has a particular value before modifying it.public void setExpected(Map<String,ExpectedAttributeValue> expected)
Expected
parameter allows you to provide an attribute
name, and whether or not Amazon DynamoDB should check to see if the
attribute has a particular value before modifying it.expected
- Designates an attribute for a conditional modification. The
Expected
parameter allows you to provide an attribute
name, and whether or not Amazon DynamoDB should check to see if the
attribute has a particular value before modifying it.public DeleteItemRequest withExpected(Map<String,ExpectedAttributeValue> expected)
Expected
parameter allows you to provide an attribute
name, and whether or not Amazon DynamoDB should check to see if the
attribute has a particular value before modifying it.
Returns a reference to this object so that method calls can be chained together.
expected
- Designates an attribute for a conditional modification. The
Expected
parameter allows you to provide an attribute
name, and whether or not Amazon DynamoDB should check to see if the
attribute has a particular value before modifying it.public String getReturnValues()
PUT
operations,
the possible parameter values are NONE
(default) or
ALL_OLD
. For update operations, the possible parameter
values are NONE
(default) or ALL_OLD
,
UPDATED_OLD
, ALL_NEW
or
UPDATED_NEW
. NONE
: Nothing is
returned.ALL_OLD
: Returns the attributes of the
item as they were before the operation.UPDATED_OLD
: Returns the values of the updated
attributes, only, as they were before the operation.ALL_NEW
: Returns all the attributes and their new
values after the operation.UPDATED_NEW
: Returns
the values of the updated attributes, only, as they are after the
operation.
Constraints:
Allowed Values: NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW
PUT
operations,
the possible parameter values are NONE
(default) or
ALL_OLD
. For update operations, the possible parameter
values are NONE
(default) or ALL_OLD
,
UPDATED_OLD
, ALL_NEW
or
UPDATED_NEW
. NONE
: Nothing is
returned.ALL_OLD
: Returns the attributes of the
item as they were before the operation.UPDATED_OLD
: Returns the values of the updated
attributes, only, as they were before the operation.ALL_NEW
: Returns all the attributes and their new
values after the operation.UPDATED_NEW
: Returns
the values of the updated attributes, only, as they are after the
operation.ReturnValue
public void setReturnValues(String returnValues)
PUT
operations,
the possible parameter values are NONE
(default) or
ALL_OLD
. For update operations, the possible parameter
values are NONE
(default) or ALL_OLD
,
UPDATED_OLD
, ALL_NEW
or
UPDATED_NEW
. NONE
: Nothing is
returned.ALL_OLD
: Returns the attributes of the
item as they were before the operation.UPDATED_OLD
: Returns the values of the updated
attributes, only, as they were before the operation.ALL_NEW
: Returns all the attributes and their new
values after the operation.UPDATED_NEW
: Returns
the values of the updated attributes, only, as they are after the
operation.
Constraints:
Allowed Values: NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW
returnValues
- Use this parameter if you want to get the attribute name-value pairs
before or after they are modified. For PUT
operations,
the possible parameter values are NONE
(default) or
ALL_OLD
. For update operations, the possible parameter
values are NONE
(default) or ALL_OLD
,
UPDATED_OLD
, ALL_NEW
or
UPDATED_NEW
. NONE
: Nothing is
returned.ALL_OLD
: Returns the attributes of the
item as they were before the operation.UPDATED_OLD
: Returns the values of the updated
attributes, only, as they were before the operation.ALL_NEW
: Returns all the attributes and their new
values after the operation.UPDATED_NEW
: Returns
the values of the updated attributes, only, as they are after the
operation.ReturnValue
public DeleteItemRequest withReturnValues(String returnValues)
PUT
operations,
the possible parameter values are NONE
(default) or
ALL_OLD
. For update operations, the possible parameter
values are NONE
(default) or ALL_OLD
,
UPDATED_OLD
, ALL_NEW
or
UPDATED_NEW
. NONE
: Nothing is
returned.ALL_OLD
: Returns the attributes of the
item as they were before the operation.UPDATED_OLD
: Returns the values of the updated
attributes, only, as they were before the operation.ALL_NEW
: Returns all the attributes and their new
values after the operation.UPDATED_NEW
: Returns
the values of the updated attributes, only, as they are after the
operation.Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW
returnValues
- Use this parameter if you want to get the attribute name-value pairs
before or after they are modified. For PUT
operations,
the possible parameter values are NONE
(default) or
ALL_OLD
. For update operations, the possible parameter
values are NONE
(default) or ALL_OLD
,
UPDATED_OLD
, ALL_NEW
or
UPDATED_NEW
. NONE
: Nothing is
returned.ALL_OLD
: Returns the attributes of the
item as they were before the operation.UPDATED_OLD
: Returns the values of the updated
attributes, only, as they were before the operation.ALL_NEW
: Returns all the attributes and their new
values after the operation.UPDATED_NEW
: Returns
the values of the updated attributes, only, as they are after the
operation.ReturnValue
public void setReturnValues(ReturnValue returnValues)
PUT
operations,
the possible parameter values are NONE
(default) or
ALL_OLD
. For update operations, the possible parameter
values are NONE
(default) or ALL_OLD
,
UPDATED_OLD
, ALL_NEW
or
UPDATED_NEW
. NONE
: Nothing is
returned.ALL_OLD
: Returns the attributes of the
item as they were before the operation.UPDATED_OLD
: Returns the values of the updated
attributes, only, as they were before the operation.ALL_NEW
: Returns all the attributes and their new
values after the operation.UPDATED_NEW
: Returns
the values of the updated attributes, only, as they are after the
operation.
Constraints:
Allowed Values: NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW
returnValues
- Use this parameter if you want to get the attribute name-value pairs
before or after they are modified. For PUT
operations,
the possible parameter values are NONE
(default) or
ALL_OLD
. For update operations, the possible parameter
values are NONE
(default) or ALL_OLD
,
UPDATED_OLD
, ALL_NEW
or
UPDATED_NEW
. NONE
: Nothing is
returned.ALL_OLD
: Returns the attributes of the
item as they were before the operation.UPDATED_OLD
: Returns the values of the updated
attributes, only, as they were before the operation.ALL_NEW
: Returns all the attributes and their new
values after the operation.UPDATED_NEW
: Returns
the values of the updated attributes, only, as they are after the
operation.ReturnValue
public DeleteItemRequest withReturnValues(ReturnValue returnValues)
PUT
operations,
the possible parameter values are NONE
(default) or
ALL_OLD
. For update operations, the possible parameter
values are NONE
(default) or ALL_OLD
,
UPDATED_OLD
, ALL_NEW
or
UPDATED_NEW
. NONE
: Nothing is
returned.ALL_OLD
: Returns the attributes of the
item as they were before the operation.UPDATED_OLD
: Returns the values of the updated
attributes, only, as they were before the operation.ALL_NEW
: Returns all the attributes and their new
values after the operation.UPDATED_NEW
: Returns
the values of the updated attributes, only, as they are after the
operation.Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW
returnValues
- Use this parameter if you want to get the attribute name-value pairs
before or after they are modified. For PUT
operations,
the possible parameter values are NONE
(default) or
ALL_OLD
. For update operations, the possible parameter
values are NONE
(default) or ALL_OLD
,
UPDATED_OLD
, ALL_NEW
or
UPDATED_NEW
. NONE
: Nothing is
returned.ALL_OLD
: Returns the attributes of the
item as they were before the operation.UPDATED_OLD
: Returns the values of the updated
attributes, only, as they were before the operation.ALL_NEW
: Returns all the attributes and their new
values after the operation.UPDATED_NEW
: Returns
the values of the updated attributes, only, as they are after the
operation.ReturnValue
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.