/* * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.dynamodbv2.model; import java.io.Serializable; /** *
* Represents the output of a GetItem
operation.
*
* A map of attribute names to AttributeValue
objects, as
* specified by ProjectionExpression
.
*
* 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.
*
* A map of attribute names to AttributeValue
objects, as
* specified by ProjectionExpression
.
*
* A map of attribute names to AttributeValue
objects,
* as specified by ProjectionExpression
.
*
* A map of attribute names to AttributeValue
objects, as
* specified by ProjectionExpression
.
*
* A map of attribute names to AttributeValue
* objects, as specified by ProjectionExpression
.
*
* 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. * * @param item
* A map of attribute names to AttributeValue
* objects, as specified by ProjectionExpression
.
*
* 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.
*
* @param key The key of the entry to be added into Item.
* @param value The corresponding value of the entry to be added into Item.
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public GetItemResult addItemEntry(String key, AttributeValue value) {
if (null == this.item) {
this.item = new java.util.HashMap
* Returns a reference to this object so that method calls can be chained
* together.
*/
public GetItemResult clearItemEntries() {
this.item = null;
return this;
}
/**
*
* The capacity units consumed by the
* The capacity units consumed by the
* The capacity units consumed by the
* The capacity units consumed by the
* The capacity units consumed by the
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param 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.
* 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.
* 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.
* 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.
*