489 lines
26 KiB
C
489 lines
26 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
|
|||
|
|
#include <aws/apigatewayv2/model/ContentHandlingStrategy.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSMap.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
template<typename RESULT_TYPE>
|
|||
|
|
class AmazonWebServiceResult;
|
|||
|
|
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace ApiGatewayV2
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
class AWS_APIGATEWAYV2_API GetIntegrationResponseResult
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
GetIntegrationResponseResult();
|
|||
|
|
GetIntegrationResponseResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|||
|
|
GetIntegrationResponseResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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:</p> <p>CONVERT_TO_BINARY:
|
|||
|
|
* Converts a response payload from a Base64-encoded string to the corresponding
|
|||
|
|
* binary blob.</p> <p>CONVERT_TO_TEXT: Converts a response payload from a binary
|
|||
|
|
* blob to a Base64-encoded string.</p> <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline const ContentHandlingStrategy& GetContentHandlingStrategy() const{ return m_contentHandlingStrategy; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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:</p> <p>CONVERT_TO_BINARY:
|
|||
|
|
* Converts a response payload from a Base64-encoded string to the corresponding
|
|||
|
|
* binary blob.</p> <p>CONVERT_TO_TEXT: Converts a response payload from a binary
|
|||
|
|
* blob to a Base64-encoded string.</p> <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetContentHandlingStrategy(const ContentHandlingStrategy& value) { m_contentHandlingStrategy = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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:</p> <p>CONVERT_TO_BINARY:
|
|||
|
|
* Converts a response payload from a Base64-encoded string to the corresponding
|
|||
|
|
* binary blob.</p> <p>CONVERT_TO_TEXT: Converts a response payload from a binary
|
|||
|
|
* blob to a Base64-encoded string.</p> <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetContentHandlingStrategy(ContentHandlingStrategy&& value) { m_contentHandlingStrategy = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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:</p> <p>CONVERT_TO_BINARY:
|
|||
|
|
* Converts a response payload from a Base64-encoded string to the corresponding
|
|||
|
|
* binary blob.</p> <p>CONVERT_TO_TEXT: Converts a response payload from a binary
|
|||
|
|
* blob to a Base64-encoded string.</p> <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& WithContentHandlingStrategy(const ContentHandlingStrategy& value) { SetContentHandlingStrategy(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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:</p> <p>CONVERT_TO_BINARY:
|
|||
|
|
* Converts a response payload from a Base64-encoded string to the corresponding
|
|||
|
|
* binary blob.</p> <p>CONVERT_TO_TEXT: Converts a response payload from a binary
|
|||
|
|
* blob to a Base64-encoded string.</p> <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& WithContentHandlingStrategy(ContentHandlingStrategy&& value) { SetContentHandlingStrategy(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The integration response ID.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetIntegrationResponseId() const{ return m_integrationResponseId; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The integration response ID.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetIntegrationResponseId(const Aws::String& value) { m_integrationResponseId = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The integration response ID.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetIntegrationResponseId(Aws::String&& value) { m_integrationResponseId = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The integration response ID.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetIntegrationResponseId(const char* value) { m_integrationResponseId.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The integration response ID.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& WithIntegrationResponseId(const Aws::String& value) { SetIntegrationResponseId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The integration response ID.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& WithIntegrationResponseId(Aws::String&& value) { SetIntegrationResponseId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The integration response ID.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& WithIntegrationResponseId(const char* value) { SetIntegrationResponseId(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The integration response key.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetIntegrationResponseKey() const{ return m_integrationResponseKey; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The integration response key.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetIntegrationResponseKey(const Aws::String& value) { m_integrationResponseKey = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The integration response key.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetIntegrationResponseKey(Aws::String&& value) { m_integrationResponseKey = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The integration response key.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetIntegrationResponseKey(const char* value) { m_integrationResponseKey.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The integration response key.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& WithIntegrationResponseKey(const Aws::String& value) { SetIntegrationResponseKey(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The integration response key.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& WithIntegrationResponseKey(Aws::String&& value) { SetIntegrationResponseKey(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The integration response key.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& WithIntegrationResponseKey(const char* value) { SetIntegrationResponseKey(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Map<Aws::String, Aws::String>& GetResponseParameters() const{ return m_responseParameters; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetResponseParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_responseParameters = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetResponseParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_responseParameters = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& WithResponseParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetResponseParameters(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& WithResponseParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetResponseParameters(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& AddResponseParameters(const Aws::String& key, const Aws::String& value) { m_responseParameters.emplace(key, value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& AddResponseParameters(Aws::String&& key, const Aws::String& value) { m_responseParameters.emplace(std::move(key), value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& AddResponseParameters(const Aws::String& key, Aws::String&& value) { m_responseParameters.emplace(key, std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& AddResponseParameters(Aws::String&& key, Aws::String&& value) { m_responseParameters.emplace(std::move(key), std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& AddResponseParameters(const char* key, Aws::String&& value) { m_responseParameters.emplace(key, std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& AddResponseParameters(Aws::String&& key, const char* value) { m_responseParameters.emplace(std::move(key), value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& AddResponseParameters(const char* key, const char* value) { m_responseParameters.emplace(key, value); return *this; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Map<Aws::String, Aws::String>& GetResponseTemplates() const{ return m_responseTemplates; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetResponseTemplates(const Aws::Map<Aws::String, Aws::String>& value) { m_responseTemplates = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetResponseTemplates(Aws::Map<Aws::String, Aws::String>&& value) { m_responseTemplates = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& WithResponseTemplates(const Aws::Map<Aws::String, Aws::String>& value) { SetResponseTemplates(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& WithResponseTemplates(Aws::Map<Aws::String, Aws::String>&& value) { SetResponseTemplates(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& AddResponseTemplates(const Aws::String& key, const Aws::String& value) { m_responseTemplates.emplace(key, value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& AddResponseTemplates(Aws::String&& key, const Aws::String& value) { m_responseTemplates.emplace(std::move(key), value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& AddResponseTemplates(const Aws::String& key, Aws::String&& value) { m_responseTemplates.emplace(key, std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& AddResponseTemplates(Aws::String&& key, Aws::String&& value) { m_responseTemplates.emplace(std::move(key), std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& AddResponseTemplates(const char* key, Aws::String&& value) { m_responseTemplates.emplace(key, std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& AddResponseTemplates(Aws::String&& key, const char* value) { m_responseTemplates.emplace(std::move(key), value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>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.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& AddResponseTemplates(const char* key, const char* value) { m_responseTemplates.emplace(key, value); return *this; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The template selection expressions for the integration response.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetTemplateSelectionExpression() const{ return m_templateSelectionExpression; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The template selection expressions for the integration response.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTemplateSelectionExpression(const Aws::String& value) { m_templateSelectionExpression = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The template selection expressions for the integration response.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTemplateSelectionExpression(Aws::String&& value) { m_templateSelectionExpression = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The template selection expressions for the integration response.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTemplateSelectionExpression(const char* value) { m_templateSelectionExpression.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The template selection expressions for the integration response.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& WithTemplateSelectionExpression(const Aws::String& value) { SetTemplateSelectionExpression(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The template selection expressions for the integration response.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& WithTemplateSelectionExpression(Aws::String&& value) { SetTemplateSelectionExpression(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The template selection expressions for the integration response.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetIntegrationResponseResult& WithTemplateSelectionExpression(const char* value) { SetTemplateSelectionExpression(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
ContentHandlingStrategy m_contentHandlingStrategy;
|
|||
|
|
|
|||
|
|
Aws::String m_integrationResponseId;
|
|||
|
|
|
|||
|
|
Aws::String m_integrationResponseKey;
|
|||
|
|
|
|||
|
|
Aws::Map<Aws::String, Aws::String> m_responseParameters;
|
|||
|
|
|
|||
|
|
Aws::Map<Aws::String, Aws::String> m_responseTemplates;
|
|||
|
|
|
|||
|
|
Aws::String m_templateSelectionExpression;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace ApiGatewayV2
|
|||
|
|
} // namespace Aws
|