AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetKey(const Aws::Map<Aws::String, AttributeValue>& value) { m_keyHasBeenSet = true; m_key = value; }
51 inline void SetKey(Aws::Map<Aws::String, AttributeValue>&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
52 inline Get& WithKey(const Aws::Map<Aws::String, AttributeValue>& value) { SetKey(value); return *this;}
53 inline Get& WithKey(Aws::Map<Aws::String, AttributeValue>&& value) { SetKey(std::move(value)); return *this;}
54 inline Get& AddKey(const Aws::String& key, const AttributeValue& value) { m_keyHasBeenSet = true; m_key.emplace(key, value); return *this; }
55 inline Get& AddKey(Aws::String&& key, const AttributeValue& value) { m_keyHasBeenSet = true; m_key.emplace(std::move(key), value); return *this; }
56 inline Get& AddKey(const Aws::String& key, AttributeValue&& value) { m_keyHasBeenSet = true; m_key.emplace(key, std::move(value)); return *this; }
57 inline Get& AddKey(Aws::String&& key, AttributeValue&& value) { m_keyHasBeenSet = true; m_key.emplace(std::move(key), std::move(value)); return *this; }
58 inline Get& AddKey(const char* key, AttributeValue&& value) { m_keyHasBeenSet = true; m_key.emplace(key, std::move(value)); return *this; }
59 inline Get& AddKey(const char* key, const AttributeValue& value) { m_keyHasBeenSet = true; m_key.emplace(key, value); return *this; }
61
63
67 inline const Aws::String& GetTableName() const{ return m_tableName; }
68 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
69 inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
70 inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
71 inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
72 inline Get& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
73 inline Get& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
74 inline Get& WithTableName(const char* value) { SetTableName(value); return *this;}
76
78
85 inline const Aws::String& GetProjectionExpression() const{ return m_projectionExpression; }
86 inline bool ProjectionExpressionHasBeenSet() const { return m_projectionExpressionHasBeenSet; }
87 inline void SetProjectionExpression(const Aws::String& value) { m_projectionExpressionHasBeenSet = true; m_projectionExpression = value; }
88 inline void SetProjectionExpression(Aws::String&& value) { m_projectionExpressionHasBeenSet = true; m_projectionExpression = std::move(value); }
89 inline void SetProjectionExpression(const char* value) { m_projectionExpressionHasBeenSet = true; m_projectionExpression.assign(value); }
90 inline Get& WithProjectionExpression(const Aws::String& value) { SetProjectionExpression(value); return *this;}
91 inline Get& WithProjectionExpression(Aws::String&& value) { SetProjectionExpression(std::move(value)); return *this;}
92 inline Get& WithProjectionExpression(const char* value) { SetProjectionExpression(value); return *this;}
94
96
100 inline const Aws::Map<Aws::String, Aws::String>& GetExpressionAttributeNames() const{ return m_expressionAttributeNames; }
101 inline bool ExpressionAttributeNamesHasBeenSet() const { return m_expressionAttributeNamesHasBeenSet; }
102 inline void SetExpressionAttributeNames(const Aws::Map<Aws::String, Aws::String>& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames = value; }
103 inline void SetExpressionAttributeNames(Aws::Map<Aws::String, Aws::String>&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames = std::move(value); }
106 inline Get& AddExpressionAttributeNames(const Aws::String& key, const Aws::String& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, value); return *this; }
107 inline Get& AddExpressionAttributeNames(Aws::String&& key, const Aws::String& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(std::move(key), value); return *this; }
108 inline Get& AddExpressionAttributeNames(const Aws::String& key, Aws::String&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, std::move(value)); return *this; }
109 inline Get& AddExpressionAttributeNames(Aws::String&& key, Aws::String&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(std::move(key), std::move(value)); return *this; }
110 inline Get& AddExpressionAttributeNames(const char* key, Aws::String&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, std::move(value)); return *this; }
111 inline Get& AddExpressionAttributeNames(Aws::String&& key, const char* value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(std::move(key), value); return *this; }
112 inline Get& AddExpressionAttributeNames(const char* key, const char* value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, value); return *this; }
114 private:
115
117 bool m_keyHasBeenSet = false;
118
119 Aws::String m_tableName;
120 bool m_tableNameHasBeenSet = false;
121
122 Aws::String m_projectionExpression;
123 bool m_projectionExpressionHasBeenSet = false;
124
125 Aws::Map<Aws::String, Aws::String> m_expressionAttributeNames;
126 bool m_expressionAttributeNamesHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace DynamoDB
131} // namespace Aws
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html
const Aws::Map< Aws::String, Aws::String > & GetExpressionAttributeNames() const
Definition Get.h:100
void SetKey(Aws::Map< Aws::String, AttributeValue > &&value)
Definition Get.h:51
Get & WithTableName(const char *value)
Definition Get.h:74
Get & WithKey(const Aws::Map< Aws::String, AttributeValue > &value)
Definition Get.h:52
Get & WithExpressionAttributeNames(Aws::Map< Aws::String, Aws::String > &&value)
Definition Get.h:105
void SetProjectionExpression(const Aws::String &value)
Definition Get.h:87
Get & AddExpressionAttributeNames(const Aws::String &key, const Aws::String &value)
Definition Get.h:106
Get & WithProjectionExpression(const Aws::String &value)
Definition Get.h:90
Get & WithTableName(const Aws::String &value)
Definition Get.h:72
const Aws::String & GetProjectionExpression() const
Definition Get.h:85
Get & WithTableName(Aws::String &&value)
Definition Get.h:73
Get & AddKey(Aws::String &&key, const AttributeValue &value)
Definition Get.h:55
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetKey(const Aws::Map< Aws::String, AttributeValue > &value)
Definition Get.h:50
void SetProjectionExpression(Aws::String &&value)
Definition Get.h:88
Get & WithProjectionExpression(Aws::String &&value)
Definition Get.h:91
Get & AddKey(const Aws::String &key, AttributeValue &&value)
Definition Get.h:56
AWS_DYNAMODB_API Get & operator=(Aws::Utils::Json::JsonView jsonValue)
Get & AddExpressionAttributeNames(Aws::String &&key, const Aws::String &value)
Definition Get.h:107
void SetProjectionExpression(const char *value)
Definition Get.h:89
void SetExpressionAttributeNames(const Aws::Map< Aws::String, Aws::String > &value)
Definition Get.h:102
Get & AddExpressionAttributeNames(const char *key, const char *value)
Definition Get.h:112
Get & WithExpressionAttributeNames(const Aws::Map< Aws::String, Aws::String > &value)
Definition Get.h:104
Get & AddKey(const Aws::String &key, const AttributeValue &value)
Definition Get.h:54
Get & AddExpressionAttributeNames(Aws::String &&key, Aws::String &&value)
Definition Get.h:109
void SetTableName(const Aws::String &value)
Definition Get.h:69
AWS_DYNAMODB_API Get()
Get & AddExpressionAttributeNames(const Aws::String &key, Aws::String &&value)
Definition Get.h:108
Get & AddKey(const char *key, const AttributeValue &value)
Definition Get.h:59
bool KeyHasBeenSet() const
Definition Get.h:49
void SetExpressionAttributeNames(Aws::Map< Aws::String, Aws::String > &&value)
Definition Get.h:103
Get & WithKey(Aws::Map< Aws::String, AttributeValue > &&value)
Definition Get.h:53
Get & AddKey(Aws::String &&key, AttributeValue &&value)
Definition Get.h:57
bool TableNameHasBeenSet() const
Definition Get.h:68
void SetTableName(const char *value)
Definition Get.h:71
const Aws::Map< Aws::String, AttributeValue > & GetKey() const
Definition Get.h:48
bool ProjectionExpressionHasBeenSet() const
Definition Get.h:86
AWS_DYNAMODB_API Get(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTableName() const
Definition Get.h:67
Get & AddKey(const char *key, AttributeValue &&value)
Definition Get.h:58
Get & WithProjectionExpression(const char *value)
Definition Get.h:92
void SetTableName(Aws::String &&value)
Definition Get.h:70
Get & AddExpressionAttributeNames(const char *key, Aws::String &&value)
Definition Get.h:110
bool ExpressionAttributeNamesHasBeenSet() const
Definition Get.h:101
Get & AddExpressionAttributeNames(Aws::String &&key, const char *value)
Definition Get.h:111
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