public class GetItemResult
extends java.lang.Object
implements java.io.Serializable
Represents the output of a GetItem
operation.
Constructor and Description |
---|
GetItemResult() |
Modifier and Type | Method and Description |
---|---|
GetItemResult |
addItemEntry(java.lang.String key,
AttributeValue value)
A map of attribute names to
AttributeValue objects, as
specified by ProjectionExpression . |
GetItemResult |
clearItemEntries()
Removes all the entries added into Item.
|
boolean |
equals(java.lang.Object obj) |
ConsumedCapacity |
getConsumedCapacity()
The capacity units consumed by the
GetItem operation. |
java.util.Map<java.lang.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(java.util.Map<java.lang.String,AttributeValue> item)
A map of attribute names to
AttributeValue objects, as
specified by ProjectionExpression . |
java.lang.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(java.util.Map<java.lang.String,AttributeValue> item)
A map of attribute names to
AttributeValue objects, as
specified by ProjectionExpression . |
public java.util.Map<java.lang.String,AttributeValue> getItem()
A map of attribute names to AttributeValue
objects, as
specified by ProjectionExpression
.
A map of attribute names to AttributeValue
objects,
as specified by ProjectionExpression
.
public void setItem(java.util.Map<java.lang.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(java.util.Map<java.lang.String,AttributeValue> item)
A map of attribute names to AttributeValue
objects, as
specified by ProjectionExpression
.
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 ProjectionExpression
.
public GetItemResult addItemEntry(java.lang.String key, AttributeValue value)
A map of attribute names to AttributeValue
objects, as
specified by ProjectionExpression
.
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()
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.
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 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 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.
Returns a reference to this object so that method calls can be chained together.
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.