AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ApiKey.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace APIGateway
25{
26namespace Model
27{
28
37 class ApiKey
38 {
39 public:
40 AWS_APIGATEWAY_API ApiKey();
41 AWS_APIGATEWAY_API ApiKey(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APIGATEWAY_API ApiKey& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetId() const{ return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
53 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
54 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
55 inline ApiKey& WithId(const Aws::String& value) { SetId(value); return *this;}
56 inline ApiKey& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
57 inline ApiKey& WithId(const char* value) { SetId(value); return *this;}
59
61
64 inline const Aws::String& GetValue() const{ return m_value; }
65 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
66 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
67 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
68 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
69 inline ApiKey& WithValue(const Aws::String& value) { SetValue(value); return *this;}
70 inline ApiKey& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
71 inline ApiKey& WithValue(const char* value) { SetValue(value); return *this;}
73
75
78 inline const Aws::String& GetName() const{ return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
81 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
82 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
83 inline ApiKey& WithName(const Aws::String& value) { SetName(value); return *this;}
84 inline ApiKey& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
85 inline ApiKey& WithName(const char* value) { SetName(value); return *this;}
87
89
93 inline const Aws::String& GetCustomerId() const{ return m_customerId; }
94 inline bool CustomerIdHasBeenSet() const { return m_customerIdHasBeenSet; }
95 inline void SetCustomerId(const Aws::String& value) { m_customerIdHasBeenSet = true; m_customerId = value; }
96 inline void SetCustomerId(Aws::String&& value) { m_customerIdHasBeenSet = true; m_customerId = std::move(value); }
97 inline void SetCustomerId(const char* value) { m_customerIdHasBeenSet = true; m_customerId.assign(value); }
98 inline ApiKey& WithCustomerId(const Aws::String& value) { SetCustomerId(value); return *this;}
99 inline ApiKey& WithCustomerId(Aws::String&& value) { SetCustomerId(std::move(value)); return *this;}
100 inline ApiKey& WithCustomerId(const char* value) { SetCustomerId(value); return *this;}
102
104
107 inline const Aws::String& GetDescription() const{ return m_description; }
108 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
109 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
110 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
111 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
112 inline ApiKey& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
113 inline ApiKey& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
114 inline ApiKey& WithDescription(const char* value) { SetDescription(value); return *this;}
116
118
121 inline bool GetEnabled() const{ return m_enabled; }
122 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
123 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
124 inline ApiKey& WithEnabled(bool value) { SetEnabled(value); return *this;}
126
128
131 inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
132 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
133 inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
134 inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); }
135 inline ApiKey& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
136 inline ApiKey& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
138
140
143 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const{ return m_lastUpdatedDate; }
144 inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; }
145 inline void SetLastUpdatedDate(const Aws::Utils::DateTime& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = value; }
146 inline void SetLastUpdatedDate(Aws::Utils::DateTime&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::move(value); }
147 inline ApiKey& WithLastUpdatedDate(const Aws::Utils::DateTime& value) { SetLastUpdatedDate(value); return *this;}
148 inline ApiKey& WithLastUpdatedDate(Aws::Utils::DateTime&& value) { SetLastUpdatedDate(std::move(value)); return *this;}
150
152
155 inline const Aws::Vector<Aws::String>& GetStageKeys() const{ return m_stageKeys; }
156 inline bool StageKeysHasBeenSet() const { return m_stageKeysHasBeenSet; }
157 inline void SetStageKeys(const Aws::Vector<Aws::String>& value) { m_stageKeysHasBeenSet = true; m_stageKeys = value; }
158 inline void SetStageKeys(Aws::Vector<Aws::String>&& value) { m_stageKeysHasBeenSet = true; m_stageKeys = std::move(value); }
159 inline ApiKey& WithStageKeys(const Aws::Vector<Aws::String>& value) { SetStageKeys(value); return *this;}
160 inline ApiKey& WithStageKeys(Aws::Vector<Aws::String>&& value) { SetStageKeys(std::move(value)); return *this;}
161 inline ApiKey& AddStageKeys(const Aws::String& value) { m_stageKeysHasBeenSet = true; m_stageKeys.push_back(value); return *this; }
162 inline ApiKey& AddStageKeys(Aws::String&& value) { m_stageKeysHasBeenSet = true; m_stageKeys.push_back(std::move(value)); return *this; }
163 inline ApiKey& AddStageKeys(const char* value) { m_stageKeysHasBeenSet = true; m_stageKeys.push_back(value); return *this; }
165
167
171 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
172 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
173 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
174 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
175 inline ApiKey& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
176 inline ApiKey& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
177 inline ApiKey& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
178 inline ApiKey& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
179 inline ApiKey& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
180 inline ApiKey& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
181 inline ApiKey& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
182 inline ApiKey& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
183 inline ApiKey& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
185
187
188 inline const Aws::String& GetRequestId() const{ return m_requestId; }
189 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
190 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
191 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
192 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
193 inline ApiKey& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
194 inline ApiKey& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
195 inline ApiKey& WithRequestId(const char* value) { SetRequestId(value); return *this;}
197 private:
198
199 Aws::String m_id;
200 bool m_idHasBeenSet = false;
201
202 Aws::String m_value;
203 bool m_valueHasBeenSet = false;
204
205 Aws::String m_name;
206 bool m_nameHasBeenSet = false;
207
208 Aws::String m_customerId;
209 bool m_customerIdHasBeenSet = false;
210
211 Aws::String m_description;
212 bool m_descriptionHasBeenSet = false;
213
214 bool m_enabled;
215 bool m_enabledHasBeenSet = false;
216
217 Aws::Utils::DateTime m_createdDate;
218 bool m_createdDateHasBeenSet = false;
219
220 Aws::Utils::DateTime m_lastUpdatedDate;
221 bool m_lastUpdatedDateHasBeenSet = false;
222
223 Aws::Vector<Aws::String> m_stageKeys;
224 bool m_stageKeysHasBeenSet = false;
225
227 bool m_tagsHasBeenSet = false;
228
229 Aws::String m_requestId;
230 bool m_requestIdHasBeenSet = false;
231 };
232
233} // namespace Model
234} // namespace APIGateway
235} // namespace Aws
ApiKey & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition ApiKey.h:175
void SetCustomerId(const char *value)
Definition ApiKey.h:97
ApiKey & WithValue(Aws::String &&value)
Definition ApiKey.h:70
ApiKey & AddTags(Aws::String &&key, const char *value)
Definition ApiKey.h:182
ApiKey & WithDescription(const char *value)
Definition ApiKey.h:114
ApiKey & WithStageKeys(const Aws::Vector< Aws::String > &value)
Definition ApiKey.h:159
ApiKey & WithCreatedDate(const Aws::Utils::DateTime &value)
Definition ApiKey.h:135
ApiKey & WithName(const Aws::String &value)
Definition ApiKey.h:83
void SetValue(const Aws::String &value)
Definition ApiKey.h:66
void SetDescription(const char *value)
Definition ApiKey.h:111
ApiKey & AddTags(const char *key, Aws::String &&value)
Definition ApiKey.h:181
ApiKey & WithLastUpdatedDate(const Aws::Utils::DateTime &value)
Definition ApiKey.h:147
void SetValue(const char *value)
Definition ApiKey.h:68
void SetCustomerId(const Aws::String &value)
Definition ApiKey.h:95
AWS_APIGATEWAY_API ApiKey & operator=(Aws::Utils::Json::JsonView jsonValue)
bool StageKeysHasBeenSet() const
Definition ApiKey.h:156
void SetName(Aws::String &&value)
Definition ApiKey.h:81
const Aws::Vector< Aws::String > & GetStageKeys() const
Definition ApiKey.h:155
ApiKey & AddStageKeys(const Aws::String &value)
Definition ApiKey.h:161
ApiKey & WithCustomerId(const Aws::String &value)
Definition ApiKey.h:98
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
ApiKey & AddTags(const Aws::String &key, Aws::String &&value)
Definition ApiKey.h:179
bool CreatedDateHasBeenSet() const
Definition ApiKey.h:132
ApiKey & AddStageKeys(const char *value)
Definition ApiKey.h:163
ApiKey & WithId(const Aws::String &value)
Definition ApiKey.h:55
void SetCustomerId(Aws::String &&value)
Definition ApiKey.h:96
ApiKey & WithStageKeys(Aws::Vector< Aws::String > &&value)
Definition ApiKey.h:160
void SetRequestId(Aws::String &&value)
Definition ApiKey.h:191
void SetValue(Aws::String &&value)
Definition ApiKey.h:67
ApiKey & WithName(const char *value)
Definition ApiKey.h:85
void SetRequestId(const Aws::String &value)
Definition ApiKey.h:190
void SetCreatedDate(const Aws::Utils::DateTime &value)
Definition ApiKey.h:133
void SetName(const Aws::String &value)
Definition ApiKey.h:80
void SetLastUpdatedDate(Aws::Utils::DateTime &&value)
Definition ApiKey.h:146
bool EnabledHasBeenSet() const
Definition ApiKey.h:122
bool LastUpdatedDateHasBeenSet() const
Definition ApiKey.h:144
const Aws::String & GetValue() const
Definition ApiKey.h:64
bool ValueHasBeenSet() const
Definition ApiKey.h:65
bool NameHasBeenSet() const
Definition ApiKey.h:79
const Aws::Utils::DateTime & GetLastUpdatedDate() const
Definition ApiKey.h:143
void SetDescription(Aws::String &&value)
Definition ApiKey.h:110
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition ApiKey.h:173
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition ApiKey.h:171
void SetId(const char *value)
Definition ApiKey.h:54
void SetEnabled(bool value)
Definition ApiKey.h:123
void SetDescription(const Aws::String &value)
Definition ApiKey.h:109
void SetStageKeys(Aws::Vector< Aws::String > &&value)
Definition ApiKey.h:158
AWS_APIGATEWAY_API ApiKey()
void SetLastUpdatedDate(const Aws::Utils::DateTime &value)
Definition ApiKey.h:145
ApiKey & WithCustomerId(Aws::String &&value)
Definition ApiKey.h:99
void SetId(Aws::String &&value)
Definition ApiKey.h:53
const Aws::String & GetRequestId() const
Definition ApiKey.h:188
AWS_APIGATEWAY_API ApiKey(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedDate(Aws::Utils::DateTime &&value)
Definition ApiKey.h:134
ApiKey & WithEnabled(bool value)
Definition ApiKey.h:124
ApiKey & WithValue(const Aws::String &value)
Definition ApiKey.h:69
void SetId(const Aws::String &value)
Definition ApiKey.h:52
ApiKey & WithRequestId(const char *value)
Definition ApiKey.h:195
ApiKey & WithCreatedDate(Aws::Utils::DateTime &&value)
Definition ApiKey.h:136
ApiKey & WithRequestId(Aws::String &&value)
Definition ApiKey.h:194
bool RequestIdHasBeenSet() const
Definition ApiKey.h:189
ApiKey & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition ApiKey.h:176
const Aws::Utils::DateTime & GetCreatedDate() const
Definition ApiKey.h:131
const Aws::String & GetCustomerId() const
Definition ApiKey.h:93
ApiKey & AddTags(Aws::String &&key, Aws::String &&value)
Definition ApiKey.h:180
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition ApiKey.h:174
const Aws::String & GetDescription() const
Definition ApiKey.h:107
ApiKey & WithId(Aws::String &&value)
Definition ApiKey.h:56
ApiKey & WithName(Aws::String &&value)
Definition ApiKey.h:84
const Aws::String & GetName() const
Definition ApiKey.h:78
ApiKey & WithDescription(Aws::String &&value)
Definition ApiKey.h:113
ApiKey & WithValue(const char *value)
Definition ApiKey.h:71
ApiKey & AddStageKeys(Aws::String &&value)
Definition ApiKey.h:162
ApiKey & WithCustomerId(const char *value)
Definition ApiKey.h:100
ApiKey & WithRequestId(const Aws::String &value)
Definition ApiKey.h:193
bool CustomerIdHasBeenSet() const
Definition ApiKey.h:94
bool DescriptionHasBeenSet() const
Definition ApiKey.h:108
void SetRequestId(const char *value)
Definition ApiKey.h:192
ApiKey & AddTags(Aws::String &&key, const Aws::String &value)
Definition ApiKey.h:178
ApiKey & AddTags(const char *key, const char *value)
Definition ApiKey.h:183
ApiKey & AddTags(const Aws::String &key, const Aws::String &value)
Definition ApiKey.h:177
ApiKey & WithId(const char *value)
Definition ApiKey.h:57
void SetName(const char *value)
Definition ApiKey.h:82
ApiKey & WithDescription(const Aws::String &value)
Definition ApiKey.h:112
void SetStageKeys(const Aws::Vector< Aws::String > &value)
Definition ApiKey.h:157
const Aws::String & GetId() const
Definition ApiKey.h:50
ApiKey & WithLastUpdatedDate(Aws::Utils::DateTime &&value)
Definition ApiKey.h:148
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue