public class GetItemResult extends Object implements Serializable, Cloneable
Represents the output of a GetItem operation.
Constructor and Description |
---|
GetItemResult() |
Modifier and Type | Method and 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.
|
public Map<String,AttributeValue> getItem()
A map of attribute names to AttributeValue objects, as specified by AttributesToGet.
public void setItem(Map<String,AttributeValue> item)
A map of attribute names to AttributeValue objects, as specified by AttributesToGet.
item
- A map of attribute names to AttributeValue objects, as
specified by AttributesToGet.public GetItemResult withItem(Map<String,AttributeValue> item)
A map of attribute names to AttributeValue objects, as specified by AttributesToGet.
item
- A map of attribute names to AttributeValue objects, as
specified by AttributesToGet.public GetItemResult addItemEntry(String key, AttributeValue value)
public GetItemResult clearItemEntries()
public void setConsumedCapacity(ConsumedCapacity consumedCapacity)
consumedCapacity
- public ConsumedCapacity getConsumedCapacity()
public GetItemResult withConsumedCapacity(ConsumedCapacity consumedCapacity)
consumedCapacity
- public String toString()
toString
in class Object
Object.toString()
public GetItemResult clone()
Copyright © 2015. All rights reserved.