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>
40 AWS_APIGATEWAYV2_API
Api() =
default;
54 template<
typename ApiEndpo
intT = Aws::String>
55 void SetApiEndpoint(ApiEndpointT&& value) { m_apiEndpointHasBeenSet =
true; m_apiEndpoint = std::forward<ApiEndpointT>(value); }
56 template<
typename ApiEndpo
intT = Aws::String>
68 inline void SetApiGatewayManaged(
bool value) { m_apiGatewayManagedHasBeenSet =
true; m_apiGatewayManaged = value; }
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>
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>
104 template<
typename CorsConfigurationT = Cors>
105 void SetCorsConfiguration(CorsConfigurationT&& value) { m_corsConfigurationHasBeenSet =
true; m_corsConfiguration = std::forward<CorsConfigurationT>(value); }
106 template<
typename CorsConfigurationT = Cors>
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>
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>
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>>
171 template<
typename ImportInfoT = Aws::String>
172 Api&
AddImportInfo(ImportInfoT&& value) { m_importInfoHasBeenSet =
true; m_importInfo.emplace_back(std::forward<ImportInfoT>(value));
return *
this; }
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>
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>
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>>
232 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
234 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
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>
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>>
261 template<
typename WarningsT = Aws::String>
262 Api&
AddWarnings(WarningsT&& value) { m_warningsHasBeenSet =
true; m_warnings.emplace_back(std::forward<WarningsT>(value));
return *
this; }
267 bool m_apiEndpointHasBeenSet =
false;
269 bool m_apiGatewayManaged{
false};
270 bool m_apiGatewayManagedHasBeenSet =
false;
273 bool m_apiIdHasBeenSet =
false;
276 bool m_apiKeySelectionExpressionHasBeenSet =
false;
278 Cors m_corsConfiguration;
279 bool m_corsConfigurationHasBeenSet =
false;
282 bool m_createdDateHasBeenSet =
false;
285 bool m_descriptionHasBeenSet =
false;
287 bool m_disableSchemaValidation{
false};
288 bool m_disableSchemaValidationHasBeenSet =
false;
290 bool m_disableExecuteApiEndpoint{
false};
291 bool m_disableExecuteApiEndpointHasBeenSet =
false;
294 bool m_importInfoHasBeenSet =
false;
297 bool m_ipAddressTypeHasBeenSet =
false;
300 bool m_nameHasBeenSet =
false;
303 bool m_protocolTypeHasBeenSet =
false;
306 bool m_routeSelectionExpressionHasBeenSet =
false;
309 bool m_tagsHasBeenSet =
false;
312 bool m_versionHasBeenSet =
false;
315 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