AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchGetItemRequest.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/dynamodb/DynamoDBRequest.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/dynamodb/model/ReturnConsumedCapacity.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/dynamodb/model/KeysAndAttributes.h>
13#include <utility>
14
15namespace Aws
16{
17namespace DynamoDB
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_DYNAMODB_API BatchGetItemRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "BatchGetItem"; }
38
39 AWS_DYNAMODB_API Aws::String SerializePayload() const override;
40
42
43
45
94 inline const Aws::Map<Aws::String, KeysAndAttributes>& GetRequestItems() const{ return m_requestItems; }
95 inline bool RequestItemsHasBeenSet() const { return m_requestItemsHasBeenSet; }
96 inline void SetRequestItems(const Aws::Map<Aws::String, KeysAndAttributes>& value) { m_requestItemsHasBeenSet = true; m_requestItems = value; }
97 inline void SetRequestItems(Aws::Map<Aws::String, KeysAndAttributes>&& value) { m_requestItemsHasBeenSet = true; m_requestItems = std::move(value); }
100 inline BatchGetItemRequest& AddRequestItems(const Aws::String& key, const KeysAndAttributes& value) { m_requestItemsHasBeenSet = true; m_requestItems.emplace(key, value); return *this; }
101 inline BatchGetItemRequest& AddRequestItems(Aws::String&& key, const KeysAndAttributes& value) { m_requestItemsHasBeenSet = true; m_requestItems.emplace(std::move(key), value); return *this; }
102 inline BatchGetItemRequest& AddRequestItems(const Aws::String& key, KeysAndAttributes&& value) { m_requestItemsHasBeenSet = true; m_requestItems.emplace(key, std::move(value)); return *this; }
103 inline BatchGetItemRequest& AddRequestItems(Aws::String&& key, KeysAndAttributes&& value) { m_requestItemsHasBeenSet = true; m_requestItems.emplace(std::move(key), std::move(value)); return *this; }
104 inline BatchGetItemRequest& AddRequestItems(const char* key, KeysAndAttributes&& value) { m_requestItemsHasBeenSet = true; m_requestItems.emplace(key, std::move(value)); return *this; }
105 inline BatchGetItemRequest& AddRequestItems(const char* key, const KeysAndAttributes& value) { m_requestItemsHasBeenSet = true; m_requestItems.emplace(key, value); return *this; }
107
109
110 inline const ReturnConsumedCapacity& GetReturnConsumedCapacity() const{ return m_returnConsumedCapacity; }
111 inline bool ReturnConsumedCapacityHasBeenSet() const { return m_returnConsumedCapacityHasBeenSet; }
112 inline void SetReturnConsumedCapacity(const ReturnConsumedCapacity& value) { m_returnConsumedCapacityHasBeenSet = true; m_returnConsumedCapacity = value; }
113 inline void SetReturnConsumedCapacity(ReturnConsumedCapacity&& value) { m_returnConsumedCapacityHasBeenSet = true; m_returnConsumedCapacity = std::move(value); }
117 private:
118
120 bool m_requestItemsHasBeenSet = false;
121
122 ReturnConsumedCapacity m_returnConsumedCapacity;
123 bool m_returnConsumedCapacityHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace DynamoDB
128} // namespace Aws
BatchGetItemRequest & AddRequestItems(const Aws::String &key, KeysAndAttributes &&value)
void SetReturnConsumedCapacity(const ReturnConsumedCapacity &value)
BatchGetItemRequest & WithReturnConsumedCapacity(const ReturnConsumedCapacity &value)
void SetRequestItems(Aws::Map< Aws::String, KeysAndAttributes > &&value)
virtual const char * GetServiceRequestName() const override
void SetReturnConsumedCapacity(ReturnConsumedCapacity &&value)
BatchGetItemRequest & AddRequestItems(Aws::String &&key, const KeysAndAttributes &value)
AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchGetItemRequest & WithReturnConsumedCapacity(ReturnConsumedCapacity &&value)
void SetRequestItems(const Aws::Map< Aws::String, KeysAndAttributes > &value)
BatchGetItemRequest & AddRequestItems(const char *key, const KeysAndAttributes &value)
BatchGetItemRequest & AddRequestItems(const Aws::String &key, const KeysAndAttributes &value)
AWS_DYNAMODB_API Aws::String SerializePayload() const override
BatchGetItemRequest & WithRequestItems(Aws::Map< Aws::String, KeysAndAttributes > &&value)
BatchGetItemRequest & AddRequestItems(const char *key, KeysAndAttributes &&value)
const ReturnConsumedCapacity & GetReturnConsumedCapacity() const
BatchGetItemRequest & AddRequestItems(Aws::String &&key, KeysAndAttributes &&value)
const Aws::Map< Aws::String, KeysAndAttributes > & GetRequestItems() const
BatchGetItemRequest & WithRequestItems(const Aws::Map< Aws::String, KeysAndAttributes > &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String