AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Api.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/apigatewayv2/model/Cors.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/apigatewayv2/model/IpAddressType.h>
13#include <aws/apigatewayv2/model/ProtocolType.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace ApiGatewayV2
28{
29namespace Model
30{
31
37 class Api
38 {
39 public:
40 AWS_APIGATEWAYV2_API Api() = default;
41 AWS_APIGATEWAYV2_API Api(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APIGATEWAYV2_API Api& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
52 inline const Aws::String& GetApiEndpoint() const { return m_apiEndpoint; }
53 inline bool ApiEndpointHasBeenSet() const { return m_apiEndpointHasBeenSet; }
54 template<typename ApiEndpointT = Aws::String>
55 void SetApiEndpoint(ApiEndpointT&& value) { m_apiEndpointHasBeenSet = true; m_apiEndpoint = std::forward<ApiEndpointT>(value); }
56 template<typename ApiEndpointT = Aws::String>
57 Api& WithApiEndpoint(ApiEndpointT&& value) { SetApiEndpoint(std::forward<ApiEndpointT>(value)); return *this;}
59
61
66 inline bool GetApiGatewayManaged() const { return m_apiGatewayManaged; }
67 inline bool ApiGatewayManagedHasBeenSet() const { return m_apiGatewayManagedHasBeenSet; }
68 inline void SetApiGatewayManaged(bool value) { m_apiGatewayManagedHasBeenSet = true; m_apiGatewayManaged = value; }
69 inline Api& WithApiGatewayManaged(bool value) { SetApiGatewayManaged(value); return *this;}
71
73
76 inline const Aws::String& GetApiId() const { return m_apiId; }
77 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
78 template<typename ApiIdT = Aws::String>
79 void SetApiId(ApiIdT&& value) { m_apiIdHasBeenSet = true; m_apiId = std::forward<ApiIdT>(value); }
80 template<typename ApiIdT = Aws::String>
81 Api& WithApiId(ApiIdT&& value) { SetApiId(std::forward<ApiIdT>(value)); return *this;}
83
85
90 inline const Aws::String& GetApiKeySelectionExpression() const { return m_apiKeySelectionExpression; }
91 inline bool ApiKeySelectionExpressionHasBeenSet() const { return m_apiKeySelectionExpressionHasBeenSet; }
92 template<typename ApiKeySelectionExpressionT = Aws::String>
93 void SetApiKeySelectionExpression(ApiKeySelectionExpressionT&& value) { m_apiKeySelectionExpressionHasBeenSet = true; m_apiKeySelectionExpression = std::forward<ApiKeySelectionExpressionT>(value); }
94 template<typename ApiKeySelectionExpressionT = Aws::String>
95 Api& WithApiKeySelectionExpression(ApiKeySelectionExpressionT&& value) { SetApiKeySelectionExpression(std::forward<ApiKeySelectionExpressionT>(value)); return *this;}
97
99
102 inline const Cors& GetCorsConfiguration() const { return m_corsConfiguration; }
103 inline bool CorsConfigurationHasBeenSet() const { return m_corsConfigurationHasBeenSet; }
104 template<typename CorsConfigurationT = Cors>
105 void SetCorsConfiguration(CorsConfigurationT&& value) { m_corsConfigurationHasBeenSet = true; m_corsConfiguration = std::forward<CorsConfigurationT>(value); }
106 template<typename CorsConfigurationT = Cors>
107 Api& WithCorsConfiguration(CorsConfigurationT&& value) { SetCorsConfiguration(std::forward<CorsConfigurationT>(value)); return *this;}
109
111
114 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
115 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
116 template<typename CreatedDateT = Aws::Utils::DateTime>
117 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
118 template<typename CreatedDateT = Aws::Utils::DateTime>
119 Api& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
121
123
126 inline const Aws::String& GetDescription() const { return m_description; }
127 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
128 template<typename DescriptionT = Aws::String>
129 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
130 template<typename DescriptionT = Aws::String>
131 Api& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
133
135
139 inline bool GetDisableSchemaValidation() const { return m_disableSchemaValidation; }
140 inline bool DisableSchemaValidationHasBeenSet() const { return m_disableSchemaValidationHasBeenSet; }
141 inline void SetDisableSchemaValidation(bool value) { m_disableSchemaValidationHasBeenSet = true; m_disableSchemaValidation = value; }
142 inline Api& WithDisableSchemaValidation(bool value) { SetDisableSchemaValidation(value); return *this;}
144
146
153 inline bool GetDisableExecuteApiEndpoint() const { return m_disableExecuteApiEndpoint; }
154 inline bool DisableExecuteApiEndpointHasBeenSet() const { return m_disableExecuteApiEndpointHasBeenSet; }
155 inline void SetDisableExecuteApiEndpoint(bool value) { m_disableExecuteApiEndpointHasBeenSet = true; m_disableExecuteApiEndpoint = value; }
156 inline Api& WithDisableExecuteApiEndpoint(bool value) { SetDisableExecuteApiEndpoint(value); return *this;}
158
160
165 inline const Aws::Vector<Aws::String>& GetImportInfo() const { return m_importInfo; }
166 inline bool ImportInfoHasBeenSet() const { return m_importInfoHasBeenSet; }
167 template<typename ImportInfoT = Aws::Vector<Aws::String>>
168 void SetImportInfo(ImportInfoT&& value) { m_importInfoHasBeenSet = true; m_importInfo = std::forward<ImportInfoT>(value); }
169 template<typename ImportInfoT = Aws::Vector<Aws::String>>
170 Api& WithImportInfo(ImportInfoT&& value) { SetImportInfo(std::forward<ImportInfoT>(value)); return *this;}
171 template<typename ImportInfoT = Aws::String>
172 Api& AddImportInfo(ImportInfoT&& value) { m_importInfoHasBeenSet = true; m_importInfo.emplace_back(std::forward<ImportInfoT>(value)); return *this; }
174
176
179 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
180 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
181 inline void SetIpAddressType(IpAddressType value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
182 inline Api& WithIpAddressType(IpAddressType value) { SetIpAddressType(value); return *this;}
184
186
189 inline const Aws::String& GetName() const { return m_name; }
190 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
191 template<typename NameT = Aws::String>
192 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
193 template<typename NameT = Aws::String>
194 Api& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
196
198
201 inline ProtocolType GetProtocolType() const { return m_protocolType; }
202 inline bool ProtocolTypeHasBeenSet() const { return m_protocolTypeHasBeenSet; }
203 inline void SetProtocolType(ProtocolType value) { m_protocolTypeHasBeenSet = true; m_protocolType = value; }
204 inline Api& WithProtocolType(ProtocolType value) { SetProtocolType(value); return *this;}
206
208
214 inline const Aws::String& GetRouteSelectionExpression() const { return m_routeSelectionExpression; }
215 inline bool RouteSelectionExpressionHasBeenSet() const { return m_routeSelectionExpressionHasBeenSet; }
216 template<typename RouteSelectionExpressionT = Aws::String>
217 void SetRouteSelectionExpression(RouteSelectionExpressionT&& value) { m_routeSelectionExpressionHasBeenSet = true; m_routeSelectionExpression = std::forward<RouteSelectionExpressionT>(value); }
218 template<typename RouteSelectionExpressionT = Aws::String>
219 Api& WithRouteSelectionExpression(RouteSelectionExpressionT&& value) { SetRouteSelectionExpression(std::forward<RouteSelectionExpressionT>(value)); return *this;}
221
223
226 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
227 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
228 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
229 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
230 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
231 Api& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
232 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
233 Api& AddTags(TagsKeyT&& key, TagsValueT&& value) {
234 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
235 }
237
239
242 inline const Aws::String& GetVersion() const { return m_version; }
243 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
244 template<typename VersionT = Aws::String>
245 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
246 template<typename VersionT = Aws::String>
247 Api& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
249
251
255 inline const Aws::Vector<Aws::String>& GetWarnings() const { return m_warnings; }
256 inline bool WarningsHasBeenSet() const { return m_warningsHasBeenSet; }
257 template<typename WarningsT = Aws::Vector<Aws::String>>
258 void SetWarnings(WarningsT&& value) { m_warningsHasBeenSet = true; m_warnings = std::forward<WarningsT>(value); }
259 template<typename WarningsT = Aws::Vector<Aws::String>>
260 Api& WithWarnings(WarningsT&& value) { SetWarnings(std::forward<WarningsT>(value)); return *this;}
261 template<typename WarningsT = Aws::String>
262 Api& AddWarnings(WarningsT&& value) { m_warningsHasBeenSet = true; m_warnings.emplace_back(std::forward<WarningsT>(value)); return *this; }
264 private:
265
266 Aws::String m_apiEndpoint;
267 bool m_apiEndpointHasBeenSet = false;
268
269 bool m_apiGatewayManaged{false};
270 bool m_apiGatewayManagedHasBeenSet = false;
271
272 Aws::String m_apiId;
273 bool m_apiIdHasBeenSet = false;
274
275 Aws::String m_apiKeySelectionExpression;
276 bool m_apiKeySelectionExpressionHasBeenSet = false;
277
278 Cors m_corsConfiguration;
279 bool m_corsConfigurationHasBeenSet = false;
280
281 Aws::Utils::DateTime m_createdDate{};
282 bool m_createdDateHasBeenSet = false;
283
284 Aws::String m_description;
285 bool m_descriptionHasBeenSet = false;
286
287 bool m_disableSchemaValidation{false};
288 bool m_disableSchemaValidationHasBeenSet = false;
289
290 bool m_disableExecuteApiEndpoint{false};
291 bool m_disableExecuteApiEndpointHasBeenSet = false;
292
293 Aws::Vector<Aws::String> m_importInfo;
294 bool m_importInfoHasBeenSet = false;
295
296 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
297 bool m_ipAddressTypeHasBeenSet = false;
298
299 Aws::String m_name;
300 bool m_nameHasBeenSet = false;
301
302 ProtocolType m_protocolType{ProtocolType::NOT_SET};
303 bool m_protocolTypeHasBeenSet = false;
304
305 Aws::String m_routeSelectionExpression;
306 bool m_routeSelectionExpressionHasBeenSet = false;
307
309 bool m_tagsHasBeenSet = false;
310
311 Aws::String m_version;
312 bool m_versionHasBeenSet = false;
313
314 Aws::Vector<Aws::String> m_warnings;
315 bool m_warningsHasBeenSet = false;
316 };
317
318} // namespace Model
319} // namespace ApiGatewayV2
320} // namespace Aws
Api & WithVersion(VersionT &&value)
Definition Api.h:247
Api & WithCorsConfiguration(CorsConfigurationT &&value)
Definition Api.h:107
bool DescriptionHasBeenSet() const
Definition Api.h:127
Api & WithDisableSchemaValidation(bool value)
Definition Api.h:142
Api & WithProtocolType(ProtocolType value)
Definition Api.h:204
bool GetDisableExecuteApiEndpoint() const
Definition Api.h:153
bool ApiIdHasBeenSet() const
Definition Api.h:77
void SetApiId(ApiIdT &&value)
Definition Api.h:79
IpAddressType GetIpAddressType() const
Definition Api.h:179
bool IpAddressTypeHasBeenSet() const
Definition Api.h:180
void SetApiEndpoint(ApiEndpointT &&value)
Definition Api.h:55
Api & WithApiId(ApiIdT &&value)
Definition Api.h:81
bool ApiKeySelectionExpressionHasBeenSet() const
Definition Api.h:91
bool ApiGatewayManagedHasBeenSet() const
Definition Api.h:67
AWS_APIGATEWAYV2_API Api()=default
bool VersionHasBeenSet() const
Definition Api.h:243
Api & WithApiKeySelectionExpression(ApiKeySelectionExpressionT &&value)
Definition Api.h:95
bool CorsConfigurationHasBeenSet() const
Definition Api.h:103
const Aws::String & GetApiKeySelectionExpression() const
Definition Api.h:90
const Aws::String & GetVersion() const
Definition Api.h:242
Api & WithName(NameT &&value)
Definition Api.h:194
bool WarningsHasBeenSet() const
Definition Api.h:256
bool ProtocolTypeHasBeenSet() const
Definition Api.h:202
bool DisableExecuteApiEndpointHasBeenSet() const
Definition Api.h:154
void SetTags(TagsT &&value)
Definition Api.h:229
Api & WithApiGatewayManaged(bool value)
Definition Api.h:69
void SetName(NameT &&value)
Definition Api.h:192
Api & AddImportInfo(ImportInfoT &&value)
Definition Api.h:172
Api & WithIpAddressType(IpAddressType value)
Definition Api.h:182
void SetRouteSelectionExpression(RouteSelectionExpressionT &&value)
Definition Api.h:217
const Aws::String & GetApiEndpoint() const
Definition Api.h:52
bool NameHasBeenSet() const
Definition Api.h:190
const Cors & GetCorsConfiguration() const
Definition Api.h:102
AWS_APIGATEWAYV2_API Api(Aws::Utils::Json::JsonView jsonValue)
Api & WithTags(TagsT &&value)
Definition Api.h:231
Api & WithWarnings(WarningsT &&value)
Definition Api.h:260
const Aws::String & GetDescription() const
Definition Api.h:126
bool TagsHasBeenSet() const
Definition Api.h:227
void SetDisableSchemaValidation(bool value)
Definition Api.h:141
AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const
bool CreatedDateHasBeenSet() const
Definition Api.h:115
ProtocolType GetProtocolType() const
Definition Api.h:201
void SetVersion(VersionT &&value)
Definition Api.h:245
bool ApiEndpointHasBeenSet() const
Definition Api.h:53
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Api.h:226
Api & WithDisableExecuteApiEndpoint(bool value)
Definition Api.h:156
Api & WithCreatedDate(CreatedDateT &&value)
Definition Api.h:119
void SetDescription(DescriptionT &&value)
Definition Api.h:129
void SetApiKeySelectionExpression(ApiKeySelectionExpressionT &&value)
Definition Api.h:93
void SetImportInfo(ImportInfoT &&value)
Definition Api.h:168
void SetApiGatewayManaged(bool value)
Definition Api.h:68
Api & WithDescription(DescriptionT &&value)
Definition Api.h:131
bool GetDisableSchemaValidation() const
Definition Api.h:139
Api & WithApiEndpoint(ApiEndpointT &&value)
Definition Api.h:57
const Aws::String & GetApiId() const
Definition Api.h:76
Api & WithImportInfo(ImportInfoT &&value)
Definition Api.h:170
const Aws::Vector< Aws::String > & GetImportInfo() const
Definition Api.h:165
void SetCorsConfiguration(CorsConfigurationT &&value)
Definition Api.h:105
void SetCreatedDate(CreatedDateT &&value)
Definition Api.h:117
const Aws::Vector< Aws::String > & GetWarnings() const
Definition Api.h:255
const Aws::String & GetName() const
Definition Api.h:189
bool ImportInfoHasBeenSet() const
Definition Api.h:166
AWS_APIGATEWAYV2_API Api & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDisableExecuteApiEndpoint(bool value)
Definition Api.h:155
void SetWarnings(WarningsT &&value)
Definition Api.h:258
void SetIpAddressType(IpAddressType value)
Definition Api.h:181
void SetProtocolType(ProtocolType value)
Definition Api.h:203
const Aws::Utils::DateTime & GetCreatedDate() const
Definition Api.h:114
bool DisableSchemaValidationHasBeenSet() const
Definition Api.h:140
Api & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Api.h:233
bool GetApiGatewayManaged() const
Definition Api.h:66
Api & AddWarnings(WarningsT &&value)
Definition Api.h:262
const Aws::String & GetRouteSelectionExpression() const
Definition Api.h:214
Api & WithRouteSelectionExpression(RouteSelectionExpressionT &&value)
Definition Api.h:219
bool RouteSelectionExpressionHasBeenSet() const
Definition Api.h:215
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