AWS SDK for C++  1.9.154
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 
85  inline const GatewayResponseType& GetResponseType() const{ return m_responseType; }
86 
90  inline bool ResponseTypeHasBeenSet() const { return m_responseTypeHasBeenSet; }
91 
95  inline void SetResponseType(const GatewayResponseType& value) { m_responseTypeHasBeenSet = true; m_responseType = value; }
96 
100  inline void SetResponseType(GatewayResponseType&& value) { m_responseTypeHasBeenSet = true; m_responseType = std::move(value); }
101 
105  inline GatewayResponse& WithResponseType(const GatewayResponseType& value) { SetResponseType(value); return *this;}
106 
110  inline GatewayResponse& WithResponseType(GatewayResponseType&& value) { SetResponseType(std::move(value)); return *this;}
111 
112 
116  inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
117 
121  inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
122 
126  inline void SetStatusCode(const Aws::String& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
127 
131  inline void SetStatusCode(Aws::String&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
132 
136  inline void SetStatusCode(const char* value) { m_statusCodeHasBeenSet = true; m_statusCode.assign(value); }
137 
141  inline GatewayResponse& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
142 
146  inline GatewayResponse& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;}
147 
151  inline GatewayResponse& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
152 
153 
158  inline const Aws::Map<Aws::String, Aws::String>& GetResponseParameters() const{ return m_responseParameters; }
159 
164  inline bool ResponseParametersHasBeenSet() const { return m_responseParametersHasBeenSet; }
165 
170  inline void SetResponseParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_responseParametersHasBeenSet = true; m_responseParameters = value; }
171 
176  inline void SetResponseParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_responseParametersHasBeenSet = true; m_responseParameters = std::move(value); }
177 
182  inline GatewayResponse& WithResponseParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetResponseParameters(value); return *this;}
183 
188  inline GatewayResponse& WithResponseParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetResponseParameters(std::move(value)); return *this;}
189 
194  inline GatewayResponse& AddResponseParameters(const Aws::String& key, const Aws::String& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this; }
195 
200  inline GatewayResponse& AddResponseParameters(Aws::String&& key, const Aws::String& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), value); return *this; }
201 
206  inline GatewayResponse& AddResponseParameters(const Aws::String& key, Aws::String&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, std::move(value)); return *this; }
207 
212  inline GatewayResponse& AddResponseParameters(Aws::String&& key, Aws::String&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), std::move(value)); return *this; }
213 
218  inline GatewayResponse& AddResponseParameters(const char* key, Aws::String&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, std::move(value)); return *this; }
219 
224  inline GatewayResponse& AddResponseParameters(Aws::String&& key, const char* value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), value); return *this; }
225 
230  inline GatewayResponse& AddResponseParameters(const char* key, const char* value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this; }
231 
232 
237  inline const Aws::Map<Aws::String, Aws::String>& GetResponseTemplates() const{ return m_responseTemplates; }
238 
243  inline bool ResponseTemplatesHasBeenSet() const { return m_responseTemplatesHasBeenSet; }
244 
249  inline void SetResponseTemplates(const Aws::Map<Aws::String, Aws::String>& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates = value; }
250 
255  inline void SetResponseTemplates(Aws::Map<Aws::String, Aws::String>&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates = std::move(value); }
256 
261  inline GatewayResponse& WithResponseTemplates(const Aws::Map<Aws::String, Aws::String>& value) { SetResponseTemplates(value); return *this;}
262 
267  inline GatewayResponse& WithResponseTemplates(Aws::Map<Aws::String, Aws::String>&& value) { SetResponseTemplates(std::move(value)); return *this;}
268 
273  inline GatewayResponse& AddResponseTemplates(const Aws::String& key, const Aws::String& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, value); return *this; }
274 
279  inline GatewayResponse& AddResponseTemplates(Aws::String&& key, const Aws::String& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(std::move(key), value); return *this; }
280 
285  inline GatewayResponse& AddResponseTemplates(const Aws::String& key, Aws::String&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, std::move(value)); return *this; }
286 
291  inline GatewayResponse& AddResponseTemplates(Aws::String&& key, Aws::String&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(std::move(key), std::move(value)); return *this; }
292 
297  inline GatewayResponse& AddResponseTemplates(const char* key, Aws::String&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, std::move(value)); return *this; }
298 
303  inline GatewayResponse& AddResponseTemplates(Aws::String&& key, const char* value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(std::move(key), value); return *this; }
304 
309  inline GatewayResponse& AddResponseTemplates(const char* key, const char* value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, value); return *this; }
310 
311 
318  inline bool GetDefaultResponse() const{ return m_defaultResponse; }
319 
326  inline bool DefaultResponseHasBeenSet() const { return m_defaultResponseHasBeenSet; }
327 
334  inline void SetDefaultResponse(bool value) { m_defaultResponseHasBeenSet = true; m_defaultResponse = value; }
335 
342  inline GatewayResponse& WithDefaultResponse(bool value) { SetDefaultResponse(value); return *this;}
343 
344  private:
345 
346  GatewayResponseType m_responseType;
347  bool m_responseTypeHasBeenSet;
348 
349  Aws::String m_statusCode;
350  bool m_statusCodeHasBeenSet;
351 
352  Aws::Map<Aws::String, Aws::String> m_responseParameters;
353  bool m_responseParametersHasBeenSet;
354 
355  Aws::Map<Aws::String, Aws::String> m_responseTemplates;
356  bool m_responseTemplatesHasBeenSet;
357 
358  bool m_defaultResponse;
359  bool m_defaultResponseHasBeenSet;
360  };
361 
362 } // namespace Model
363 } // namespace APIGateway
364 } // namespace Aws
GatewayResponseType.h
Aws::APIGateway::Model::GatewayResponse::StatusCodeHasBeenSet
bool StatusCodeHasBeenSet() const
Definition: GatewayResponse.h:121
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:105
Aws::APIGateway::Model::GatewayResponse::SetStatusCode
void SetStatusCode(const Aws::String &value)
Definition: GatewayResponse.h:126
Aws::APIGateway::Model::GatewayResponse
Definition: GatewayResponse.h:74
Aws::APIGateway::Model::GatewayResponse::AddResponseTemplates
GatewayResponse & AddResponseTemplates(Aws::String &&key, const char *value)
Definition: GatewayResponse.h:303
Aws::APIGateway::Model::GatewayResponse::ResponseTemplatesHasBeenSet
bool ResponseTemplatesHasBeenSet() const
Definition: GatewayResponse.h:243
Aws::APIGateway::Model::GatewayResponse::AddResponseParameters
GatewayResponse & AddResponseParameters(Aws::String &&key, Aws::String &&value)
Definition: GatewayResponse.h:212
Aws::APIGateway::Model::GatewayResponse::SetResponseParameters
void SetResponseParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GatewayResponse.h:170
Aws::APIGateway::Model::GatewayResponse::AddResponseParameters
GatewayResponse & AddResponseParameters(Aws::String &&key, const Aws::String &value)
Definition: GatewayResponse.h:200
Aws::APIGateway::Model::GatewayResponse::AddResponseTemplates
GatewayResponse & AddResponseTemplates(Aws::String &&key, Aws::String &&value)
Definition: GatewayResponse.h:291
APIGateway_EXPORTS.h
Aws::APIGateway::Model::GatewayResponse::SetResponseTemplates
void SetResponseTemplates(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GatewayResponse.h:249
Aws::APIGateway::Model::GatewayResponse::WithStatusCode
GatewayResponse & WithStatusCode(const Aws::String &value)
Definition: GatewayResponse.h:141
Aws::APIGateway::Model::GatewayResponse::GetResponseParameters
const Aws::Map< Aws::String, Aws::String > & GetResponseParameters() const
Definition: GatewayResponse.h:158
Aws::APIGateway::Model::GatewayResponse::AddResponseTemplates
GatewayResponse & AddResponseTemplates(const Aws::String &key, Aws::String &&value)
Definition: GatewayResponse.h:285
Aws::APIGateway::Model::GatewayResponse::SetStatusCode
void SetStatusCode(const char *value)
Definition: GatewayResponse.h:136
Aws::APIGateway::Model::GatewayResponse::WithResponseParameters
GatewayResponse & WithResponseParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GatewayResponse.h:188
Aws::APIGateway::Model::GatewayResponse::AddResponseParameters
GatewayResponse & AddResponseParameters(const Aws::String &key, Aws::String &&value)
Definition: GatewayResponse.h:206
Aws::APIGateway::Model::GatewayResponse::GetDefaultResponse
bool GetDefaultResponse() const
Definition: GatewayResponse.h:318
Aws::APIGateway::Model::GatewayResponse::WithStatusCode
GatewayResponse & WithStatusCode(Aws::String &&value)
Definition: GatewayResponse.h:146
Aws::APIGateway::Model::GatewayResponse::WithResponseType
GatewayResponse & WithResponseType(GatewayResponseType &&value)
Definition: GatewayResponse.h:110
Aws::APIGateway::Model::GatewayResponse::SetDefaultResponse
void SetDefaultResponse(bool value)
Definition: GatewayResponse.h:334
Aws::APIGateway::Model::GatewayResponse::WithStatusCode
GatewayResponse & WithStatusCode(const char *value)
Definition: GatewayResponse.h:151
Aws::APIGateway::Model::GatewayResponse::SetResponseType
void SetResponseType(const GatewayResponseType &value)
Definition: GatewayResponse.h:95
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:261
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
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:273
Aws::APIGateway::Model::GatewayResponse::AddResponseTemplates
GatewayResponse & AddResponseTemplates(const char *key, const char *value)
Definition: GatewayResponse.h:309
Aws::APIGateway::Model::GatewayResponse::AddResponseParameters
GatewayResponse & AddResponseParameters(Aws::String &&key, const char *value)
Definition: GatewayResponse.h:224
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:255
Aws::APIGateway::Model::GatewayResponse::WithResponseTemplates
GatewayResponse & WithResponseTemplates(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GatewayResponse.h:267
Aws::APIGateway::Model::GatewayResponse::AddResponseTemplates
GatewayResponse & AddResponseTemplates(Aws::String &&key, const Aws::String &value)
Definition: GatewayResponse.h:279
Aws::APIGateway::Model::GatewayResponse::WithResponseParameters
GatewayResponse & WithResponseParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GatewayResponse.h:182
Aws::APIGateway::Model::GatewayResponse::SetStatusCode
void SetStatusCode(Aws::String &&value)
Definition: GatewayResponse.h:131
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::APIGateway::Model::GatewayResponse::AddResponseTemplates
GatewayResponse & AddResponseTemplates(const char *key, Aws::String &&value)
Definition: GatewayResponse.h:297
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::GatewayResponse::AddResponseParameters
GatewayResponse & AddResponseParameters(const char *key, const char *value)
Definition: GatewayResponse.h:230
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:218
Aws::APIGateway::Model::GatewayResponse::AddResponseParameters
GatewayResponse & AddResponseParameters(const Aws::String &key, const Aws::String &value)
Definition: GatewayResponse.h:194
Aws::APIGateway::Model::GatewayResponse::SetResponseParameters
void SetResponseParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GatewayResponse.h:176
Aws::APIGateway::Model::GatewayResponse::ResponseTypeHasBeenSet
bool ResponseTypeHasBeenSet() const
Definition: GatewayResponse.h:90
Aws::APIGateway::Model::GatewayResponse::WithDefaultResponse
GatewayResponse & WithDefaultResponse(bool value)
Definition: GatewayResponse.h:342
Aws::APIGateway::Model::GatewayResponse::ResponseParametersHasBeenSet
bool ResponseParametersHasBeenSet() const
Definition: GatewayResponse.h:164
Aws::APIGateway::Model::GatewayResponse::GetResponseType
const GatewayResponseType & GetResponseType() const
Definition: GatewayResponse.h:85
Aws::APIGateway::Model::GatewayResponse::GetStatusCode
const Aws::String & GetStatusCode() const
Definition: GatewayResponse.h:116
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:100
Aws::APIGateway::Model::GatewayResponse::DefaultResponseHasBeenSet
bool DefaultResponseHasBeenSet() const
Definition: GatewayResponse.h:326
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:237