AWS SDK for C++  1.9.18
AWS SDK for C++
UpdateGatewayResponseResult.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 
89  inline const GatewayResponseType& GetResponseType() const{ return m_responseType; }
90 
98  inline void SetResponseType(const GatewayResponseType& value) { m_responseType = value; }
99 
107  inline void SetResponseType(GatewayResponseType&& value) { m_responseType = std::move(value); }
108 
116  inline UpdateGatewayResponseResult& WithResponseType(const GatewayResponseType& value) { SetResponseType(value); return *this;}
117 
125  inline UpdateGatewayResponseResult& WithResponseType(GatewayResponseType&& value) { SetResponseType(std::move(value)); return *this;}
126 
127 
131  inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
132 
136  inline void SetStatusCode(const Aws::String& value) { m_statusCode = value; }
137 
141  inline void SetStatusCode(Aws::String&& value) { m_statusCode = std::move(value); }
142 
146  inline void SetStatusCode(const char* value) { m_statusCode.assign(value); }
147 
151  inline UpdateGatewayResponseResult& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
152 
156  inline UpdateGatewayResponseResult& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;}
157 
161  inline UpdateGatewayResponseResult& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
162 
163 
168  inline const Aws::Map<Aws::String, Aws::String>& GetResponseParameters() const{ return m_responseParameters; }
169 
174  inline void SetResponseParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_responseParameters = value; }
175 
180  inline void SetResponseParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_responseParameters = std::move(value); }
181 
186  inline UpdateGatewayResponseResult& WithResponseParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetResponseParameters(value); return *this;}
187 
192  inline UpdateGatewayResponseResult& WithResponseParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetResponseParameters(std::move(value)); return *this;}
193 
198  inline UpdateGatewayResponseResult& AddResponseParameters(const Aws::String& key, const Aws::String& value) { m_responseParameters.emplace(key, value); return *this; }
199 
204  inline UpdateGatewayResponseResult& AddResponseParameters(Aws::String&& key, const Aws::String& value) { m_responseParameters.emplace(std::move(key), value); return *this; }
205 
210  inline UpdateGatewayResponseResult& AddResponseParameters(const Aws::String& key, Aws::String&& value) { m_responseParameters.emplace(key, std::move(value)); return *this; }
211 
216  inline UpdateGatewayResponseResult& AddResponseParameters(Aws::String&& key, Aws::String&& value) { m_responseParameters.emplace(std::move(key), std::move(value)); return *this; }
217 
222  inline UpdateGatewayResponseResult& AddResponseParameters(const char* key, Aws::String&& value) { m_responseParameters.emplace(key, std::move(value)); return *this; }
223 
228  inline UpdateGatewayResponseResult& AddResponseParameters(Aws::String&& key, const char* value) { m_responseParameters.emplace(std::move(key), value); return *this; }
229 
234  inline UpdateGatewayResponseResult& AddResponseParameters(const char* key, const char* value) { m_responseParameters.emplace(key, value); return *this; }
235 
236 
241  inline const Aws::Map<Aws::String, Aws::String>& GetResponseTemplates() const{ return m_responseTemplates; }
242 
247  inline void SetResponseTemplates(const Aws::Map<Aws::String, Aws::String>& value) { m_responseTemplates = value; }
248 
253  inline void SetResponseTemplates(Aws::Map<Aws::String, Aws::String>&& value) { m_responseTemplates = std::move(value); }
254 
259  inline UpdateGatewayResponseResult& WithResponseTemplates(const Aws::Map<Aws::String, Aws::String>& value) { SetResponseTemplates(value); return *this;}
260 
265  inline UpdateGatewayResponseResult& WithResponseTemplates(Aws::Map<Aws::String, Aws::String>&& value) { SetResponseTemplates(std::move(value)); return *this;}
266 
271  inline UpdateGatewayResponseResult& AddResponseTemplates(const Aws::String& key, const Aws::String& value) { m_responseTemplates.emplace(key, value); return *this; }
272 
277  inline UpdateGatewayResponseResult& AddResponseTemplates(Aws::String&& key, const Aws::String& value) { m_responseTemplates.emplace(std::move(key), value); return *this; }
278 
283  inline UpdateGatewayResponseResult& AddResponseTemplates(const Aws::String& key, Aws::String&& value) { m_responseTemplates.emplace(key, std::move(value)); return *this; }
284 
289  inline UpdateGatewayResponseResult& AddResponseTemplates(Aws::String&& key, Aws::String&& value) { m_responseTemplates.emplace(std::move(key), std::move(value)); return *this; }
290 
295  inline UpdateGatewayResponseResult& AddResponseTemplates(const char* key, Aws::String&& value) { m_responseTemplates.emplace(key, std::move(value)); return *this; }
296 
301  inline UpdateGatewayResponseResult& AddResponseTemplates(Aws::String&& key, const char* value) { m_responseTemplates.emplace(std::move(key), value); return *this; }
302 
307  inline UpdateGatewayResponseResult& AddResponseTemplates(const char* key, const char* value) { m_responseTemplates.emplace(key, value); return *this; }
308 
309 
316  inline bool GetDefaultResponse() const{ return m_defaultResponse; }
317 
324  inline void SetDefaultResponse(bool value) { m_defaultResponse = value; }
325 
332  inline UpdateGatewayResponseResult& WithDefaultResponse(bool value) { SetDefaultResponse(value); return *this;}
333 
334  private:
335 
336  GatewayResponseType m_responseType;
337 
338  Aws::String m_statusCode;
339 
340  Aws::Map<Aws::String, Aws::String> m_responseParameters;
341 
342  Aws::Map<Aws::String, Aws::String> m_responseTemplates;
343 
344  bool m_defaultResponse;
345  };
346 
347 } // namespace Model
348 } // namespace APIGateway
349 } // namespace Aws
Aws::APIGateway::Model::UpdateGatewayResponseResult::GetResponseParameters
const Aws::Map< Aws::String, Aws::String > & GetResponseParameters() const
Definition: UpdateGatewayResponseResult.h:168
GatewayResponseType.h
Aws::APIGateway::Model::UpdateGatewayResponseResult::WithResponseType
UpdateGatewayResponseResult & WithResponseType(const GatewayResponseType &value)
Definition: UpdateGatewayResponseResult.h:116
Aws::APIGateway::Model::UpdateGatewayResponseResult::GetStatusCode
const Aws::String & GetStatusCode() const
Definition: UpdateGatewayResponseResult.h:131
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseTemplates
UpdateGatewayResponseResult & AddResponseTemplates(const char *key, const char *value)
Definition: UpdateGatewayResponseResult.h:307
Aws::APIGateway::Model::UpdateGatewayResponseResult::WithResponseTemplates
UpdateGatewayResponseResult & WithResponseTemplates(const Aws::Map< Aws::String, Aws::String > &value)
Definition: UpdateGatewayResponseResult.h:259
Aws::APIGateway::Model::UpdateGatewayResponseResult
Definition: UpdateGatewayResponseResult.h:75
Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseTemplates
UpdateGatewayResponseResult & AddResponseTemplates(const Aws::String &key, Aws::String &&value)
Definition: UpdateGatewayResponseResult.h:283
Aws::APIGateway::Model::UpdateGatewayResponseResult::WithStatusCode
UpdateGatewayResponseResult & WithStatusCode(const Aws::String &value)
Definition: UpdateGatewayResponseResult.h:151
Aws::APIGateway::Model::UpdateGatewayResponseResult::UpdateGatewayResponseResult
UpdateGatewayResponseResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::APIGateway::Model::UpdateGatewayResponseResult::operator=
UpdateGatewayResponseResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::APIGateway::Model::UpdateGatewayResponseResult::SetResponseTemplates
void SetResponseTemplates(Aws::Map< Aws::String, Aws::String > &&value)
Definition: UpdateGatewayResponseResult.h:253
Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseParameters
UpdateGatewayResponseResult & AddResponseParameters(const Aws::String &key, Aws::String &&value)
Definition: UpdateGatewayResponseResult.h:210
APIGateway_EXPORTS.h
Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseTemplates
UpdateGatewayResponseResult & AddResponseTemplates(const Aws::String &key, const Aws::String &value)
Definition: UpdateGatewayResponseResult.h:271
Aws::APIGateway::Model::UpdateGatewayResponseResult::SetStatusCode
void SetStatusCode(Aws::String &&value)
Definition: UpdateGatewayResponseResult.h:141
Aws::APIGateway::Model::UpdateGatewayResponseResult::SetStatusCode
void SetStatusCode(const char *value)
Definition: UpdateGatewayResponseResult.h:146
Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseTemplates
UpdateGatewayResponseResult & AddResponseTemplates(Aws::String &&key, const char *value)
Definition: UpdateGatewayResponseResult.h:301
Aws::APIGateway::Model::UpdateGatewayResponseResult::GetDefaultResponse
bool GetDefaultResponse() const
Definition: UpdateGatewayResponseResult.h:316
Aws::APIGateway::Model::UpdateGatewayResponseResult::WithStatusCode
UpdateGatewayResponseResult & WithStatusCode(Aws::String &&value)
Definition: UpdateGatewayResponseResult.h:156
Aws::APIGateway::Model::UpdateGatewayResponseResult::SetResponseType
void SetResponseType(const GatewayResponseType &value)
Definition: UpdateGatewayResponseResult.h:98
Aws::APIGateway::Model::UpdateGatewayResponseResult::WithDefaultResponse
UpdateGatewayResponseResult & WithDefaultResponse(bool value)
Definition: UpdateGatewayResponseResult.h:332
Aws::APIGateway::Model::UpdateGatewayResponseResult::GetResponseTemplates
const Aws::Map< Aws::String, Aws::String > & GetResponseTemplates() const
Definition: UpdateGatewayResponseResult.h:241
Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseTemplates
UpdateGatewayResponseResult & AddResponseTemplates(Aws::String &&key, const Aws::String &value)
Definition: UpdateGatewayResponseResult.h:277
Aws::APIGateway::Model::UpdateGatewayResponseResult::UpdateGatewayResponseResult
UpdateGatewayResponseResult()
Aws::APIGateway::Model::UpdateGatewayResponseResult::WithResponseTemplates
UpdateGatewayResponseResult & WithResponseTemplates(Aws::Map< Aws::String, Aws::String > &&value)
Definition: UpdateGatewayResponseResult.h:265
Aws::APIGateway::Model::UpdateGatewayResponseResult::SetResponseParameters
void SetResponseParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: UpdateGatewayResponseResult.h:180
Aws::APIGateway::Model::UpdateGatewayResponseResult::GetResponseType
const GatewayResponseType & GetResponseType() const
Definition: UpdateGatewayResponseResult.h:89
Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseParameters
UpdateGatewayResponseResult & AddResponseParameters(Aws::String &&key, const Aws::String &value)
Definition: UpdateGatewayResponseResult.h:204
Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseParameters
UpdateGatewayResponseResult & AddResponseParameters(Aws::String &&key, const char *value)
Definition: UpdateGatewayResponseResult.h:228
AWSString.h
Aws::APIGateway::Model::UpdateGatewayResponseResult::SetResponseTemplates
void SetResponseTemplates(const Aws::Map< Aws::String, Aws::String > &value)
Definition: UpdateGatewayResponseResult.h:247
Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseParameters
UpdateGatewayResponseResult & AddResponseParameters(const char *key, const char *value)
Definition: UpdateGatewayResponseResult.h:234
Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseTemplates
UpdateGatewayResponseResult & AddResponseTemplates(const char *key, Aws::String &&value)
Definition: UpdateGatewayResponseResult.h:295
Aws::APIGateway::Model::UpdateGatewayResponseResult::SetResponseType
void SetResponseType(GatewayResponseType &&value)
Definition: UpdateGatewayResponseResult.h:107
Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseParameters
UpdateGatewayResponseResult & AddResponseParameters(const char *key, Aws::String &&value)
Definition: UpdateGatewayResponseResult.h:222
Aws::APIGateway::Model::GatewayResponseType
GatewayResponseType
Definition: GatewayResponseType.h:17
Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseParameters
UpdateGatewayResponseResult & AddResponseParameters(const Aws::String &key, const Aws::String &value)
Definition: UpdateGatewayResponseResult.h:198
Aws::APIGateway::Model::UpdateGatewayResponseResult::SetDefaultResponse
void SetDefaultResponse(bool value)
Definition: UpdateGatewayResponseResult.h:324
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::UpdateGatewayResponseResult::SetResponseParameters
void SetResponseParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: UpdateGatewayResponseResult.h:174
Aws::APIGateway::Model::UpdateGatewayResponseResult::WithResponseParameters
UpdateGatewayResponseResult & WithResponseParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: UpdateGatewayResponseResult.h:192
Aws::APIGateway::Model::UpdateGatewayResponseResult::SetStatusCode
void SetStatusCode(const Aws::String &value)
Definition: UpdateGatewayResponseResult.h:136
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::UpdateGatewayResponseResult::WithResponseParameters
UpdateGatewayResponseResult & WithResponseParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: UpdateGatewayResponseResult.h:186
Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseTemplates
UpdateGatewayResponseResult & AddResponseTemplates(Aws::String &&key, Aws::String &&value)
Definition: UpdateGatewayResponseResult.h:289
AWSMap.h
Aws::APIGateway::Model::UpdateGatewayResponseResult::WithResponseType
UpdateGatewayResponseResult & WithResponseType(GatewayResponseType &&value)
Definition: UpdateGatewayResponseResult.h:125
Aws::APIGateway::Model::UpdateGatewayResponseResult::WithStatusCode
UpdateGatewayResponseResult & WithStatusCode(const char *value)
Definition: UpdateGatewayResponseResult.h:161
Aws::APIGateway::Model::UpdateGatewayResponseResult::AddResponseParameters
UpdateGatewayResponseResult & AddResponseParameters(Aws::String &&key, Aws::String &&value)
Definition: UpdateGatewayResponseResult.h:216
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19