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:
  • Constructor Details

    • UpdateItemResult

      public UpdateItemResult()
  • Method Details

    • 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 than NONE 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 than NONE 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public UpdateItemResult clone()
      Overrides:
      clone in class Object