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 UpdateItemResult
addAttributesEntry(String key, AttributeValue value)
UpdateItemResult
clearAttributesEntries()
Removes all the entries added into Attributes.UpdateItemResult
clone()
boolean
equals(Object obj)
Map<String,AttributeValue>
getAttributes()
A map of attribute values as they appeared before the UpdateItem operation.ConsumedCapacity
getConsumedCapacity()
ItemCollectionMetrics
getItemCollectionMetrics()
int
hashCode()
void
setAttributes(Map<String,AttributeValue> attributes)
A map of attribute values as they appeared before the UpdateItem operation.void
setConsumedCapacity(ConsumedCapacity consumedCapacity)
void
setItemCollectionMetrics(ItemCollectionMetrics itemCollectionMetrics)
String
toString()
Returns a string representation of this object; useful for testing and debugging.UpdateItemResult
withAttributes(Map<String,AttributeValue> attributes)
A map of attribute values as they appeared before the UpdateItem operation.UpdateItemResult
withConsumedCapacity(ConsumedCapacity consumedCapacity)
UpdateItemResult
withItemCollectionMetrics(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
NONE
in 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
NONE
in 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
NONE
in 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 thanNONE
in 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
NONE
in 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 thanNONE
in 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public UpdateItemResult clone()
-
-