AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GatewayResponse.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/model/GatewayResponseType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace APIGateway
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_APIGATEWAY_API GatewayResponse();
38 AWS_APIGATEWAY_API GatewayResponse(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const GatewayResponseType& GetResponseType() const{ return m_responseType; }
48 inline bool ResponseTypeHasBeenSet() const { return m_responseTypeHasBeenSet; }
49 inline void SetResponseType(const GatewayResponseType& value) { m_responseTypeHasBeenSet = true; m_responseType = value; }
50 inline void SetResponseType(GatewayResponseType&& value) { m_responseTypeHasBeenSet = true; m_responseType = std::move(value); }
51 inline GatewayResponse& WithResponseType(const GatewayResponseType& value) { SetResponseType(value); return *this;}
52 inline GatewayResponse& WithResponseType(GatewayResponseType&& value) { SetResponseType(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
60 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
61 inline void SetStatusCode(const Aws::String& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
62 inline void SetStatusCode(Aws::String&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
63 inline void SetStatusCode(const char* value) { m_statusCodeHasBeenSet = true; m_statusCode.assign(value); }
64 inline GatewayResponse& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
65 inline GatewayResponse& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;}
66 inline GatewayResponse& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
68
70
74 inline const Aws::Map<Aws::String, Aws::String>& GetResponseParameters() const{ return m_responseParameters; }
75 inline bool ResponseParametersHasBeenSet() const { return m_responseParametersHasBeenSet; }
76 inline void SetResponseParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_responseParametersHasBeenSet = true; m_responseParameters = value; }
77 inline void SetResponseParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_responseParametersHasBeenSet = true; m_responseParameters = std::move(value); }
80 inline GatewayResponse& AddResponseParameters(const Aws::String& key, const Aws::String& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this; }
81 inline GatewayResponse& AddResponseParameters(Aws::String&& key, const Aws::String& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), value); return *this; }
82 inline GatewayResponse& AddResponseParameters(const Aws::String& key, Aws::String&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, std::move(value)); return *this; }
83 inline GatewayResponse& AddResponseParameters(Aws::String&& key, Aws::String&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), std::move(value)); return *this; }
84 inline GatewayResponse& AddResponseParameters(const char* key, Aws::String&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, std::move(value)); return *this; }
85 inline GatewayResponse& AddResponseParameters(Aws::String&& key, const char* value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), value); return *this; }
86 inline GatewayResponse& AddResponseParameters(const char* key, const char* value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this; }
88
90
94 inline const Aws::Map<Aws::String, Aws::String>& GetResponseTemplates() const{ return m_responseTemplates; }
95 inline bool ResponseTemplatesHasBeenSet() const { return m_responseTemplatesHasBeenSet; }
96 inline void SetResponseTemplates(const Aws::Map<Aws::String, Aws::String>& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates = value; }
97 inline void SetResponseTemplates(Aws::Map<Aws::String, Aws::String>&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates = std::move(value); }
100 inline GatewayResponse& AddResponseTemplates(const Aws::String& key, const Aws::String& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, value); return *this; }
101 inline GatewayResponse& AddResponseTemplates(Aws::String&& key, const Aws::String& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(std::move(key), value); return *this; }
102 inline GatewayResponse& AddResponseTemplates(const Aws::String& key, Aws::String&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, std::move(value)); return *this; }
103 inline GatewayResponse& AddResponseTemplates(Aws::String&& key, Aws::String&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(std::move(key), std::move(value)); return *this; }
104 inline GatewayResponse& AddResponseTemplates(const char* key, Aws::String&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, std::move(value)); return *this; }
105 inline GatewayResponse& AddResponseTemplates(Aws::String&& key, const char* value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(std::move(key), value); return *this; }
106 inline GatewayResponse& AddResponseTemplates(const char* key, const char* value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, value); return *this; }
108
110
116 inline bool GetDefaultResponse() const{ return m_defaultResponse; }
117 inline bool DefaultResponseHasBeenSet() const { return m_defaultResponseHasBeenSet; }
118 inline void SetDefaultResponse(bool value) { m_defaultResponseHasBeenSet = true; m_defaultResponse = value; }
119 inline GatewayResponse& WithDefaultResponse(bool value) { SetDefaultResponse(value); return *this;}
121
123
124 inline const Aws::String& GetRequestId() const{ return m_requestId; }
125 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
126 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
127 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
128 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
129 inline GatewayResponse& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
130 inline GatewayResponse& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
131 inline GatewayResponse& WithRequestId(const char* value) { SetRequestId(value); return *this;}
133 private:
134
135 GatewayResponseType m_responseType;
136 bool m_responseTypeHasBeenSet = false;
137
138 Aws::String m_statusCode;
139 bool m_statusCodeHasBeenSet = false;
140
141 Aws::Map<Aws::String, Aws::String> m_responseParameters;
142 bool m_responseParametersHasBeenSet = false;
143
144 Aws::Map<Aws::String, Aws::String> m_responseTemplates;
145 bool m_responseTemplatesHasBeenSet = false;
146
147 bool m_defaultResponse;
148 bool m_defaultResponseHasBeenSet = false;
149
150 Aws::String m_requestId;
151 bool m_requestIdHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace APIGateway
156} // namespace Aws
GatewayResponse & AddResponseTemplates(const char *key, Aws::String &&value)
GatewayResponse & AddResponseParameters(const char *key, Aws::String &&value)
GatewayResponse & WithRequestId(Aws::String &&value)
GatewayResponse & AddResponseParameters(const char *key, const char *value)
GatewayResponse & WithStatusCode(const Aws::String &value)
GatewayResponse & AddResponseTemplates(const char *key, const char *value)
void SetResponseParameters(const Aws::Map< Aws::String, Aws::String > &value)
void SetStatusCode(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetResponseParameters() const
void SetResponseTemplates(Aws::Map< Aws::String, Aws::String > &&value)
GatewayResponse & WithRequestId(const Aws::String &value)
GatewayResponse & AddResponseParameters(const Aws::String &key, const Aws::String &value)
GatewayResponse & WithResponseParameters(const Aws::Map< Aws::String, Aws::String > &value)
const GatewayResponseType & GetResponseType() const
GatewayResponse & AddResponseParameters(Aws::String &&key, const char *value)
GatewayResponse & AddResponseParameters(Aws::String &&key, const Aws::String &value)
GatewayResponse & WithDefaultResponse(bool value)
GatewayResponse & WithResponseTemplates(Aws::Map< Aws::String, Aws::String > &&value)
GatewayResponse & AddResponseTemplates(const Aws::String &key, Aws::String &&value)
GatewayResponse & WithResponseParameters(Aws::Map< Aws::String, Aws::String > &&value)
void SetResponseType(GatewayResponseType &&value)
GatewayResponse & AddResponseTemplates(Aws::String &&key, const char *value)
const Aws::String & GetStatusCode() const
void SetStatusCode(const Aws::String &value)
void SetResponseTemplates(const Aws::Map< Aws::String, Aws::String > &value)
GatewayResponse & WithResponseType(const GatewayResponseType &value)
GatewayResponse & AddResponseTemplates(const Aws::String &key, const Aws::String &value)
GatewayResponse & WithResponseTemplates(const Aws::Map< Aws::String, Aws::String > &value)
GatewayResponse & WithResponseType(GatewayResponseType &&value)
AWS_APIGATEWAY_API GatewayResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
GatewayResponse & AddResponseTemplates(Aws::String &&key, Aws::String &&value)
GatewayResponse & WithStatusCode(Aws::String &&value)
void SetResponseParameters(Aws::Map< Aws::String, Aws::String > &&value)
void SetRequestId(const Aws::String &value)
GatewayResponse & AddResponseTemplates(Aws::String &&key, const Aws::String &value)
GatewayResponse & WithRequestId(const char *value)
void SetResponseType(const GatewayResponseType &value)
const Aws::String & GetRequestId() const
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
GatewayResponse & AddResponseParameters(const Aws::String &key, Aws::String &&value)
GatewayResponse & WithStatusCode(const char *value)
AWS_APIGATEWAY_API GatewayResponse(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetResponseTemplates() const
GatewayResponse & AddResponseParameters(Aws::String &&key, Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue