AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
Api.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/apigatewayv2/model/Cors.h>
9#include <aws/apigatewayv2/model/IpAddressType.h>
10#include <aws/apigatewayv2/model/ProtocolType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ApiGatewayV2 {
26namespace Model {
27
33class Api {
34 public:
35 AWS_APIGATEWAYV2_API Api() = default;
36 AWS_APIGATEWAYV2_API Api(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APIGATEWAYV2_API Api& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline const Aws::String& GetApiEndpoint() const { return m_apiEndpoint; }
47 inline bool ApiEndpointHasBeenSet() const { return m_apiEndpointHasBeenSet; }
48 template <typename ApiEndpointT = Aws::String>
49 void SetApiEndpoint(ApiEndpointT&& value) {
50 m_apiEndpointHasBeenSet = true;
51 m_apiEndpoint = std::forward<ApiEndpointT>(value);
52 }
53 template <typename ApiEndpointT = Aws::String>
54 Api& WithApiEndpoint(ApiEndpointT&& value) {
55 SetApiEndpoint(std::forward<ApiEndpointT>(value));
56 return *this;
57 }
59
61
66 inline bool GetApiGatewayManaged() const { return m_apiGatewayManaged; }
67 inline bool ApiGatewayManagedHasBeenSet() const { return m_apiGatewayManagedHasBeenSet; }
68 inline void SetApiGatewayManaged(bool value) {
69 m_apiGatewayManagedHasBeenSet = true;
70 m_apiGatewayManaged = value;
71 }
72 inline Api& WithApiGatewayManaged(bool value) {
74 return *this;
75 }
77
79
82 inline const Aws::String& GetApiId() const { return m_apiId; }
83 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
84 template <typename ApiIdT = Aws::String>
85 void SetApiId(ApiIdT&& value) {
86 m_apiIdHasBeenSet = true;
87 m_apiId = std::forward<ApiIdT>(value);
88 }
89 template <typename ApiIdT = Aws::String>
90 Api& WithApiId(ApiIdT&& value) {
91 SetApiId(std::forward<ApiIdT>(value));
92 return *this;
93 }
95
97
102 inline const Aws::String& GetApiKeySelectionExpression() const { return m_apiKeySelectionExpression; }
103 inline bool ApiKeySelectionExpressionHasBeenSet() const { return m_apiKeySelectionExpressionHasBeenSet; }
104 template <typename ApiKeySelectionExpressionT = Aws::String>
105 void SetApiKeySelectionExpression(ApiKeySelectionExpressionT&& value) {
106 m_apiKeySelectionExpressionHasBeenSet = true;
107 m_apiKeySelectionExpression = std::forward<ApiKeySelectionExpressionT>(value);
108 }
109 template <typename ApiKeySelectionExpressionT = Aws::String>
110 Api& WithApiKeySelectionExpression(ApiKeySelectionExpressionT&& value) {
111 SetApiKeySelectionExpression(std::forward<ApiKeySelectionExpressionT>(value));
112 return *this;
113 }
115
117
120 inline const Cors& GetCorsConfiguration() const { return m_corsConfiguration; }
121 inline bool CorsConfigurationHasBeenSet() const { return m_corsConfigurationHasBeenSet; }
122 template <typename CorsConfigurationT = Cors>
123 void SetCorsConfiguration(CorsConfigurationT&& value) {
124 m_corsConfigurationHasBeenSet = true;
125 m_corsConfiguration = std::forward<CorsConfigurationT>(value);
126 }
127 template <typename CorsConfigurationT = Cors>
128 Api& WithCorsConfiguration(CorsConfigurationT&& value) {
129 SetCorsConfiguration(std::forward<CorsConfigurationT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
139 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
140 template <typename CreatedDateT = Aws::Utils::DateTime>
141 void SetCreatedDate(CreatedDateT&& value) {
142 m_createdDateHasBeenSet = true;
143 m_createdDate = std::forward<CreatedDateT>(value);
144 }
145 template <typename CreatedDateT = Aws::Utils::DateTime>
146 Api& WithCreatedDate(CreatedDateT&& value) {
147 SetCreatedDate(std::forward<CreatedDateT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::String& GetDescription() const { return m_description; }
157 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
158 template <typename DescriptionT = Aws::String>
159 void SetDescription(DescriptionT&& value) {
160 m_descriptionHasBeenSet = true;
161 m_description = std::forward<DescriptionT>(value);
162 }
163 template <typename DescriptionT = Aws::String>
164 Api& WithDescription(DescriptionT&& value) {
165 SetDescription(std::forward<DescriptionT>(value));
166 return *this;
167 }
169
171
175 inline bool GetDisableSchemaValidation() const { return m_disableSchemaValidation; }
176 inline bool DisableSchemaValidationHasBeenSet() const { return m_disableSchemaValidationHasBeenSet; }
177 inline void SetDisableSchemaValidation(bool value) {
178 m_disableSchemaValidationHasBeenSet = true;
179 m_disableSchemaValidation = value;
180 }
181 inline Api& WithDisableSchemaValidation(bool value) {
183 return *this;
184 }
186
188
195 inline bool GetDisableExecuteApiEndpoint() const { return m_disableExecuteApiEndpoint; }
196 inline bool DisableExecuteApiEndpointHasBeenSet() const { return m_disableExecuteApiEndpointHasBeenSet; }
197 inline void SetDisableExecuteApiEndpoint(bool value) {
198 m_disableExecuteApiEndpointHasBeenSet = true;
199 m_disableExecuteApiEndpoint = value;
200 }
201 inline Api& WithDisableExecuteApiEndpoint(bool value) {
203 return *this;
204 }
206
208
213 inline const Aws::Vector<Aws::String>& GetImportInfo() const { return m_importInfo; }
214 inline bool ImportInfoHasBeenSet() const { return m_importInfoHasBeenSet; }
215 template <typename ImportInfoT = Aws::Vector<Aws::String>>
216 void SetImportInfo(ImportInfoT&& value) {
217 m_importInfoHasBeenSet = true;
218 m_importInfo = std::forward<ImportInfoT>(value);
219 }
220 template <typename ImportInfoT = Aws::Vector<Aws::String>>
221 Api& WithImportInfo(ImportInfoT&& value) {
222 SetImportInfo(std::forward<ImportInfoT>(value));
223 return *this;
224 }
225 template <typename ImportInfoT = Aws::String>
226 Api& AddImportInfo(ImportInfoT&& value) {
227 m_importInfoHasBeenSet = true;
228 m_importInfo.emplace_back(std::forward<ImportInfoT>(value));
229 return *this;
230 }
232
234
237 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
238 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
239 inline void SetIpAddressType(IpAddressType value) {
240 m_ipAddressTypeHasBeenSet = true;
241 m_ipAddressType = value;
242 }
244 SetIpAddressType(value);
245 return *this;
246 }
248
250
253 inline const Aws::String& GetName() const { return m_name; }
254 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
255 template <typename NameT = Aws::String>
256 void SetName(NameT&& value) {
257 m_nameHasBeenSet = true;
258 m_name = std::forward<NameT>(value);
259 }
260 template <typename NameT = Aws::String>
261 Api& WithName(NameT&& value) {
262 SetName(std::forward<NameT>(value));
263 return *this;
264 }
266
268
271 inline ProtocolType GetProtocolType() const { return m_protocolType; }
272 inline bool ProtocolTypeHasBeenSet() const { return m_protocolTypeHasBeenSet; }
273 inline void SetProtocolType(ProtocolType value) {
274 m_protocolTypeHasBeenSet = true;
275 m_protocolType = value;
276 }
278 SetProtocolType(value);
279 return *this;
280 }
282
284
290 inline const Aws::String& GetRouteSelectionExpression() const { return m_routeSelectionExpression; }
291 inline bool RouteSelectionExpressionHasBeenSet() const { return m_routeSelectionExpressionHasBeenSet; }
292 template <typename RouteSelectionExpressionT = Aws::String>
293 void SetRouteSelectionExpression(RouteSelectionExpressionT&& value) {
294 m_routeSelectionExpressionHasBeenSet = true;
295 m_routeSelectionExpression = std::forward<RouteSelectionExpressionT>(value);
296 }
297 template <typename RouteSelectionExpressionT = Aws::String>
298 Api& WithRouteSelectionExpression(RouteSelectionExpressionT&& value) {
299 SetRouteSelectionExpression(std::forward<RouteSelectionExpressionT>(value));
300 return *this;
301 }
303
305
308 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
309 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
310 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
311 void SetTags(TagsT&& value) {
312 m_tagsHasBeenSet = true;
313 m_tags = std::forward<TagsT>(value);
314 }
315 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
316 Api& WithTags(TagsT&& value) {
317 SetTags(std::forward<TagsT>(value));
318 return *this;
319 }
320 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
321 Api& AddTags(TagsKeyT&& key, TagsValueT&& value) {
322 m_tagsHasBeenSet = true;
323 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
324 return *this;
325 }
327
329
332 inline const Aws::String& GetVersion() const { return m_version; }
333 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
334 template <typename VersionT = Aws::String>
335 void SetVersion(VersionT&& value) {
336 m_versionHasBeenSet = true;
337 m_version = std::forward<VersionT>(value);
338 }
339 template <typename VersionT = Aws::String>
340 Api& WithVersion(VersionT&& value) {
341 SetVersion(std::forward<VersionT>(value));
342 return *this;
343 }
345
347
351 inline const Aws::Vector<Aws::String>& GetWarnings() const { return m_warnings; }
352 inline bool WarningsHasBeenSet() const { return m_warningsHasBeenSet; }
353 template <typename WarningsT = Aws::Vector<Aws::String>>
354 void SetWarnings(WarningsT&& value) {
355 m_warningsHasBeenSet = true;
356 m_warnings = std::forward<WarningsT>(value);
357 }
358 template <typename WarningsT = Aws::Vector<Aws::String>>
359 Api& WithWarnings(WarningsT&& value) {
360 SetWarnings(std::forward<WarningsT>(value));
361 return *this;
362 }
363 template <typename WarningsT = Aws::String>
364 Api& AddWarnings(WarningsT&& value) {
365 m_warningsHasBeenSet = true;
366 m_warnings.emplace_back(std::forward<WarningsT>(value));
367 return *this;
368 }
370 private:
371 Aws::String m_apiEndpoint;
372
373 bool m_apiGatewayManaged{false};
374
375 Aws::String m_apiId;
376
377 Aws::String m_apiKeySelectionExpression;
378
379 Cors m_corsConfiguration;
380
381 Aws::Utils::DateTime m_createdDate{};
382
383 Aws::String m_description;
384
385 bool m_disableSchemaValidation{false};
386
387 bool m_disableExecuteApiEndpoint{false};
388
389 Aws::Vector<Aws::String> m_importInfo;
390
391 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
392
393 Aws::String m_name;
394
395 ProtocolType m_protocolType{ProtocolType::NOT_SET};
396
397 Aws::String m_routeSelectionExpression;
398
400
401 Aws::String m_version;
402
403 Aws::Vector<Aws::String> m_warnings;
404 bool m_apiEndpointHasBeenSet = false;
405 bool m_apiGatewayManagedHasBeenSet = false;
406 bool m_apiIdHasBeenSet = false;
407 bool m_apiKeySelectionExpressionHasBeenSet = false;
408 bool m_corsConfigurationHasBeenSet = false;
409 bool m_createdDateHasBeenSet = false;
410 bool m_descriptionHasBeenSet = false;
411 bool m_disableSchemaValidationHasBeenSet = false;
412 bool m_disableExecuteApiEndpointHasBeenSet = false;
413 bool m_importInfoHasBeenSet = false;
414 bool m_ipAddressTypeHasBeenSet = false;
415 bool m_nameHasBeenSet = false;
416 bool m_protocolTypeHasBeenSet = false;
417 bool m_routeSelectionExpressionHasBeenSet = false;
418 bool m_tagsHasBeenSet = false;
419 bool m_versionHasBeenSet = false;
420 bool m_warningsHasBeenSet = false;
421};
422
423} // namespace Model
424} // namespace ApiGatewayV2
425} // namespace Aws
Api & WithVersion(VersionT &&value)
Definition Api.h:340
Api & WithCorsConfiguration(CorsConfigurationT &&value)
Definition Api.h:128
bool DescriptionHasBeenSet() const
Definition Api.h:157
Api & WithDisableSchemaValidation(bool value)
Definition Api.h:181
Api & WithProtocolType(ProtocolType value)
Definition Api.h:277
bool GetDisableExecuteApiEndpoint() const
Definition Api.h:195
bool ApiIdHasBeenSet() const
Definition Api.h:83
void SetApiId(ApiIdT &&value)
Definition Api.h:85
IpAddressType GetIpAddressType() const
Definition Api.h:237
bool IpAddressTypeHasBeenSet() const
Definition Api.h:238
void SetApiEndpoint(ApiEndpointT &&value)
Definition Api.h:49
Api & WithApiId(ApiIdT &&value)
Definition Api.h:90
bool ApiKeySelectionExpressionHasBeenSet() const
Definition Api.h:103
bool ApiGatewayManagedHasBeenSet() const
Definition Api.h:67
AWS_APIGATEWAYV2_API Api()=default
bool VersionHasBeenSet() const
Definition Api.h:333
Api & WithApiKeySelectionExpression(ApiKeySelectionExpressionT &&value)
Definition Api.h:110
bool CorsConfigurationHasBeenSet() const
Definition Api.h:121
const Aws::String & GetApiKeySelectionExpression() const
Definition Api.h:102
const Aws::String & GetVersion() const
Definition Api.h:332
Api & WithName(NameT &&value)
Definition Api.h:261
bool WarningsHasBeenSet() const
Definition Api.h:352
bool ProtocolTypeHasBeenSet() const
Definition Api.h:272
bool DisableExecuteApiEndpointHasBeenSet() const
Definition Api.h:196
void SetTags(TagsT &&value)
Definition Api.h:311
Api & WithApiGatewayManaged(bool value)
Definition Api.h:72
void SetName(NameT &&value)
Definition Api.h:256
Api & AddImportInfo(ImportInfoT &&value)
Definition Api.h:226
Api & WithIpAddressType(IpAddressType value)
Definition Api.h:243
void SetRouteSelectionExpression(RouteSelectionExpressionT &&value)
Definition Api.h:293
const Aws::String & GetApiEndpoint() const
Definition Api.h:46
bool NameHasBeenSet() const
Definition Api.h:254
const Cors & GetCorsConfiguration() const
Definition Api.h:120
AWS_APIGATEWAYV2_API Api(Aws::Utils::Json::JsonView jsonValue)
Api & WithTags(TagsT &&value)
Definition Api.h:316
Api & WithWarnings(WarningsT &&value)
Definition Api.h:359
const Aws::String & GetDescription() const
Definition Api.h:156
bool TagsHasBeenSet() const
Definition Api.h:309
void SetDisableSchemaValidation(bool value)
Definition Api.h:177
AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const
bool CreatedDateHasBeenSet() const
Definition Api.h:139
ProtocolType GetProtocolType() const
Definition Api.h:271
void SetVersion(VersionT &&value)
Definition Api.h:335
bool ApiEndpointHasBeenSet() const
Definition Api.h:47
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Api.h:308
Api & WithDisableExecuteApiEndpoint(bool value)
Definition Api.h:201
Api & WithCreatedDate(CreatedDateT &&value)
Definition Api.h:146
void SetDescription(DescriptionT &&value)
Definition Api.h:159
void SetApiKeySelectionExpression(ApiKeySelectionExpressionT &&value)
Definition Api.h:105
void SetImportInfo(ImportInfoT &&value)
Definition Api.h:216
void SetApiGatewayManaged(bool value)
Definition Api.h:68
Api & WithDescription(DescriptionT &&value)
Definition Api.h:164
bool GetDisableSchemaValidation() const
Definition Api.h:175
Api & WithApiEndpoint(ApiEndpointT &&value)
Definition Api.h:54
const Aws::String & GetApiId() const
Definition Api.h:82
Api & WithImportInfo(ImportInfoT &&value)
Definition Api.h:221
const Aws::Vector< Aws::String > & GetImportInfo() const
Definition Api.h:213
void SetCorsConfiguration(CorsConfigurationT &&value)
Definition Api.h:123
void SetCreatedDate(CreatedDateT &&value)
Definition Api.h:141
const Aws::Vector< Aws::String > & GetWarnings() const
Definition Api.h:351
const Aws::String & GetName() const
Definition Api.h:253
bool ImportInfoHasBeenSet() const
Definition Api.h:214
AWS_APIGATEWAYV2_API Api & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDisableExecuteApiEndpoint(bool value)
Definition Api.h:197
void SetWarnings(WarningsT &&value)
Definition Api.h:354
void SetIpAddressType(IpAddressType value)
Definition Api.h:239
void SetProtocolType(ProtocolType value)
Definition Api.h:273
const Aws::Utils::DateTime & GetCreatedDate() const
Definition Api.h:138
bool DisableSchemaValidationHasBeenSet() const
Definition Api.h:176
Api & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Api.h:321
bool GetApiGatewayManaged() const
Definition Api.h:66
Api & AddWarnings(WarningsT &&value)
Definition Api.h:364
const Aws::String & GetRouteSelectionExpression() const
Definition Api.h:290
Api & WithRouteSelectionExpression(RouteSelectionExpressionT &&value)
Definition Api.h:298
bool RouteSelectionExpressionHasBeenSet() const
Definition Api.h:291
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