Class UpdateItemResult
- java.lang.Object
-
- com.amazonaws.services.dynamodbv2.model.UpdateItemResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class UpdateItemResult extends Object implements Serializable, Cloneable
Represents the output of an UpdateItem operation.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UpdateItemResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateItemResultaddAttributesEntry(String key, AttributeValue value)UpdateItemResultclearAttributesEntries()Removes all the entries added into Attributes.UpdateItemResultclone()booleanequals(Object obj)Map<String,AttributeValue>getAttributes()A map of attribute values as they appeared before the UpdateItem operation.ConsumedCapacitygetConsumedCapacity()ItemCollectionMetricsgetItemCollectionMetrics()inthashCode()voidsetAttributes(Map<String,AttributeValue> attributes)A map of attribute values as they appeared before the UpdateItem operation.voidsetConsumedCapacity(ConsumedCapacity consumedCapacity)voidsetItemCollectionMetrics(ItemCollectionMetrics itemCollectionMetrics)StringtoString()Returns a string representation of this object; useful for testing and debugging.UpdateItemResultwithAttributes(Map<String,AttributeValue> attributes)A map of attribute values as they appeared before the UpdateItem operation.UpdateItemResultwithConsumedCapacity(ConsumedCapacity consumedCapacity)UpdateItemResultwithItemCollectionMetrics(ItemCollectionMetrics itemCollectionMetrics)
-
-
-
Method Detail
-
getAttributes
public Map<String,AttributeValue> getAttributes()
A map of attribute values as they appeared before the UpdateItem operation. This map only appears if ReturnValues was specified as something other than
NONEin the request. Each element represents one attribute.- Returns:
- A map of attribute values as they appeared before the
UpdateItem operation. This map only appears if
ReturnValues was specified as something other than
NONEin the request. Each element represents one attribute.
-
setAttributes
public void setAttributes(Map<String,AttributeValue> attributes)
A map of attribute values as they appeared before the UpdateItem operation. This map only appears if ReturnValues was specified as something other than
NONEin the request. Each element represents one attribute.- Parameters:
attributes- A map of attribute values as they appeared before the UpdateItem operation. This map only appears if ReturnValues was specified as something other thanNONEin the request. Each element represents one attribute.
-
withAttributes
public UpdateItemResult withAttributes(Map<String,AttributeValue> attributes)
A map of attribute values as they appeared before the UpdateItem operation. This map only appears if ReturnValues was specified as something other than
NONEin the request. Each element represents one attribute.- Parameters:
attributes- A map of attribute values as they appeared before the UpdateItem operation. This map only appears if ReturnValues was specified as something other thanNONEin the request. Each element represents one attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addAttributesEntry
public UpdateItemResult addAttributesEntry(String key, AttributeValue value)
-
clearAttributesEntries
public UpdateItemResult clearAttributesEntries()
Removes all the entries added into Attributes. <p> Returns a reference to this object so that method calls can be chained together.
-
setConsumedCapacity
public void setConsumedCapacity(ConsumedCapacity consumedCapacity)
- Parameters:
consumedCapacity-
-
getConsumedCapacity
public ConsumedCapacity getConsumedCapacity()
- Returns:
-
withConsumedCapacity
public UpdateItemResult withConsumedCapacity(ConsumedCapacity consumedCapacity)
- Parameters:
consumedCapacity-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setItemCollectionMetrics
public void setItemCollectionMetrics(ItemCollectionMetrics itemCollectionMetrics)
- Parameters:
itemCollectionMetrics-
-
getItemCollectionMetrics
public ItemCollectionMetrics getItemCollectionMetrics()
- Returns:
-
withItemCollectionMetrics
public UpdateItemResult withItemCollectionMetrics(ItemCollectionMetrics itemCollectionMetrics)
- Parameters:
itemCollectionMetrics-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public UpdateItemResult clone()
-
-