/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ApiGatewayV2 { namespace Model { class GetRouteResponseResult { public: AWS_APIGATEWAYV2_API GetRouteResponseResult(); AWS_APIGATEWAYV2_API GetRouteResponseResult(const Aws::AmazonWebServiceResult& result); AWS_APIGATEWAYV2_API GetRouteResponseResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Represents the model selection expression of a route response. Supported only * for WebSocket APIs.

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

Represents the model selection expression of a route response. Supported only * for WebSocket APIs.

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

Represents the model selection expression of a route response. Supported only * for WebSocket APIs.

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

Represents the model selection expression of a route response. Supported only * for WebSocket APIs.

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

Represents the model selection expression of a route response. Supported only * for WebSocket APIs.

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

Represents the model selection expression of a route response. Supported only * for WebSocket APIs.

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

Represents the model selection expression of a route response. Supported only * for WebSocket APIs.

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

Represents the response models of a route response.

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

Represents the response models of a route response.

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

Represents the response models of a route response.

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

Represents the response models of a route response.

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

Represents the response models of a route response.

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

Represents the response models of a route response.

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

Represents the response models of a route response.

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

Represents the response models of a route response.

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

Represents the response models of a route response.

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

Represents the response models of a route response.

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

Represents the response models of a route response.

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

Represents the response models of a route response.

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

Represents the response parameters of a route response.

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

Represents the response parameters of a route response.

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

Represents the response parameters of a route response.

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

Represents the response parameters of a route response.

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

Represents the response parameters of a route response.

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

Represents the response parameters of a route response.

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

Represents the response parameters of a route response.

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

Represents the response parameters of a route response.

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

Represents the response parameters of a route response.

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

Represents the response parameters of a route response.

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

Represents the response parameters of a route response.

*/ inline GetRouteResponseResult& AddResponseParameters(const char* key, const ParameterConstraints& value) { m_responseParameters.emplace(key, value); return *this; } /** *

Represents the identifier of a route response.

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

Represents the identifier of a route response.

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

Represents the identifier of a route response.

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

Represents the identifier of a route response.

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

Represents the identifier of a route response.

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

Represents the identifier of a route response.

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

Represents the identifier of a route response.

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

Represents the route response key of a route response.

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

Represents the route response key of a route response.

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

Represents the route response key of a route response.

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

Represents the route response key of a route response.

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

Represents the route response key of a route response.

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

Represents the route response key of a route response.

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

Represents the route response key of a route response.

*/ inline GetRouteResponseResult& WithRouteResponseKey(const char* value) { SetRouteResponseKey(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetRouteResponseResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetRouteResponseResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetRouteResponseResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_modelSelectionExpression; Aws::Map m_responseModels; Aws::Map m_responseParameters; Aws::String m_routeResponseId; Aws::String m_routeResponseKey; Aws::String m_requestId; }; } // namespace Model } // namespace ApiGatewayV2 } // namespace Aws