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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GetItemResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetItemResultaddItemEntry(String key, AttributeValue value)GetItemResultclearItemEntries()Removes all the entries added into Item.GetItemResultclone()booleanequals(Object obj)ConsumedCapacitygetConsumedCapacity()Map<String,AttributeValue>getItem()A map of attribute names to AttributeValue objects, as specified by AttributesToGet.inthashCode()voidsetConsumedCapacity(ConsumedCapacity consumedCapacity)voidsetItem(Map<String,AttributeValue> item)A map of attribute names to AttributeValue objects, as specified by AttributesToGet.StringtoString()Returns a string representation of this object; useful for testing and debugging.GetItemResultwithConsumedCapacity(ConsumedCapacity consumedCapacity)GetItemResultwithItem(Map<String,AttributeValue> item)A map of attribute names to AttributeValue objects, as specified by AttributesToGet.
-
-
-
Method Detail
-
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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public GetItemResult clone()
-
-