AWS SDK for C++  1.9.18
AWS SDK for C++
PutMethodResponseResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace APIGateway
25 {
26 namespace Model
27 {
59  {
60  public:
64 
65 
69  inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
70 
74  inline void SetStatusCode(const Aws::String& value) { m_statusCode = value; }
75 
79  inline void SetStatusCode(Aws::String&& value) { m_statusCode = std::move(value); }
80 
84  inline void SetStatusCode(const char* value) { m_statusCode.assign(value); }
85 
89  inline PutMethodResponseResult& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
90 
94  inline PutMethodResponseResult& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;}
95 
99  inline PutMethodResponseResult& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
100 
101 
119  inline const Aws::Map<Aws::String, bool>& GetResponseParameters() const{ return m_responseParameters; }
120 
138  inline void SetResponseParameters(const Aws::Map<Aws::String, bool>& value) { m_responseParameters = value; }
139 
157  inline void SetResponseParameters(Aws::Map<Aws::String, bool>&& value) { m_responseParameters = std::move(value); }
158 
176  inline PutMethodResponseResult& WithResponseParameters(const Aws::Map<Aws::String, bool>& value) { SetResponseParameters(value); return *this;}
177 
195  inline PutMethodResponseResult& WithResponseParameters(Aws::Map<Aws::String, bool>&& value) { SetResponseParameters(std::move(value)); return *this;}
196 
214  inline PutMethodResponseResult& AddResponseParameters(const Aws::String& key, bool value) { m_responseParameters.emplace(key, value); return *this; }
215 
233  inline PutMethodResponseResult& AddResponseParameters(Aws::String&& key, bool value) { m_responseParameters.emplace(std::move(key), value); return *this; }
234 
252  inline PutMethodResponseResult& AddResponseParameters(const char* key, bool value) { m_responseParameters.emplace(key, value); return *this; }
253 
254 
260  inline const Aws::Map<Aws::String, Aws::String>& GetResponseModels() const{ return m_responseModels; }
261 
267  inline void SetResponseModels(const Aws::Map<Aws::String, Aws::String>& value) { m_responseModels = value; }
268 
274  inline void SetResponseModels(Aws::Map<Aws::String, Aws::String>&& value) { m_responseModels = std::move(value); }
275 
281  inline PutMethodResponseResult& WithResponseModels(const Aws::Map<Aws::String, Aws::String>& value) { SetResponseModels(value); return *this;}
282 
288  inline PutMethodResponseResult& WithResponseModels(Aws::Map<Aws::String, Aws::String>&& value) { SetResponseModels(std::move(value)); return *this;}
289 
295  inline PutMethodResponseResult& AddResponseModels(const Aws::String& key, const Aws::String& value) { m_responseModels.emplace(key, value); return *this; }
296 
302  inline PutMethodResponseResult& AddResponseModels(Aws::String&& key, const Aws::String& value) { m_responseModels.emplace(std::move(key), value); return *this; }
303 
309  inline PutMethodResponseResult& AddResponseModels(const Aws::String& key, Aws::String&& value) { m_responseModels.emplace(key, std::move(value)); return *this; }
310 
316  inline PutMethodResponseResult& AddResponseModels(Aws::String&& key, Aws::String&& value) { m_responseModels.emplace(std::move(key), std::move(value)); return *this; }
317 
323  inline PutMethodResponseResult& AddResponseModels(const char* key, Aws::String&& value) { m_responseModels.emplace(key, std::move(value)); return *this; }
324 
330  inline PutMethodResponseResult& AddResponseModels(Aws::String&& key, const char* value) { m_responseModels.emplace(std::move(key), value); return *this; }
331 
337  inline PutMethodResponseResult& AddResponseModels(const char* key, const char* value) { m_responseModels.emplace(key, value); return *this; }
338 
339  private:
340 
341  Aws::String m_statusCode;
342 
343  Aws::Map<Aws::String, bool> m_responseParameters;
344 
345  Aws::Map<Aws::String, Aws::String> m_responseModels;
346  };
347 
348 } // namespace Model
349 } // namespace APIGateway
350 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::PutMethodResponseResult::WithResponseParameters
PutMethodResponseResult & WithResponseParameters(Aws::Map< Aws::String, bool > &&value)
Definition: PutMethodResponseResult.h:195
Aws::APIGateway::Model::PutMethodResponseResult::SetStatusCode
void SetStatusCode(const char *value)
Definition: PutMethodResponseResult.h:84
Aws::APIGateway::Model::PutMethodResponseResult::SetStatusCode
void SetStatusCode(Aws::String &&value)
Definition: PutMethodResponseResult.h:79
Aws::APIGateway::Model::PutMethodResponseResult::WithStatusCode
PutMethodResponseResult & WithStatusCode(Aws::String &&value)
Definition: PutMethodResponseResult.h:94
Aws::APIGateway::Model::PutMethodResponseResult::AddResponseParameters
PutMethodResponseResult & AddResponseParameters(const Aws::String &key, bool value)
Definition: PutMethodResponseResult.h:214
Aws::APIGateway::Model::PutMethodResponseResult::WithResponseParameters
PutMethodResponseResult & WithResponseParameters(const Aws::Map< Aws::String, bool > &value)
Definition: PutMethodResponseResult.h:176
APIGateway_EXPORTS.h
Aws::APIGateway::Model::PutMethodResponseResult::operator=
PutMethodResponseResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::APIGateway::Model::PutMethodResponseResult::GetStatusCode
const Aws::String & GetStatusCode() const
Definition: PutMethodResponseResult.h:69
Aws::APIGateway::Model::PutMethodResponseResult::AddResponseModels
PutMethodResponseResult & AddResponseModels(const char *key, Aws::String &&value)
Definition: PutMethodResponseResult.h:323
Aws::APIGateway::Model::PutMethodResponseResult::WithStatusCode
PutMethodResponseResult & WithStatusCode(const char *value)
Definition: PutMethodResponseResult.h:99
Aws::APIGateway::Model::PutMethodResponseResult::PutMethodResponseResult
PutMethodResponseResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::APIGateway::Model::PutMethodResponseResult::WithResponseModels
PutMethodResponseResult & WithResponseModels(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PutMethodResponseResult.h:281
Aws::APIGateway::Model::PutMethodResponseResult::SetStatusCode
void SetStatusCode(const Aws::String &value)
Definition: PutMethodResponseResult.h:74
Aws::APIGateway::Model::PutMethodResponseResult::SetResponseModels
void SetResponseModels(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PutMethodResponseResult.h:267
AWSString.h
Aws::APIGateway::Model::PutMethodResponseResult::SetResponseParameters
void SetResponseParameters(const Aws::Map< Aws::String, bool > &value)
Definition: PutMethodResponseResult.h:138
Aws::APIGateway::Model::PutMethodResponseResult::SetResponseParameters
void SetResponseParameters(Aws::Map< Aws::String, bool > &&value)
Definition: PutMethodResponseResult.h:157
Aws::APIGateway::Model::PutMethodResponseResult::SetResponseModels
void SetResponseModels(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PutMethodResponseResult.h:274
Aws::APIGateway::Model::PutMethodResponseResult::WithResponseModels
PutMethodResponseResult & WithResponseModels(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PutMethodResponseResult.h:288
Aws::APIGateway::Model::PutMethodResponseResult::AddResponseModels
PutMethodResponseResult & AddResponseModels(Aws::String &&key, const char *value)
Definition: PutMethodResponseResult.h:330
Aws::APIGateway::Model::PutMethodResponseResult::AddResponseModels
PutMethodResponseResult & AddResponseModels(Aws::String &&key, Aws::String &&value)
Definition: PutMethodResponseResult.h:316
Aws::APIGateway::Model::PutMethodResponseResult
Definition: PutMethodResponseResult.h:59
Aws::APIGateway::Model::PutMethodResponseResult::AddResponseModels
PutMethodResponseResult & AddResponseModels(const Aws::String &key, const Aws::String &value)
Definition: PutMethodResponseResult.h:295
Aws::APIGateway::Model::PutMethodResponseResult::GetResponseParameters
const Aws::Map< Aws::String, bool > & GetResponseParameters() const
Definition: PutMethodResponseResult.h:119
Aws::APIGateway::Model::PutMethodResponseResult::AddResponseParameters
PutMethodResponseResult & AddResponseParameters(const char *key, bool value)
Definition: PutMethodResponseResult.h:252
Aws::APIGateway::Model::PutMethodResponseResult::GetResponseModels
const Aws::Map< Aws::String, Aws::String > & GetResponseModels() const
Definition: PutMethodResponseResult.h:260
Aws::APIGateway::Model::PutMethodResponseResult::WithStatusCode
PutMethodResponseResult & WithStatusCode(const Aws::String &value)
Definition: PutMethodResponseResult.h:89
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::PutMethodResponseResult::AddResponseParameters
PutMethodResponseResult & AddResponseParameters(Aws::String &&key, bool value)
Definition: PutMethodResponseResult.h:233
Aws::APIGateway::Model::PutMethodResponseResult::AddResponseModels
PutMethodResponseResult & AddResponseModels(const char *key, const char *value)
Definition: PutMethodResponseResult.h:337
Aws::APIGateway::Model::PutMethodResponseResult::PutMethodResponseResult
PutMethodResponseResult()
Aws::APIGateway::Model::PutMethodResponseResult::AddResponseModels
PutMethodResponseResult & AddResponseModels(Aws::String &&key, const Aws::String &value)
Definition: PutMethodResponseResult.h:302
AWSMap.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::APIGateway::Model::PutMethodResponseResult::AddResponseModels
PutMethodResponseResult & AddResponseModels(const Aws::String &key, Aws::String &&value)
Definition: PutMethodResponseResult.h:309