7#include <aws/apigatewayv2/ApiGatewayV2Request.h>
8#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
9#include <aws/apigatewayv2/model/AuthorizationType.h>
10#include <aws/apigatewayv2/model/ParameterConstraints.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
18namespace ApiGatewayV2 {
45 template <
typename ApiIdT = Aws::String>
47 m_apiIdHasBeenSet =
true;
48 m_apiId = std::forward<ApiIdT>(value);
50 template <
typename ApiIdT = Aws::String>
52 SetApiId(std::forward<ApiIdT>(value));
65 m_apiKeyRequiredHasBeenSet =
true;
66 m_apiKeyRequired = value;
80 template <
typename AuthorizationScopesT = Aws::Vector<Aws::String>>
82 m_authorizationScopesHasBeenSet =
true;
83 m_authorizationScopes = std::forward<AuthorizationScopesT>(value);
85 template <
typename AuthorizationScopesT = Aws::Vector<Aws::String>>
90 template <
typename AuthorizationScopesT = Aws::String>
92 m_authorizationScopesHasBeenSet =
true;
93 m_authorizationScopes.emplace_back(std::forward<AuthorizationScopesT>(value));
109 m_authorizationTypeHasBeenSet =
true;
110 m_authorizationType = value;
126 template <
typename AuthorizerIdT = Aws::String>
128 m_authorizerIdHasBeenSet =
true;
129 m_authorizerId = std::forward<AuthorizerIdT>(value);
131 template <
typename AuthorizerIdT = Aws::String>
145 template <
typename ModelSelectionExpressionT = Aws::String>
147 m_modelSelectionExpressionHasBeenSet =
true;
148 m_modelSelectionExpression = std::forward<ModelSelectionExpressionT>(value);
150 template <
typename ModelSelectionExpressionT = Aws::String>
163 template <
typename OperationNameT = Aws::String>
165 m_operationNameHasBeenSet =
true;
166 m_operationName = std::forward<OperationNameT>(value);
168 template <
typename OperationNameT = Aws::String>
181 template <
typename RequestModelsT = Aws::Map<Aws::String, Aws::String>>
183 m_requestModelsHasBeenSet =
true;
184 m_requestModels = std::forward<RequestModelsT>(value);
186 template <
typename RequestModelsT = Aws::Map<Aws::String, Aws::String>>
191 template <
typename RequestModelsKeyT = Aws::String,
typename RequestModelsValueT = Aws::String>
193 m_requestModelsHasBeenSet =
true;
194 m_requestModels.emplace(std::forward<RequestModelsKeyT>(key), std::forward<RequestModelsValueT>(value));
205 template <
typename RequestParametersT = Aws::Map<Aws::String, ParameterConstra
ints>>
207 m_requestParametersHasBeenSet =
true;
208 m_requestParameters = std::forward<RequestParametersT>(value);
210 template <
typename RequestParametersT = Aws::Map<Aws::String, ParameterConstra
ints>>
215 template <
typename RequestParametersKeyT = Aws::String,
typename RequestParametersValueT = ParameterConstra
ints>
217 m_requestParametersHasBeenSet =
true;
218 m_requestParameters.emplace(std::forward<RequestParametersKeyT>(key), std::forward<RequestParametersValueT>(value));
229 template <
typename RouteKeyT = Aws::String>
231 m_routeKeyHasBeenSet =
true;
232 m_routeKey = std::forward<RouteKeyT>(value);
234 template <
typename RouteKeyT = Aws::String>
248 template <
typename RouteResponseSelectionExpressionT = Aws::String>
250 m_routeResponseSelectionExpressionHasBeenSet =
true;
251 m_routeResponseSelectionExpression = std::forward<RouteResponseSelectionExpressionT>(value);
253 template <
typename RouteResponseSelectionExpressionT = Aws::String>
266 template <
typename TargetT = Aws::String>
268 m_targetHasBeenSet =
true;
269 m_target = std::forward<TargetT>(value);
271 template <
typename TargetT = Aws::String>
280 bool m_apiKeyRequired{
false};
301 bool m_apiIdHasBeenSet =
false;
302 bool m_apiKeyRequiredHasBeenSet =
false;
303 bool m_authorizationScopesHasBeenSet =
false;
304 bool m_authorizationTypeHasBeenSet =
false;
305 bool m_authorizerIdHasBeenSet =
false;
306 bool m_modelSelectionExpressionHasBeenSet =
false;
307 bool m_operationNameHasBeenSet =
false;
308 bool m_requestModelsHasBeenSet =
false;
309 bool m_requestParametersHasBeenSet =
false;
310 bool m_routeKeyHasBeenSet =
false;
311 bool m_routeResponseSelectionExpressionHasBeenSet =
false;
312 bool m_targetHasBeenSet =
false;
const Aws::Map< Aws::String, Aws::String > & GetRequestModels() const
bool ModelSelectionExpressionHasBeenSet() const
void SetRouteResponseSelectionExpression(RouteResponseSelectionExpressionT &&value)
CreateRouteRequest & WithRequestParameters(RequestParametersT &&value)
bool OperationNameHasBeenSet() const
CreateRouteRequest & AddRequestModels(RequestModelsKeyT &&key, RequestModelsValueT &&value)
bool ApiKeyRequiredHasBeenSet() const
void SetAuthorizationType(AuthorizationType value)
AWS_APIGATEWAYV2_API CreateRouteRequest()=default
CreateRouteRequest & WithRouteResponseSelectionExpression(RouteResponseSelectionExpressionT &&value)
virtual const char * GetServiceRequestName() const override
CreateRouteRequest & AddRequestParameters(RequestParametersKeyT &&key, RequestParametersValueT &&value)
CreateRouteRequest & WithRequestModels(RequestModelsT &&value)
bool AuthorizationTypeHasBeenSet() const
const Aws::String & GetModelSelectionExpression() const
const Aws::String & GetApiId() const
void SetApiId(ApiIdT &&value)
const Aws::String & GetRouteKey() const
CreateRouteRequest & WithApiId(ApiIdT &&value)
CreateRouteRequest & WithAuthorizationType(AuthorizationType value)
void SetRequestParameters(RequestParametersT &&value)
bool ApiIdHasBeenSet() const
CreateRouteRequest & WithTarget(TargetT &&value)
CreateRouteRequest & WithApiKeyRequired(bool value)
const Aws::String & GetOperationName() const
void SetOperationName(OperationNameT &&value)
void SetApiKeyRequired(bool value)
void SetModelSelectionExpression(ModelSelectionExpressionT &&value)
bool RequestParametersHasBeenSet() const
void SetRouteKey(RouteKeyT &&value)
CreateRouteRequest & AddAuthorizationScopes(AuthorizationScopesT &&value)
const Aws::String & GetTarget() const
bool TargetHasBeenSet() const
bool GetApiKeyRequired() const
void SetAuthorizerId(AuthorizerIdT &&value)
AuthorizationType GetAuthorizationType() const
bool RequestModelsHasBeenSet() const
CreateRouteRequest & WithAuthorizerId(AuthorizerIdT &&value)
bool RouteResponseSelectionExpressionHasBeenSet() const
bool AuthorizerIdHasBeenSet() const
CreateRouteRequest & WithOperationName(OperationNameT &&value)
const Aws::Map< Aws::String, ParameterConstraints > & GetRequestParameters() const
void SetRequestModels(RequestModelsT &&value)
bool RouteKeyHasBeenSet() const
const Aws::String & GetRouteResponseSelectionExpression() const
bool AuthorizationScopesHasBeenSet() const
CreateRouteRequest & WithModelSelectionExpression(ModelSelectionExpressionT &&value)
void SetAuthorizationScopes(AuthorizationScopesT &&value)
AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override
CreateRouteRequest & WithAuthorizationScopes(AuthorizationScopesT &&value)
void SetTarget(TargetT &&value)
const Aws::Vector< Aws::String > & GetAuthorizationScopes() const
CreateRouteRequest & WithRouteKey(RouteKeyT &&value)
const Aws::String & GetAuthorizerId() 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