/*
* Copyright 2018-2023 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;
import javax.annotation.Generated;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class TransactGetItemsResult extends com.amazonaws.AmazonWebServiceResult
* If the ReturnConsumedCapacity value was
* An ordered array of up to 100
* If a requested item could not be retrieved, the corresponding
* If the ReturnConsumedCapacity value was
* If the ReturnConsumedCapacity value was
* If the ReturnConsumedCapacity value was
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setConsumedCapacity(java.util.Collection)} or {@link #withConsumedCapacity(java.util.Collection)} if you
* want to override the existing values.
*
* If the ReturnConsumedCapacity value was
* An ordered array of up to 100
* If a requested item could not be retrieved, the corresponding TOTAL
, this is an array of
* ConsumedCapacity
objects, one for each table addressed by TransactGetItem
objects in
* the TransactItems parameter. These ConsumedCapacity
objects report the read-capacity units
* consumed by the TransactGetItems
call in that table.
* ItemResponse
objects, each of which corresponds to the
* TransactGetItem
object in the same position in the TransactItems array. Each
* ItemResponse
object contains a Map of the name-value pairs that are the projected attributes of the
* requested item.
* ItemResponse
object is Null, or if the
* requested item has no projected attributes, the corresponding ItemResponse
object is an empty Map.
* TOTAL
, this is an array of
* ConsumedCapacity
objects, one for each table addressed by TransactGetItem
objects in
* the TransactItems parameter. These ConsumedCapacity
objects report the read-capacity units
* consumed by the TransactGetItems
call in that table.
* TOTAL
, this is an array of
* ConsumedCapacity
objects, one for each table addressed by TransactGetItem
* objects in the TransactItems parameter. These ConsumedCapacity
objects report the
* read-capacity units consumed by the TransactGetItems
call in that table.
*/
public java.util.ListTOTAL
, this is an array of
* ConsumedCapacity
objects, one for each table addressed by TransactGetItem
objects in
* the TransactItems parameter. These ConsumedCapacity
objects report the read-capacity units
* consumed by the TransactGetItems
call in that table.
* TOTAL
, this is an array of
* ConsumedCapacity
objects, one for each table addressed by TransactGetItem
* objects in the TransactItems parameter. These ConsumedCapacity
objects report the
* read-capacity units consumed by the TransactGetItems
call in that table.
*/
public void setConsumedCapacity(java.util.CollectionTOTAL
, this is an array of
* ConsumedCapacity
objects, one for each table addressed by TransactGetItem
objects in
* the TransactItems parameter. These ConsumedCapacity
objects report the read-capacity units
* consumed by the TransactGetItems
call in that table.
* TOTAL
, this is an array of
* ConsumedCapacity
objects, one for each table addressed by TransactGetItem
* objects in the TransactItems parameter. These ConsumedCapacity
objects report the
* read-capacity units consumed by the TransactGetItems
call in that table.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public TransactGetItemsResult withConsumedCapacity(ConsumedCapacity... consumedCapacity) {
if (this.consumedCapacity == null) {
setConsumedCapacity(new java.util.ArrayListTOTAL
, this is an array of
* ConsumedCapacity
objects, one for each table addressed by TransactGetItem
objects in
* the TransactItems parameter. These ConsumedCapacity
objects report the read-capacity units
* consumed by the TransactGetItems
call in that table.
* TOTAL
, this is an array of
* ConsumedCapacity
objects, one for each table addressed by TransactGetItem
* objects in the TransactItems parameter. These ConsumedCapacity
objects report the
* read-capacity units consumed by the TransactGetItems
call in that table.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public TransactGetItemsResult withConsumedCapacity(java.util.CollectionItemResponse
objects, each of which corresponds to the
* TransactGetItem
object in the same position in the TransactItems array. Each
* ItemResponse
object contains a Map of the name-value pairs that are the projected attributes of the
* requested item.
* ItemResponse
object is Null, or if the
* requested item has no projected attributes, the corresponding ItemResponse
object is an empty Map.
* ItemResponse
objects, each of which corresponds to the
* TransactGetItem
object in the same position in the TransactItems array. Each
* ItemResponse
object contains a Map of the name-value pairs that are the projected attributes
* of the requested item.
* If a requested item could not be retrieved, the corresponding
* An ordered array of up to 100
* If a requested item could not be retrieved, the corresponding ItemResponse
object is Null,
* or if the requested item has no projected attributes, the corresponding ItemResponse
object
* is an empty Map.
*/
public java.util.ListItemResponse
objects, each of which corresponds to the
* TransactGetItem
object in the same position in the TransactItems array. Each
* ItemResponse
object contains a Map of the name-value pairs that are the projected attributes of the
* requested item.
* ItemResponse
object is Null, or if the
* requested item has no projected attributes, the corresponding ItemResponse
object is an empty Map.
* ItemResponse
objects, each of which corresponds to the
* TransactGetItem
object in the same position in the TransactItems array. Each
* ItemResponse
object contains a Map of the name-value pairs that are the projected attributes
* of the requested item.
* If a requested item could not be retrieved, the corresponding
* An ordered array of up to 100
* If a requested item could not be retrieved, the corresponding
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setResponses(java.util.Collection)} or {@link #withResponses(java.util.Collection)} if you want to
* override the existing values.
* ItemResponse
object is Null, or
* if the requested item has no projected attributes, the corresponding ItemResponse
object is
* an empty Map.
*/
public void setResponses(java.util.CollectionItemResponse
objects, each of which corresponds to the
* TransactGetItem
object in the same position in the TransactItems array. Each
* ItemResponse
object contains a Map of the name-value pairs that are the projected attributes of the
* requested item.
* ItemResponse
object is Null, or if the
* requested item has no projected attributes, the corresponding ItemResponse
object is an empty Map.
* ItemResponse
objects, each of which corresponds to the
* TransactGetItem
object in the same position in the TransactItems array. Each
* ItemResponse
object contains a Map of the name-value pairs that are the projected attributes
* of the requested item.
* If a requested item could not be retrieved, the corresponding
* An ordered array of up to 100
* If a requested item could not be retrieved, the corresponding ItemResponse
object is Null, or
* if the requested item has no projected attributes, the corresponding ItemResponse
object is
* an empty Map.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public TransactGetItemsResult withResponses(ItemResponse... responses) {
if (this.responses == null) {
setResponses(new java.util.ArrayListItemResponse
objects, each of which corresponds to the
* TransactGetItem
object in the same position in the TransactItems array. Each
* ItemResponse
object contains a Map of the name-value pairs that are the projected attributes of the
* requested item.
* ItemResponse
object is Null, or if the
* requested item has no projected attributes, the corresponding ItemResponse
object is an empty Map.
* ItemResponse
objects, each of which corresponds to the
* TransactGetItem
object in the same position in the TransactItems array. Each
* ItemResponse
object contains a Map of the name-value pairs that are the projected attributes
* of the requested item.
* If a requested item could not be retrieved, the corresponding ItemResponse
object is Null, or
* if the requested item has no projected attributes, the corresponding ItemResponse
object is
* an empty Map.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public TransactGetItemsResult withResponses(java.util.Collection