AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateApiKeyRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/APIGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/apigateway/model/StageKey.h>
13#include <utility>
14
15namespace Aws
16{
17namespace APIGateway
18{
19namespace Model
20{
21
28 {
29 public:
30 AWS_APIGATEWAY_API CreateApiKeyRequest();
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_APIGATEWAY_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline CreateApiKeyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline CreateApiKeyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline CreateApiKeyRequest& WithName(const char* value) { SetName(value); return *this;}
54
56
59 inline const Aws::String& GetDescription() const{ return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
62 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
63 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
64 inline CreateApiKeyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
65 inline CreateApiKeyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
66 inline CreateApiKeyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
68
70
73 inline bool GetEnabled() const{ return m_enabled; }
74 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
75 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
76 inline CreateApiKeyRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
78
80
85 inline bool GetGenerateDistinctId() const{ return m_generateDistinctId; }
86 inline bool GenerateDistinctIdHasBeenSet() const { return m_generateDistinctIdHasBeenSet; }
87 inline void SetGenerateDistinctId(bool value) { m_generateDistinctIdHasBeenSet = true; m_generateDistinctId = value; }
88 inline CreateApiKeyRequest& WithGenerateDistinctId(bool value) { SetGenerateDistinctId(value); return *this;}
90
92
95 inline const Aws::String& GetValue() const{ return m_value; }
96 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
97 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
98 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
99 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
100 inline CreateApiKeyRequest& WithValue(const Aws::String& value) { SetValue(value); return *this;}
101 inline CreateApiKeyRequest& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
102 inline CreateApiKeyRequest& WithValue(const char* value) { SetValue(value); return *this;}
104
106
110 inline const Aws::Vector<StageKey>& GetStageKeys() const{ return m_stageKeys; }
111 inline bool StageKeysHasBeenSet() const { return m_stageKeysHasBeenSet; }
112 inline void SetStageKeys(const Aws::Vector<StageKey>& value) { m_stageKeysHasBeenSet = true; m_stageKeys = value; }
113 inline void SetStageKeys(Aws::Vector<StageKey>&& value) { m_stageKeysHasBeenSet = true; m_stageKeys = std::move(value); }
114 inline CreateApiKeyRequest& WithStageKeys(const Aws::Vector<StageKey>& value) { SetStageKeys(value); return *this;}
115 inline CreateApiKeyRequest& WithStageKeys(Aws::Vector<StageKey>&& value) { SetStageKeys(std::move(value)); return *this;}
116 inline CreateApiKeyRequest& AddStageKeys(const StageKey& value) { m_stageKeysHasBeenSet = true; m_stageKeys.push_back(value); return *this; }
117 inline CreateApiKeyRequest& AddStageKeys(StageKey&& value) { m_stageKeysHasBeenSet = true; m_stageKeys.push_back(std::move(value)); return *this; }
119
121
125 inline const Aws::String& GetCustomerId() const{ return m_customerId; }
126 inline bool CustomerIdHasBeenSet() const { return m_customerIdHasBeenSet; }
127 inline void SetCustomerId(const Aws::String& value) { m_customerIdHasBeenSet = true; m_customerId = value; }
128 inline void SetCustomerId(Aws::String&& value) { m_customerIdHasBeenSet = true; m_customerId = std::move(value); }
129 inline void SetCustomerId(const char* value) { m_customerIdHasBeenSet = true; m_customerId.assign(value); }
130 inline CreateApiKeyRequest& WithCustomerId(const Aws::String& value) { SetCustomerId(value); return *this;}
131 inline CreateApiKeyRequest& WithCustomerId(Aws::String&& value) { SetCustomerId(std::move(value)); return *this;}
132 inline CreateApiKeyRequest& WithCustomerId(const char* value) { SetCustomerId(value); return *this;}
134
136
141 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
142 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
143 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
144 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
145 inline CreateApiKeyRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
146 inline CreateApiKeyRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
147 inline CreateApiKeyRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
148 inline CreateApiKeyRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
149 inline CreateApiKeyRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
150 inline CreateApiKeyRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
151 inline CreateApiKeyRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
152 inline CreateApiKeyRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
153 inline CreateApiKeyRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
155 private:
156
157 Aws::String m_name;
158 bool m_nameHasBeenSet = false;
159
160 Aws::String m_description;
161 bool m_descriptionHasBeenSet = false;
162
163 bool m_enabled;
164 bool m_enabledHasBeenSet = false;
165
166 bool m_generateDistinctId;
167 bool m_generateDistinctIdHasBeenSet = false;
168
169 Aws::String m_value;
170 bool m_valueHasBeenSet = false;
171
172 Aws::Vector<StageKey> m_stageKeys;
173 bool m_stageKeysHasBeenSet = false;
174
175 Aws::String m_customerId;
176 bool m_customerIdHasBeenSet = false;
177
179 bool m_tagsHasBeenSet = false;
180 };
181
182} // namespace Model
183} // namespace APIGateway
184} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateApiKeyRequest & WithDescription(const char *value)
CreateApiKeyRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateApiKeyRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateApiKeyRequest & WithCustomerId(const Aws::String &value)
CreateApiKeyRequest & WithValue(const Aws::String &value)
CreateApiKeyRequest & WithDescription(const Aws::String &value)
CreateApiKeyRequest & WithValue(const char *value)
CreateApiKeyRequest & WithValue(Aws::String &&value)
CreateApiKeyRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateApiKeyRequest & AddTags(Aws::String &&key, const char *value)
CreateApiKeyRequest & WithName(Aws::String &&value)
CreateApiKeyRequest & AddTags(const char *key, const char *value)
CreateApiKeyRequest & WithEnabled(bool value)
void SetDescription(const Aws::String &value)
void SetStageKeys(Aws::Vector< StageKey > &&value)
CreateApiKeyRequest & WithName(const char *value)
virtual const char * GetServiceRequestName() const override
CreateApiKeyRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
CreateApiKeyRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateApiKeyRequest & AddStageKeys(const StageKey &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetStageKeys(const Aws::Vector< StageKey > &value)
CreateApiKeyRequest & WithStageKeys(const Aws::Vector< StageKey > &value)
CreateApiKeyRequest & WithCustomerId(const char *value)
CreateApiKeyRequest & WithCustomerId(Aws::String &&value)
CreateApiKeyRequest & AddStageKeys(StageKey &&value)
CreateApiKeyRequest & WithGenerateDistinctId(bool value)
CreateApiKeyRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateApiKeyRequest & WithName(const Aws::String &value)
CreateApiKeyRequest & AddTags(const char *key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Vector< StageKey > & GetStageKeys() const
CreateApiKeyRequest & WithDescription(Aws::String &&value)
CreateApiKeyRequest & WithStageKeys(Aws::Vector< StageKey > &&value)
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