public class GetItemResult extends Object implements Serializable
Represents the output of a GetItem operation.
Constructor and Description |
---|
GetItemResult() |
Modifier and Type | Method and Description |
---|---|
GetItemResult |
addItemEntry(String key,
AttributeValue value)
A map of attribute names to AttributeValue objects, as
specified by AttributesToGet.
|
GetItemResult |
clearItemEntries()
Removes all the entries added into Item.
|
boolean |
equals(Object obj) |
ConsumedCapacity |
getConsumedCapacity()
Represents the capacity units consumed by an operation.
|
Map<String,AttributeValue> |
getItem()
A map of attribute names to AttributeValue objects, as
specified by AttributesToGet.
|
int |
hashCode() |
void |
setConsumedCapacity(ConsumedCapacity consumedCapacity)
Represents the capacity units consumed by an operation.
|
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)
Represents the capacity units consumed by an operation.
|
GetItemResult |
withItem(Map<String,AttributeValue> item)
A map of attribute names to AttributeValue objects, as
specified by AttributesToGet.
|
public Map<String,AttributeValue> getItem()
public void setItem(Map<String,AttributeValue> item)
item
- A map of attribute names to AttributeValue objects, as
specified by AttributesToGet.public GetItemResult withItem(Map<String,AttributeValue> item)
Returns a reference to this object so that method calls can be chained together.
item
- A map of attribute names to AttributeValue objects, as
specified by AttributesToGet.public GetItemResult addItemEntry(String key, AttributeValue value)
The method adds a new key-value pair into Item parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Item.value
- The corresponding value of the entry to be added into Item.public GetItemResult clearItemEntries()
Returns a reference to this object so that method calls can be chained together.
public ConsumedCapacity getConsumedCapacity()
public void setConsumedCapacity(ConsumedCapacity consumedCapacity)
consumedCapacity
- Represents the capacity units consumed by an operation. The data
returned includes the total provisioned throughput consumed, along
with statistics for the table and any indexes involved in the
operation. ConsumedCapacity is only returned if it was asked
for in the request. For more information, see Provisioned
Throughput in the Amazon DynamoDB Developer Guide.public GetItemResult withConsumedCapacity(ConsumedCapacity consumedCapacity)
Returns a reference to this object so that method calls can be chained together.
consumedCapacity
- Represents the capacity units consumed by an operation. The data
returned includes the total provisioned throughput consumed, along
with statistics for the table and any indexes involved in the
operation. ConsumedCapacity is only returned if it was asked
for in the request. For more information, see Provisioned
Throughput in the Amazon DynamoDB Developer Guide.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.