AWS SDK for C++  1.9.18
AWS SDK for C++
GatewayResponse.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace APIGateway
24 {
25 namespace Model
26 {
27 
74  {
75  public:
80 
81 
89  inline const GatewayResponseType& GetResponseType() const{ return m_responseType; }
90 
98  inline bool ResponseTypeHasBeenSet() const { return m_responseTypeHasBeenSet; }
99 
107  inline void SetResponseType(const GatewayResponseType& value) { m_responseTypeHasBeenSet = true; m_responseType = value; }
108 
116  inline void SetResponseType(GatewayResponseType&& value) { m_responseTypeHasBeenSet = true; m_responseType = std::move(value); }
117 
125  inline GatewayResponse& WithResponseType(const GatewayResponseType& value) { SetResponseType(value); return *this;}
126 
134  inline GatewayResponse& WithResponseType(GatewayResponseType&& value) { SetResponseType(std::move(value)); return *this;}
135 
136 
140  inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
141 
145  inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
146 
150  inline void SetStatusCode(const Aws::String& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
151 
155  inline void SetStatusCode(Aws::String&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
156 
160  inline void SetStatusCode(const char* value) { m_statusCodeHasBeenSet = true; m_statusCode.assign(value); }
161 
165  inline GatewayResponse& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
166 
170  inline GatewayResponse& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;}
171 
175  inline GatewayResponse& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
176 
177 
182  inline const Aws::Map<Aws::String, Aws::String>& GetResponseParameters() const{ return m_responseParameters; }
183 
188  inline bool ResponseParametersHasBeenSet() const { return m_responseParametersHasBeenSet; }
189 
194  inline void SetResponseParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_responseParametersHasBeenSet = true; m_responseParameters = value; }
195 
200  inline void SetResponseParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_responseParametersHasBeenSet = true; m_responseParameters = std::move(value); }
201 
206  inline GatewayResponse& WithResponseParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetResponseParameters(value); return *this;}
207 
212  inline GatewayResponse& WithResponseParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetResponseParameters(std::move(value)); return *this;}
213 
218  inline GatewayResponse& AddResponseParameters(const Aws::String& key, const Aws::String& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this; }
219 
224  inline GatewayResponse& AddResponseParameters(Aws::String&& key, const Aws::String& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), value); return *this; }
225 
230  inline GatewayResponse& AddResponseParameters(const Aws::String& key, Aws::String&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, std::move(value)); return *this; }
231 
236  inline GatewayResponse& AddResponseParameters(Aws::String&& key, Aws::String&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), std::move(value)); return *this; }
237 
242  inline GatewayResponse& AddResponseParameters(const char* key, Aws::String&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, std::move(value)); return *this; }
243 
248  inline GatewayResponse& AddResponseParameters(Aws::String&& key, const char* value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), value); return *this; }
249 
254  inline GatewayResponse& AddResponseParameters(const char* key, const char* value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this; }
255 
256 
261  inline const Aws::Map<Aws::String, Aws::String>& GetResponseTemplates() const{ return m_responseTemplates; }
262 
267  inline bool ResponseTemplatesHasBeenSet() const { return m_responseTemplatesHasBeenSet; }
268 
273  inline void SetResponseTemplates(const Aws::Map<Aws::String, Aws::String>& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates = value; }
274 
279  inline void SetResponseTemplates(Aws::Map<Aws::String, Aws::String>&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates = std::move(value); }
280 
285  inline GatewayResponse& WithResponseTemplates(const Aws::Map<Aws::String, Aws::String>& value) { SetResponseTemplates(value); return *this;}
286 
291  inline GatewayResponse& WithResponseTemplates(Aws::Map<Aws::String, Aws::String>&& value) { SetResponseTemplates(std::move(value)); return *this;}
292 
297  inline GatewayResponse& AddResponseTemplates(const Aws::String& key, const Aws::String& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, value); return *this; }
298 
303  inline GatewayResponse& AddResponseTemplates(Aws::String&& key, const Aws::String& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(std::move(key), value); return *this; }
304 
309  inline GatewayResponse& AddResponseTemplates(const Aws::String& key, Aws::String&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, std::move(value)); return *this; }
310 
315  inline GatewayResponse& AddResponseTemplates(Aws::String&& key, Aws::String&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(std::move(key), std::move(value)); return *this; }
316 
321  inline GatewayResponse& AddResponseTemplates(const char* key, Aws::String&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, std::move(value)); return *this; }
322 
327  inline GatewayResponse& AddResponseTemplates(Aws::String&& key, const char* value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(std::move(key), value); return *this; }
328 
333  inline GatewayResponse& AddResponseTemplates(const char* key, const char* value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, value); return *this; }
334 
335 
342  inline bool GetDefaultResponse() const{ return m_defaultResponse; }
343 
350  inline bool DefaultResponseHasBeenSet() const { return m_defaultResponseHasBeenSet; }
351 
358  inline void SetDefaultResponse(bool value) { m_defaultResponseHasBeenSet = true; m_defaultResponse = value; }
359 
366  inline GatewayResponse& WithDefaultResponse(bool value) { SetDefaultResponse(value); return *this;}
367 
368  private:
369 
370  GatewayResponseType m_responseType;
371  bool m_responseTypeHasBeenSet;
372 
373  Aws::String m_statusCode;
374  bool m_statusCodeHasBeenSet;
375 
376  Aws::Map<Aws::String, Aws::String> m_responseParameters;
377  bool m_responseParametersHasBeenSet;
378 
379  Aws::Map<Aws::String, Aws::String> m_responseTemplates;
380  bool m_responseTemplatesHasBeenSet;
381 
382  bool m_defaultResponse;
383  bool m_defaultResponseHasBeenSet;
384  };
385 
386 } // namespace Model
387 } // namespace APIGateway
388 } // namespace Aws
GatewayResponseType.h
Aws::APIGateway::Model::GatewayResponse::StatusCodeHasBeenSet
bool StatusCodeHasBeenSet() const
Definition: GatewayResponse.h:145
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::GatewayResponse::GatewayResponse
GatewayResponse()
Aws::APIGateway::Model::GatewayResponse::WithResponseType
GatewayResponse & WithResponseType(const GatewayResponseType &value)
Definition: GatewayResponse.h:125
Aws::APIGateway::Model::GatewayResponse::SetStatusCode
void SetStatusCode(const Aws::String &value)
Definition: GatewayResponse.h:150
Aws::APIGateway::Model::GatewayResponse
Definition: GatewayResponse.h:74
Aws::APIGateway::Model::GatewayResponse::AddResponseTemplates
GatewayResponse & AddResponseTemplates(Aws::String &&key, const char *value)
Definition: GatewayResponse.h:327
Aws::APIGateway::Model::GatewayResponse::ResponseTemplatesHasBeenSet
bool ResponseTemplatesHasBeenSet() const
Definition: GatewayResponse.h:267
Aws::APIGateway::Model::GatewayResponse::AddResponseParameters
GatewayResponse & AddResponseParameters(Aws::String &&key, Aws::String &&value)
Definition: GatewayResponse.h:236
Aws::APIGateway::Model::GatewayResponse::SetResponseParameters
void SetResponseParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GatewayResponse.h:194
Aws::APIGateway::Model::GatewayResponse::AddResponseParameters
GatewayResponse & AddResponseParameters(Aws::String &&key, const Aws::String &value)
Definition: GatewayResponse.h:224
Aws::APIGateway::Model::GatewayResponse::AddResponseTemplates
GatewayResponse & AddResponseTemplates(Aws::String &&key, Aws::String &&value)
Definition: GatewayResponse.h:315
APIGateway_EXPORTS.h
Aws::APIGateway::Model::GatewayResponse::SetResponseTemplates
void SetResponseTemplates(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GatewayResponse.h:273
Aws::APIGateway::Model::GatewayResponse::WithStatusCode
GatewayResponse & WithStatusCode(const Aws::String &value)
Definition: GatewayResponse.h:165
Aws::APIGateway::Model::GatewayResponse::GetResponseParameters
const Aws::Map< Aws::String, Aws::String > & GetResponseParameters() const
Definition: GatewayResponse.h:182
Aws::APIGateway::Model::GatewayResponse::AddResponseTemplates
GatewayResponse & AddResponseTemplates(const Aws::String &key, Aws::String &&value)
Definition: GatewayResponse.h:309
Aws::APIGateway::Model::GatewayResponse::SetStatusCode
void SetStatusCode(const char *value)
Definition: GatewayResponse.h:160
Aws::APIGateway::Model::GatewayResponse::WithResponseParameters
GatewayResponse & WithResponseParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GatewayResponse.h:212
Aws::APIGateway::Model::GatewayResponse::AddResponseParameters
GatewayResponse & AddResponseParameters(const Aws::String &key, Aws::String &&value)
Definition: GatewayResponse.h:230
Aws::APIGateway::Model::GatewayResponse::GetDefaultResponse
bool GetDefaultResponse() const
Definition: GatewayResponse.h:342
Aws::APIGateway::Model::GatewayResponse::WithStatusCode
GatewayResponse & WithStatusCode(Aws::String &&value)
Definition: GatewayResponse.h:170
Aws::APIGateway::Model::GatewayResponse::WithResponseType
GatewayResponse & WithResponseType(GatewayResponseType &&value)
Definition: GatewayResponse.h:134
Aws::APIGateway::Model::GatewayResponse::SetDefaultResponse
void SetDefaultResponse(bool value)
Definition: GatewayResponse.h:358
Aws::APIGateway::Model::GatewayResponse::WithStatusCode
GatewayResponse & WithStatusCode(const char *value)
Definition: GatewayResponse.h:175
Aws::APIGateway::Model::GatewayResponse::SetResponseType
void SetResponseType(const GatewayResponseType &value)
Definition: GatewayResponse.h:107
Aws::APIGateway::Model::GatewayResponse::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::APIGateway::Model::GatewayResponse::WithResponseTemplates
GatewayResponse & WithResponseTemplates(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GatewayResponse.h:285
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::APIGateway::Model::GatewayResponse::GatewayResponse
GatewayResponse(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::GatewayResponse::AddResponseTemplates
GatewayResponse & AddResponseTemplates(const Aws::String &key, const Aws::String &value)
Definition: GatewayResponse.h:297
Aws::APIGateway::Model::GatewayResponse::AddResponseTemplates
GatewayResponse & AddResponseTemplates(const char *key, const char *value)
Definition: GatewayResponse.h:333
Aws::APIGateway::Model::GatewayResponse::AddResponseParameters
GatewayResponse & AddResponseParameters(Aws::String &&key, const char *value)
Definition: GatewayResponse.h:248
Aws::APIGateway::Model::GatewayResponseType
GatewayResponseType
Definition: GatewayResponseType.h:17
Aws::APIGateway::Model::GatewayResponse::SetResponseTemplates
void SetResponseTemplates(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GatewayResponse.h:279
Aws::APIGateway::Model::GatewayResponse::WithResponseTemplates
GatewayResponse & WithResponseTemplates(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GatewayResponse.h:291
Aws::APIGateway::Model::GatewayResponse::AddResponseTemplates
GatewayResponse & AddResponseTemplates(Aws::String &&key, const Aws::String &value)
Definition: GatewayResponse.h:303
Aws::APIGateway::Model::GatewayResponse::WithResponseParameters
GatewayResponse & WithResponseParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GatewayResponse.h:206
Aws::APIGateway::Model::GatewayResponse::SetStatusCode
void SetStatusCode(Aws::String &&value)
Definition: GatewayResponse.h:155
Aws::APIGateway::Model::GatewayResponse::AddResponseTemplates
GatewayResponse & AddResponseTemplates(const char *key, Aws::String &&value)
Definition: GatewayResponse.h:321
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::GatewayResponse::AddResponseParameters
GatewayResponse & AddResponseParameters(const char *key, const char *value)
Definition: GatewayResponse.h:254
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::GatewayResponse::AddResponseParameters
GatewayResponse & AddResponseParameters(const char *key, Aws::String &&value)
Definition: GatewayResponse.h:242
Aws::APIGateway::Model::GatewayResponse::AddResponseParameters
GatewayResponse & AddResponseParameters(const Aws::String &key, const Aws::String &value)
Definition: GatewayResponse.h:218
Aws::APIGateway::Model::GatewayResponse::SetResponseParameters
void SetResponseParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GatewayResponse.h:200
Aws::APIGateway::Model::GatewayResponse::ResponseTypeHasBeenSet
bool ResponseTypeHasBeenSet() const
Definition: GatewayResponse.h:98
Aws::APIGateway::Model::GatewayResponse::WithDefaultResponse
GatewayResponse & WithDefaultResponse(bool value)
Definition: GatewayResponse.h:366
Aws::APIGateway::Model::GatewayResponse::ResponseParametersHasBeenSet
bool ResponseParametersHasBeenSet() const
Definition: GatewayResponse.h:188
Aws::APIGateway::Model::GatewayResponse::GetResponseType
const GatewayResponseType & GetResponseType() const
Definition: GatewayResponse.h:89
Aws::APIGateway::Model::GatewayResponse::GetStatusCode
const Aws::String & GetStatusCode() const
Definition: GatewayResponse.h:140
Aws::APIGateway::Model::GatewayResponse::operator=
GatewayResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
AWSMap.h
Aws::APIGateway::Model::GatewayResponse::SetResponseType
void SetResponseType(GatewayResponseType &&value)
Definition: GatewayResponse.h:116
Aws::APIGateway::Model::GatewayResponse::DefaultResponseHasBeenSet
bool DefaultResponseHasBeenSet() const
Definition: GatewayResponse.h:350
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::APIGateway::Model::GatewayResponse::GetResponseTemplates
const Aws::Map< Aws::String, Aws::String > & GetResponseTemplates() const
Definition: GatewayResponse.h:261