AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Get.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dynamodb/DynamoDB_EXPORTS.h>
10#include <aws/dynamodb/model/AttributeValue.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DynamoDB {
22namespace Model {
23
30class Get {
31 public:
32 AWS_DYNAMODB_API Get() = default;
33 AWS_DYNAMODB_API Get(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DYNAMODB_API Get& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Map<Aws::String, AttributeValue>& GetKey() const { return m_key; }
43 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
44 template <typename KeyT = Aws::Map<Aws::String, AttributeValue>>
45 void SetKey(KeyT&& value) {
46 m_keyHasBeenSet = true;
47 m_key = std::forward<KeyT>(value);
48 }
49 template <typename KeyT = Aws::Map<Aws::String, AttributeValue>>
50 Get& WithKey(KeyT&& value) {
51 SetKey(std::forward<KeyT>(value));
52 return *this;
53 }
54 template <typename KeyKeyT = Aws::String, typename KeyValueT = AttributeValue>
55 Get& AddKey(KeyKeyT&& key, KeyValueT&& value) {
56 m_keyHasBeenSet = true;
57 m_key.emplace(std::forward<KeyKeyT>(key), std::forward<KeyValueT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::String& GetTableName() const { return m_tableName; }
68 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
69 template <typename TableNameT = Aws::String>
70 void SetTableName(TableNameT&& value) {
71 m_tableNameHasBeenSet = true;
72 m_tableName = std::forward<TableNameT>(value);
73 }
74 template <typename TableNameT = Aws::String>
75 Get& WithTableName(TableNameT&& value) {
76 SetTableName(std::forward<TableNameT>(value));
77 return *this;
78 }
80
82
89 inline const Aws::String& GetProjectionExpression() const { return m_projectionExpression; }
90 inline bool ProjectionExpressionHasBeenSet() const { return m_projectionExpressionHasBeenSet; }
91 template <typename ProjectionExpressionT = Aws::String>
92 void SetProjectionExpression(ProjectionExpressionT&& value) {
93 m_projectionExpressionHasBeenSet = true;
94 m_projectionExpression = std::forward<ProjectionExpressionT>(value);
95 }
96 template <typename ProjectionExpressionT = Aws::String>
97 Get& WithProjectionExpression(ProjectionExpressionT&& value) {
98 SetProjectionExpression(std::forward<ProjectionExpressionT>(value));
99 return *this;
100 }
102
104
108 inline const Aws::Map<Aws::String, Aws::String>& GetExpressionAttributeNames() const { return m_expressionAttributeNames; }
109 inline bool ExpressionAttributeNamesHasBeenSet() const { return m_expressionAttributeNamesHasBeenSet; }
110 template <typename ExpressionAttributeNamesT = Aws::Map<Aws::String, Aws::String>>
111 void SetExpressionAttributeNames(ExpressionAttributeNamesT&& value) {
112 m_expressionAttributeNamesHasBeenSet = true;
113 m_expressionAttributeNames = std::forward<ExpressionAttributeNamesT>(value);
114 }
115 template <typename ExpressionAttributeNamesT = Aws::Map<Aws::String, Aws::String>>
116 Get& WithExpressionAttributeNames(ExpressionAttributeNamesT&& value) {
117 SetExpressionAttributeNames(std::forward<ExpressionAttributeNamesT>(value));
118 return *this;
119 }
120 template <typename ExpressionAttributeNamesKeyT = Aws::String, typename ExpressionAttributeNamesValueT = Aws::String>
121 Get& AddExpressionAttributeNames(ExpressionAttributeNamesKeyT&& key, ExpressionAttributeNamesValueT&& value) {
122 m_expressionAttributeNamesHasBeenSet = true;
123 m_expressionAttributeNames.emplace(std::forward<ExpressionAttributeNamesKeyT>(key),
124 std::forward<ExpressionAttributeNamesValueT>(value));
125 return *this;
126 }
128 private:
130
131 Aws::String m_tableName;
132
133 Aws::String m_projectionExpression;
134
135 Aws::Map<Aws::String, Aws::String> m_expressionAttributeNames;
136 bool m_keyHasBeenSet = false;
137 bool m_tableNameHasBeenSet = false;
138 bool m_projectionExpressionHasBeenSet = false;
139 bool m_expressionAttributeNamesHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace DynamoDB
144} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetExpressionAttributeNames() const
Definition Get.h:108
void SetKey(KeyT &&value)
Definition Get.h:45
const Aws::String & GetProjectionExpression() const
Definition Get.h:89
Get & WithKey(KeyT &&value)
Definition Get.h:50
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DYNAMODB_API Get & operator=(Aws::Utils::Json::JsonView jsonValue)
Get & WithProjectionExpression(ProjectionExpressionT &&value)
Definition Get.h:97
AWS_DYNAMODB_API Get()=default
Get & AddExpressionAttributeNames(ExpressionAttributeNamesKeyT &&key, ExpressionAttributeNamesValueT &&value)
Definition Get.h:121
Get & AddKey(KeyKeyT &&key, KeyValueT &&value)
Definition Get.h:55
bool KeyHasBeenSet() const
Definition Get.h:43
bool TableNameHasBeenSet() const
Definition Get.h:68
Get & WithExpressionAttributeNames(ExpressionAttributeNamesT &&value)
Definition Get.h:116
const Aws::Map< Aws::String, AttributeValue > & GetKey() const
Definition Get.h:42
bool ProjectionExpressionHasBeenSet() const
Definition Get.h:90
AWS_DYNAMODB_API Get(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTableName() const
Definition Get.h:67
void SetExpressionAttributeNames(ExpressionAttributeNamesT &&value)
Definition Get.h:111
void SetProjectionExpression(ProjectionExpressionT &&value)
Definition Get.h:92
Get & WithTableName(TableNameT &&value)
Definition Get.h:75
void SetTableName(TableNameT &&value)
Definition Get.h:70
bool ExpressionAttributeNamesHasBeenSet() const
Definition Get.h:109
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
Aws::Utils::Json::JsonValue JsonValue