AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
ApiKey.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace APIGateway {
23namespace Model {
24
33class ApiKey {
34 public:
35 AWS_APIGATEWAY_API ApiKey() = default;
36 AWS_APIGATEWAY_API ApiKey(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APIGATEWAY_API ApiKey& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetId() const { return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 template <typename IdT = Aws::String>
47 void SetId(IdT&& value) {
48 m_idHasBeenSet = true;
49 m_id = std::forward<IdT>(value);
50 }
51 template <typename IdT = Aws::String>
52 ApiKey& WithId(IdT&& value) {
53 SetId(std::forward<IdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetValue() const { return m_value; }
63 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
64 template <typename ValueT = Aws::String>
65 void SetValue(ValueT&& value) {
66 m_valueHasBeenSet = true;
67 m_value = std::forward<ValueT>(value);
68 }
69 template <typename ValueT = Aws::String>
70 ApiKey& WithValue(ValueT&& value) {
71 SetValue(std::forward<ValueT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetName() const { return m_name; }
81 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
82 template <typename NameT = Aws::String>
83 void SetName(NameT&& value) {
84 m_nameHasBeenSet = true;
85 m_name = std::forward<NameT>(value);
86 }
87 template <typename NameT = Aws::String>
88 ApiKey& WithName(NameT&& value) {
89 SetName(std::forward<NameT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetCustomerId() const { return m_customerId; }
100 inline bool CustomerIdHasBeenSet() const { return m_customerIdHasBeenSet; }
101 template <typename CustomerIdT = Aws::String>
102 void SetCustomerId(CustomerIdT&& value) {
103 m_customerIdHasBeenSet = true;
104 m_customerId = std::forward<CustomerIdT>(value);
105 }
106 template <typename CustomerIdT = Aws::String>
107 ApiKey& WithCustomerId(CustomerIdT&& value) {
108 SetCustomerId(std::forward<CustomerIdT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetDescription() const { return m_description; }
118 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
119 template <typename DescriptionT = Aws::String>
120 void SetDescription(DescriptionT&& value) {
121 m_descriptionHasBeenSet = true;
122 m_description = std::forward<DescriptionT>(value);
123 }
124 template <typename DescriptionT = Aws::String>
125 ApiKey& WithDescription(DescriptionT&& value) {
126 SetDescription(std::forward<DescriptionT>(value));
127 return *this;
128 }
130
132
135 inline bool GetEnabled() const { return m_enabled; }
136 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
137 inline void SetEnabled(bool value) {
138 m_enabledHasBeenSet = true;
139 m_enabled = value;
140 }
141 inline ApiKey& WithEnabled(bool value) {
142 SetEnabled(value);
143 return *this;
144 }
146
148
151 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
152 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
153 template <typename CreatedDateT = Aws::Utils::DateTime>
154 void SetCreatedDate(CreatedDateT&& value) {
155 m_createdDateHasBeenSet = true;
156 m_createdDate = std::forward<CreatedDateT>(value);
157 }
158 template <typename CreatedDateT = Aws::Utils::DateTime>
159 ApiKey& WithCreatedDate(CreatedDateT&& value) {
160 SetCreatedDate(std::forward<CreatedDateT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
170 inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; }
171 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
172 void SetLastUpdatedDate(LastUpdatedDateT&& value) {
173 m_lastUpdatedDateHasBeenSet = true;
174 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
175 }
176 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
177 ApiKey& WithLastUpdatedDate(LastUpdatedDateT&& value) {
178 SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::Vector<Aws::String>& GetStageKeys() const { return m_stageKeys; }
188 inline bool StageKeysHasBeenSet() const { return m_stageKeysHasBeenSet; }
189 template <typename StageKeysT = Aws::Vector<Aws::String>>
190 void SetStageKeys(StageKeysT&& value) {
191 m_stageKeysHasBeenSet = true;
192 m_stageKeys = std::forward<StageKeysT>(value);
193 }
194 template <typename StageKeysT = Aws::Vector<Aws::String>>
195 ApiKey& WithStageKeys(StageKeysT&& value) {
196 SetStageKeys(std::forward<StageKeysT>(value));
197 return *this;
198 }
199 template <typename StageKeysT = Aws::String>
200 ApiKey& AddStageKeys(StageKeysT&& value) {
201 m_stageKeysHasBeenSet = true;
202 m_stageKeys.emplace_back(std::forward<StageKeysT>(value));
203 return *this;
204 }
206
208
212 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
213 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
214 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
215 void SetTags(TagsT&& value) {
216 m_tagsHasBeenSet = true;
217 m_tags = std::forward<TagsT>(value);
218 }
219 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
220 ApiKey& WithTags(TagsT&& value) {
221 SetTags(std::forward<TagsT>(value));
222 return *this;
223 }
224 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
225 ApiKey& AddTags(TagsKeyT&& key, TagsValueT&& value) {
226 m_tagsHasBeenSet = true;
227 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
228 return *this;
229 }
231
233
234 inline const Aws::String& GetRequestId() const { return m_requestId; }
235 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
236 template <typename RequestIdT = Aws::String>
237 void SetRequestId(RequestIdT&& value) {
238 m_requestIdHasBeenSet = true;
239 m_requestId = std::forward<RequestIdT>(value);
240 }
241 template <typename RequestIdT = Aws::String>
242 ApiKey& WithRequestId(RequestIdT&& value) {
243 SetRequestId(std::forward<RequestIdT>(value));
244 return *this;
245 }
247 private:
248 Aws::String m_id;
249
250 Aws::String m_value;
251
252 Aws::String m_name;
253
254 Aws::String m_customerId;
255
256 Aws::String m_description;
257
258 bool m_enabled{false};
259
260 Aws::Utils::DateTime m_createdDate{};
261
262 Aws::Utils::DateTime m_lastUpdatedDate{};
263
264 Aws::Vector<Aws::String> m_stageKeys;
265
267
268 Aws::String m_requestId;
269 bool m_idHasBeenSet = false;
270 bool m_valueHasBeenSet = false;
271 bool m_nameHasBeenSet = false;
272 bool m_customerIdHasBeenSet = false;
273 bool m_descriptionHasBeenSet = false;
274 bool m_enabledHasBeenSet = false;
275 bool m_createdDateHasBeenSet = false;
276 bool m_lastUpdatedDateHasBeenSet = false;
277 bool m_stageKeysHasBeenSet = false;
278 bool m_tagsHasBeenSet = false;
279 bool m_requestIdHasBeenSet = false;
280};
281
282} // namespace Model
283} // namespace APIGateway
284} // namespace Aws
ApiKey & WithLastUpdatedDate(LastUpdatedDateT &&value)
Definition ApiKey.h:177
void SetValue(ValueT &&value)
Definition ApiKey.h:65
void SetStageKeys(StageKeysT &&value)
Definition ApiKey.h:190
ApiKey & WithStageKeys(StageKeysT &&value)
Definition ApiKey.h:195
AWS_APIGATEWAY_API ApiKey & operator=(Aws::Utils::Json::JsonView jsonValue)
bool StageKeysHasBeenSet() const
Definition ApiKey.h:188
const Aws::Vector< Aws::String > & GetStageKeys() const
Definition ApiKey.h:187
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
ApiKey & WithId(IdT &&value)
Definition ApiKey.h:52
bool CreatedDateHasBeenSet() const
Definition ApiKey.h:152
void SetId(IdT &&value)
Definition ApiKey.h:47
void SetName(NameT &&value)
Definition ApiKey.h:83
void SetCustomerId(CustomerIdT &&value)
Definition ApiKey.h:102
ApiKey & WithCustomerId(CustomerIdT &&value)
Definition ApiKey.h:107
bool EnabledHasBeenSet() const
Definition ApiKey.h:136
bool LastUpdatedDateHasBeenSet() const
Definition ApiKey.h:170
const Aws::String & GetValue() const
Definition ApiKey.h:62
bool ValueHasBeenSet() const
Definition ApiKey.h:63
bool NameHasBeenSet() const
Definition ApiKey.h:81
const Aws::Utils::DateTime & GetLastUpdatedDate() const
Definition ApiKey.h:169
ApiKey & WithRequestId(RequestIdT &&value)
Definition ApiKey.h:242
void SetTags(TagsT &&value)
Definition ApiKey.h:215
void SetLastUpdatedDate(LastUpdatedDateT &&value)
Definition ApiKey.h:172
ApiKey & WithCreatedDate(CreatedDateT &&value)
Definition ApiKey.h:159
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition ApiKey.h:212
void SetRequestId(RequestIdT &&value)
Definition ApiKey.h:237
void SetEnabled(bool value)
Definition ApiKey.h:137
const Aws::String & GetRequestId() const
Definition ApiKey.h:234
void SetCreatedDate(CreatedDateT &&value)
Definition ApiKey.h:154
AWS_APIGATEWAY_API ApiKey(Aws::Utils::Json::JsonView jsonValue)
ApiKey & WithEnabled(bool value)
Definition ApiKey.h:141
ApiKey & WithDescription(DescriptionT &&value)
Definition ApiKey.h:125
bool RequestIdHasBeenSet() const
Definition ApiKey.h:235
const Aws::Utils::DateTime & GetCreatedDate() const
Definition ApiKey.h:151
ApiKey & WithValue(ValueT &&value)
Definition ApiKey.h:70
const Aws::String & GetCustomerId() const
Definition ApiKey.h:99
const Aws::String & GetDescription() const
Definition ApiKey.h:117
const Aws::String & GetName() const
Definition ApiKey.h:80
AWS_APIGATEWAY_API ApiKey()=default
ApiKey & AddStageKeys(StageKeysT &&value)
Definition ApiKey.h:200
bool CustomerIdHasBeenSet() const
Definition ApiKey.h:100
bool DescriptionHasBeenSet() const
Definition ApiKey.h:118
void SetDescription(DescriptionT &&value)
Definition ApiKey.h:120
ApiKey & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition ApiKey.h:225
ApiKey & WithName(NameT &&value)
Definition ApiKey.h:88
const Aws::String & GetId() const
Definition ApiKey.h:44
ApiKey & WithTags(TagsT &&value)
Definition ApiKey.h:220
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