AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateApiRequest.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/apigatewayv2/ApiGatewayV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/apigatewayv2/model/Cors.h>
11#include <aws/apigatewayv2/model/ProtocolType.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ApiGatewayV2
18{
19namespace Model
20{
21
28 {
29 public:
30 AWS_APIGATEWAYV2_API CreateApiRequest();
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 "CreateApi"; }
37
38 AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override;
39
40
42
47 inline const Aws::String& GetApiKeySelectionExpression() const{ return m_apiKeySelectionExpression; }
48 inline bool ApiKeySelectionExpressionHasBeenSet() const { return m_apiKeySelectionExpressionHasBeenSet; }
49 inline void SetApiKeySelectionExpression(const Aws::String& value) { m_apiKeySelectionExpressionHasBeenSet = true; m_apiKeySelectionExpression = value; }
50 inline void SetApiKeySelectionExpression(Aws::String&& value) { m_apiKeySelectionExpressionHasBeenSet = true; m_apiKeySelectionExpression = std::move(value); }
51 inline void SetApiKeySelectionExpression(const char* value) { m_apiKeySelectionExpressionHasBeenSet = true; m_apiKeySelectionExpression.assign(value); }
54 inline CreateApiRequest& WithApiKeySelectionExpression(const char* value) { SetApiKeySelectionExpression(value); return *this;}
56
58
63 inline const Cors& GetCorsConfiguration() const{ return m_corsConfiguration; }
64 inline bool CorsConfigurationHasBeenSet() const { return m_corsConfigurationHasBeenSet; }
65 inline void SetCorsConfiguration(const Cors& value) { m_corsConfigurationHasBeenSet = true; m_corsConfiguration = value; }
66 inline void SetCorsConfiguration(Cors&& value) { m_corsConfigurationHasBeenSet = true; m_corsConfiguration = std::move(value); }
67 inline CreateApiRequest& WithCorsConfiguration(const Cors& value) { SetCorsConfiguration(value); return *this;}
68 inline CreateApiRequest& WithCorsConfiguration(Cors&& value) { SetCorsConfiguration(std::move(value)); return *this;}
70
72
81 inline const Aws::String& GetCredentialsArn() const{ return m_credentialsArn; }
82 inline bool CredentialsArnHasBeenSet() const { return m_credentialsArnHasBeenSet; }
83 inline void SetCredentialsArn(const Aws::String& value) { m_credentialsArnHasBeenSet = true; m_credentialsArn = value; }
84 inline void SetCredentialsArn(Aws::String&& value) { m_credentialsArnHasBeenSet = true; m_credentialsArn = std::move(value); }
85 inline void SetCredentialsArn(const char* value) { m_credentialsArnHasBeenSet = true; m_credentialsArn.assign(value); }
86 inline CreateApiRequest& WithCredentialsArn(const Aws::String& value) { SetCredentialsArn(value); return *this;}
87 inline CreateApiRequest& WithCredentialsArn(Aws::String&& value) { SetCredentialsArn(std::move(value)); return *this;}
88 inline CreateApiRequest& WithCredentialsArn(const char* value) { SetCredentialsArn(value); return *this;}
90
92
95 inline const Aws::String& GetDescription() const{ return m_description; }
96 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
97 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
98 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
99 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
100 inline CreateApiRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
101 inline CreateApiRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
102 inline CreateApiRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
104
106
110 inline bool GetDisableSchemaValidation() const{ return m_disableSchemaValidation; }
111 inline bool DisableSchemaValidationHasBeenSet() const { return m_disableSchemaValidationHasBeenSet; }
112 inline void SetDisableSchemaValidation(bool value) { m_disableSchemaValidationHasBeenSet = true; m_disableSchemaValidation = value; }
115
117
124 inline bool GetDisableExecuteApiEndpoint() const{ return m_disableExecuteApiEndpoint; }
125 inline bool DisableExecuteApiEndpointHasBeenSet() const { return m_disableExecuteApiEndpointHasBeenSet; }
126 inline void SetDisableExecuteApiEndpoint(bool value) { m_disableExecuteApiEndpointHasBeenSet = true; m_disableExecuteApiEndpoint = value; }
129
131
134 inline const Aws::String& GetName() const{ return m_name; }
135 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
136 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
137 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
138 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
139 inline CreateApiRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
140 inline CreateApiRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
141 inline CreateApiRequest& WithName(const char* value) { SetName(value); return *this;}
143
145
148 inline const ProtocolType& GetProtocolType() const{ return m_protocolType; }
149 inline bool ProtocolTypeHasBeenSet() const { return m_protocolTypeHasBeenSet; }
150 inline void SetProtocolType(const ProtocolType& value) { m_protocolTypeHasBeenSet = true; m_protocolType = value; }
151 inline void SetProtocolType(ProtocolType&& value) { m_protocolTypeHasBeenSet = true; m_protocolType = std::move(value); }
152 inline CreateApiRequest& WithProtocolType(const ProtocolType& value) { SetProtocolType(value); return *this;}
153 inline CreateApiRequest& WithProtocolType(ProtocolType&& value) { SetProtocolType(std::move(value)); return *this;}
155
157
164 inline const Aws::String& GetRouteKey() const{ return m_routeKey; }
165 inline bool RouteKeyHasBeenSet() const { return m_routeKeyHasBeenSet; }
166 inline void SetRouteKey(const Aws::String& value) { m_routeKeyHasBeenSet = true; m_routeKey = value; }
167 inline void SetRouteKey(Aws::String&& value) { m_routeKeyHasBeenSet = true; m_routeKey = std::move(value); }
168 inline void SetRouteKey(const char* value) { m_routeKeyHasBeenSet = true; m_routeKey.assign(value); }
169 inline CreateApiRequest& WithRouteKey(const Aws::String& value) { SetRouteKey(value); return *this;}
170 inline CreateApiRequest& WithRouteKey(Aws::String&& value) { SetRouteKey(std::move(value)); return *this;}
171 inline CreateApiRequest& WithRouteKey(const char* value) { SetRouteKey(value); return *this;}
173
175
181 inline const Aws::String& GetRouteSelectionExpression() const{ return m_routeSelectionExpression; }
182 inline bool RouteSelectionExpressionHasBeenSet() const { return m_routeSelectionExpressionHasBeenSet; }
183 inline void SetRouteSelectionExpression(const Aws::String& value) { m_routeSelectionExpressionHasBeenSet = true; m_routeSelectionExpression = value; }
184 inline void SetRouteSelectionExpression(Aws::String&& value) { m_routeSelectionExpressionHasBeenSet = true; m_routeSelectionExpression = std::move(value); }
185 inline void SetRouteSelectionExpression(const char* value) { m_routeSelectionExpressionHasBeenSet = true; m_routeSelectionExpression.assign(value); }
188 inline CreateApiRequest& WithRouteSelectionExpression(const char* value) { SetRouteSelectionExpression(value); return *this;}
190
192
196 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
197 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
198 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
199 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
200 inline CreateApiRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
201 inline CreateApiRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
202 inline CreateApiRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
203 inline CreateApiRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
204 inline CreateApiRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
205 inline CreateApiRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
206 inline CreateApiRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
207 inline CreateApiRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
208 inline CreateApiRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
210
212
220 inline const Aws::String& GetTarget() const{ return m_target; }
221 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
222 inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; }
223 inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
224 inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); }
225 inline CreateApiRequest& WithTarget(const Aws::String& value) { SetTarget(value); return *this;}
226 inline CreateApiRequest& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;}
227 inline CreateApiRequest& WithTarget(const char* value) { SetTarget(value); return *this;}
229
231
234 inline const Aws::String& GetVersion() const{ return m_version; }
235 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
236 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
237 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
238 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
239 inline CreateApiRequest& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
240 inline CreateApiRequest& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
241 inline CreateApiRequest& WithVersion(const char* value) { SetVersion(value); return *this;}
243 private:
244
245 Aws::String m_apiKeySelectionExpression;
246 bool m_apiKeySelectionExpressionHasBeenSet = false;
247
248 Cors m_corsConfiguration;
249 bool m_corsConfigurationHasBeenSet = false;
250
251 Aws::String m_credentialsArn;
252 bool m_credentialsArnHasBeenSet = false;
253
254 Aws::String m_description;
255 bool m_descriptionHasBeenSet = false;
256
257 bool m_disableSchemaValidation;
258 bool m_disableSchemaValidationHasBeenSet = false;
259
260 bool m_disableExecuteApiEndpoint;
261 bool m_disableExecuteApiEndpointHasBeenSet = false;
262
263 Aws::String m_name;
264 bool m_nameHasBeenSet = false;
265
266 ProtocolType m_protocolType;
267 bool m_protocolTypeHasBeenSet = false;
268
269 Aws::String m_routeKey;
270 bool m_routeKeyHasBeenSet = false;
271
272 Aws::String m_routeSelectionExpression;
273 bool m_routeSelectionExpressionHasBeenSet = false;
274
276 bool m_tagsHasBeenSet = false;
277
278 Aws::String m_target;
279 bool m_targetHasBeenSet = false;
280
281 Aws::String m_version;
282 bool m_versionHasBeenSet = false;
283 };
284
285} // namespace Model
286} // namespace ApiGatewayV2
287} // namespace Aws
virtual const char * GetServiceRequestName() const override
void SetApiKeySelectionExpression(const char *value)
AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override
const Aws::String & GetRouteSelectionExpression() const
CreateApiRequest & WithTarget(const char *value)
void SetApiKeySelectionExpression(const Aws::String &value)
CreateApiRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateApiRequest & WithCorsConfiguration(const Cors &value)
CreateApiRequest & WithRouteKey(const Aws::String &value)
void SetCredentialsArn(const Aws::String &value)
CreateApiRequest & WithCorsConfiguration(Cors &&value)
CreateApiRequest & WithTarget(Aws::String &&value)
CreateApiRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateApiRequest & AddTags(Aws::String &&key, const char *value)
CreateApiRequest & WithTarget(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTarget(const Aws::String &value)
const ProtocolType & GetProtocolType() const
CreateApiRequest & WithName(const char *value)
void SetRouteSelectionExpression(Aws::String &&value)
CreateApiRequest & WithProtocolType(ProtocolType &&value)
void SetApiKeySelectionExpression(Aws::String &&value)
const Aws::String & GetApiKeySelectionExpression() const
const Aws::String & GetCredentialsArn() const
CreateApiRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateApiRequest & WithCredentialsArn(Aws::String &&value)
CreateApiRequest & WithRouteSelectionExpression(const Aws::String &value)
CreateApiRequest & WithVersion(Aws::String &&value)
CreateApiRequest & WithApiKeySelectionExpression(Aws::String &&value)
void SetProtocolType(const ProtocolType &value)
void SetRouteSelectionExpression(const char *value)
void SetDescription(const Aws::String &value)
CreateApiRequest & WithDisableSchemaValidation(bool value)
CreateApiRequest & WithApiKeySelectionExpression(const char *value)
CreateApiRequest & AddTags(const char *key, Aws::String &&value)
CreateApiRequest & WithName(const Aws::String &value)
CreateApiRequest & WithProtocolType(const ProtocolType &value)
CreateApiRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateApiRequest & WithCredentialsArn(const char *value)
void SetRouteSelectionExpression(const Aws::String &value)
CreateApiRequest & WithVersion(const char *value)
CreateApiRequest & WithDisableExecuteApiEndpoint(bool value)
CreateApiRequest & WithRouteKey(Aws::String &&value)
CreateApiRequest & WithRouteKey(const char *value)
CreateApiRequest & WithDescription(const Aws::String &value)
void SetName(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateApiRequest & WithApiKeySelectionExpression(const Aws::String &value)
CreateApiRequest & WithVersion(const Aws::String &value)
CreateApiRequest & AddTags(const char *key, const char *value)
CreateApiRequest & WithCredentialsArn(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateApiRequest & WithName(Aws::String &&value)
void SetRouteKey(const Aws::String &value)
const Aws::String & GetDescription() const
CreateApiRequest & WithRouteSelectionExpression(const char *value)
CreateApiRequest & WithDescription(Aws::String &&value)
CreateApiRequest & WithDescription(const char *value)
CreateApiRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetVersion(const Aws::String &value)
CreateApiRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateApiRequest & WithRouteSelectionExpression(Aws::String &&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