AWS SDK for C++  1.9.132
AWS SDK for C++
Public Member Functions | List of all members
Aws::APIGateway::Model::UpdateGatewayResponseResult Class Reference

#include <UpdateGatewayResponseResult.h>

Public Member Functions

 UpdateGatewayResponseResult ()
 
 UpdateGatewayResponseResult (const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
 
UpdateGatewayResponseResultoperator= (const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
 
const GatewayResponseTypeGetResponseType () const
 
void SetResponseType (const GatewayResponseType &value)
 
void SetResponseType (GatewayResponseType &&value)
 
UpdateGatewayResponseResultWithResponseType (const GatewayResponseType &value)
 
UpdateGatewayResponseResultWithResponseType (GatewayResponseType &&value)
 
const Aws::StringGetStatusCode () const
 
void SetStatusCode (const Aws::String &value)
 
void SetStatusCode (Aws::String &&value)
 
void SetStatusCode (const char *value)
 
UpdateGatewayResponseResultWithStatusCode (const Aws::String &value)
 
UpdateGatewayResponseResultWithStatusCode (Aws::String &&value)
 
UpdateGatewayResponseResultWithStatusCode (const char *value)
 
const Aws::Map< Aws::String, Aws::String > & GetResponseParameters () const
 
void SetResponseParameters (const Aws::Map< Aws::String, Aws::String > &value)
 
void SetResponseParameters (Aws::Map< Aws::String, Aws::String > &&value)
 
UpdateGatewayResponseResultWithResponseParameters (const Aws::Map< Aws::String, Aws::String > &value)
 
UpdateGatewayResponseResultWithResponseParameters (Aws::Map< Aws::String, Aws::String > &&value)
 
UpdateGatewayResponseResultAddResponseParameters (const Aws::String &key, const Aws::String &value)
 
UpdateGatewayResponseResultAddResponseParameters (Aws::String &&key, const Aws::String &value)
 
UpdateGatewayResponseResultAddResponseParameters (const Aws::String &key, Aws::String &&value)
 
UpdateGatewayResponseResultAddResponseParameters (Aws::String &&key, Aws::String &&value)
 
UpdateGatewayResponseResultAddResponseParameters (const char *key, Aws::String &&value)
 
UpdateGatewayResponseResultAddResponseParameters (Aws::String &&key, const char *value)
 
UpdateGatewayResponseResultAddResponseParameters (const char *key, const char *value)
 
const Aws::Map< Aws::String, Aws::String > & GetResponseTemplates () const
 
void SetResponseTemplates (const Aws::Map< Aws::String, Aws::String > &value)
 
void SetResponseTemplates (Aws::Map< Aws::String, Aws::String > &&value)
 
UpdateGatewayResponseResultWithResponseTemplates (const Aws::Map< Aws::String, Aws::String > &value)
 
UpdateGatewayResponseResultWithResponseTemplates (Aws::Map< Aws::String, Aws::String > &&value)
 
UpdateGatewayResponseResultAddResponseTemplates (const Aws::String &key, const Aws::String &value)
 
UpdateGatewayResponseResultAddResponseTemplates (Aws::String &&key, const Aws::String &value)
 
UpdateGatewayResponseResultAddResponseTemplates (const Aws::String &key, Aws::String &&value)
 
UpdateGatewayResponseResultAddResponseTemplates (Aws::String &&key, Aws::String &&value)
 
UpdateGatewayResponseResultAddResponseTemplates (const char *key, Aws::String &&value)
 
UpdateGatewayResponseResultAddResponseTemplates (Aws::String &&key, const char *value)
 
UpdateGatewayResponseResultAddResponseTemplates (const char *key, const char *value)
 
bool GetDefaultResponse () const
 
void SetDefaultResponse (bool value)
 
UpdateGatewayResponseResultWithDefaultResponse (bool value)
 

Detailed Description

A gateway response of a given response type and status code, with optional response parameters and mapping templates.

For more information about valid gateway response types, see Gateway Response Types Supported by API Gateway

Example: Get a Gateway Response of a given response type

Request
This example shows how to get a gateway response of the MISSING_AUTHENTICATION_TOKEN type.
GET
/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN HTTP/1.1
Host: beta-apigateway.us-east-1.amazonaws.com Content-Type: application/json
X-Amz-Date: 20170503T202516Z Authorization: AWS4-HMAC-SHA256
Credential={access-key-id}/20170503/us-east-1/apigateway/aws4_request,
SignedHeaders=content-type;host;x-amz-date,
Signature=1b52460e3159c1a26cff29093855d50ea141c1c5b937528fecaf60f51129697a
Cache-Control: no-cache Postman-Token: 3b2a1ce9-c848-2e26-2e2f-9c2caefbed45
The response type is specified as a URL path.
Response
The successful operation returns the 200 OK status code and a payload similar to the following:
{ "_links": {
"curies": { "href":
"http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-gatewayresponse-{rel}.html",
"name": "gatewayresponse", "templated": true }, "self": { "href":
"/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN" },
"gatewayresponse:delete": { "href":
"/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN" },
"gatewayresponse:put": { "href":
"/restapis/o81lxisefl/gatewayresponses/{response_type}", "templated": true },
"gatewayresponse:update": { "href":
"/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN" } },
"defaultResponse": false, "responseParameters": {
"gatewayresponse.header.x-request-path": "method.request.path.petId",
"gatewayresponse.header.Access-Control-Allow-Origin": "&apos;a.b.c&apos;",
"gatewayresponse.header.x-request-query": "method.request.querystring.q",
"gatewayresponse.header.x-request-header": "method.request.header.Accept" },
"responseTemplates": { "application/json": "{\n \"message":
$context.error.messageString,
"type": "$context.error.responseType",
"stage": "$context.stage",
"resourcePath": "$context.resourcePath",
"stageVariables.a": "$stageVariables.a",
"statusCode": "'404'"
}" }, "responseType": "MISSING_AUTHENTICATION_TOKEN", "statusCode": "404" }</code></pre> <p/> </div> </div> <div class="seeAlso"> <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/customize-gateway-responses.html">Customize Gateway Responses

See Also:


Definition at line 74 of file UpdateGatewayResponseResult.h.

Constructor & Destructor Documentation

◆ UpdateGatewayResponseResult() [1/2]

Aws::APIGateway::Model::UpdateGatewayResponseResult::UpdateGatewayResponseResult ( )

◆ UpdateGatewayResponseResult() [2/2]

Aws::APIGateway::Model::UpdateGatewayResponseResult::UpdateGatewayResponseResult ( const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &  result)

Member Function Documentation

◆ AddResponseParameters() [1/7]

UpdateGatewayResponseResult& Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseParameters ( Aws::String &&  key,
Aws::String &&  value 
)
inline

Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

Definition at line 196 of file UpdateGatewayResponseResult.h.

◆ AddResponseParameters() [2/7]

UpdateGatewayResponseResult& Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseParameters ( Aws::String &&  key,
const Aws::String value 
)
inline

Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

Definition at line 184 of file UpdateGatewayResponseResult.h.

◆ AddResponseParameters() [3/7]

UpdateGatewayResponseResult& Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseParameters ( Aws::String &&  key,
const char *  value 
)
inline

Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

Definition at line 208 of file UpdateGatewayResponseResult.h.

◆ AddResponseParameters() [4/7]

UpdateGatewayResponseResult& Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseParameters ( const Aws::String key,
Aws::String &&  value 
)
inline

Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

Definition at line 190 of file UpdateGatewayResponseResult.h.

◆ AddResponseParameters() [5/7]

UpdateGatewayResponseResult& Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseParameters ( const Aws::String key,
const Aws::String value 
)
inline

Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

Definition at line 178 of file UpdateGatewayResponseResult.h.

◆ AddResponseParameters() [6/7]

UpdateGatewayResponseResult& Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseParameters ( const char *  key,
Aws::String &&  value 
)
inline

Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

Definition at line 202 of file UpdateGatewayResponseResult.h.

◆ AddResponseParameters() [7/7]

UpdateGatewayResponseResult& Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseParameters ( const char *  key,
const char *  value 
)
inline

Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

Definition at line 214 of file UpdateGatewayResponseResult.h.

◆ AddResponseTemplates() [1/7]

UpdateGatewayResponseResult& Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseTemplates ( Aws::String &&  key,
Aws::String &&  value 
)
inline

Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

Definition at line 269 of file UpdateGatewayResponseResult.h.

◆ AddResponseTemplates() [2/7]

UpdateGatewayResponseResult& Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseTemplates ( Aws::String &&  key,
const Aws::String value 
)
inline

Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

Definition at line 257 of file UpdateGatewayResponseResult.h.

◆ AddResponseTemplates() [3/7]

UpdateGatewayResponseResult& Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseTemplates ( Aws::String &&  key,
const char *  value 
)
inline

Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

Definition at line 281 of file UpdateGatewayResponseResult.h.

◆ AddResponseTemplates() [4/7]

UpdateGatewayResponseResult& Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseTemplates ( const Aws::String key,
Aws::String &&  value 
)
inline

Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

Definition at line 263 of file UpdateGatewayResponseResult.h.

◆ AddResponseTemplates() [5/7]

UpdateGatewayResponseResult& Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseTemplates ( const Aws::String key,
const Aws::String value 
)
inline

Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

Definition at line 251 of file UpdateGatewayResponseResult.h.

◆ AddResponseTemplates() [6/7]

UpdateGatewayResponseResult& Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseTemplates ( const char *  key,
Aws::String &&  value 
)
inline

Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

Definition at line 275 of file UpdateGatewayResponseResult.h.

◆ AddResponseTemplates() [7/7]

UpdateGatewayResponseResult& Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseTemplates ( const char *  key,
const char *  value 
)
inline

Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

Definition at line 287 of file UpdateGatewayResponseResult.h.

◆ GetDefaultResponse()

bool Aws::APIGateway::Model::UpdateGatewayResponseResult::GetDefaultResponse ( ) const
inline

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.

Definition at line 296 of file UpdateGatewayResponseResult.h.

◆ GetResponseParameters()

const Aws::Map<Aws::String, Aws::String>& Aws::APIGateway::Model::UpdateGatewayResponseResult::GetResponseParameters ( ) const
inline

Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

Definition at line 148 of file UpdateGatewayResponseResult.h.

◆ GetResponseTemplates()

const Aws::Map<Aws::String, Aws::String>& Aws::APIGateway::Model::UpdateGatewayResponseResult::GetResponseTemplates ( ) const
inline

Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

Definition at line 221 of file UpdateGatewayResponseResult.h.

◆ GetResponseType()

const GatewayResponseType& Aws::APIGateway::Model::UpdateGatewayResponseResult::GetResponseType ( ) const
inline

The response type of the associated GatewayResponse.

Definition at line 85 of file UpdateGatewayResponseResult.h.

◆ GetStatusCode()

const Aws::String& Aws::APIGateway::Model::UpdateGatewayResponseResult::GetStatusCode ( ) const
inline

The HTTP status code for this GatewayResponse.

Definition at line 111 of file UpdateGatewayResponseResult.h.

◆ operator=()

UpdateGatewayResponseResult& Aws::APIGateway::Model::UpdateGatewayResponseResult::operator= ( const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &  result)

◆ SetDefaultResponse()

void Aws::APIGateway::Model::UpdateGatewayResponseResult::SetDefaultResponse ( bool  value)
inline

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.

Definition at line 304 of file UpdateGatewayResponseResult.h.

◆ SetResponseParameters() [1/2]

void Aws::APIGateway::Model::UpdateGatewayResponseResult::SetResponseParameters ( Aws::Map< Aws::String, Aws::String > &&  value)
inline

Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

Definition at line 160 of file UpdateGatewayResponseResult.h.

◆ SetResponseParameters() [2/2]

void Aws::APIGateway::Model::UpdateGatewayResponseResult::SetResponseParameters ( const Aws::Map< Aws::String, Aws::String > &  value)
inline

Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

Definition at line 154 of file UpdateGatewayResponseResult.h.

◆ SetResponseTemplates() [1/2]

void Aws::APIGateway::Model::UpdateGatewayResponseResult::SetResponseTemplates ( Aws::Map< Aws::String, Aws::String > &&  value)
inline

Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

Definition at line 233 of file UpdateGatewayResponseResult.h.

◆ SetResponseTemplates() [2/2]

void Aws::APIGateway::Model::UpdateGatewayResponseResult::SetResponseTemplates ( const Aws::Map< Aws::String, Aws::String > &  value)
inline

Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

Definition at line 227 of file UpdateGatewayResponseResult.h.

◆ SetResponseType() [1/2]

void Aws::APIGateway::Model::UpdateGatewayResponseResult::SetResponseType ( const GatewayResponseType value)
inline

The response type of the associated GatewayResponse.

Definition at line 90 of file UpdateGatewayResponseResult.h.

◆ SetResponseType() [2/2]

void Aws::APIGateway::Model::UpdateGatewayResponseResult::SetResponseType ( GatewayResponseType &&  value)
inline

The response type of the associated GatewayResponse.

Definition at line 95 of file UpdateGatewayResponseResult.h.

◆ SetStatusCode() [1/3]

void Aws::APIGateway::Model::UpdateGatewayResponseResult::SetStatusCode ( Aws::String &&  value)
inline

The HTTP status code for this GatewayResponse.

Definition at line 121 of file UpdateGatewayResponseResult.h.

◆ SetStatusCode() [2/3]

void Aws::APIGateway::Model::UpdateGatewayResponseResult::SetStatusCode ( const Aws::String value)
inline

The HTTP status code for this GatewayResponse.

Definition at line 116 of file UpdateGatewayResponseResult.h.

◆ SetStatusCode() [3/3]

void Aws::APIGateway::Model::UpdateGatewayResponseResult::SetStatusCode ( const char *  value)
inline

The HTTP status code for this GatewayResponse.

Definition at line 126 of file UpdateGatewayResponseResult.h.

◆ WithDefaultResponse()

UpdateGatewayResponseResult& Aws::APIGateway::Model::UpdateGatewayResponseResult::WithDefaultResponse ( bool  value)
inline

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.

Definition at line 312 of file UpdateGatewayResponseResult.h.

◆ WithResponseParameters() [1/2]

UpdateGatewayResponseResult& Aws::APIGateway::Model::UpdateGatewayResponseResult::WithResponseParameters ( Aws::Map< Aws::String, Aws::String > &&  value)
inline

Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

Definition at line 172 of file UpdateGatewayResponseResult.h.

◆ WithResponseParameters() [2/2]

UpdateGatewayResponseResult& Aws::APIGateway::Model::UpdateGatewayResponseResult::WithResponseParameters ( const Aws::Map< Aws::String, Aws::String > &  value)
inline

Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

Definition at line 166 of file UpdateGatewayResponseResult.h.

◆ WithResponseTemplates() [1/2]

UpdateGatewayResponseResult& Aws::APIGateway::Model::UpdateGatewayResponseResult::WithResponseTemplates ( Aws::Map< Aws::String, Aws::String > &&  value)
inline

Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

Definition at line 245 of file UpdateGatewayResponseResult.h.

◆ WithResponseTemplates() [2/2]

UpdateGatewayResponseResult& Aws::APIGateway::Model::UpdateGatewayResponseResult::WithResponseTemplates ( const Aws::Map< Aws::String, Aws::String > &  value)
inline

Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

Definition at line 239 of file UpdateGatewayResponseResult.h.

◆ WithResponseType() [1/2]

UpdateGatewayResponseResult& Aws::APIGateway::Model::UpdateGatewayResponseResult::WithResponseType ( const GatewayResponseType value)
inline

The response type of the associated GatewayResponse.

Definition at line 100 of file UpdateGatewayResponseResult.h.

◆ WithResponseType() [2/2]

UpdateGatewayResponseResult& Aws::APIGateway::Model::UpdateGatewayResponseResult::WithResponseType ( GatewayResponseType &&  value)
inline

The response type of the associated GatewayResponse.

Definition at line 105 of file UpdateGatewayResponseResult.h.

◆ WithStatusCode() [1/3]

UpdateGatewayResponseResult& Aws::APIGateway::Model::UpdateGatewayResponseResult::WithStatusCode ( Aws::String &&  value)
inline

The HTTP status code for this GatewayResponse.

Definition at line 136 of file UpdateGatewayResponseResult.h.

◆ WithStatusCode() [2/3]

UpdateGatewayResponseResult& Aws::APIGateway::Model::UpdateGatewayResponseResult::WithStatusCode ( const Aws::String value)
inline

The HTTP status code for this GatewayResponse.

Definition at line 131 of file UpdateGatewayResponseResult.h.

◆ WithStatusCode() [3/3]

UpdateGatewayResponseResult& Aws::APIGateway::Model::UpdateGatewayResponseResult::WithStatusCode ( const char *  value)
inline

The HTTP status code for this GatewayResponse.

Definition at line 141 of file UpdateGatewayResponseResult.h.


The documentation for this class was generated from the following file: