@Deprecated public class UpdateItemRequest extends AmazonWebServiceRequest implements java.io.Serializable
UpdateItem operation.
Edits an existing item's attributes.
You can perform a conditional update (insert a new attribute name-value pair if it doesn't exist, or replace an existing name-value pair if it has certain expected attribute values).
| コンストラクタと説明 |
|---|
UpdateItemRequest()
非推奨です。
Default constructor for a new UpdateItemRequest object.
|
UpdateItemRequest(java.lang.String tableName,
Key key,
java.util.Map<java.lang.String,AttributeValueUpdate> attributeUpdates)
非推奨です。
Constructs a new UpdateItemRequest object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj)
非推奨です。
|
java.util.Map<java.lang.String,AttributeValueUpdate> |
getAttributeUpdates()
非推奨です。
Map of attribute name to the new value and action for the update.
|
java.util.Map<java.lang.String,ExpectedAttributeValue> |
getExpected()
非推奨です。
Designates an attribute for a conditional modification.
|
Key |
getKey()
非推奨です。
The primary key that uniquely identifies each item in a table.
|
java.lang.String |
getReturnValues()
非推奨です。
Use this parameter if you want to get the attribute name-value pairs
before or after they are modified.
|
java.lang.String |
getTableName()
非推奨です。
The name of the table in which you want to update an item.
|
int |
hashCode()
非推奨です。
|
void |
setAttributeUpdates(java.util.Map<java.lang.String,AttributeValueUpdate> attributeUpdates)
非推奨です。
Map of attribute name to the new value and action for the update.
|
void |
setExpected(java.util.Map<java.lang.String,ExpectedAttributeValue> expected)
非推奨です。
Designates an attribute for a conditional modification.
|
void |
setKey(Key key)
非推奨です。
The primary key that uniquely identifies each item in a table.
|
void |
setReturnValues(ReturnValue returnValues)
非推奨です。
Use this parameter if you want to get the attribute name-value pairs
before or after they are modified.
|
void |
setReturnValues(java.lang.String returnValues)
非推奨です。
Use this parameter if you want to get the attribute name-value pairs
before or after they are modified.
|
void |
setTableName(java.lang.String tableName)
非推奨です。
The name of the table in which you want to update an item.
|
java.lang.String |
toString()
非推奨です。
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateItemRequest |
withAttributeUpdates(java.util.Map<java.lang.String,AttributeValueUpdate> attributeUpdates)
非推奨です。
Map of attribute name to the new value and action for the update.
|
UpdateItemRequest |
withExpected(java.util.Map<java.lang.String,ExpectedAttributeValue> expected)
非推奨です。
Designates an attribute for a conditional modification.
|
UpdateItemRequest |
withKey(Key key)
非推奨です。
The primary key that uniquely identifies each item in a table.
|
UpdateItemRequest |
withReturnValues(ReturnValue returnValues)
非推奨です。
Use this parameter if you want to get the attribute name-value pairs
before or after they are modified.
|
UpdateItemRequest |
withReturnValues(java.lang.String returnValues)
非推奨です。
Use this parameter if you want to get the attribute name-value pairs
before or after they are modified.
|
UpdateItemRequest |
withTableName(java.lang.String tableName)
非推奨です。
The name of the table in which you want to update an item.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic UpdateItemRequest()
public UpdateItemRequest(java.lang.String tableName,
Key key,
java.util.Map<java.lang.String,AttributeValueUpdate> attributeUpdates)
tableName - The name of the table in which you want to update 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.attributeUpdates - Map of attribute name to the new value and
action for the update. The attribute names specify the attributes to
modify, and cannot contain any primary key attributes.public java.lang.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(java.lang.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 update an item. Allowed
characters are a-z, A-Z, 0-9,
_ (underscore), - (hyphen) and
. (period).public UpdateItemRequest withTableName(java.lang.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 update 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 UpdateItemRequest 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 java.util.Map<java.lang.String,AttributeValueUpdate> getAttributeUpdates()
public void setAttributeUpdates(java.util.Map<java.lang.String,AttributeValueUpdate> attributeUpdates)
attributeUpdates - Map of attribute name to the new value and action for the update. The
attribute names specify the attributes to modify, and cannot contain
any primary key attributes.public UpdateItemRequest withAttributeUpdates(java.util.Map<java.lang.String,AttributeValueUpdate> attributeUpdates)
Returns a reference to this object so that method calls can be chained together.
attributeUpdates - Map of attribute name to the new value and action for the update. The
attribute names specify the attributes to modify, and cannot contain
any primary key attributes.public java.util.Map<java.lang.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(java.util.Map<java.lang.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 UpdateItemRequest withExpected(java.util.Map<java.lang.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 java.lang.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.ReturnValuepublic void setReturnValues(java.lang.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.ReturnValuepublic UpdateItemRequest withReturnValues(java.lang.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.ReturnValuepublic 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.ReturnValuepublic UpdateItemRequest 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.ReturnValuepublic java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object