com.amazonaws.services.dynamodb.model
Class AttributeValueUpdate

java.lang.Object
  extended by com.amazonaws.services.dynamodb.model.AttributeValueUpdate

public class AttributeValueUpdate
extends Object

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

AttributeValueUpdate

public AttributeValueUpdate()
Default constructor for a new AttributeValueUpdate object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


AttributeValueUpdate

public AttributeValueUpdate(AttributeValue value,
                            String action)
Constructs a new AttributeValueUpdate object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
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.

AttributeValueUpdate

public AttributeValueUpdate(AttributeValue value,
                            AttributeAction action)
Constructs a new AttributeValueUpdate object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
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

getValue

public AttributeValue getValue()
AttributeValue can be String, Number, Binary, StringSet, NumberSet, BinarySet.

Returns:
AttributeValue can be String, Number, Binary, StringSet, NumberSet, BinarySet.

setValue

public void setValue(AttributeValue value)
AttributeValue can be String, Number, Binary, StringSet, NumberSet, BinarySet.

Parameters:
value - AttributeValue can be String, Number, Binary, StringSet, NumberSet, BinarySet.

withValue

public AttributeValueUpdate withValue(AttributeValue value)
AttributeValue can be String, Number, Binary, StringSet, NumberSet, BinarySet.

Returns a reference to this object so that method calls can be chained together.

Parameters:
value - AttributeValue can be String, Number, Binary, StringSet, NumberSet, BinarySet.
Returns:
A reference to this updated object so that method calls can be chained together.

getAction

public String getAction()
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.

Constraints:
Allowed Values: ADD, PUT, DELETE

Returns:
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.
See Also:
AttributeAction

setAction

public void setAction(String 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.

Constraints:
Allowed Values: ADD, PUT, DELETE

Parameters:
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.
See Also:
AttributeAction

withAction

public AttributeValueUpdate withAction(String 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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: ADD, PUT, DELETE

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
AttributeAction

setAction

public void setAction(AttributeAction 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.

Constraints:
Allowed Values: ADD, PUT, DELETE

Parameters:
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.
See Also:
AttributeAction

withAction

public AttributeValueUpdate withAction(AttributeAction 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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: ADD, PUT, DELETE

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
AttributeAction

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.