|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.dynamodb.model.AttributeValueUpdate
public class AttributeValueUpdate
Specifies the attribute to update and how to perform the update. Possible values: PUT
(default), ADD
or DELETE
.
Constructor Summary | |
---|---|
AttributeValueUpdate()
Default constructor for a new AttributeValueUpdate object. |
|
AttributeValueUpdate(AttributeValue value,
AttributeAction action)
Constructs a new AttributeValueUpdate object. |
|
AttributeValueUpdate(AttributeValue value,
String action)
Constructs a new AttributeValueUpdate object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getAction()
The type of action for an item update operation. |
AttributeValue |
getValue()
AttributeValue can be String , Number ,
Binary , StringSet , NumberSet ,
BinarySet . |
int |
hashCode()
|
void |
setAction(AttributeAction action)
The type of action for an item update operation. |
void |
setAction(String action)
The type of action for an item update operation. |
void |
setValue(AttributeValue value)
AttributeValue can be String , Number ,
Binary , StringSet , NumberSet ,
BinarySet . |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
AttributeValueUpdate |
withAction(AttributeAction action)
The type of action for an item update operation. |
AttributeValueUpdate |
withAction(String action)
The type of action for an item update operation. |
AttributeValueUpdate |
withValue(AttributeValue value)
AttributeValue can be String , Number ,
Binary , StringSet , NumberSet ,
BinarySet . |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AttributeValueUpdate()
public AttributeValueUpdate(AttributeValue value, String action)
value
- AttributeValue can be String
,
Number
, Binary
, StringSet
,
NumberSet
, BinarySet
.action
- The type of action for an item update operation. Only
use the add action for numbers or sets; the specified value is added
to the existing value. If a set of values is specified, the values are
added to the existing set. Adds the specified attribute. If the
attribute exists, it is replaced by the new value. If no value is
specified, this removes the attribute and its value. If a set of
values is specified, then the values in the specified set are removed
from the old set.public AttributeValueUpdate(AttributeValue value, AttributeAction action)
value
- AttributeValue can be String
,
Number
, Binary
, StringSet
,
NumberSet
, BinarySet
.action
- The type of action for an item update operation. Only
use the add action for numbers or sets; the specified value is added
to the existing value. If a set of values is specified, the values are
added to the existing set. Adds the specified attribute. If the
attribute exists, it is replaced by the new value. If no value is
specified, this removes the attribute and its value. If a set of
values is specified, then the values in the specified set are removed
from the old set.Method Detail |
---|
public AttributeValue getValue()
String
, Number
,
Binary
, StringSet
, NumberSet
,
BinarySet
.
String
, Number
,
Binary
, StringSet
, NumberSet
,
BinarySet
.public void setValue(AttributeValue value)
String
, Number
,
Binary
, StringSet
, NumberSet
,
BinarySet
.
value
- AttributeValue can be String
, Number
,
Binary
, StringSet
, NumberSet
,
BinarySet
.public AttributeValueUpdate withValue(AttributeValue value)
String
, Number
,
Binary
, StringSet
, NumberSet
,
BinarySet
.
Returns a reference to this object so that method calls can be chained together.
value
- AttributeValue can be String
, Number
,
Binary
, StringSet
, NumberSet
,
BinarySet
.
public String getAction()
Constraints:
Allowed Values: ADD, PUT, DELETE
AttributeAction
public void setAction(String action)
Constraints:
Allowed Values: ADD, PUT, DELETE
action
- The type of action for an item update operation. Only use the add
action for numbers or sets; the specified value is added to the
existing value. If a set of values is specified, the values are added
to the existing set. Adds the specified attribute. If the attribute
exists, it is replaced by the new value. If no value is specified,
this removes the attribute and its value. If a set of values is
specified, then the values in the specified set are removed from the
old set.AttributeAction
public AttributeValueUpdate withAction(String action)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ADD, PUT, DELETE
action
- The type of action for an item update operation. Only use the add
action for numbers or sets; the specified value is added to the
existing value. If a set of values is specified, the values are added
to the existing set. Adds the specified attribute. If the attribute
exists, it is replaced by the new value. If no value is specified,
this removes the attribute and its value. If a set of values is
specified, then the values in the specified set are removed from the
old set.
AttributeAction
public void setAction(AttributeAction action)
Constraints:
Allowed Values: ADD, PUT, DELETE
action
- The type of action for an item update operation. Only use the add
action for numbers or sets; the specified value is added to the
existing value. If a set of values is specified, the values are added
to the existing set. Adds the specified attribute. If the attribute
exists, it is replaced by the new value. If no value is specified,
this removes the attribute and its value. If a set of values is
specified, then the values in the specified set are removed from the
old set.AttributeAction
public AttributeValueUpdate withAction(AttributeAction action)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ADD, PUT, DELETE
action
- The type of action for an item update operation. Only use the add
action for numbers or sets; the specified value is added to the
existing value. If a set of values is specified, the values are added
to the existing set. Adds the specified attribute. If the attribute
exists, it is replaced by the new value. If no value is specified,
this removes the attribute and its value. If a set of values is
specified, then the values in the specified set are removed from the
old set.
AttributeAction
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |