public class GetItemResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents the output of a GetItem operation.
Modifier and Type | Field and Description |
---|---|
private ConsumedCapacity |
consumedCapacity |
private java.util.Map<java.lang.String,AttributeValue> |
item
A map of attribute names to AttributeValue objects, as specified
by AttributesToGet.
|
Constructor and Description |
---|
GetItemResult() |
Modifier and Type | Method and Description |
---|---|
GetItemResult |
addItemEntry(java.lang.String key,
AttributeValue value) |
GetItemResult |
clearItemEntries()
Removes all the entries added into Item.
|
GetItemResult |
clone() |
boolean |
equals(java.lang.Object obj) |
ConsumedCapacity |
getConsumedCapacity() |
java.util.Map<java.lang.String,AttributeValue> |
getItem()
A map of attribute names to AttributeValue objects, as specified
by AttributesToGet.
|
int |
hashCode() |
void |
setConsumedCapacity(ConsumedCapacity consumedCapacity) |
void |
setItem(java.util.Map<java.lang.String,AttributeValue> item)
A map of attribute names to AttributeValue objects, as specified
by AttributesToGet.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetItemResult |
withConsumedCapacity(ConsumedCapacity consumedCapacity) |
GetItemResult |
withItem(java.util.Map<java.lang.String,AttributeValue> item)
A map of attribute names to AttributeValue objects, as specified
by AttributesToGet.
|
private java.util.Map<java.lang.String,AttributeValue> item
A map of attribute names to AttributeValue objects, as specified by AttributesToGet.
private ConsumedCapacity consumedCapacity
public java.util.Map<java.lang.String,AttributeValue> getItem()
A map of attribute names to AttributeValue objects, as specified by AttributesToGet.
public void setItem(java.util.Map<java.lang.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(java.util.Map<java.lang.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(java.lang.String key, AttributeValue value)
public GetItemResult clearItemEntries()
public void setConsumedCapacity(ConsumedCapacity consumedCapacity)
consumedCapacity
- public ConsumedCapacity getConsumedCapacity()
public GetItemResult withConsumedCapacity(ConsumedCapacity consumedCapacity)
consumedCapacity
- public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public GetItemResult clone()
clone
in class java.lang.Object