AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Get.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/dynamodb/model/AttributeValue.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DynamoDB
24{
25namespace Model
26{
27
34 class Get
35 {
36 public:
37 AWS_DYNAMODB_API Get() = default;
38 AWS_DYNAMODB_API Get(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DYNAMODB_API Get& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Map<Aws::String, AttributeValue>& GetKey() const { return m_key; }
49 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
50 template<typename KeyT = Aws::Map<Aws::String, AttributeValue>>
51 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
52 template<typename KeyT = Aws::Map<Aws::String, AttributeValue>>
53 Get& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
54 template<typename KeyKeyT = Aws::String, typename KeyValueT = AttributeValue>
55 Get& AddKey(KeyKeyT&& key, KeyValueT&& value) {
56 m_keyHasBeenSet = true; m_key.emplace(std::forward<KeyKeyT>(key), std::forward<KeyValueT>(value)); return *this;
57 }
59
61
65 inline const Aws::String& GetTableName() const { return m_tableName; }
66 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
67 template<typename TableNameT = Aws::String>
68 void SetTableName(TableNameT&& value) { m_tableNameHasBeenSet = true; m_tableName = std::forward<TableNameT>(value); }
69 template<typename TableNameT = Aws::String>
70 Get& WithTableName(TableNameT&& value) { SetTableName(std::forward<TableNameT>(value)); return *this;}
72
74
81 inline const Aws::String& GetProjectionExpression() const { return m_projectionExpression; }
82 inline bool ProjectionExpressionHasBeenSet() const { return m_projectionExpressionHasBeenSet; }
83 template<typename ProjectionExpressionT = Aws::String>
84 void SetProjectionExpression(ProjectionExpressionT&& value) { m_projectionExpressionHasBeenSet = true; m_projectionExpression = std::forward<ProjectionExpressionT>(value); }
85 template<typename ProjectionExpressionT = Aws::String>
86 Get& WithProjectionExpression(ProjectionExpressionT&& value) { SetProjectionExpression(std::forward<ProjectionExpressionT>(value)); return *this;}
88
90
94 inline const Aws::Map<Aws::String, Aws::String>& GetExpressionAttributeNames() const { return m_expressionAttributeNames; }
95 inline bool ExpressionAttributeNamesHasBeenSet() const { return m_expressionAttributeNamesHasBeenSet; }
96 template<typename ExpressionAttributeNamesT = Aws::Map<Aws::String, Aws::String>>
97 void SetExpressionAttributeNames(ExpressionAttributeNamesT&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames = std::forward<ExpressionAttributeNamesT>(value); }
98 template<typename ExpressionAttributeNamesT = Aws::Map<Aws::String, Aws::String>>
99 Get& WithExpressionAttributeNames(ExpressionAttributeNamesT&& value) { SetExpressionAttributeNames(std::forward<ExpressionAttributeNamesT>(value)); return *this;}
100 template<typename ExpressionAttributeNamesKeyT = Aws::String, typename ExpressionAttributeNamesValueT = Aws::String>
101 Get& AddExpressionAttributeNames(ExpressionAttributeNamesKeyT&& key, ExpressionAttributeNamesValueT&& value) {
102 m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(std::forward<ExpressionAttributeNamesKeyT>(key), std::forward<ExpressionAttributeNamesValueT>(value)); return *this;
103 }
105 private:
106
108 bool m_keyHasBeenSet = false;
109
110 Aws::String m_tableName;
111 bool m_tableNameHasBeenSet = false;
112
113 Aws::String m_projectionExpression;
114 bool m_projectionExpressionHasBeenSet = false;
115
116 Aws::Map<Aws::String, Aws::String> m_expressionAttributeNames;
117 bool m_expressionAttributeNamesHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace DynamoDB
122} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetExpressionAttributeNames() const
Definition Get.h:94
void SetKey(KeyT &&value)
Definition Get.h:51
const Aws::String & GetProjectionExpression() const
Definition Get.h:81
Get & WithKey(KeyT &&value)
Definition Get.h:53
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:86
AWS_DYNAMODB_API Get()=default
Get & AddExpressionAttributeNames(ExpressionAttributeNamesKeyT &&key, ExpressionAttributeNamesValueT &&value)
Definition Get.h:101
Get & AddKey(KeyKeyT &&key, KeyValueT &&value)
Definition Get.h:55
bool KeyHasBeenSet() const
Definition Get.h:49
bool TableNameHasBeenSet() const
Definition Get.h:66
Get & WithExpressionAttributeNames(ExpressionAttributeNamesT &&value)
Definition Get.h:99
const Aws::Map< Aws::String, AttributeValue > & GetKey() const
Definition Get.h:48
bool ProjectionExpressionHasBeenSet() const
Definition Get.h:82
AWS_DYNAMODB_API Get(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTableName() const
Definition Get.h:65
void SetExpressionAttributeNames(ExpressionAttributeNamesT &&value)
Definition Get.h:97
void SetProjectionExpression(ProjectionExpressionT &&value)
Definition Get.h:84
Get & WithTableName(TableNameT &&value)
Definition Get.h:70
void SetTableName(TableNameT &&value)
Definition Get.h:68
bool ExpressionAttributeNamesHasBeenSet() const
Definition Get.h:95
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