/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A gateway response of a given response type and status code, with optional
* response parameters and mapping templates.See Also:
AWS
* API Reference
The response type of the associated GatewayResponse.
*/ inline const GatewayResponseType& GetResponseType() const{ return m_responseType; } /** *The response type of the associated GatewayResponse.
*/ inline void SetResponseType(const GatewayResponseType& value) { m_responseType = value; } /** *The response type of the associated GatewayResponse.
*/ inline void SetResponseType(GatewayResponseType&& value) { m_responseType = std::move(value); } /** *The response type of the associated GatewayResponse.
*/ inline UpdateGatewayResponseResult& WithResponseType(const GatewayResponseType& value) { SetResponseType(value); return *this;} /** *The response type of the associated GatewayResponse.
*/ inline UpdateGatewayResponseResult& WithResponseType(GatewayResponseType&& value) { SetResponseType(std::move(value)); return *this;} /** *The HTTP status code for this GatewayResponse.
*/ inline const Aws::String& GetStatusCode() const{ return m_statusCode; } /** *The HTTP status code for this GatewayResponse.
*/ inline void SetStatusCode(const Aws::String& value) { m_statusCode = value; } /** *The HTTP status code for this GatewayResponse.
*/ inline void SetStatusCode(Aws::String&& value) { m_statusCode = std::move(value); } /** *The HTTP status code for this GatewayResponse.
*/ inline void SetStatusCode(const char* value) { m_statusCode.assign(value); } /** *The HTTP status code for this GatewayResponse.
*/ inline UpdateGatewayResponseResult& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;} /** *The HTTP status code for this GatewayResponse.
*/ inline UpdateGatewayResponseResult& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;} /** *The HTTP status code for this GatewayResponse.
*/ inline UpdateGatewayResponseResult& WithStatusCode(const char* value) { SetStatusCode(value); return *this;} /** *Response parameters (paths, query strings and headers) of the GatewayResponse * as a string-to-string map of key-value pairs.
*/ inline const Aws::MapResponse parameters (paths, query strings and headers) of the GatewayResponse * as a string-to-string map of key-value pairs.
*/ inline void SetResponseParameters(const Aws::MapResponse parameters (paths, query strings and headers) of the GatewayResponse * as a string-to-string map of key-value pairs.
*/ inline void SetResponseParameters(Aws::MapResponse parameters (paths, query strings and headers) of the GatewayResponse * as a string-to-string map of key-value pairs.
*/ inline UpdateGatewayResponseResult& WithResponseParameters(const Aws::MapResponse parameters (paths, query strings and headers) of the GatewayResponse * as a string-to-string map of key-value pairs.
*/ inline UpdateGatewayResponseResult& WithResponseParameters(Aws::MapResponse parameters (paths, query strings and headers) of the GatewayResponse * as a string-to-string map of key-value pairs.
*/ inline UpdateGatewayResponseResult& AddResponseParameters(const Aws::String& key, const Aws::String& value) { m_responseParameters.emplace(key, value); return *this; } /** *Response parameters (paths, query strings and headers) of the GatewayResponse * as a string-to-string map of key-value pairs.
*/ inline UpdateGatewayResponseResult& AddResponseParameters(Aws::String&& key, const Aws::String& value) { m_responseParameters.emplace(std::move(key), value); return *this; } /** *Response parameters (paths, query strings and headers) of the GatewayResponse * as a string-to-string map of key-value pairs.
*/ inline UpdateGatewayResponseResult& AddResponseParameters(const Aws::String& key, Aws::String&& value) { m_responseParameters.emplace(key, std::move(value)); return *this; } /** *Response parameters (paths, query strings and headers) of the GatewayResponse * as a string-to-string map of key-value pairs.
*/ inline UpdateGatewayResponseResult& AddResponseParameters(Aws::String&& key, Aws::String&& value) { m_responseParameters.emplace(std::move(key), std::move(value)); return *this; } /** *Response parameters (paths, query strings and headers) of the GatewayResponse * as a string-to-string map of key-value pairs.
*/ inline UpdateGatewayResponseResult& AddResponseParameters(const char* key, Aws::String&& value) { m_responseParameters.emplace(key, std::move(value)); return *this; } /** *Response parameters (paths, query strings and headers) of the GatewayResponse * as a string-to-string map of key-value pairs.
*/ inline UpdateGatewayResponseResult& AddResponseParameters(Aws::String&& key, const char* value) { m_responseParameters.emplace(std::move(key), value); return *this; } /** *Response parameters (paths, query strings and headers) of the GatewayResponse * as a string-to-string map of key-value pairs.
*/ inline UpdateGatewayResponseResult& AddResponseParameters(const char* key, const char* value) { m_responseParameters.emplace(key, value); return *this; } /** *Response templates of the GatewayResponse as a string-to-string map of * key-value pairs.
*/ inline const Aws::MapResponse templates of the GatewayResponse as a string-to-string map of * key-value pairs.
*/ inline void SetResponseTemplates(const Aws::MapResponse templates of the GatewayResponse as a string-to-string map of * key-value pairs.
*/ inline void SetResponseTemplates(Aws::MapResponse templates of the GatewayResponse as a string-to-string map of * key-value pairs.
*/ inline UpdateGatewayResponseResult& WithResponseTemplates(const Aws::MapResponse templates of the GatewayResponse as a string-to-string map of * key-value pairs.
*/ inline UpdateGatewayResponseResult& WithResponseTemplates(Aws::MapResponse templates of the GatewayResponse as a string-to-string map of * key-value pairs.
*/ inline UpdateGatewayResponseResult& AddResponseTemplates(const Aws::String& key, const Aws::String& value) { m_responseTemplates.emplace(key, value); return *this; } /** *Response templates of the GatewayResponse as a string-to-string map of * key-value pairs.
*/ inline UpdateGatewayResponseResult& AddResponseTemplates(Aws::String&& key, const Aws::String& value) { m_responseTemplates.emplace(std::move(key), value); return *this; } /** *Response templates of the GatewayResponse as a string-to-string map of * key-value pairs.
*/ inline UpdateGatewayResponseResult& AddResponseTemplates(const Aws::String& key, Aws::String&& value) { m_responseTemplates.emplace(key, std::move(value)); return *this; } /** *Response templates of the GatewayResponse as a string-to-string map of * key-value pairs.
*/ inline UpdateGatewayResponseResult& AddResponseTemplates(Aws::String&& key, Aws::String&& value) { m_responseTemplates.emplace(std::move(key), std::move(value)); return *this; } /** *Response templates of the GatewayResponse as a string-to-string map of * key-value pairs.
*/ inline UpdateGatewayResponseResult& AddResponseTemplates(const char* key, Aws::String&& value) { m_responseTemplates.emplace(key, std::move(value)); return *this; } /** *Response templates of the GatewayResponse as a string-to-string map of * key-value pairs.
*/ inline UpdateGatewayResponseResult& AddResponseTemplates(Aws::String&& key, const char* value) { m_responseTemplates.emplace(std::move(key), value); return *this; } /** *Response templates of the GatewayResponse as a string-to-string map of * key-value pairs.
*/ inline UpdateGatewayResponseResult& AddResponseTemplates(const char* key, const char* value) { m_responseTemplates.emplace(key, value); return *this; } /** *A Boolean flag to indicate whether this GatewayResponse is the default
* gateway response (true
) or not (false
). A default
* gateway response is one generated by API Gateway without any customization by an
* API developer.
A Boolean flag to indicate whether this GatewayResponse is the default
* gateway response (true
) or not (false
). A default
* gateway response is one generated by API Gateway without any customization by an
* API developer.
A Boolean flag to indicate whether this GatewayResponse is the default
* gateway response (true
) or not (false
). A default
* gateway response is one generated by API Gateway without any customization by an
* API developer.