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

Updates a RouteResponse.

See Also:

AWS * API Reference

*/ class UpdateRouteResponseRequest : public ApiGatewayV2Request { public: AWS_APIGATEWAYV2_API UpdateRouteResponseRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateRouteResponse"; } AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override; /** *

The API identifier.

*/ inline const Aws::String& GetApiId() const{ return m_apiId; } /** *

The API identifier.

*/ inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; } /** *

The API identifier.

*/ inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; } /** *

The API identifier.

*/ inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); } /** *

The API identifier.

*/ inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); } /** *

The API identifier.

*/ inline UpdateRouteResponseRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;} /** *

The API identifier.

*/ inline UpdateRouteResponseRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;} /** *

The API identifier.

*/ inline UpdateRouteResponseRequest& WithApiId(const char* value) { SetApiId(value); return *this;} /** *

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

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

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

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

The model selection expression for the route response. 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 response. 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 response. 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 response. Supported only for * WebSocket APIs.

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

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

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

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

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

The response models for the route response.

*/ inline const Aws::Map& GetResponseModels() const{ return m_responseModels; } /** *

The response models for the route response.

*/ inline bool ResponseModelsHasBeenSet() const { return m_responseModelsHasBeenSet; } /** *

The response models for the route response.

*/ inline void SetResponseModels(const Aws::Map& value) { m_responseModelsHasBeenSet = true; m_responseModels = value; } /** *

The response models for the route response.

*/ inline void SetResponseModels(Aws::Map&& value) { m_responseModelsHasBeenSet = true; m_responseModels = std::move(value); } /** *

The response models for the route response.

*/ inline UpdateRouteResponseRequest& WithResponseModels(const Aws::Map& value) { SetResponseModels(value); return *this;} /** *

The response models for the route response.

*/ inline UpdateRouteResponseRequest& WithResponseModels(Aws::Map&& value) { SetResponseModels(std::move(value)); return *this;} /** *

The response models for the route response.

*/ inline UpdateRouteResponseRequest& AddResponseModels(const Aws::String& key, const Aws::String& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(key, value); return *this; } /** *

The response models for the route response.

*/ inline UpdateRouteResponseRequest& AddResponseModels(Aws::String&& key, const Aws::String& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(std::move(key), value); return *this; } /** *

The response models for the route response.

*/ inline UpdateRouteResponseRequest& AddResponseModels(const Aws::String& key, Aws::String&& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(key, std::move(value)); return *this; } /** *

The response models for the route response.

*/ inline UpdateRouteResponseRequest& AddResponseModels(Aws::String&& key, Aws::String&& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(std::move(key), std::move(value)); return *this; } /** *

The response models for the route response.

*/ inline UpdateRouteResponseRequest& AddResponseModels(const char* key, Aws::String&& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(key, std::move(value)); return *this; } /** *

The response models for the route response.

*/ inline UpdateRouteResponseRequest& AddResponseModels(Aws::String&& key, const char* value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(std::move(key), value); return *this; } /** *

The response models for the route response.

*/ inline UpdateRouteResponseRequest& AddResponseModels(const char* key, const char* value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(key, value); return *this; } /** *

The route response parameters.

*/ inline const Aws::Map& GetResponseParameters() const{ return m_responseParameters; } /** *

The route response parameters.

*/ inline bool ResponseParametersHasBeenSet() const { return m_responseParametersHasBeenSet; } /** *

The route response parameters.

*/ inline void SetResponseParameters(const Aws::Map& value) { m_responseParametersHasBeenSet = true; m_responseParameters = value; } /** *

The route response parameters.

*/ inline void SetResponseParameters(Aws::Map&& value) { m_responseParametersHasBeenSet = true; m_responseParameters = std::move(value); } /** *

The route response parameters.

*/ inline UpdateRouteResponseRequest& WithResponseParameters(const Aws::Map& value) { SetResponseParameters(value); return *this;} /** *

The route response parameters.

*/ inline UpdateRouteResponseRequest& WithResponseParameters(Aws::Map&& value) { SetResponseParameters(std::move(value)); return *this;} /** *

The route response parameters.

*/ inline UpdateRouteResponseRequest& AddResponseParameters(const Aws::String& key, const ParameterConstraints& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this; } /** *

The route response parameters.

*/ inline UpdateRouteResponseRequest& AddResponseParameters(Aws::String&& key, const ParameterConstraints& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), value); return *this; } /** *

The route response parameters.

*/ inline UpdateRouteResponseRequest& AddResponseParameters(const Aws::String& key, ParameterConstraints&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, std::move(value)); return *this; } /** *

The route response parameters.

*/ inline UpdateRouteResponseRequest& AddResponseParameters(Aws::String&& key, ParameterConstraints&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), std::move(value)); return *this; } /** *

The route response parameters.

*/ inline UpdateRouteResponseRequest& AddResponseParameters(const char* key, ParameterConstraints&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, std::move(value)); return *this; } /** *

The route response parameters.

*/ inline UpdateRouteResponseRequest& AddResponseParameters(const char* key, const ParameterConstraints& value) { m_responseParametersHasBeenSet = true; m_responseParameters.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 UpdateRouteResponseRequest& WithRouteId(const Aws::String& value) { SetRouteId(value); return *this;} /** *

The route ID.

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

The route ID.

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

The route response ID.

*/ inline const Aws::String& GetRouteResponseId() const{ return m_routeResponseId; } /** *

The route response ID.

*/ inline bool RouteResponseIdHasBeenSet() const { return m_routeResponseIdHasBeenSet; } /** *

The route response ID.

*/ inline void SetRouteResponseId(const Aws::String& value) { m_routeResponseIdHasBeenSet = true; m_routeResponseId = value; } /** *

The route response ID.

*/ inline void SetRouteResponseId(Aws::String&& value) { m_routeResponseIdHasBeenSet = true; m_routeResponseId = std::move(value); } /** *

The route response ID.

*/ inline void SetRouteResponseId(const char* value) { m_routeResponseIdHasBeenSet = true; m_routeResponseId.assign(value); } /** *

The route response ID.

*/ inline UpdateRouteResponseRequest& WithRouteResponseId(const Aws::String& value) { SetRouteResponseId(value); return *this;} /** *

The route response ID.

*/ inline UpdateRouteResponseRequest& WithRouteResponseId(Aws::String&& value) { SetRouteResponseId(std::move(value)); return *this;} /** *

The route response ID.

*/ inline UpdateRouteResponseRequest& WithRouteResponseId(const char* value) { SetRouteResponseId(value); return *this;} /** *

The route response key.

*/ inline const Aws::String& GetRouteResponseKey() const{ return m_routeResponseKey; } /** *

The route response key.

*/ inline bool RouteResponseKeyHasBeenSet() const { return m_routeResponseKeyHasBeenSet; } /** *

The route response key.

*/ inline void SetRouteResponseKey(const Aws::String& value) { m_routeResponseKeyHasBeenSet = true; m_routeResponseKey = value; } /** *

The route response key.

*/ inline void SetRouteResponseKey(Aws::String&& value) { m_routeResponseKeyHasBeenSet = true; m_routeResponseKey = std::move(value); } /** *

The route response key.

*/ inline void SetRouteResponseKey(const char* value) { m_routeResponseKeyHasBeenSet = true; m_routeResponseKey.assign(value); } /** *

The route response key.

*/ inline UpdateRouteResponseRequest& WithRouteResponseKey(const Aws::String& value) { SetRouteResponseKey(value); return *this;} /** *

The route response key.

*/ inline UpdateRouteResponseRequest& WithRouteResponseKey(Aws::String&& value) { SetRouteResponseKey(std::move(value)); return *this;} /** *

The route response key.

*/ inline UpdateRouteResponseRequest& WithRouteResponseKey(const char* value) { SetRouteResponseKey(value); return *this;} private: Aws::String m_apiId; bool m_apiIdHasBeenSet = false; Aws::String m_modelSelectionExpression; bool m_modelSelectionExpressionHasBeenSet = false; Aws::Map m_responseModels; bool m_responseModelsHasBeenSet = false; Aws::Map m_responseParameters; bool m_responseParametersHasBeenSet = false; Aws::String m_routeId; bool m_routeIdHasBeenSet = false; Aws::String m_routeResponseId; bool m_routeResponseIdHasBeenSet = false; Aws::String m_routeResponseKey; bool m_routeResponseKeyHasBeenSet = false; }; } // namespace Model } // namespace ApiGatewayV2 } // namespace Aws