/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ApiGatewayV2 { namespace Model { /** *

Represents a route.

See Also:

AWS * API Reference

*/ class Route { public: AWS_APIGATEWAYV2_API Route(); AWS_APIGATEWAYV2_API Route(Aws::Utils::Json::JsonView jsonValue); AWS_APIGATEWAYV2_API Route& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Specifies whether a route is managed by API Gateway. If you created an API * using quick create, the $default route is managed by API Gateway. You can't * modify the $default route key.

*/ inline bool GetApiGatewayManaged() const{ return m_apiGatewayManaged; } /** *

Specifies whether a route is managed by API Gateway. If you created an API * using quick create, the $default route is managed by API Gateway. You can't * modify the $default route key.

*/ inline bool ApiGatewayManagedHasBeenSet() const { return m_apiGatewayManagedHasBeenSet; } /** *

Specifies whether a route is managed by API Gateway. If you created an API * using quick create, the $default route is managed by API Gateway. You can't * modify the $default route key.

*/ inline void SetApiGatewayManaged(bool value) { m_apiGatewayManagedHasBeenSet = true; m_apiGatewayManaged = value; } /** *

Specifies whether a route is managed by API Gateway. If you created an API * using quick create, the $default route is managed by API Gateway. You can't * modify the $default route key.

*/ inline Route& WithApiGatewayManaged(bool value) { SetApiGatewayManaged(value); return *this;} /** *

Specifies whether an API key is required for this route. Supported only for * WebSocket APIs.

*/ inline bool GetApiKeyRequired() const{ return m_apiKeyRequired; } /** *

Specifies whether an API key is required for this route. Supported only for * WebSocket APIs.

*/ inline bool ApiKeyRequiredHasBeenSet() const { return m_apiKeyRequiredHasBeenSet; } /** *

Specifies whether an API key is required for this route. Supported only for * WebSocket APIs.

*/ inline void SetApiKeyRequired(bool value) { m_apiKeyRequiredHasBeenSet = true; m_apiKeyRequired = value; } /** *

Specifies whether an API key is required for this route. Supported only for * WebSocket APIs.

*/ inline Route& WithApiKeyRequired(bool value) { SetApiKeyRequired(value); return *this;} /** *

A list of authorization scopes configured on a route. The scopes are used * with a JWT authorizer to authorize the method invocation. The authorization * works by matching the route scopes against the scopes parsed from the access * token in the incoming request. The method invocation is authorized if any route * scope matches a claimed scope in the access token. Otherwise, the invocation is * not authorized. When the route scope is configured, the client must provide an * access token instead of an identity token for authorization purposes.

*/ inline const Aws::Vector& GetAuthorizationScopes() const{ return m_authorizationScopes; } /** *

A list of authorization scopes configured on a route. The scopes are used * with a JWT authorizer to authorize the method invocation. The authorization * works by matching the route scopes against the scopes parsed from the access * token in the incoming request. The method invocation is authorized if any route * scope matches a claimed scope in the access token. Otherwise, the invocation is * not authorized. When the route scope is configured, the client must provide an * access token instead of an identity token for authorization purposes.

*/ inline bool AuthorizationScopesHasBeenSet() const { return m_authorizationScopesHasBeenSet; } /** *

A list of authorization scopes configured on a route. The scopes are used * with a JWT authorizer to authorize the method invocation. The authorization * works by matching the route scopes against the scopes parsed from the access * token in the incoming request. The method invocation is authorized if any route * scope matches a claimed scope in the access token. Otherwise, the invocation is * not authorized. When the route scope is configured, the client must provide an * access token instead of an identity token for authorization purposes.

*/ inline void SetAuthorizationScopes(const Aws::Vector& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes = value; } /** *

A list of authorization scopes configured on a route. The scopes are used * with a JWT authorizer to authorize the method invocation. The authorization * works by matching the route scopes against the scopes parsed from the access * token in the incoming request. The method invocation is authorized if any route * scope matches a claimed scope in the access token. Otherwise, the invocation is * not authorized. When the route scope is configured, the client must provide an * access token instead of an identity token for authorization purposes.

*/ inline void SetAuthorizationScopes(Aws::Vector&& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes = std::move(value); } /** *

A list of authorization scopes configured on a route. The scopes are used * with a JWT authorizer to authorize the method invocation. The authorization * works by matching the route scopes against the scopes parsed from the access * token in the incoming request. The method invocation is authorized if any route * scope matches a claimed scope in the access token. Otherwise, the invocation is * not authorized. When the route scope is configured, the client must provide an * access token instead of an identity token for authorization purposes.

*/ inline Route& WithAuthorizationScopes(const Aws::Vector& value) { SetAuthorizationScopes(value); return *this;} /** *

A list of authorization scopes configured on a route. The scopes are used * with a JWT authorizer to authorize the method invocation. The authorization * works by matching the route scopes against the scopes parsed from the access * token in the incoming request. The method invocation is authorized if any route * scope matches a claimed scope in the access token. Otherwise, the invocation is * not authorized. When the route scope is configured, the client must provide an * access token instead of an identity token for authorization purposes.

*/ inline Route& WithAuthorizationScopes(Aws::Vector&& value) { SetAuthorizationScopes(std::move(value)); return *this;} /** *

A list of authorization scopes configured on a route. The scopes are used * with a JWT authorizer to authorize the method invocation. The authorization * works by matching the route scopes against the scopes parsed from the access * token in the incoming request. The method invocation is authorized if any route * scope matches a claimed scope in the access token. Otherwise, the invocation is * not authorized. When the route scope is configured, the client must provide an * access token instead of an identity token for authorization purposes.

*/ inline Route& AddAuthorizationScopes(const Aws::String& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes.push_back(value); return *this; } /** *

A list of authorization scopes configured on a route. The scopes are used * with a JWT authorizer to authorize the method invocation. The authorization * works by matching the route scopes against the scopes parsed from the access * token in the incoming request. The method invocation is authorized if any route * scope matches a claimed scope in the access token. Otherwise, the invocation is * not authorized. When the route scope is configured, the client must provide an * access token instead of an identity token for authorization purposes.

*/ inline Route& AddAuthorizationScopes(Aws::String&& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes.push_back(std::move(value)); return *this; } /** *

A list of authorization scopes configured on a route. The scopes are used * with a JWT authorizer to authorize the method invocation. The authorization * works by matching the route scopes against the scopes parsed from the access * token in the incoming request. The method invocation is authorized if any route * scope matches a claimed scope in the access token. Otherwise, the invocation is * not authorized. When the route scope is configured, the client must provide an * access token instead of an identity token for authorization purposes.

*/ inline Route& AddAuthorizationScopes(const char* value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes.push_back(value); return *this; } /** *

The authorization type for the route. For WebSocket APIs, valid values are * NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for * using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, * JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM * for using a Lambda authorizer.

*/ inline const AuthorizationType& GetAuthorizationType() const{ return m_authorizationType; } /** *

The authorization type for the route. For WebSocket APIs, valid values are * NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for * using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, * JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM * for using a Lambda authorizer.

*/ inline bool AuthorizationTypeHasBeenSet() const { return m_authorizationTypeHasBeenSet; } /** *

The authorization type for the route. For WebSocket APIs, valid values are * NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for * using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, * JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM * for using a Lambda authorizer.

*/ inline void SetAuthorizationType(const AuthorizationType& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = value; } /** *

The authorization type for the route. For WebSocket APIs, valid values are * NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for * using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, * JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM * for using a Lambda authorizer.

*/ inline void SetAuthorizationType(AuthorizationType&& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = std::move(value); } /** *

The authorization type for the route. For WebSocket APIs, valid values are * NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for * using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, * JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM * for using a Lambda authorizer.

*/ inline Route& WithAuthorizationType(const AuthorizationType& value) { SetAuthorizationType(value); return *this;} /** *

The authorization type for the route. For WebSocket APIs, valid values are * NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for * using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, * JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM * for using a Lambda authorizer.

*/ inline Route& WithAuthorizationType(AuthorizationType&& value) { SetAuthorizationType(std::move(value)); return *this;} /** *

The identifier of the Authorizer resource to be associated with this route. * The authorizer identifier is generated by API Gateway when you created the * authorizer.

*/ inline const Aws::String& GetAuthorizerId() const{ return m_authorizerId; } /** *

The identifier of the Authorizer resource to be associated with this route. * The authorizer identifier is generated by API Gateway when you created the * authorizer.

*/ inline bool AuthorizerIdHasBeenSet() const { return m_authorizerIdHasBeenSet; } /** *

The identifier of the Authorizer resource to be associated with this route. * The authorizer identifier is generated by API Gateway when you created the * authorizer.

*/ inline void SetAuthorizerId(const Aws::String& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = value; } /** *

The identifier of the Authorizer resource to be associated with this route. * The authorizer identifier is generated by API Gateway when you created the * authorizer.

*/ inline void SetAuthorizerId(Aws::String&& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = std::move(value); } /** *

The identifier of the Authorizer resource to be associated with this route. * The authorizer identifier is generated by API Gateway when you created the * authorizer.

*/ inline void SetAuthorizerId(const char* value) { m_authorizerIdHasBeenSet = true; m_authorizerId.assign(value); } /** *

The identifier of the Authorizer resource to be associated with this route. * The authorizer identifier is generated by API Gateway when you created the * authorizer.

*/ inline Route& WithAuthorizerId(const Aws::String& value) { SetAuthorizerId(value); return *this;} /** *

The identifier of the Authorizer resource to be associated with this route. * The authorizer identifier is generated by API Gateway when you created the * authorizer.

*/ inline Route& WithAuthorizerId(Aws::String&& value) { SetAuthorizerId(std::move(value)); return *this;} /** *

The identifier of the Authorizer resource to be associated with this route. * The authorizer identifier is generated by API Gateway when you created the * authorizer.

*/ inline Route& WithAuthorizerId(const char* value) { SetAuthorizerId(value); return *this;} /** *

The model selection expression for the route. Supported only for WebSocket * APIs.

*/ inline const Aws::String& GetModelSelectionExpression() const{ return m_modelSelectionExpression; } /** *

The model selection expression for the route. Supported only for WebSocket * APIs.

*/ inline bool ModelSelectionExpressionHasBeenSet() const { return m_modelSelectionExpressionHasBeenSet; } /** *

The model selection expression for the route. Supported only for WebSocket * APIs.

*/ inline void SetModelSelectionExpression(const Aws::String& value) { m_modelSelectionExpressionHasBeenSet = true; m_modelSelectionExpression = value; } /** *

The model selection expression for the route. Supported only for WebSocket * APIs.

*/ inline void SetModelSelectionExpression(Aws::String&& value) { m_modelSelectionExpressionHasBeenSet = true; m_modelSelectionExpression = std::move(value); } /** *

The model selection expression for the route. Supported only for WebSocket * APIs.

*/ inline void SetModelSelectionExpression(const char* value) { m_modelSelectionExpressionHasBeenSet = true; m_modelSelectionExpression.assign(value); } /** *

The model selection expression for the route. Supported only for WebSocket * APIs.

*/ inline Route& WithModelSelectionExpression(const Aws::String& value) { SetModelSelectionExpression(value); return *this;} /** *

The model selection expression for the route. Supported only for WebSocket * APIs.

*/ inline Route& WithModelSelectionExpression(Aws::String&& value) { SetModelSelectionExpression(std::move(value)); return *this;} /** *

The model selection expression for the route. Supported only for WebSocket * APIs.

*/ inline Route& WithModelSelectionExpression(const char* value) { SetModelSelectionExpression(value); return *this;} /** *

The operation name for the route.

*/ inline const Aws::String& GetOperationName() const{ return m_operationName; } /** *

The operation name for the route.

*/ inline bool OperationNameHasBeenSet() const { return m_operationNameHasBeenSet; } /** *

The operation name for the route.

*/ inline void SetOperationName(const Aws::String& value) { m_operationNameHasBeenSet = true; m_operationName = value; } /** *

The operation name for the route.

*/ inline void SetOperationName(Aws::String&& value) { m_operationNameHasBeenSet = true; m_operationName = std::move(value); } /** *

The operation name for the route.

*/ inline void SetOperationName(const char* value) { m_operationNameHasBeenSet = true; m_operationName.assign(value); } /** *

The operation name for the route.

*/ inline Route& WithOperationName(const Aws::String& value) { SetOperationName(value); return *this;} /** *

The operation name for the route.

*/ inline Route& WithOperationName(Aws::String&& value) { SetOperationName(std::move(value)); return *this;} /** *

The operation name for the route.

*/ inline Route& WithOperationName(const char* value) { SetOperationName(value); return *this;} /** *

The request models for the route. Supported only for WebSocket APIs.

*/ inline const Aws::Map& GetRequestModels() const{ return m_requestModels; } /** *

The request models for the route. Supported only for WebSocket APIs.

*/ inline bool RequestModelsHasBeenSet() const { return m_requestModelsHasBeenSet; } /** *

The request models for the route. Supported only for WebSocket APIs.

*/ inline void SetRequestModels(const Aws::Map& value) { m_requestModelsHasBeenSet = true; m_requestModels = value; } /** *

The request models for the route. Supported only for WebSocket APIs.

*/ inline void SetRequestModels(Aws::Map&& value) { m_requestModelsHasBeenSet = true; m_requestModels = std::move(value); } /** *

The request models for the route. Supported only for WebSocket APIs.

*/ inline Route& WithRequestModels(const Aws::Map& value) { SetRequestModels(value); return *this;} /** *

The request models for the route. Supported only for WebSocket APIs.

*/ inline Route& WithRequestModels(Aws::Map&& value) { SetRequestModels(std::move(value)); return *this;} /** *

The request models for the route. Supported only for WebSocket APIs.

*/ inline Route& AddRequestModels(const Aws::String& key, const Aws::String& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(key, value); return *this; } /** *

The request models for the route. Supported only for WebSocket APIs.

*/ inline Route& AddRequestModels(Aws::String&& key, const Aws::String& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(std::move(key), value); return *this; } /** *

The request models for the route. Supported only for WebSocket APIs.

*/ inline Route& AddRequestModels(const Aws::String& key, Aws::String&& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(key, std::move(value)); return *this; } /** *

The request models for the route. Supported only for WebSocket APIs.

*/ inline Route& AddRequestModels(Aws::String&& key, Aws::String&& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(std::move(key), std::move(value)); return *this; } /** *

The request models for the route. Supported only for WebSocket APIs.

*/ inline Route& AddRequestModels(const char* key, Aws::String&& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(key, std::move(value)); return *this; } /** *

The request models for the route. Supported only for WebSocket APIs.

*/ inline Route& AddRequestModels(Aws::String&& key, const char* value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(std::move(key), value); return *this; } /** *

The request models for the route. Supported only for WebSocket APIs.

*/ inline Route& AddRequestModels(const char* key, const char* value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(key, value); return *this; } /** *

The request parameters for the route. Supported only for WebSocket APIs.

*/ inline const Aws::Map& GetRequestParameters() const{ return m_requestParameters; } /** *

The request parameters for the route. Supported only for WebSocket APIs.

*/ inline bool RequestParametersHasBeenSet() const { return m_requestParametersHasBeenSet; } /** *

The request parameters for the route. Supported only for WebSocket APIs.

*/ inline void SetRequestParameters(const Aws::Map& value) { m_requestParametersHasBeenSet = true; m_requestParameters = value; } /** *

The request parameters for the route. Supported only for WebSocket APIs.

*/ inline void SetRequestParameters(Aws::Map&& value) { m_requestParametersHasBeenSet = true; m_requestParameters = std::move(value); } /** *

The request parameters for the route. Supported only for WebSocket APIs.

*/ inline Route& WithRequestParameters(const Aws::Map& value) { SetRequestParameters(value); return *this;} /** *

The request parameters for the route. Supported only for WebSocket APIs.

*/ inline Route& WithRequestParameters(Aws::Map&& value) { SetRequestParameters(std::move(value)); return *this;} /** *

The request parameters for the route. Supported only for WebSocket APIs.

*/ inline Route& AddRequestParameters(const Aws::String& key, const ParameterConstraints& value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(key, value); return *this; } /** *

The request parameters for the route. Supported only for WebSocket APIs.

*/ inline Route& AddRequestParameters(Aws::String&& key, const ParameterConstraints& value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(std::move(key), value); return *this; } /** *

The request parameters for the route. Supported only for WebSocket APIs.

*/ inline Route& AddRequestParameters(const Aws::String& key, ParameterConstraints&& value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(key, std::move(value)); return *this; } /** *

The request parameters for the route. Supported only for WebSocket APIs.

*/ inline Route& AddRequestParameters(Aws::String&& key, ParameterConstraints&& value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(std::move(key), std::move(value)); return *this; } /** *

The request parameters for the route. Supported only for WebSocket APIs.

*/ inline Route& AddRequestParameters(const char* key, ParameterConstraints&& value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(key, std::move(value)); return *this; } /** *

The request parameters for the route. Supported only for WebSocket APIs.

*/ inline Route& AddRequestParameters(const char* key, const ParameterConstraints& value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(key, value); return *this; } /** *

The route ID.

*/ inline const Aws::String& GetRouteId() const{ return m_routeId; } /** *

The route ID.

*/ inline bool RouteIdHasBeenSet() const { return m_routeIdHasBeenSet; } /** *

The route ID.

*/ inline void SetRouteId(const Aws::String& value) { m_routeIdHasBeenSet = true; m_routeId = value; } /** *

The route ID.

*/ inline void SetRouteId(Aws::String&& value) { m_routeIdHasBeenSet = true; m_routeId = std::move(value); } /** *

The route ID.

*/ inline void SetRouteId(const char* value) { m_routeIdHasBeenSet = true; m_routeId.assign(value); } /** *

The route ID.

*/ inline Route& WithRouteId(const Aws::String& value) { SetRouteId(value); return *this;} /** *

The route ID.

*/ inline Route& WithRouteId(Aws::String&& value) { SetRouteId(std::move(value)); return *this;} /** *

The route ID.

*/ inline Route& WithRouteId(const char* value) { SetRouteId(value); return *this;} /** *

The route key for the route.

*/ inline const Aws::String& GetRouteKey() const{ return m_routeKey; } /** *

The route key for the route.

*/ inline bool RouteKeyHasBeenSet() const { return m_routeKeyHasBeenSet; } /** *

The route key for the route.

*/ inline void SetRouteKey(const Aws::String& value) { m_routeKeyHasBeenSet = true; m_routeKey = value; } /** *

The route key for the route.

*/ inline void SetRouteKey(Aws::String&& value) { m_routeKeyHasBeenSet = true; m_routeKey = std::move(value); } /** *

The route key for the route.

*/ inline void SetRouteKey(const char* value) { m_routeKeyHasBeenSet = true; m_routeKey.assign(value); } /** *

The route key for the route.

*/ inline Route& WithRouteKey(const Aws::String& value) { SetRouteKey(value); return *this;} /** *

The route key for the route.

*/ inline Route& WithRouteKey(Aws::String&& value) { SetRouteKey(std::move(value)); return *this;} /** *

The route key for the route.

*/ inline Route& WithRouteKey(const char* value) { SetRouteKey(value); return *this;} /** *

The route response selection expression for the route. Supported only for * WebSocket APIs.

*/ inline const Aws::String& GetRouteResponseSelectionExpression() const{ return m_routeResponseSelectionExpression; } /** *

The route response selection expression for the route. Supported only for * WebSocket APIs.

*/ inline bool RouteResponseSelectionExpressionHasBeenSet() const { return m_routeResponseSelectionExpressionHasBeenSet; } /** *

The route response selection expression for the route. Supported only for * WebSocket APIs.

*/ inline void SetRouteResponseSelectionExpression(const Aws::String& value) { m_routeResponseSelectionExpressionHasBeenSet = true; m_routeResponseSelectionExpression = value; } /** *

The route response selection expression for the route. Supported only for * WebSocket APIs.

*/ inline void SetRouteResponseSelectionExpression(Aws::String&& value) { m_routeResponseSelectionExpressionHasBeenSet = true; m_routeResponseSelectionExpression = std::move(value); } /** *

The route response selection expression for the route. Supported only for * WebSocket APIs.

*/ inline void SetRouteResponseSelectionExpression(const char* value) { m_routeResponseSelectionExpressionHasBeenSet = true; m_routeResponseSelectionExpression.assign(value); } /** *

The route response selection expression for the route. Supported only for * WebSocket APIs.

*/ inline Route& WithRouteResponseSelectionExpression(const Aws::String& value) { SetRouteResponseSelectionExpression(value); return *this;} /** *

The route response selection expression for the route. Supported only for * WebSocket APIs.

*/ inline Route& WithRouteResponseSelectionExpression(Aws::String&& value) { SetRouteResponseSelectionExpression(std::move(value)); return *this;} /** *

The route response selection expression for the route. Supported only for * WebSocket APIs.

*/ inline Route& WithRouteResponseSelectionExpression(const char* value) { SetRouteResponseSelectionExpression(value); return *this;} /** *

The target for the route.

*/ inline const Aws::String& GetTarget() const{ return m_target; } /** *

The target for the route.

*/ inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; } /** *

The target for the route.

*/ inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; } /** *

The target for the route.

*/ inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); } /** *

The target for the route.

*/ inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); } /** *

The target for the route.

*/ inline Route& WithTarget(const Aws::String& value) { SetTarget(value); return *this;} /** *

The target for the route.

*/ inline Route& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;} /** *

The target for the route.

*/ inline Route& WithTarget(const char* value) { SetTarget(value); return *this;} private: bool m_apiGatewayManaged; bool m_apiGatewayManagedHasBeenSet = false; bool m_apiKeyRequired; bool m_apiKeyRequiredHasBeenSet = false; Aws::Vector m_authorizationScopes; bool m_authorizationScopesHasBeenSet = false; AuthorizationType m_authorizationType; bool m_authorizationTypeHasBeenSet = false; Aws::String m_authorizerId; bool m_authorizerIdHasBeenSet = false; Aws::String m_modelSelectionExpression; bool m_modelSelectionExpressionHasBeenSet = false; Aws::String m_operationName; bool m_operationNameHasBeenSet = false; Aws::Map m_requestModels; bool m_requestModelsHasBeenSet = false; Aws::Map m_requestParameters; bool m_requestParametersHasBeenSet = false; Aws::String m_routeId; bool m_routeIdHasBeenSet = false; Aws::String m_routeKey; bool m_routeKeyHasBeenSet = false; Aws::String m_routeResponseSelectionExpression; bool m_routeResponseSelectionExpressionHasBeenSet = false; Aws::String m_target; bool m_targetHasBeenSet = false; }; } // namespace Model } // namespace ApiGatewayV2 } // namespace Aws