AttributeValueUpdate
instead.@Deprecated public class AttributeValueUpdate extends Object implements Serializable
Specifies the attribute to update and how to perform the update. Possible values: PUT
(default), ADD
or DELETE
.
Constructor and Description |
---|
AttributeValueUpdate()
Deprecated.
Default constructor for a new AttributeValueUpdate object.
|
AttributeValueUpdate(AttributeValue value,
AttributeAction action)
Deprecated.
Constructs a new AttributeValueUpdate object.
|
AttributeValueUpdate(AttributeValue value,
String action)
Deprecated.
Constructs a new AttributeValueUpdate object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Deprecated.
|
String |
getAction()
Deprecated.
The type of action for an item update operation.
|
AttributeValue |
getValue()
Deprecated.
AttributeValue can be
String , Number ,
Binary , StringSet , NumberSet ,
BinarySet . |
int |
hashCode()
Deprecated.
|
void |
setAction(AttributeAction action)
Deprecated.
The type of action for an item update operation.
|
void |
setAction(String action)
Deprecated.
The type of action for an item update operation.
|
void |
setValue(AttributeValue value)
Deprecated.
AttributeValue can be
String , Number ,
Binary , StringSet , NumberSet ,
BinarySet . |
String |
toString()
Deprecated.
Returns a string representation of this object; useful for testing and
debugging.
|
AttributeValueUpdate |
withAction(AttributeAction action)
Deprecated.
The type of action for an item update operation.
|
AttributeValueUpdate |
withAction(String action)
Deprecated.
The type of action for an item update operation.
|
AttributeValueUpdate |
withValue(AttributeValue value)
Deprecated.
AttributeValue can be
String , Number ,
Binary , StringSet , NumberSet ,
BinarySet . |
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.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()
Copyright © 2014. All rights reserved.