AWS SDK for C++  1.9.153
AWS SDK for C++
UpdateApiKeyResult.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24 } // namespace Json
25 } // namespace Utils
26 namespace APIGateway
27 {
28 namespace Model
29 {
41  {
42  public:
46 
47 
51  inline const Aws::String& GetId() const{ return m_id; }
52 
56  inline void SetId(const Aws::String& value) { m_id = value; }
57 
61  inline void SetId(Aws::String&& value) { m_id = std::move(value); }
62 
66  inline void SetId(const char* value) { m_id.assign(value); }
67 
71  inline UpdateApiKeyResult& WithId(const Aws::String& value) { SetId(value); return *this;}
72 
76  inline UpdateApiKeyResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
77 
81  inline UpdateApiKeyResult& WithId(const char* value) { SetId(value); return *this;}
82 
83 
87  inline const Aws::String& GetValue() const{ return m_value; }
88 
92  inline void SetValue(const Aws::String& value) { m_value = value; }
93 
97  inline void SetValue(Aws::String&& value) { m_value = std::move(value); }
98 
102  inline void SetValue(const char* value) { m_value.assign(value); }
103 
107  inline UpdateApiKeyResult& WithValue(const Aws::String& value) { SetValue(value); return *this;}
108 
112  inline UpdateApiKeyResult& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
113 
117  inline UpdateApiKeyResult& WithValue(const char* value) { SetValue(value); return *this;}
118 
119 
123  inline const Aws::String& GetName() const{ return m_name; }
124 
128  inline void SetName(const Aws::String& value) { m_name = value; }
129 
133  inline void SetName(Aws::String&& value) { m_name = std::move(value); }
134 
138  inline void SetName(const char* value) { m_name.assign(value); }
139 
143  inline UpdateApiKeyResult& WithName(const Aws::String& value) { SetName(value); return *this;}
144 
148  inline UpdateApiKeyResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
149 
153  inline UpdateApiKeyResult& WithName(const char* value) { SetName(value); return *this;}
154 
155 
160  inline const Aws::String& GetCustomerId() const{ return m_customerId; }
161 
166  inline void SetCustomerId(const Aws::String& value) { m_customerId = value; }
167 
172  inline void SetCustomerId(Aws::String&& value) { m_customerId = std::move(value); }
173 
178  inline void SetCustomerId(const char* value) { m_customerId.assign(value); }
179 
184  inline UpdateApiKeyResult& WithCustomerId(const Aws::String& value) { SetCustomerId(value); return *this;}
185 
190  inline UpdateApiKeyResult& WithCustomerId(Aws::String&& value) { SetCustomerId(std::move(value)); return *this;}
191 
196  inline UpdateApiKeyResult& WithCustomerId(const char* value) { SetCustomerId(value); return *this;}
197 
198 
202  inline const Aws::String& GetDescription() const{ return m_description; }
203 
207  inline void SetDescription(const Aws::String& value) { m_description = value; }
208 
212  inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
213 
217  inline void SetDescription(const char* value) { m_description.assign(value); }
218 
222  inline UpdateApiKeyResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
223 
227  inline UpdateApiKeyResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
228 
232  inline UpdateApiKeyResult& WithDescription(const char* value) { SetDescription(value); return *this;}
233 
234 
238  inline bool GetEnabled() const{ return m_enabled; }
239 
243  inline void SetEnabled(bool value) { m_enabled = value; }
244 
248  inline UpdateApiKeyResult& WithEnabled(bool value) { SetEnabled(value); return *this;}
249 
250 
254  inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
255 
259  inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDate = value; }
260 
264  inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDate = std::move(value); }
265 
269  inline UpdateApiKeyResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
270 
274  inline UpdateApiKeyResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
275 
276 
280  inline const Aws::Utils::DateTime& GetLastUpdatedDate() const{ return m_lastUpdatedDate; }
281 
285  inline void SetLastUpdatedDate(const Aws::Utils::DateTime& value) { m_lastUpdatedDate = value; }
286 
290  inline void SetLastUpdatedDate(Aws::Utils::DateTime&& value) { m_lastUpdatedDate = std::move(value); }
291 
295  inline UpdateApiKeyResult& WithLastUpdatedDate(const Aws::Utils::DateTime& value) { SetLastUpdatedDate(value); return *this;}
296 
300  inline UpdateApiKeyResult& WithLastUpdatedDate(Aws::Utils::DateTime&& value) { SetLastUpdatedDate(std::move(value)); return *this;}
301 
302 
307  inline const Aws::Vector<Aws::String>& GetStageKeys() const{ return m_stageKeys; }
308 
313  inline void SetStageKeys(const Aws::Vector<Aws::String>& value) { m_stageKeys = value; }
314 
319  inline void SetStageKeys(Aws::Vector<Aws::String>&& value) { m_stageKeys = std::move(value); }
320 
325  inline UpdateApiKeyResult& WithStageKeys(const Aws::Vector<Aws::String>& value) { SetStageKeys(value); return *this;}
326 
331  inline UpdateApiKeyResult& WithStageKeys(Aws::Vector<Aws::String>&& value) { SetStageKeys(std::move(value)); return *this;}
332 
337  inline UpdateApiKeyResult& AddStageKeys(const Aws::String& value) { m_stageKeys.push_back(value); return *this; }
338 
343  inline UpdateApiKeyResult& AddStageKeys(Aws::String&& value) { m_stageKeys.push_back(std::move(value)); return *this; }
344 
349  inline UpdateApiKeyResult& AddStageKeys(const char* value) { m_stageKeys.push_back(value); return *this; }
350 
351 
356  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
357 
362  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
363 
368  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
369 
374  inline UpdateApiKeyResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
375 
380  inline UpdateApiKeyResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
381 
386  inline UpdateApiKeyResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
387 
392  inline UpdateApiKeyResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
393 
398  inline UpdateApiKeyResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
399 
404  inline UpdateApiKeyResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
405 
410  inline UpdateApiKeyResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
411 
416  inline UpdateApiKeyResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
417 
422  inline UpdateApiKeyResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
423 
424  private:
425 
426  Aws::String m_id;
427 
428  Aws::String m_value;
429 
430  Aws::String m_name;
431 
432  Aws::String m_customerId;
433 
434  Aws::String m_description;
435 
436  bool m_enabled;
437 
438  Aws::Utils::DateTime m_createdDate;
439 
440  Aws::Utils::DateTime m_lastUpdatedDate;
441 
442  Aws::Vector<Aws::String> m_stageKeys;
443 
445  };
446 
447 } // namespace Model
448 } // namespace APIGateway
449 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::APIGateway::Model::UpdateApiKeyResult::SetStageKeys
void SetStageKeys(Aws::Vector< Aws::String > &&value)
Definition: UpdateApiKeyResult.h:319
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::APIGateway::Model::UpdateApiKeyResult::WithLastUpdatedDate
UpdateApiKeyResult & WithLastUpdatedDate(Aws::Utils::DateTime &&value)
Definition: UpdateApiKeyResult.h:300
Aws::APIGateway::Model::UpdateApiKeyResult::SetId
void SetId(const char *value)
Definition: UpdateApiKeyResult.h:66
Aws::APIGateway::Model::UpdateApiKeyResult::SetCustomerId
void SetCustomerId(Aws::String &&value)
Definition: UpdateApiKeyResult.h:172
Aws::APIGateway::Model::UpdateApiKeyResult::GetStageKeys
const Aws::Vector< Aws::String > & GetStageKeys() const
Definition: UpdateApiKeyResult.h:307
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::UpdateApiKeyResult::WithName
UpdateApiKeyResult & WithName(Aws::String &&value)
Definition: UpdateApiKeyResult.h:148
Aws::APIGateway::Model::UpdateApiKeyResult::WithId
UpdateApiKeyResult & WithId(const Aws::String &value)
Definition: UpdateApiKeyResult.h:71
Aws::APIGateway::Model::UpdateApiKeyResult::WithCustomerId
UpdateApiKeyResult & WithCustomerId(const char *value)
Definition: UpdateApiKeyResult.h:196
Aws::APIGateway::Model::UpdateApiKeyResult::UpdateApiKeyResult
UpdateApiKeyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::APIGateway::Model::UpdateApiKeyResult::SetLastUpdatedDate
void SetLastUpdatedDate(Aws::Utils::DateTime &&value)
Definition: UpdateApiKeyResult.h:290
Aws::APIGateway::Model::UpdateApiKeyResult::WithStageKeys
UpdateApiKeyResult & WithStageKeys(Aws::Vector< Aws::String > &&value)
Definition: UpdateApiKeyResult.h:331
DateTime.h
Aws::APIGateway::Model::UpdateApiKeyResult::AddTags
UpdateApiKeyResult & AddTags(Aws::String &&key, Aws::String &&value)
Definition: UpdateApiKeyResult.h:404
Aws::APIGateway::Model::UpdateApiKeyResult::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateApiKeyResult.h:207
Aws::APIGateway::Model::UpdateApiKeyResult::SetName
void SetName(Aws::String &&value)
Definition: UpdateApiKeyResult.h:133
Aws::APIGateway::Model::UpdateApiKeyResult::SetLastUpdatedDate
void SetLastUpdatedDate(const Aws::Utils::DateTime &value)
Definition: UpdateApiKeyResult.h:285
Aws::APIGateway::Model::UpdateApiKeyResult::WithCreatedDate
UpdateApiKeyResult & WithCreatedDate(const Aws::Utils::DateTime &value)
Definition: UpdateApiKeyResult.h:269
Aws::APIGateway::Model::UpdateApiKeyResult::GetId
const Aws::String & GetId() const
Definition: UpdateApiKeyResult.h:51
Aws::APIGateway::Model::UpdateApiKeyResult::operator=
UpdateApiKeyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
APIGateway_EXPORTS.h
Aws::APIGateway::Model::UpdateApiKeyResult::SetName
void SetName(const Aws::String &value)
Definition: UpdateApiKeyResult.h:128
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::APIGateway::Model::UpdateApiKeyResult::SetValue
void SetValue(Aws::String &&value)
Definition: UpdateApiKeyResult.h:97
Aws::APIGateway::Model::UpdateApiKeyResult::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: UpdateApiKeyResult.h:356
Aws::APIGateway::Model::UpdateApiKeyResult::AddTags
UpdateApiKeyResult & AddTags(Aws::String &&key, const char *value)
Definition: UpdateApiKeyResult.h:416
AWSVector.h
Aws::APIGateway::Model::UpdateApiKeyResult::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateApiKeyResult.h:202
Aws::APIGateway::Model::UpdateApiKeyResult::SetName
void SetName(const char *value)
Definition: UpdateApiKeyResult.h:138
Aws::APIGateway::Model::UpdateApiKeyResult::AddStageKeys
UpdateApiKeyResult & AddStageKeys(const char *value)
Definition: UpdateApiKeyResult.h:349
Aws::APIGateway::Model::UpdateApiKeyResult::WithDescription
UpdateApiKeyResult & WithDescription(const Aws::String &value)
Definition: UpdateApiKeyResult.h:222
Aws::APIGateway::Model::UpdateApiKeyResult::WithStageKeys
UpdateApiKeyResult & WithStageKeys(const Aws::Vector< Aws::String > &value)
Definition: UpdateApiKeyResult.h:325
Aws::APIGateway::Model::UpdateApiKeyResult::AddTags
UpdateApiKeyResult & AddTags(const Aws::String &key, const Aws::String &value)
Definition: UpdateApiKeyResult.h:386
Aws::APIGateway::Model::UpdateApiKeyResult::WithId
UpdateApiKeyResult & WithId(Aws::String &&value)
Definition: UpdateApiKeyResult.h:76
Aws::APIGateway::Model::UpdateApiKeyResult::AddTags
UpdateApiKeyResult & AddTags(const char *key, Aws::String &&value)
Definition: UpdateApiKeyResult.h:410
Aws::APIGateway::Model::UpdateApiKeyResult::WithValue
UpdateApiKeyResult & WithValue(Aws::String &&value)
Definition: UpdateApiKeyResult.h:112
Aws::APIGateway::Model::UpdateApiKeyResult::GetCreatedDate
const Aws::Utils::DateTime & GetCreatedDate() const
Definition: UpdateApiKeyResult.h:254
Aws::APIGateway::Model::UpdateApiKeyResult::WithCreatedDate
UpdateApiKeyResult & WithCreatedDate(Aws::Utils::DateTime &&value)
Definition: UpdateApiKeyResult.h:274
Aws::APIGateway::Model::UpdateApiKeyResult::AddTags
UpdateApiKeyResult & AddTags(const Aws::String &key, Aws::String &&value)
Definition: UpdateApiKeyResult.h:398
Aws::APIGateway::Model::UpdateApiKeyResult::WithName
UpdateApiKeyResult & WithName(const char *value)
Definition: UpdateApiKeyResult.h:153
Aws::APIGateway::Model::UpdateApiKeyResult::AddTags
UpdateApiKeyResult & AddTags(const char *key, const char *value)
Definition: UpdateApiKeyResult.h:422
Aws::APIGateway::Model::UpdateApiKeyResult::UpdateApiKeyResult
UpdateApiKeyResult()
Aws::APIGateway::Model::UpdateApiKeyResult::AddStageKeys
UpdateApiKeyResult & AddStageKeys(const Aws::String &value)
Definition: UpdateApiKeyResult.h:337
Aws::APIGateway::Model::UpdateApiKeyResult::WithEnabled
UpdateApiKeyResult & WithEnabled(bool value)
Definition: UpdateApiKeyResult.h:248
Aws::APIGateway::Model::UpdateApiKeyResult::AddTags
UpdateApiKeyResult & AddTags(Aws::String &&key, const Aws::String &value)
Definition: UpdateApiKeyResult.h:392
Aws::APIGateway::Model::UpdateApiKeyResult::WithDescription
UpdateApiKeyResult & WithDescription(Aws::String &&value)
Definition: UpdateApiKeyResult.h:227
Aws::APIGateway::Model::UpdateApiKeyResult::GetEnabled
bool GetEnabled() const
Definition: UpdateApiKeyResult.h:238
Aws::APIGateway::Model::UpdateApiKeyResult::WithCustomerId
UpdateApiKeyResult & WithCustomerId(Aws::String &&value)
Definition: UpdateApiKeyResult.h:190
Aws::APIGateway::Model::UpdateApiKeyResult::SetCreatedDate
void SetCreatedDate(Aws::Utils::DateTime &&value)
Definition: UpdateApiKeyResult.h:264
Aws::APIGateway::Model::UpdateApiKeyResult::GetLastUpdatedDate
const Aws::Utils::DateTime & GetLastUpdatedDate() const
Definition: UpdateApiKeyResult.h:280
Aws::APIGateway::Model::UpdateApiKeyResult::GetValue
const Aws::String & GetValue() const
Definition: UpdateApiKeyResult.h:87
Aws::APIGateway::Model::UpdateApiKeyResult::SetValue
void SetValue(const char *value)
Definition: UpdateApiKeyResult.h:102
Aws::APIGateway::Model::UpdateApiKeyResult::SetValue
void SetValue(const Aws::String &value)
Definition: UpdateApiKeyResult.h:92
AWSString.h
Aws::APIGateway::Model::UpdateApiKeyResult
Definition: UpdateApiKeyResult.h:41
Aws::APIGateway::Model::UpdateApiKeyResult::WithDescription
UpdateApiKeyResult & WithDescription(const char *value)
Definition: UpdateApiKeyResult.h:232
Aws::APIGateway::Model::UpdateApiKeyResult::SetId
void SetId(const Aws::String &value)
Definition: UpdateApiKeyResult.h:56
Aws::APIGateway::Model::UpdateApiKeyResult::SetCustomerId
void SetCustomerId(const Aws::String &value)
Definition: UpdateApiKeyResult.h:166
Aws::APIGateway::Model::UpdateApiKeyResult::GetCustomerId
const Aws::String & GetCustomerId() const
Definition: UpdateApiKeyResult.h:160
Aws::APIGateway::Model::UpdateApiKeyResult::SetDescription
void SetDescription(const char *value)
Definition: UpdateApiKeyResult.h:217
Aws::APIGateway::Model::UpdateApiKeyResult::WithTags
UpdateApiKeyResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: UpdateApiKeyResult.h:380
Aws::APIGateway::Model::UpdateApiKeyResult::SetCreatedDate
void SetCreatedDate(const Aws::Utils::DateTime &value)
Definition: UpdateApiKeyResult.h:259
Aws::APIGateway::Model::UpdateApiKeyResult::WithTags
UpdateApiKeyResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: UpdateApiKeyResult.h:374
Aws::APIGateway::Model::UpdateApiKeyResult::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: UpdateApiKeyResult.h:368
Aws::APIGateway::Model::UpdateApiKeyResult::WithValue
UpdateApiKeyResult & WithValue(const Aws::String &value)
Definition: UpdateApiKeyResult.h:107
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::UpdateApiKeyResult::WithCustomerId
UpdateApiKeyResult & WithCustomerId(const Aws::String &value)
Definition: UpdateApiKeyResult.h:184
Aws::APIGateway::Model::UpdateApiKeyResult::SetEnabled
void SetEnabled(bool value)
Definition: UpdateApiKeyResult.h:243
Aws::APIGateway::Model::UpdateApiKeyResult::SetStageKeys
void SetStageKeys(const Aws::Vector< Aws::String > &value)
Definition: UpdateApiKeyResult.h:313
Aws::APIGateway::Model::UpdateApiKeyResult::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateApiKeyResult.h:212
Aws::APIGateway::Model::UpdateApiKeyResult::WithValue
UpdateApiKeyResult & WithValue(const char *value)
Definition: UpdateApiKeyResult.h:117
Aws::APIGateway::Model::UpdateApiKeyResult::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: UpdateApiKeyResult.h:362
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::UpdateApiKeyResult::WithName
UpdateApiKeyResult & WithName(const Aws::String &value)
Definition: UpdateApiKeyResult.h:143
Aws::APIGateway::Model::UpdateApiKeyResult::GetName
const Aws::String & GetName() const
Definition: UpdateApiKeyResult.h:123
Aws::APIGateway::Model::UpdateApiKeyResult::WithLastUpdatedDate
UpdateApiKeyResult & WithLastUpdatedDate(const Aws::Utils::DateTime &value)
Definition: UpdateApiKeyResult.h:295
Aws::APIGateway::Model::UpdateApiKeyResult::WithId
UpdateApiKeyResult & WithId(const char *value)
Definition: UpdateApiKeyResult.h:81
AWSMap.h
Aws::APIGateway::Model::UpdateApiKeyResult::SetId
void SetId(Aws::String &&value)
Definition: UpdateApiKeyResult.h:61
Aws::APIGateway::Model::UpdateApiKeyResult::SetCustomerId
void SetCustomerId(const char *value)
Definition: UpdateApiKeyResult.h:178
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::APIGateway::Model::UpdateApiKeyResult::AddStageKeys
UpdateApiKeyResult & AddStageKeys(Aws::String &&value)
Definition: UpdateApiKeyResult.h:343