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 GetItemResult
addItemEntry(String key, AttributeValue value)
GetItemResult
clearItemEntries()
Removes all the entries added into Item.GetItemResult
clone()
boolean
equals(Object obj)
ConsumedCapacity
getConsumedCapacity()
Map<String,AttributeValue>
getItem()
A map of attribute names to AttributeValue objects, as specified by AttributesToGet.int
hashCode()
void
setConsumedCapacity(ConsumedCapacity consumedCapacity)
void
setItem(Map<String,AttributeValue> item)
A map of attribute names to AttributeValue objects, as specified by AttributesToGet.String
toString()
Returns a string representation of this object; useful for testing and debugging.GetItemResult
withConsumedCapacity(ConsumedCapacity consumedCapacity)
GetItemResult
withItem(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public GetItemResult clone()
-
-