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>
25namespace ApiGatewayV2 {
35 AWS_APIGATEWAYV2_API
Api() =
default;
48 template <
typename ApiEndpo
intT = Aws::String>
50 m_apiEndpointHasBeenSet =
true;
51 m_apiEndpoint = std::forward<ApiEndpointT>(value);
53 template <
typename ApiEndpo
intT = Aws::String>
69 m_apiGatewayManagedHasBeenSet =
true;
70 m_apiGatewayManaged = value;
84 template <
typename ApiIdT = Aws::String>
86 m_apiIdHasBeenSet =
true;
87 m_apiId = std::forward<ApiIdT>(value);
89 template <
typename ApiIdT = Aws::String>
91 SetApiId(std::forward<ApiIdT>(value));
104 template <
typename ApiKeySelectionExpressionT = Aws::String>
106 m_apiKeySelectionExpressionHasBeenSet =
true;
107 m_apiKeySelectionExpression = std::forward<ApiKeySelectionExpressionT>(value);
109 template <
typename ApiKeySelectionExpressionT = Aws::String>
122 template <
typename CorsConfigurationT = Cors>
124 m_corsConfigurationHasBeenSet =
true;
125 m_corsConfiguration = std::forward<CorsConfigurationT>(value);
127 template <
typename CorsConfigurationT = Cors>
140 template <
typename CreatedDateT = Aws::Utils::DateTime>
142 m_createdDateHasBeenSet =
true;
143 m_createdDate = std::forward<CreatedDateT>(value);
145 template <
typename CreatedDateT = Aws::Utils::DateTime>
158 template <
typename DescriptionT = Aws::String>
160 m_descriptionHasBeenSet =
true;
161 m_description = std::forward<DescriptionT>(value);
163 template <
typename DescriptionT = Aws::String>
178 m_disableSchemaValidationHasBeenSet =
true;
179 m_disableSchemaValidation = value;
198 m_disableExecuteApiEndpointHasBeenSet =
true;
199 m_disableExecuteApiEndpoint = value;
215 template <
typename ImportInfoT = Aws::Vector<Aws::String>>
217 m_importInfoHasBeenSet =
true;
218 m_importInfo = std::forward<ImportInfoT>(value);
220 template <
typename ImportInfoT = Aws::Vector<Aws::String>>
225 template <
typename ImportInfoT = Aws::String>
227 m_importInfoHasBeenSet =
true;
228 m_importInfo.emplace_back(std::forward<ImportInfoT>(value));
240 m_ipAddressTypeHasBeenSet =
true;
241 m_ipAddressType = value;
255 template <
typename NameT = Aws::String>
257 m_nameHasBeenSet =
true;
258 m_name = std::forward<NameT>(value);
260 template <
typename NameT = Aws::String>
262 SetName(std::forward<NameT>(value));
274 m_protocolTypeHasBeenSet =
true;
275 m_protocolType = value;
292 template <
typename RouteSelectionExpressionT = Aws::String>
294 m_routeSelectionExpressionHasBeenSet =
true;
295 m_routeSelectionExpression = std::forward<RouteSelectionExpressionT>(value);
297 template <
typename RouteSelectionExpressionT = Aws::String>
310 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
312 m_tagsHasBeenSet =
true;
313 m_tags = std::forward<TagsT>(value);
315 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
317 SetTags(std::forward<TagsT>(value));
320 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
322 m_tagsHasBeenSet =
true;
323 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
334 template <
typename VersionT = Aws::String>
336 m_versionHasBeenSet =
true;
337 m_version = std::forward<VersionT>(value);
339 template <
typename VersionT = Aws::String>
353 template <
typename WarningsT = Aws::Vector<Aws::String>>
355 m_warningsHasBeenSet =
true;
356 m_warnings = std::forward<WarningsT>(value);
358 template <
typename WarningsT = Aws::Vector<Aws::String>>
363 template <
typename WarningsT = Aws::String>
365 m_warningsHasBeenSet =
true;
366 m_warnings.emplace_back(std::forward<WarningsT>(value));
373 bool m_apiGatewayManaged{
false};
379 Cors m_corsConfiguration;
385 bool m_disableSchemaValidation{
false};
387 bool m_disableExecuteApiEndpoint{
false};
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;
Api & WithVersion(VersionT &&value)
Api & WithCorsConfiguration(CorsConfigurationT &&value)
bool DescriptionHasBeenSet() const
Api & WithDisableSchemaValidation(bool value)
Api & WithProtocolType(ProtocolType value)
bool GetDisableExecuteApiEndpoint() const
bool ApiIdHasBeenSet() const
void SetApiId(ApiIdT &&value)
IpAddressType GetIpAddressType() const
bool IpAddressTypeHasBeenSet() const
void SetApiEndpoint(ApiEndpointT &&value)
Api & WithApiId(ApiIdT &&value)
bool ApiKeySelectionExpressionHasBeenSet() const
bool ApiGatewayManagedHasBeenSet() const
AWS_APIGATEWAYV2_API Api()=default
bool VersionHasBeenSet() const
Api & WithApiKeySelectionExpression(ApiKeySelectionExpressionT &&value)
bool CorsConfigurationHasBeenSet() const
const Aws::String & GetApiKeySelectionExpression() const
const Aws::String & GetVersion() const
Api & WithName(NameT &&value)
bool WarningsHasBeenSet() const
bool ProtocolTypeHasBeenSet() const
bool DisableExecuteApiEndpointHasBeenSet() const
void SetTags(TagsT &&value)
Api & WithApiGatewayManaged(bool value)
void SetName(NameT &&value)
Api & AddImportInfo(ImportInfoT &&value)
Api & WithIpAddressType(IpAddressType value)
void SetRouteSelectionExpression(RouteSelectionExpressionT &&value)
const Aws::String & GetApiEndpoint() const
bool NameHasBeenSet() const
const Cors & GetCorsConfiguration() const
AWS_APIGATEWAYV2_API Api(Aws::Utils::Json::JsonView jsonValue)
Api & WithTags(TagsT &&value)
Api & WithWarnings(WarningsT &&value)
const Aws::String & GetDescription() const
bool TagsHasBeenSet() const
void SetDisableSchemaValidation(bool value)
AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const
bool CreatedDateHasBeenSet() const
ProtocolType GetProtocolType() const
void SetVersion(VersionT &&value)
bool ApiEndpointHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Api & WithDisableExecuteApiEndpoint(bool value)
Api & WithCreatedDate(CreatedDateT &&value)
void SetDescription(DescriptionT &&value)
void SetApiKeySelectionExpression(ApiKeySelectionExpressionT &&value)
void SetImportInfo(ImportInfoT &&value)
void SetApiGatewayManaged(bool value)
Api & WithDescription(DescriptionT &&value)
bool GetDisableSchemaValidation() const
Api & WithApiEndpoint(ApiEndpointT &&value)
const Aws::String & GetApiId() const
Api & WithImportInfo(ImportInfoT &&value)
const Aws::Vector< Aws::String > & GetImportInfo() const
void SetCorsConfiguration(CorsConfigurationT &&value)
void SetCreatedDate(CreatedDateT &&value)
const Aws::Vector< Aws::String > & GetWarnings() const
const Aws::String & GetName() const
bool ImportInfoHasBeenSet() const
AWS_APIGATEWAYV2_API Api & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDisableExecuteApiEndpoint(bool value)
void SetWarnings(WarningsT &&value)
void SetIpAddressType(IpAddressType value)
void SetProtocolType(ProtocolType value)
const Aws::Utils::DateTime & GetCreatedDate() const
bool DisableSchemaValidationHasBeenSet() const
Api & AddTags(TagsKeyT &&key, TagsValueT &&value)
bool GetApiGatewayManaged() const
Api & AddWarnings(WarningsT &&value)
const Aws::String & GetRouteSelectionExpression() const
Api & WithRouteSelectionExpression(RouteSelectionExpressionT &&value)
bool RouteSelectionExpressionHasBeenSet() const
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