AWS SDK for C++  0.14.3
AWS SDK for C++
BatchGetItemRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
22 
23 namespace Aws
24 {
25 namespace DynamoDB
26 {
27 namespace Model
28 {
29 
34  {
35  public:
37  Aws::String SerializePayload() const override;
38 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
98  inline const Aws::Map<Aws::String, KeysAndAttributes>& GetRequestItems() const{ return m_requestItems; }
99 
157  inline void SetRequestItems(const Aws::Map<Aws::String, KeysAndAttributes>& value) { m_requestItemsHasBeenSet = true; m_requestItems = value; }
158 
216  inline void SetRequestItems(Aws::Map<Aws::String, KeysAndAttributes>&& value) { m_requestItemsHasBeenSet = true; m_requestItems = value; }
217 
275  inline BatchGetItemRequest& WithRequestItems(const Aws::Map<Aws::String, KeysAndAttributes>& value) { SetRequestItems(value); return *this;}
276 
334  inline BatchGetItemRequest& WithRequestItems(Aws::Map<Aws::String, KeysAndAttributes>&& value) { SetRequestItems(value); return *this;}
335 
393  inline BatchGetItemRequest& AddRequestItems(const Aws::String& key, const KeysAndAttributes& value) { m_requestItemsHasBeenSet = true; m_requestItems[key] = value; return *this; }
394 
452  inline BatchGetItemRequest& AddRequestItems(Aws::String&& key, const KeysAndAttributes& value) { m_requestItemsHasBeenSet = true; m_requestItems[key] = value; return *this; }
453 
511  inline BatchGetItemRequest& AddRequestItems(const Aws::String& key, KeysAndAttributes&& value) { m_requestItemsHasBeenSet = true; m_requestItems[key] = value; return *this; }
512 
570  inline BatchGetItemRequest& AddRequestItems(Aws::String&& key, KeysAndAttributes&& value) { m_requestItemsHasBeenSet = true; m_requestItems[key] = value; return *this; }
571 
629  inline BatchGetItemRequest& AddRequestItems(const char* key, KeysAndAttributes&& value) { m_requestItemsHasBeenSet = true; m_requestItems[key] = value; return *this; }
630 
688  inline BatchGetItemRequest& AddRequestItems(const char* key, const KeysAndAttributes& value) { m_requestItemsHasBeenSet = true; m_requestItems[key] = value; return *this; }
689 
690 
691  inline const ReturnConsumedCapacity& GetReturnConsumedCapacity() const{ return m_returnConsumedCapacity; }
692 
693 
694  inline void SetReturnConsumedCapacity(const ReturnConsumedCapacity& value) { m_returnConsumedCapacityHasBeenSet = true; m_returnConsumedCapacity = value; }
695 
696 
697  inline void SetReturnConsumedCapacity(ReturnConsumedCapacity&& value) { m_returnConsumedCapacityHasBeenSet = true; m_returnConsumedCapacity = value; }
698 
699 
700  inline BatchGetItemRequest& WithReturnConsumedCapacity(const ReturnConsumedCapacity& value) { SetReturnConsumedCapacity(value); return *this;}
701 
702 
703  inline BatchGetItemRequest& WithReturnConsumedCapacity(ReturnConsumedCapacity&& value) { SetReturnConsumedCapacity(value); return *this;}
704 
705  private:
707  bool m_requestItemsHasBeenSet;
708  ReturnConsumedCapacity m_returnConsumedCapacity;
709  bool m_returnConsumedCapacityHasBeenSet;
710  };
711 
712 } // namespace Model
713 } // namespace DynamoDB
714 } // namespace Aws
BatchGetItemRequest & WithRequestItems(const Aws::Map< Aws::String, KeysAndAttributes > &value)
BatchGetItemRequest & AddRequestItems(const char *key, KeysAndAttributes &&value)
void SetReturnConsumedCapacity(ReturnConsumedCapacity &&value)
void SetRequestItems(Aws::Map< Aws::String, KeysAndAttributes > &&value)
void SetReturnConsumedCapacity(const ReturnConsumedCapacity &value)
const Aws::Map< Aws::String, KeysAndAttributes > & GetRequestItems() const
BatchGetItemRequest & AddRequestItems(Aws::String &&key, const KeysAndAttributes &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
BatchGetItemRequest & AddRequestItems(const Aws::String &key, const KeysAndAttributes &value)
BatchGetItemRequest & WithReturnConsumedCapacity(ReturnConsumedCapacity &&value)
#define AWS_DYNAMODB_API
void SetRequestItems(const Aws::Map< Aws::String, KeysAndAttributes > &value)
BatchGetItemRequest & AddRequestItems(Aws::String &&key, KeysAndAttributes &&value)
BatchGetItemRequest & AddRequestItems(const char *key, const KeysAndAttributes &value)
BatchGetItemRequest & AddRequestItems(const Aws::String &key, KeysAndAttributes &&value)
BatchGetItemRequest & WithRequestItems(Aws::Map< Aws::String, KeysAndAttributes > &&value)
BatchGetItemRequest & WithReturnConsumedCapacity(const ReturnConsumedCapacity &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const ReturnConsumedCapacity & GetReturnConsumedCapacity() const
JSON (JavaScript Object Notation).