/** * 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 UpdateIntegrationResponseResult { public: AWS_APIGATEWAYV2_API UpdateIntegrationResponseResult(); AWS_APIGATEWAYV2_API UpdateIntegrationResponseResult(const Aws::AmazonWebServiceResult& result); AWS_APIGATEWAYV2_API UpdateIntegrationResponseResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Supported only for WebSocket APIs. Specifies how to handle response payload * content type conversions. Supported values are CONVERT_TO_BINARY and * CONVERT_TO_TEXT, with the following behaviors:

CONVERT_TO_BINARY: * Converts a response payload from a Base64-encoded string to the corresponding * binary blob.

CONVERT_TO_TEXT: Converts a response payload from a binary * blob to a Base64-encoded string.

If this property is not defined, the * response payload will be passed through from the integration response to the * route response or method response without modification.

*/ inline const ContentHandlingStrategy& GetContentHandlingStrategy() const{ return m_contentHandlingStrategy; } /** *

Supported only for WebSocket APIs. Specifies how to handle response payload * content type conversions. Supported values are CONVERT_TO_BINARY and * CONVERT_TO_TEXT, with the following behaviors:

CONVERT_TO_BINARY: * Converts a response payload from a Base64-encoded string to the corresponding * binary blob.

CONVERT_TO_TEXT: Converts a response payload from a binary * blob to a Base64-encoded string.

If this property is not defined, the * response payload will be passed through from the integration response to the * route response or method response without modification.

*/ inline void SetContentHandlingStrategy(const ContentHandlingStrategy& value) { m_contentHandlingStrategy = value; } /** *

Supported only for WebSocket APIs. Specifies how to handle response payload * content type conversions. Supported values are CONVERT_TO_BINARY and * CONVERT_TO_TEXT, with the following behaviors:

CONVERT_TO_BINARY: * Converts a response payload from a Base64-encoded string to the corresponding * binary blob.

CONVERT_TO_TEXT: Converts a response payload from a binary * blob to a Base64-encoded string.

If this property is not defined, the * response payload will be passed through from the integration response to the * route response or method response without modification.

*/ inline void SetContentHandlingStrategy(ContentHandlingStrategy&& value) { m_contentHandlingStrategy = std::move(value); } /** *

Supported only for WebSocket APIs. Specifies how to handle response payload * content type conversions. Supported values are CONVERT_TO_BINARY and * CONVERT_TO_TEXT, with the following behaviors:

CONVERT_TO_BINARY: * Converts a response payload from a Base64-encoded string to the corresponding * binary blob.

CONVERT_TO_TEXT: Converts a response payload from a binary * blob to a Base64-encoded string.

If this property is not defined, the * response payload will be passed through from the integration response to the * route response or method response without modification.

*/ inline UpdateIntegrationResponseResult& WithContentHandlingStrategy(const ContentHandlingStrategy& value) { SetContentHandlingStrategy(value); return *this;} /** *

Supported only for WebSocket APIs. Specifies how to handle response payload * content type conversions. Supported values are CONVERT_TO_BINARY and * CONVERT_TO_TEXT, with the following behaviors:

CONVERT_TO_BINARY: * Converts a response payload from a Base64-encoded string to the corresponding * binary blob.

CONVERT_TO_TEXT: Converts a response payload from a binary * blob to a Base64-encoded string.

If this property is not defined, the * response payload will be passed through from the integration response to the * route response or method response without modification.

*/ inline UpdateIntegrationResponseResult& WithContentHandlingStrategy(ContentHandlingStrategy&& value) { SetContentHandlingStrategy(std::move(value)); return *this;} /** *

The integration response ID.

*/ inline const Aws::String& GetIntegrationResponseId() const{ return m_integrationResponseId; } /** *

The integration response ID.

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

The integration response ID.

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

The integration response ID.

*/ inline void SetIntegrationResponseId(const char* value) { m_integrationResponseId.assign(value); } /** *

The integration response ID.

*/ inline UpdateIntegrationResponseResult& WithIntegrationResponseId(const Aws::String& value) { SetIntegrationResponseId(value); return *this;} /** *

The integration response ID.

*/ inline UpdateIntegrationResponseResult& WithIntegrationResponseId(Aws::String&& value) { SetIntegrationResponseId(std::move(value)); return *this;} /** *

The integration response ID.

*/ inline UpdateIntegrationResponseResult& WithIntegrationResponseId(const char* value) { SetIntegrationResponseId(value); return *this;} /** *

The integration response key.

*/ inline const Aws::String& GetIntegrationResponseKey() const{ return m_integrationResponseKey; } /** *

The integration response key.

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

The integration response key.

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

The integration response key.

*/ inline void SetIntegrationResponseKey(const char* value) { m_integrationResponseKey.assign(value); } /** *

The integration response key.

*/ inline UpdateIntegrationResponseResult& WithIntegrationResponseKey(const Aws::String& value) { SetIntegrationResponseKey(value); return *this;} /** *

The integration response key.

*/ inline UpdateIntegrationResponseResult& WithIntegrationResponseKey(Aws::String&& value) { SetIntegrationResponseKey(std::move(value)); return *this;} /** *

The integration response key.

*/ inline UpdateIntegrationResponseResult& WithIntegrationResponseKey(const char* value) { SetIntegrationResponseKey(value); return *this;} /** *

A key-value map specifying response parameters that are passed to the method * response from the backend. The key is a method response header parameter name * and the mapped value is an integration response header value, a static value * enclosed within a pair of single quotes, or a JSON expression from the * integration response body. The mapping key must match the pattern of * method.response.header.{name}, where name is a valid and unique header name. The * mapped non-static value must match the pattern of * integration.response.header.{name} or * integration.response.body.{JSON-expression}, where name is a valid and unique * response header name and JSON-expression is a valid JSON expression without the * $ prefix.

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

A key-value map specifying response parameters that are passed to the method * response from the backend. The key is a method response header parameter name * and the mapped value is an integration response header value, a static value * enclosed within a pair of single quotes, or a JSON expression from the * integration response body. The mapping key must match the pattern of * method.response.header.{name}, where name is a valid and unique header name. The * mapped non-static value must match the pattern of * integration.response.header.{name} or * integration.response.body.{JSON-expression}, where name is a valid and unique * response header name and JSON-expression is a valid JSON expression without the * $ prefix.

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

A key-value map specifying response parameters that are passed to the method * response from the backend. The key is a method response header parameter name * and the mapped value is an integration response header value, a static value * enclosed within a pair of single quotes, or a JSON expression from the * integration response body. The mapping key must match the pattern of * method.response.header.{name}, where name is a valid and unique header name. The * mapped non-static value must match the pattern of * integration.response.header.{name} or * integration.response.body.{JSON-expression}, where name is a valid and unique * response header name and JSON-expression is a valid JSON expression without the * $ prefix.

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

A key-value map specifying response parameters that are passed to the method * response from the backend. The key is a method response header parameter name * and the mapped value is an integration response header value, a static value * enclosed within a pair of single quotes, or a JSON expression from the * integration response body. The mapping key must match the pattern of * method.response.header.{name}, where name is a valid and unique header name. The * mapped non-static value must match the pattern of * integration.response.header.{name} or * integration.response.body.{JSON-expression}, where name is a valid and unique * response header name and JSON-expression is a valid JSON expression without the * $ prefix.

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

A key-value map specifying response parameters that are passed to the method * response from the backend. The key is a method response header parameter name * and the mapped value is an integration response header value, a static value * enclosed within a pair of single quotes, or a JSON expression from the * integration response body. The mapping key must match the pattern of * method.response.header.{name}, where name is a valid and unique header name. The * mapped non-static value must match the pattern of * integration.response.header.{name} or * integration.response.body.{JSON-expression}, where name is a valid and unique * response header name and JSON-expression is a valid JSON expression without the * $ prefix.

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

A key-value map specifying response parameters that are passed to the method * response from the backend. The key is a method response header parameter name * and the mapped value is an integration response header value, a static value * enclosed within a pair of single quotes, or a JSON expression from the * integration response body. The mapping key must match the pattern of * method.response.header.{name}, where name is a valid and unique header name. The * mapped non-static value must match the pattern of * integration.response.header.{name} or * integration.response.body.{JSON-expression}, where name is a valid and unique * response header name and JSON-expression is a valid JSON expression without the * $ prefix.

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

A key-value map specifying response parameters that are passed to the method * response from the backend. The key is a method response header parameter name * and the mapped value is an integration response header value, a static value * enclosed within a pair of single quotes, or a JSON expression from the * integration response body. The mapping key must match the pattern of * method.response.header.{name}, where name is a valid and unique header name. The * mapped non-static value must match the pattern of * integration.response.header.{name} or * integration.response.body.{JSON-expression}, where name is a valid and unique * response header name and JSON-expression is a valid JSON expression without the * $ prefix.

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

A key-value map specifying response parameters that are passed to the method * response from the backend. The key is a method response header parameter name * and the mapped value is an integration response header value, a static value * enclosed within a pair of single quotes, or a JSON expression from the * integration response body. The mapping key must match the pattern of * method.response.header.{name}, where name is a valid and unique header name. The * mapped non-static value must match the pattern of * integration.response.header.{name} or * integration.response.body.{JSON-expression}, where name is a valid and unique * response header name and JSON-expression is a valid JSON expression without the * $ prefix.

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

A key-value map specifying response parameters that are passed to the method * response from the backend. The key is a method response header parameter name * and the mapped value is an integration response header value, a static value * enclosed within a pair of single quotes, or a JSON expression from the * integration response body. The mapping key must match the pattern of * method.response.header.{name}, where name is a valid and unique header name. The * mapped non-static value must match the pattern of * integration.response.header.{name} or * integration.response.body.{JSON-expression}, where name is a valid and unique * response header name and JSON-expression is a valid JSON expression without the * $ prefix.

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

A key-value map specifying response parameters that are passed to the method * response from the backend. The key is a method response header parameter name * and the mapped value is an integration response header value, a static value * enclosed within a pair of single quotes, or a JSON expression from the * integration response body. The mapping key must match the pattern of * method.response.header.{name}, where name is a valid and unique header name. The * mapped non-static value must match the pattern of * integration.response.header.{name} or * integration.response.body.{JSON-expression}, where name is a valid and unique * response header name and JSON-expression is a valid JSON expression without the * $ prefix.

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

A key-value map specifying response parameters that are passed to the method * response from the backend. The key is a method response header parameter name * and the mapped value is an integration response header value, a static value * enclosed within a pair of single quotes, or a JSON expression from the * integration response body. The mapping key must match the pattern of * method.response.header.{name}, where name is a valid and unique header name. The * mapped non-static value must match the pattern of * integration.response.header.{name} or * integration.response.body.{JSON-expression}, where name is a valid and unique * response header name and JSON-expression is a valid JSON expression without the * $ prefix.

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

A key-value map specifying response parameters that are passed to the method * response from the backend. The key is a method response header parameter name * and the mapped value is an integration response header value, a static value * enclosed within a pair of single quotes, or a JSON expression from the * integration response body. The mapping key must match the pattern of * method.response.header.{name}, where name is a valid and unique header name. The * mapped non-static value must match the pattern of * integration.response.header.{name} or * integration.response.body.{JSON-expression}, where name is a valid and unique * response header name and JSON-expression is a valid JSON expression without the * $ prefix.

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

The collection of response templates for the integration response as a * string-to-string map of key-value pairs. Response templates are represented as a * key/value map, with a content-type as the key and a template as the value.

*/ inline const Aws::Map& GetResponseTemplates() const{ return m_responseTemplates; } /** *

The collection of response templates for the integration response as a * string-to-string map of key-value pairs. Response templates are represented as a * key/value map, with a content-type as the key and a template as the value.

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

The collection of response templates for the integration response as a * string-to-string map of key-value pairs. Response templates are represented as a * key/value map, with a content-type as the key and a template as the value.

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

The collection of response templates for the integration response as a * string-to-string map of key-value pairs. Response templates are represented as a * key/value map, with a content-type as the key and a template as the value.

*/ inline UpdateIntegrationResponseResult& WithResponseTemplates(const Aws::Map& value) { SetResponseTemplates(value); return *this;} /** *

The collection of response templates for the integration response as a * string-to-string map of key-value pairs. Response templates are represented as a * key/value map, with a content-type as the key and a template as the value.

*/ inline UpdateIntegrationResponseResult& WithResponseTemplates(Aws::Map&& value) { SetResponseTemplates(std::move(value)); return *this;} /** *

The collection of response templates for the integration response as a * string-to-string map of key-value pairs. Response templates are represented as a * key/value map, with a content-type as the key and a template as the value.

*/ inline UpdateIntegrationResponseResult& AddResponseTemplates(const Aws::String& key, const Aws::String& value) { m_responseTemplates.emplace(key, value); return *this; } /** *

The collection of response templates for the integration response as a * string-to-string map of key-value pairs. Response templates are represented as a * key/value map, with a content-type as the key and a template as the value.

*/ inline UpdateIntegrationResponseResult& AddResponseTemplates(Aws::String&& key, const Aws::String& value) { m_responseTemplates.emplace(std::move(key), value); return *this; } /** *

The collection of response templates for the integration response as a * string-to-string map of key-value pairs. Response templates are represented as a * key/value map, with a content-type as the key and a template as the value.

*/ inline UpdateIntegrationResponseResult& AddResponseTemplates(const Aws::String& key, Aws::String&& value) { m_responseTemplates.emplace(key, std::move(value)); return *this; } /** *

The collection of response templates for the integration response as a * string-to-string map of key-value pairs. Response templates are represented as a * key/value map, with a content-type as the key and a template as the value.

*/ inline UpdateIntegrationResponseResult& AddResponseTemplates(Aws::String&& key, Aws::String&& value) { m_responseTemplates.emplace(std::move(key), std::move(value)); return *this; } /** *

The collection of response templates for the integration response as a * string-to-string map of key-value pairs. Response templates are represented as a * key/value map, with a content-type as the key and a template as the value.

*/ inline UpdateIntegrationResponseResult& AddResponseTemplates(const char* key, Aws::String&& value) { m_responseTemplates.emplace(key, std::move(value)); return *this; } /** *

The collection of response templates for the integration response as a * string-to-string map of key-value pairs. Response templates are represented as a * key/value map, with a content-type as the key and a template as the value.

*/ inline UpdateIntegrationResponseResult& AddResponseTemplates(Aws::String&& key, const char* value) { m_responseTemplates.emplace(std::move(key), value); return *this; } /** *

The collection of response templates for the integration response as a * string-to-string map of key-value pairs. Response templates are represented as a * key/value map, with a content-type as the key and a template as the value.

*/ inline UpdateIntegrationResponseResult& AddResponseTemplates(const char* key, const char* value) { m_responseTemplates.emplace(key, value); return *this; } /** *

The template selection expressions for the integration response.

*/ inline const Aws::String& GetTemplateSelectionExpression() const{ return m_templateSelectionExpression; } /** *

The template selection expressions for the integration response.

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

The template selection expressions for the integration response.

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

The template selection expressions for the integration response.

*/ inline void SetTemplateSelectionExpression(const char* value) { m_templateSelectionExpression.assign(value); } /** *

The template selection expressions for the integration response.

*/ inline UpdateIntegrationResponseResult& WithTemplateSelectionExpression(const Aws::String& value) { SetTemplateSelectionExpression(value); return *this;} /** *

The template selection expressions for the integration response.

*/ inline UpdateIntegrationResponseResult& WithTemplateSelectionExpression(Aws::String&& value) { SetTemplateSelectionExpression(std::move(value)); return *this;} /** *

The template selection expressions for the integration response.

*/ inline UpdateIntegrationResponseResult& WithTemplateSelectionExpression(const char* value) { SetTemplateSelectionExpression(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 UpdateIntegrationResponseResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateIntegrationResponseResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateIntegrationResponseResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: ContentHandlingStrategy m_contentHandlingStrategy; Aws::String m_integrationResponseId; Aws::String m_integrationResponseKey; Aws::Map m_responseParameters; Aws::Map m_responseTemplates; Aws::String m_templateSelectionExpression; Aws::String m_requestId; }; } // namespace Model } // namespace ApiGatewayV2 } // namespace Aws