com.amazonaws.services.dynamodbv2.model
Class GetItemResult

java.lang.Object
  extended by com.amazonaws.services.dynamodbv2.model.GetItemResult
All Implemented Interfaces:
java.io.Serializable

public class GetItemResult
extends java.lang.Object
implements java.io.Serializable

Represents the output of a GetItem operation.

See Also:
Serialized Form

Constructor Summary
GetItemResult()
           
 
Method Summary
 GetItemResult addItemEntry(java.lang.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(java.lang.Object obj)
           
 ConsumedCapacity getConsumedCapacity()
          Represents the capacity units consumed by an operation.
 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)
          Represents the capacity units consumed by an operation.
 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)
          Represents the capacity units consumed by an operation.
 GetItemResult withItem(java.util.Map<java.lang.String,AttributeValue> item)
          A map of attribute names to AttributeValue objects, as specified by AttributesToGet.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GetItemResult

public GetItemResult()
Method Detail

getItem

public java.util.Map<java.lang.String,AttributeValue> getItem()
A map of attribute names to AttributeValue objects, as specified by AttributesToGet.

Returns:
A map of attribute names to AttributeValue objects, as specified by AttributesToGet.

setItem

public void setItem(java.util.Map<java.lang.String,AttributeValue> item)
A map of attribute names to AttributeValue objects, as specified by AttributesToGet.

Parameters:
item - A map of attribute names to AttributeValue objects, as specified by AttributesToGet.

withItem

public GetItemResult withItem(java.util.Map<java.lang.String,AttributeValue> item)
A map of attribute names to AttributeValue objects, as specified by AttributesToGet.

Returns a reference to this object so that method calls can be chained together.

Parameters:
item - A map of attribute names to AttributeValue objects, as specified by AttributesToGet.
Returns:
A reference to this updated object so that method calls can be chained together.

addItemEntry

public GetItemResult addItemEntry(java.lang.String key,
                                  AttributeValue value)
A map of attribute names to AttributeValue objects, as specified by AttributesToGet.

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.

Parameters:
key - The key of the entry to be added into Item.
value - The corresponding value of the entry to be added into Item.

clearItemEntries

public GetItemResult clearItemEntries()
Removes all the entries added into Item.

Returns a reference to this object so that method calls can be chained together.


getConsumedCapacity

public ConsumedCapacity getConsumedCapacity()
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.

Returns:
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.

setConsumedCapacity

public void setConsumedCapacity(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.

Parameters:
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.

withConsumedCapacity

public GetItemResult withConsumedCapacity(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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.