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/IpAddressType.h>
12#include <aws/apigatewayv2/model/ProtocolType.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
50 template<
typename ApiKeySelectionExpressionT = Aws::String>
51 void SetApiKeySelectionExpression(ApiKeySelectionExpressionT&& value) { m_apiKeySelectionExpressionHasBeenSet =
true; m_apiKeySelectionExpression = std::forward<ApiKeySelectionExpressionT>(value); }
52 template<
typename ApiKeySelectionExpressionT = Aws::String>
64 template<
typename CorsConfigurationT = Cors>
65 void SetCorsConfiguration(CorsConfigurationT&& value) { m_corsConfigurationHasBeenSet =
true; m_corsConfiguration = std::forward<CorsConfigurationT>(value); }
66 template<
typename CorsConfigurationT = Cors>
82 template<
typename CredentialsArnT = Aws::String>
83 void SetCredentialsArn(CredentialsArnT&& value) { m_credentialsArnHasBeenSet =
true; m_credentialsArn = std::forward<CredentialsArnT>(value); }
84 template<
typename CredentialsArnT = Aws::String>
94 template<
typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
96 template<
typename DescriptionT = Aws::String>
141 template<
typename NameT = Aws::String>
142 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
143 template<
typename NameT = Aws::String>
167 template<
typename RouteKeyT = Aws::String>
168 void SetRouteKey(RouteKeyT&& value) { m_routeKeyHasBeenSet =
true; m_routeKey = std::forward<RouteKeyT>(value); }
169 template<
typename RouteKeyT = Aws::String>
182 template<
typename RouteSelectionExpressionT = Aws::String>
183 void SetRouteSelectionExpression(RouteSelectionExpressionT&& value) { m_routeSelectionExpressionHasBeenSet =
true; m_routeSelectionExpression = std::forward<RouteSelectionExpressionT>(value); }
184 template<
typename RouteSelectionExpressionT = Aws::String>
195 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
196 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
197 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
199 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
201 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
216 template<
typename TargetT = Aws::String>
217 void SetTarget(TargetT&& value) { m_targetHasBeenSet =
true; m_target = std::forward<TargetT>(value); }
218 template<
typename TargetT = Aws::String>
228 template<
typename VersionT = Aws::String>
229 void SetVersion(VersionT&& value) { m_versionHasBeenSet =
true; m_version = std::forward<VersionT>(value); }
230 template<
typename VersionT = Aws::String>
236 bool m_apiKeySelectionExpressionHasBeenSet =
false;
238 Cors m_corsConfiguration;
239 bool m_corsConfigurationHasBeenSet =
false;
242 bool m_credentialsArnHasBeenSet =
false;
245 bool m_descriptionHasBeenSet =
false;
247 bool m_disableSchemaValidation{
false};
248 bool m_disableSchemaValidationHasBeenSet =
false;
250 bool m_disableExecuteApiEndpoint{
false};
251 bool m_disableExecuteApiEndpointHasBeenSet =
false;
254 bool m_ipAddressTypeHasBeenSet =
false;
257 bool m_nameHasBeenSet =
false;
260 bool m_protocolTypeHasBeenSet =
false;
263 bool m_routeKeyHasBeenSet =
false;
266 bool m_routeSelectionExpressionHasBeenSet =
false;
269 bool m_tagsHasBeenSet =
false;
272 bool m_targetHasBeenSet =
false;
275 bool m_versionHasBeenSet =
false;
virtual const char * GetServiceRequestName() const override
IpAddressType GetIpAddressType() const
void SetIpAddressType(IpAddressType value)
AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override
bool ProtocolTypeHasBeenSet() const
const Aws::String & GetRouteKey() const
const Aws::String & GetRouteSelectionExpression() const
bool DisableExecuteApiEndpointHasBeenSet() const
CreateApiRequest & WithTarget(TargetT &&value)
void SetName(NameT &&value)
CreateApiRequest & WithIpAddressType(IpAddressType value)
bool TargetHasBeenSet() const
void SetRouteKey(RouteKeyT &&value)
CreateApiRequest & WithRouteSelectionExpression(RouteSelectionExpressionT &&value)
CreateApiRequest & WithVersion(VersionT &&value)
CreateApiRequest & WithApiKeySelectionExpression(ApiKeySelectionExpressionT &&value)
bool VersionHasBeenSet() const
ProtocolType GetProtocolType() const
bool RouteKeyHasBeenSet() const
void SetApiKeySelectionExpression(ApiKeySelectionExpressionT &&value)
const Aws::String & GetApiKeySelectionExpression() const
const Aws::String & GetCredentialsArn() const
void SetVersion(VersionT &&value)
bool NameHasBeenSet() const
void SetProtocolType(ProtocolType value)
bool DescriptionHasBeenSet() const
const Aws::String & GetName() const
CreateApiRequest & WithDescription(DescriptionT &&value)
CreateApiRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateApiRequest & WithDisableSchemaValidation(bool value)
CreateApiRequest & WithTags(TagsT &&value)
bool CredentialsArnHasBeenSet() const
CreateApiRequest & WithCredentialsArn(CredentialsArnT &&value)
CreateApiRequest & WithCorsConfiguration(CorsConfigurationT &&value)
void SetCorsConfiguration(CorsConfigurationT &&value)
CreateApiRequest & WithDisableExecuteApiEndpoint(bool value)
AWS_APIGATEWAYV2_API CreateApiRequest()=default
bool DisableSchemaValidationHasBeenSet() const
bool RouteSelectionExpressionHasBeenSet() const
bool IpAddressTypeHasBeenSet() const
void SetRouteSelectionExpression(RouteSelectionExpressionT &&value)
const Aws::String & GetVersion() const
bool CorsConfigurationHasBeenSet() const
void SetTags(TagsT &&value)
bool GetDisableExecuteApiEndpoint() const
CreateApiRequest & WithProtocolType(ProtocolType value)
CreateApiRequest & WithRouteKey(RouteKeyT &&value)
bool ApiKeySelectionExpressionHasBeenSet() const
void SetTarget(TargetT &&value)
const Aws::String & GetTarget() const
CreateApiRequest & WithName(NameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetDisableSchemaValidation(bool value)
const Aws::String & GetDescription() const
const Cors & GetCorsConfiguration() const
void SetDescription(DescriptionT &&value)
void SetCredentialsArn(CredentialsArnT &&value)
bool TagsHasBeenSet() const
bool GetDisableSchemaValidation() const
void SetDisableExecuteApiEndpoint(bool 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