AWS SDK for C++  1.9.16
AWS SDK for C++
CreateApiKeyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace APIGateway
18 {
19 namespace Model
20 {
21 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "CreateApiKey"; }
37 
38  Aws::String SerializePayload() const override;
39 
40 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
49  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline CreateApiKeyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline CreateApiKeyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 
79  inline CreateApiKeyRequest& WithName(const char* value) { SetName(value); return *this;}
80 
81 
85  inline const Aws::String& GetDescription() const{ return m_description; }
86 
90  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
91 
95  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
96 
100  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
101 
105  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
106 
110  inline CreateApiKeyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
111 
115  inline CreateApiKeyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
116 
120  inline CreateApiKeyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
121 
122 
126  inline bool GetEnabled() const{ return m_enabled; }
127 
131  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
132 
136  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
137 
141  inline CreateApiKeyRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
142 
143 
149  inline bool GetGenerateDistinctId() const{ return m_generateDistinctId; }
150 
156  inline bool GenerateDistinctIdHasBeenSet() const { return m_generateDistinctIdHasBeenSet; }
157 
163  inline void SetGenerateDistinctId(bool value) { m_generateDistinctIdHasBeenSet = true; m_generateDistinctId = value; }
164 
170  inline CreateApiKeyRequest& WithGenerateDistinctId(bool value) { SetGenerateDistinctId(value); return *this;}
171 
172 
176  inline const Aws::String& GetValue() const{ return m_value; }
177 
181  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
182 
186  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
187 
191  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
192 
196  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
197 
201  inline CreateApiKeyRequest& WithValue(const Aws::String& value) { SetValue(value); return *this;}
202 
206  inline CreateApiKeyRequest& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
207 
211  inline CreateApiKeyRequest& WithValue(const char* value) { SetValue(value); return *this;}
212 
213 
218  inline const Aws::Vector<StageKey>& GetStageKeys() const{ return m_stageKeys; }
219 
224  inline bool StageKeysHasBeenSet() const { return m_stageKeysHasBeenSet; }
225 
230  inline void SetStageKeys(const Aws::Vector<StageKey>& value) { m_stageKeysHasBeenSet = true; m_stageKeys = value; }
231 
236  inline void SetStageKeys(Aws::Vector<StageKey>&& value) { m_stageKeysHasBeenSet = true; m_stageKeys = std::move(value); }
237 
242  inline CreateApiKeyRequest& WithStageKeys(const Aws::Vector<StageKey>& value) { SetStageKeys(value); return *this;}
243 
248  inline CreateApiKeyRequest& WithStageKeys(Aws::Vector<StageKey>&& value) { SetStageKeys(std::move(value)); return *this;}
249 
254  inline CreateApiKeyRequest& AddStageKeys(const StageKey& value) { m_stageKeysHasBeenSet = true; m_stageKeys.push_back(value); return *this; }
255 
260  inline CreateApiKeyRequest& AddStageKeys(StageKey&& value) { m_stageKeysHasBeenSet = true; m_stageKeys.push_back(std::move(value)); return *this; }
261 
262 
267  inline const Aws::String& GetCustomerId() const{ return m_customerId; }
268 
273  inline bool CustomerIdHasBeenSet() const { return m_customerIdHasBeenSet; }
274 
279  inline void SetCustomerId(const Aws::String& value) { m_customerIdHasBeenSet = true; m_customerId = value; }
280 
285  inline void SetCustomerId(Aws::String&& value) { m_customerIdHasBeenSet = true; m_customerId = std::move(value); }
286 
291  inline void SetCustomerId(const char* value) { m_customerIdHasBeenSet = true; m_customerId.assign(value); }
292 
297  inline CreateApiKeyRequest& WithCustomerId(const Aws::String& value) { SetCustomerId(value); return *this;}
298 
303  inline CreateApiKeyRequest& WithCustomerId(Aws::String&& value) { SetCustomerId(std::move(value)); return *this;}
304 
309  inline CreateApiKeyRequest& WithCustomerId(const char* value) { SetCustomerId(value); return *this;}
310 
311 
317  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
318 
324  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
325 
331  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
332 
338  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
339 
345  inline CreateApiKeyRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
346 
352  inline CreateApiKeyRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
353 
359  inline CreateApiKeyRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
360 
366  inline CreateApiKeyRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
367 
373  inline CreateApiKeyRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
374 
380  inline CreateApiKeyRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
381 
387  inline CreateApiKeyRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
388 
394  inline CreateApiKeyRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
395 
401  inline CreateApiKeyRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
402 
403  private:
404 
405  Aws::String m_name;
406  bool m_nameHasBeenSet;
407 
408  Aws::String m_description;
409  bool m_descriptionHasBeenSet;
410 
411  bool m_enabled;
412  bool m_enabledHasBeenSet;
413 
414  bool m_generateDistinctId;
415  bool m_generateDistinctIdHasBeenSet;
416 
417  Aws::String m_value;
418  bool m_valueHasBeenSet;
419 
420  Aws::Vector<StageKey> m_stageKeys;
421  bool m_stageKeysHasBeenSet;
422 
423  Aws::String m_customerId;
424  bool m_customerIdHasBeenSet;
425 
427  bool m_tagsHasBeenSet;
428  };
429 
430 } // namespace Model
431 } // namespace APIGateway
432 } // namespace Aws
Aws::APIGateway::Model::CreateApiKeyRequest::SetName
void SetName(const char *value)
Definition: CreateApiKeyRequest.h:64
Aws::APIGateway::Model::CreateApiKeyRequest::WithCustomerId
CreateApiKeyRequest & WithCustomerId(const char *value)
Definition: CreateApiKeyRequest.h:309
Aws::APIGateway::Model::CreateApiKeyRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateApiKeyRequest.h:85
Aws::APIGateway::Model::CreateApiKeyRequest::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: CreateApiKeyRequest.h:181
Aws::APIGateway::Model::CreateApiKeyRequest
Definition: CreateApiKeyRequest.h:28
Aws::APIGateway::Model::CreateApiKeyRequest::GetGenerateDistinctId
bool GetGenerateDistinctId() const
Definition: CreateApiKeyRequest.h:149
Aws::APIGateway::Model::CreateApiKeyRequest::WithName
CreateApiKeyRequest & WithName(Aws::String &&value)
Definition: CreateApiKeyRequest.h:74
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::CreateApiKeyRequest::AddTags
CreateApiKeyRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateApiKeyRequest.h:359
Aws::APIGateway::Model::CreateApiKeyRequest::SetCustomerId
void SetCustomerId(const Aws::String &value)
Definition: CreateApiKeyRequest.h:279
Aws::APIGateway::Model::CreateApiKeyRequest::WithTags
CreateApiKeyRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateApiKeyRequest.h:345
Aws::APIGateway::Model::CreateApiKeyRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateApiKeyRequest.h:59
Aws::APIGateway::Model::CreateApiKeyRequest::GetName
const Aws::String & GetName() const
Definition: CreateApiKeyRequest.h:44
Aws::APIGateway::Model::CreateApiKeyRequest::WithDescription
CreateApiKeyRequest & WithDescription(const Aws::String &value)
Definition: CreateApiKeyRequest.h:110
Aws::APIGateway::Model::CreateApiKeyRequest::WithCustomerId
CreateApiKeyRequest & WithCustomerId(Aws::String &&value)
Definition: CreateApiKeyRequest.h:303
StageKey.h
APIGateway_EXPORTS.h
Aws::APIGateway::Model::CreateApiKeyRequest::WithEnabled
CreateApiKeyRequest & WithEnabled(bool value)
Definition: CreateApiKeyRequest.h:141
Aws::APIGateway::Model::CreateApiKeyRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateApiKeyRequest.h:331
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::APIGateway::Model::CreateApiKeyRequest::SetEnabled
void SetEnabled(bool value)
Definition: CreateApiKeyRequest.h:136
Aws::APIGateway::Model::CreateApiKeyRequest::SetStageKeys
void SetStageKeys(Aws::Vector< StageKey > &&value)
Definition: CreateApiKeyRequest.h:236
Aws::APIGateway::Model::CreateApiKeyRequest::WithName
CreateApiKeyRequest & WithName(const Aws::String &value)
Definition: CreateApiKeyRequest.h:69
Aws::APIGateway::Model::CreateApiKeyRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateApiKeyRequest.h:105
Aws::APIGateway::Model::CreateApiKeyRequest::WithValue
CreateApiKeyRequest & WithValue(const char *value)
Definition: CreateApiKeyRequest.h:211
Aws::APIGateway::Model::CreateApiKeyRequest::AddTags
CreateApiKeyRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateApiKeyRequest.h:387
AWSVector.h
Aws::APIGateway::Model::CreateApiKeyRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateApiKeyRequest.h:49
Aws::APIGateway::Model::CreateApiKeyRequest::WithGenerateDistinctId
CreateApiKeyRequest & WithGenerateDistinctId(bool value)
Definition: CreateApiKeyRequest.h:170
APIGatewayRequest.h
Aws::APIGateway::Model::CreateApiKeyRequest::SetGenerateDistinctId
void SetGenerateDistinctId(bool value)
Definition: CreateApiKeyRequest.h:163
Aws::APIGateway::Model::CreateApiKeyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::APIGateway::Model::CreateApiKeyRequest::WithName
CreateApiKeyRequest & WithName(const char *value)
Definition: CreateApiKeyRequest.h:79
Aws::APIGateway::Model::CreateApiKeyRequest::AddTags
CreateApiKeyRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateApiKeyRequest.h:366
Aws::APIGateway::Model::CreateApiKeyRequest::SetCustomerId
void SetCustomerId(const char *value)
Definition: CreateApiKeyRequest.h:291
Aws::APIGateway::Model::CreateApiKeyRequest::SetValue
void SetValue(const Aws::String &value)
Definition: CreateApiKeyRequest.h:186
Aws::APIGateway::Model::CreateApiKeyRequest::WithStageKeys
CreateApiKeyRequest & WithStageKeys(const Aws::Vector< StageKey > &value)
Definition: CreateApiKeyRequest.h:242
Aws::APIGateway::Model::CreateApiKeyRequest::CustomerIdHasBeenSet
bool CustomerIdHasBeenSet() const
Definition: CreateApiKeyRequest.h:273
Aws::APIGateway::Model::CreateApiKeyRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateApiKeyRequest.h:90
Aws::APIGateway::Model::CreateApiKeyRequest::SetValue
void SetValue(const char *value)
Definition: CreateApiKeyRequest.h:196
Aws::APIGateway::Model::CreateApiKeyRequest::SetValue
void SetValue(Aws::String &&value)
Definition: CreateApiKeyRequest.h:191
AWSString.h
Aws::APIGateway::Model::CreateApiKeyRequest::GetStageKeys
const Aws::Vector< StageKey > & GetStageKeys() const
Definition: CreateApiKeyRequest.h:218
Aws::APIGateway::Model::CreateApiKeyRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateApiKeyRequest.h:100
Aws::APIGateway::Model::CreateApiKeyRequest::WithCustomerId
CreateApiKeyRequest & WithCustomerId(const Aws::String &value)
Definition: CreateApiKeyRequest.h:297
Aws::APIGateway::Model::CreateApiKeyRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateApiKeyRequest.h:338
Aws::APIGateway::Model::CreateApiKeyRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateApiKeyRequest.h:54
Aws::APIGateway::Model::CreateApiKeyRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateApiKeyRequest.h:317
Aws::APIGateway::Model::CreateApiKeyRequest::WithStageKeys
CreateApiKeyRequest & WithStageKeys(Aws::Vector< StageKey > &&value)
Definition: CreateApiKeyRequest.h:248
Aws::APIGateway::Model::CreateApiKeyRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateApiKeyRequest.h:95
Aws::APIGateway::Model::CreateApiKeyRequest::WithTags
CreateApiKeyRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateApiKeyRequest.h:352
Aws::APIGateway::Model::CreateApiKeyRequest::GetValue
const Aws::String & GetValue() const
Definition: CreateApiKeyRequest.h:176
Aws::APIGateway::Model::CreateApiKeyRequest::AddTags
CreateApiKeyRequest & AddTags(const char *key, const char *value)
Definition: CreateApiKeyRequest.h:401
Aws::APIGateway::Model::CreateApiKeyRequest::CreateApiKeyRequest
CreateApiKeyRequest()
Aws::APIGateway::Model::CreateApiKeyRequest::WithValue
CreateApiKeyRequest & WithValue(Aws::String &&value)
Definition: CreateApiKeyRequest.h:206
Aws::APIGateway::Model::CreateApiKeyRequest::AddStageKeys
CreateApiKeyRequest & AddStageKeys(StageKey &&value)
Definition: CreateApiKeyRequest.h:260
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::CreateApiKeyRequest::WithValue
CreateApiKeyRequest & WithValue(const Aws::String &value)
Definition: CreateApiKeyRequest.h:201
Aws::APIGateway::Model::CreateApiKeyRequest::AddTags
CreateApiKeyRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateApiKeyRequest.h:380
Aws::APIGateway::Model::StageKey
Definition: StageKey.h:33
Aws::APIGateway::Model::CreateApiKeyRequest::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: CreateApiKeyRequest.h:131
Aws::APIGateway::Model::CreateApiKeyRequest::SetCustomerId
void SetCustomerId(Aws::String &&value)
Definition: CreateApiKeyRequest.h:285
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::CreateApiKeyRequest::GetCustomerId
const Aws::String & GetCustomerId() const
Definition: CreateApiKeyRequest.h:267
Aws::APIGateway::Model::CreateApiKeyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateApiKeyRequest.h:36
Aws::APIGateway::Model::CreateApiKeyRequest::GetEnabled
bool GetEnabled() const
Definition: CreateApiKeyRequest.h:126
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
Aws::APIGateway::Model::CreateApiKeyRequest::SetStageKeys
void SetStageKeys(const Aws::Vector< StageKey > &value)
Definition: CreateApiKeyRequest.h:230
Aws::APIGateway::Model::CreateApiKeyRequest::AddTags
CreateApiKeyRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateApiKeyRequest.h:373
Aws::APIGateway::Model::CreateApiKeyRequest::StageKeysHasBeenSet
bool StageKeysHasBeenSet() const
Definition: CreateApiKeyRequest.h:224
AWSMap.h
Aws::APIGateway::Model::CreateApiKeyRequest::GenerateDistinctIdHasBeenSet
bool GenerateDistinctIdHasBeenSet() const
Definition: CreateApiKeyRequest.h:156
Aws::APIGateway::Model::CreateApiKeyRequest::AddStageKeys
CreateApiKeyRequest & AddStageKeys(const StageKey &value)
Definition: CreateApiKeyRequest.h:254
Aws::APIGateway::Model::CreateApiKeyRequest::WithDescription
CreateApiKeyRequest & WithDescription(const char *value)
Definition: CreateApiKeyRequest.h:120
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::APIGateway::Model::CreateApiKeyRequest::WithDescription
CreateApiKeyRequest & WithDescription(Aws::String &&value)
Definition: CreateApiKeyRequest.h:115
Aws::APIGateway::Model::CreateApiKeyRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateApiKeyRequest.h:324
Aws::APIGateway::Model::CreateApiKeyRequest::AddTags
CreateApiKeyRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateApiKeyRequest.h:394