@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetItemResult extends AmazonWebServiceResult<ResponseMetadata> 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()
The capacity units consumed by the
GetItem operation. |
Map<String,AttributeValue> |
getItem()
A map of attribute names to
AttributeValue objects, as specified by
ProjectionExpression . |
int |
hashCode() |
void |
setConsumedCapacity(ConsumedCapacity consumedCapacity)
The capacity units consumed by the
GetItem operation. |
void |
setItem(Map<String,AttributeValue> item)
A map of attribute names to
AttributeValue objects, as specified by
ProjectionExpression . |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
GetItemResult |
withConsumedCapacity(ConsumedCapacity consumedCapacity)
The capacity units consumed by the
GetItem operation. |
GetItemResult |
withItem(Map<String,AttributeValue> item)
A map of attribute names to
AttributeValue objects, as specified by
ProjectionExpression . |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public Map<String,AttributeValue> getItem()
A map of attribute names to AttributeValue
objects, as specified by
ProjectionExpression
.
AttributeValue
objects, as specified by
ProjectionExpression
.public void setItem(Map<String,AttributeValue> item)
A map of attribute names to AttributeValue
objects, as specified by
ProjectionExpression
.
item
- A map of attribute names to AttributeValue
objects, as specified by
ProjectionExpression
.public GetItemResult withItem(Map<String,AttributeValue> item)
A map of attribute names to AttributeValue
objects, as specified by
ProjectionExpression
.
item
- A map of attribute names to AttributeValue
objects, as specified by
ProjectionExpression
.public GetItemResult addItemEntry(String key, AttributeValue value)
public GetItemResult clearItemEntries()
public void setConsumedCapacity(ConsumedCapacity consumedCapacity)
The capacity units consumed by the GetItem
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 the ReturnConsumedCapacity
parameter was
specified. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.
consumedCapacity
- The capacity units consumed by the GetItem
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 the ReturnConsumedCapacity
parameter was specified. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.public ConsumedCapacity getConsumedCapacity()
The capacity units consumed by the GetItem
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 the ReturnConsumedCapacity
parameter was
specified. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.
GetItem
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 the ReturnConsumedCapacity
parameter was specified. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.public GetItemResult withConsumedCapacity(ConsumedCapacity consumedCapacity)
The capacity units consumed by the GetItem
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 the ReturnConsumedCapacity
parameter was
specified. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.
consumedCapacity
- The capacity units consumed by the GetItem
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 the ReturnConsumedCapacity
parameter was specified. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.public String toString()
toString
in class Object
Object.toString()
public GetItemResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.