Class GetItemResult

java.lang.Object
com.amazonaws.services.dynamodbv2.model.GetItemResult
All Implemented Interfaces:
Serializable, Cloneable

public class GetItemResult extends Object implements Serializable, Cloneable

Represents the output of a GetItem operation.

See Also:
  • Constructor Details

    • GetItemResult

      public GetItemResult()
  • Method Details

    • getItem

      public Map<String,AttributeValue> getItem()

      A map of attribute names to AttributeValue objects, as specified by AttributesToGet.

      Returns:
      A map of attribute names to AttributeValue objects, as specified by AttributesToGet.
    • setItem

      public void setItem(Map<String,AttributeValue> item)

      A map of attribute names to AttributeValue objects, as specified by AttributesToGet.

      Parameters:
      item - A map of attribute names to AttributeValue objects, as specified by AttributesToGet.
    • withItem

      public GetItemResult withItem(Map<String,AttributeValue> item)

      A map of attribute names to AttributeValue objects, as specified by AttributesToGet.

      Parameters:
      item - A map of attribute names to AttributeValue objects, as specified by AttributesToGet.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • addItemEntry

      public GetItemResult addItemEntry(String key, AttributeValue value)
    • clearItemEntries

      public GetItemResult clearItemEntries()
      Removes all the entries added into Item. <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 GetItemResult withConsumedCapacity(ConsumedCapacity consumedCapacity)
      Parameters:
      consumedCapacity -
      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 GetItemResult clone()
      Overrides:
      clone in class Object