public class UpdateItemResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents the output of an UpdateItem operation.
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,AttributeValue> |
attributes
A map of attribute values as they appeared before the UpdateItem
operation.
|
private ConsumedCapacity |
consumedCapacity |
private ItemCollectionMetrics |
itemCollectionMetrics |
Constructor and Description |
---|
UpdateItemResult() |
Modifier and Type | Method and Description |
---|---|
UpdateItemResult |
addAttributesEntry(java.lang.String key,
AttributeValue value) |
UpdateItemResult |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
UpdateItemResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,AttributeValue> |
getAttributes()
A map of attribute values as they appeared before the UpdateItem
operation.
|
ConsumedCapacity |
getConsumedCapacity() |
ItemCollectionMetrics |
getItemCollectionMetrics() |
int |
hashCode() |
void |
setAttributes(java.util.Map<java.lang.String,AttributeValue> attributes)
A map of attribute values as they appeared before the UpdateItem
operation.
|
void |
setConsumedCapacity(ConsumedCapacity consumedCapacity) |
void |
setItemCollectionMetrics(ItemCollectionMetrics itemCollectionMetrics) |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateItemResult |
withAttributes(java.util.Map<java.lang.String,AttributeValue> attributes)
A map of attribute values as they appeared before the UpdateItem
operation.
|
UpdateItemResult |
withConsumedCapacity(ConsumedCapacity consumedCapacity) |
UpdateItemResult |
withItemCollectionMetrics(ItemCollectionMetrics itemCollectionMetrics) |
private java.util.Map<java.lang.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.
private ConsumedCapacity consumedCapacity
private ItemCollectionMetrics itemCollectionMetrics
public java.util.Map<java.lang.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.
NONE
in the request. Each element represents one
attribute.public void setAttributes(java.util.Map<java.lang.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.
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.public UpdateItemResult withAttributes(java.util.Map<java.lang.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.
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.public UpdateItemResult addAttributesEntry(java.lang.String key, AttributeValue value)
public UpdateItemResult clearAttributesEntries()
public void setConsumedCapacity(ConsumedCapacity consumedCapacity)
consumedCapacity
- public ConsumedCapacity getConsumedCapacity()
public UpdateItemResult withConsumedCapacity(ConsumedCapacity consumedCapacity)
consumedCapacity
- public void setItemCollectionMetrics(ItemCollectionMetrics itemCollectionMetrics)
itemCollectionMetrics
- public ItemCollectionMetrics getItemCollectionMetrics()
public UpdateItemResult withItemCollectionMetrics(ItemCollectionMetrics itemCollectionMetrics)
itemCollectionMetrics
- public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public UpdateItemResult clone()
clone
in class java.lang.Object