AWS SDK for C++  1.9.160
AWS SDK for C++
GetGatewayResponseResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace APIGateway
26 {
27 namespace Model
28 {
75  {
76  public:
80 
81 
85  inline const GatewayResponseType& GetResponseType() const{ return m_responseType; }
86 
90  inline void SetResponseType(const GatewayResponseType& value) { m_responseType = value; }
91 
95  inline void SetResponseType(GatewayResponseType&& value) { m_responseType = std::move(value); }
96 
100  inline GetGatewayResponseResult& WithResponseType(const GatewayResponseType& value) { SetResponseType(value); return *this;}
101 
105  inline GetGatewayResponseResult& WithResponseType(GatewayResponseType&& value) { SetResponseType(std::move(value)); return *this;}
106 
107 
111  inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
112 
116  inline void SetStatusCode(const Aws::String& value) { m_statusCode = value; }
117 
121  inline void SetStatusCode(Aws::String&& value) { m_statusCode = std::move(value); }
122 
126  inline void SetStatusCode(const char* value) { m_statusCode.assign(value); }
127 
131  inline GetGatewayResponseResult& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
132 
136  inline GetGatewayResponseResult& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;}
137 
141  inline GetGatewayResponseResult& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
142 
143 
148  inline const Aws::Map<Aws::String, Aws::String>& GetResponseParameters() const{ return m_responseParameters; }
149 
154  inline void SetResponseParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_responseParameters = value; }
155 
160  inline void SetResponseParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_responseParameters = std::move(value); }
161 
166  inline GetGatewayResponseResult& WithResponseParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetResponseParameters(value); return *this;}
167 
172  inline GetGatewayResponseResult& WithResponseParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetResponseParameters(std::move(value)); return *this;}
173 
178  inline GetGatewayResponseResult& AddResponseParameters(const Aws::String& key, const Aws::String& value) { m_responseParameters.emplace(key, value); return *this; }
179 
184  inline GetGatewayResponseResult& AddResponseParameters(Aws::String&& key, const Aws::String& value) { m_responseParameters.emplace(std::move(key), value); return *this; }
185 
190  inline GetGatewayResponseResult& AddResponseParameters(const Aws::String& key, Aws::String&& value) { m_responseParameters.emplace(key, std::move(value)); return *this; }
191 
196  inline GetGatewayResponseResult& AddResponseParameters(Aws::String&& key, Aws::String&& value) { m_responseParameters.emplace(std::move(key), std::move(value)); return *this; }
197 
202  inline GetGatewayResponseResult& AddResponseParameters(const char* key, Aws::String&& value) { m_responseParameters.emplace(key, std::move(value)); return *this; }
203 
208  inline GetGatewayResponseResult& AddResponseParameters(Aws::String&& key, const char* value) { m_responseParameters.emplace(std::move(key), value); return *this; }
209 
214  inline GetGatewayResponseResult& AddResponseParameters(const char* key, const char* value) { m_responseParameters.emplace(key, value); return *this; }
215 
216 
221  inline const Aws::Map<Aws::String, Aws::String>& GetResponseTemplates() const{ return m_responseTemplates; }
222 
227  inline void SetResponseTemplates(const Aws::Map<Aws::String, Aws::String>& value) { m_responseTemplates = value; }
228 
233  inline void SetResponseTemplates(Aws::Map<Aws::String, Aws::String>&& value) { m_responseTemplates = std::move(value); }
234 
239  inline GetGatewayResponseResult& WithResponseTemplates(const Aws::Map<Aws::String, Aws::String>& value) { SetResponseTemplates(value); return *this;}
240 
245  inline GetGatewayResponseResult& WithResponseTemplates(Aws::Map<Aws::String, Aws::String>&& value) { SetResponseTemplates(std::move(value)); return *this;}
246 
251  inline GetGatewayResponseResult& AddResponseTemplates(const Aws::String& key, const Aws::String& value) { m_responseTemplates.emplace(key, value); return *this; }
252 
257  inline GetGatewayResponseResult& AddResponseTemplates(Aws::String&& key, const Aws::String& value) { m_responseTemplates.emplace(std::move(key), value); return *this; }
258 
263  inline GetGatewayResponseResult& AddResponseTemplates(const Aws::String& key, Aws::String&& value) { m_responseTemplates.emplace(key, std::move(value)); return *this; }
264 
269  inline GetGatewayResponseResult& AddResponseTemplates(Aws::String&& key, Aws::String&& value) { m_responseTemplates.emplace(std::move(key), std::move(value)); return *this; }
270 
275  inline GetGatewayResponseResult& AddResponseTemplates(const char* key, Aws::String&& value) { m_responseTemplates.emplace(key, std::move(value)); return *this; }
276 
281  inline GetGatewayResponseResult& AddResponseTemplates(Aws::String&& key, const char* value) { m_responseTemplates.emplace(std::move(key), value); return *this; }
282 
287  inline GetGatewayResponseResult& AddResponseTemplates(const char* key, const char* value) { m_responseTemplates.emplace(key, value); return *this; }
288 
289 
296  inline bool GetDefaultResponse() const{ return m_defaultResponse; }
297 
304  inline void SetDefaultResponse(bool value) { m_defaultResponse = value; }
305 
312  inline GetGatewayResponseResult& WithDefaultResponse(bool value) { SetDefaultResponse(value); return *this;}
313 
314  private:
315 
316  GatewayResponseType m_responseType;
317 
318  Aws::String m_statusCode;
319 
320  Aws::Map<Aws::String, Aws::String> m_responseParameters;
321 
322  Aws::Map<Aws::String, Aws::String> m_responseTemplates;
323 
324  bool m_defaultResponse;
325  };
326 
327 } // namespace Model
328 } // namespace APIGateway
329 } // namespace Aws
GatewayResponseType.h
Aws::APIGateway::Model::GetGatewayResponseResult::SetResponseType
void SetResponseType(const GatewayResponseType &value)
Definition: GetGatewayResponseResult.h:90
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::APIGateway::Model::GetGatewayResponseResult::WithStatusCode
GetGatewayResponseResult & WithStatusCode(Aws::String &&value)
Definition: GetGatewayResponseResult.h:136
Aws::APIGateway::Model::GetGatewayResponseResult
Definition: GetGatewayResponseResult.h:75
Aws::APIGateway::Model::GetGatewayResponseResult::SetDefaultResponse
void SetDefaultResponse(bool value)
Definition: GetGatewayResponseResult.h:304
Aws::APIGateway::Model::GetGatewayResponseResult::AddResponseParameters
GetGatewayResponseResult & AddResponseParameters(const char *key, const char *value)
Definition: GetGatewayResponseResult.h:214
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::GetGatewayResponseResult::AddResponseParameters
GetGatewayResponseResult & AddResponseParameters(Aws::String &&key, const Aws::String &value)
Definition: GetGatewayResponseResult.h:184
Aws::APIGateway::Model::GetGatewayResponseResult::GetGatewayResponseResult
GetGatewayResponseResult()
Aws::APIGateway::Model::GetGatewayResponseResult::SetResponseParameters
void SetResponseParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GetGatewayResponseResult.h:160
Aws::APIGateway::Model::GetGatewayResponseResult::AddResponseParameters
GetGatewayResponseResult & AddResponseParameters(const Aws::String &key, const Aws::String &value)
Definition: GetGatewayResponseResult.h:178
Aws::APIGateway::Model::GetGatewayResponseResult::AddResponseTemplates
GetGatewayResponseResult & AddResponseTemplates(const char *key, Aws::String &&value)
Definition: GetGatewayResponseResult.h:275
APIGateway_EXPORTS.h
Aws::APIGateway::Model::GetGatewayResponseResult::WithResponseType
GetGatewayResponseResult & WithResponseType(GatewayResponseType &&value)
Definition: GetGatewayResponseResult.h:105
Aws::APIGateway::Model::GetGatewayResponseResult::AddResponseParameters
GetGatewayResponseResult & AddResponseParameters(Aws::String &&key, const char *value)
Definition: GetGatewayResponseResult.h:208
Aws::APIGateway::Model::GetGatewayResponseResult::GetStatusCode
const Aws::String & GetStatusCode() const
Definition: GetGatewayResponseResult.h:111
Aws::APIGateway::Model::GetGatewayResponseResult::GetResponseType
const GatewayResponseType & GetResponseType() const
Definition: GetGatewayResponseResult.h:85
Aws::APIGateway::Model::GetGatewayResponseResult::SetStatusCode
void SetStatusCode(const char *value)
Definition: GetGatewayResponseResult.h:126
Aws::APIGateway::Model::GetGatewayResponseResult::SetResponseTemplates
void SetResponseTemplates(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GetGatewayResponseResult.h:227
Aws::APIGateway::Model::GetGatewayResponseResult::GetDefaultResponse
bool GetDefaultResponse() const
Definition: GetGatewayResponseResult.h:296
Aws::APIGateway::Model::GetGatewayResponseResult::WithResponseTemplates
GetGatewayResponseResult & WithResponseTemplates(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GetGatewayResponseResult.h:245
Aws::APIGateway::Model::GetGatewayResponseResult::AddResponseTemplates
GetGatewayResponseResult & AddResponseTemplates(Aws::String &&key, Aws::String &&value)
Definition: GetGatewayResponseResult.h:269
Aws::APIGateway::Model::GetGatewayResponseResult::WithStatusCode
GetGatewayResponseResult & WithStatusCode(const char *value)
Definition: GetGatewayResponseResult.h:141
Aws::APIGateway::Model::GetGatewayResponseResult::SetStatusCode
void SetStatusCode(Aws::String &&value)
Definition: GetGatewayResponseResult.h:121
Aws::APIGateway::Model::GetGatewayResponseResult::SetResponseType
void SetResponseType(GatewayResponseType &&value)
Definition: GetGatewayResponseResult.h:95
Aws::APIGateway::Model::GetGatewayResponseResult::AddResponseParameters
GetGatewayResponseResult & AddResponseParameters(Aws::String &&key, Aws::String &&value)
Definition: GetGatewayResponseResult.h:196
Aws::APIGateway::Model::GetGatewayResponseResult::SetStatusCode
void SetStatusCode(const Aws::String &value)
Definition: GetGatewayResponseResult.h:116
Aws::APIGateway::Model::GetGatewayResponseResult::WithResponseTemplates
GetGatewayResponseResult & WithResponseTemplates(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GetGatewayResponseResult.h:239
Aws::APIGateway::Model::GetGatewayResponseResult::operator=
GetGatewayResponseResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::APIGateway::Model::GetGatewayResponseResult::AddResponseTemplates
GetGatewayResponseResult & AddResponseTemplates(Aws::String &&key, const Aws::String &value)
Definition: GetGatewayResponseResult.h:257
Aws::APIGateway::Model::GetGatewayResponseResult::AddResponseParameters
GetGatewayResponseResult & AddResponseParameters(const char *key, Aws::String &&value)
Definition: GetGatewayResponseResult.h:202
AWSString.h
Aws::APIGateway::Model::GetGatewayResponseResult::SetResponseTemplates
void SetResponseTemplates(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GetGatewayResponseResult.h:233
Aws::APIGateway::Model::GetGatewayResponseResult::GetResponseParameters
const Aws::Map< Aws::String, Aws::String > & GetResponseParameters() const
Definition: GetGatewayResponseResult.h:148
Aws::APIGateway::Model::GetGatewayResponseResult::WithResponseParameters
GetGatewayResponseResult & WithResponseParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GetGatewayResponseResult.h:166
Aws::APIGateway::Model::GetGatewayResponseResult::WithResponseParameters
GetGatewayResponseResult & WithResponseParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GetGatewayResponseResult.h:172
Aws::APIGateway::Model::GatewayResponseType
GatewayResponseType
Definition: GatewayResponseType.h:17
Aws::APIGateway::Model::GetGatewayResponseResult::AddResponseTemplates
GetGatewayResponseResult & AddResponseTemplates(const char *key, const char *value)
Definition: GetGatewayResponseResult.h:287
Aws::APIGateway::Model::GetGatewayResponseResult::GetResponseTemplates
const Aws::Map< Aws::String, Aws::String > & GetResponseTemplates() const
Definition: GetGatewayResponseResult.h:221
Aws::APIGateway::Model::GetGatewayResponseResult::AddResponseTemplates
GetGatewayResponseResult & AddResponseTemplates(const Aws::String &key, Aws::String &&value)
Definition: GetGatewayResponseResult.h:263
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::GetGatewayResponseResult::AddResponseParameters
GetGatewayResponseResult & AddResponseParameters(const Aws::String &key, Aws::String &&value)
Definition: GetGatewayResponseResult.h:190
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::GetGatewayResponseResult::WithStatusCode
GetGatewayResponseResult & WithStatusCode(const Aws::String &value)
Definition: GetGatewayResponseResult.h:131
Aws::APIGateway::Model::GetGatewayResponseResult::WithResponseType
GetGatewayResponseResult & WithResponseType(const GatewayResponseType &value)
Definition: GetGatewayResponseResult.h:100
AWSMap.h
Aws::APIGateway::Model::GetGatewayResponseResult::AddResponseTemplates
GetGatewayResponseResult & AddResponseTemplates(const Aws::String &key, const Aws::String &value)
Definition: GetGatewayResponseResult.h:251
Aws::APIGateway::Model::GetGatewayResponseResult::GetGatewayResponseResult
GetGatewayResponseResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::APIGateway::Model::GetGatewayResponseResult::SetResponseParameters
void SetResponseParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GetGatewayResponseResult.h:154
Aws::APIGateway::Model::GetGatewayResponseResult::WithDefaultResponse
GetGatewayResponseResult & WithDefaultResponse(bool value)
Definition: GetGatewayResponseResult.h:312
Aws::APIGateway::Model::GetGatewayResponseResult::AddResponseTemplates
GetGatewayResponseResult & AddResponseTemplates(Aws::String &&key, const char *value)
Definition: GetGatewayResponseResult.h:281