AWS SDK for C++  1.9.21
AWS SDK for C++
TestInvokeMethodResult.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 {
38  {
39  public:
43 
44 
48  inline int GetStatus() const{ return m_status; }
49 
53  inline void SetStatus(int value) { m_status = value; }
54 
58  inline TestInvokeMethodResult& WithStatus(int value) { SetStatus(value); return *this;}
59 
60 
64  inline const Aws::String& GetBody() const{ return m_body; }
65 
69  inline void SetBody(const Aws::String& value) { m_body = value; }
70 
74  inline void SetBody(Aws::String&& value) { m_body = std::move(value); }
75 
79  inline void SetBody(const char* value) { m_body.assign(value); }
80 
84  inline TestInvokeMethodResult& WithBody(const Aws::String& value) { SetBody(value); return *this;}
85 
89  inline TestInvokeMethodResult& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;}
90 
94  inline TestInvokeMethodResult& WithBody(const char* value) { SetBody(value); return *this;}
95 
96 
100  inline const Aws::Map<Aws::String, Aws::String>& GetHeaders() const{ return m_headers; }
101 
105  inline void SetHeaders(const Aws::Map<Aws::String, Aws::String>& value) { m_headers = value; }
106 
110  inline void SetHeaders(Aws::Map<Aws::String, Aws::String>&& value) { m_headers = std::move(value); }
111 
115  inline TestInvokeMethodResult& WithHeaders(const Aws::Map<Aws::String, Aws::String>& value) { SetHeaders(value); return *this;}
116 
120  inline TestInvokeMethodResult& WithHeaders(Aws::Map<Aws::String, Aws::String>&& value) { SetHeaders(std::move(value)); return *this;}
121 
125  inline TestInvokeMethodResult& AddHeaders(const Aws::String& key, const Aws::String& value) { m_headers.emplace(key, value); return *this; }
126 
130  inline TestInvokeMethodResult& AddHeaders(Aws::String&& key, const Aws::String& value) { m_headers.emplace(std::move(key), value); return *this; }
131 
135  inline TestInvokeMethodResult& AddHeaders(const Aws::String& key, Aws::String&& value) { m_headers.emplace(key, std::move(value)); return *this; }
136 
140  inline TestInvokeMethodResult& AddHeaders(Aws::String&& key, Aws::String&& value) { m_headers.emplace(std::move(key), std::move(value)); return *this; }
141 
145  inline TestInvokeMethodResult& AddHeaders(const char* key, Aws::String&& value) { m_headers.emplace(key, std::move(value)); return *this; }
146 
150  inline TestInvokeMethodResult& AddHeaders(Aws::String&& key, const char* value) { m_headers.emplace(std::move(key), value); return *this; }
151 
155  inline TestInvokeMethodResult& AddHeaders(const char* key, const char* value) { m_headers.emplace(key, value); return *this; }
156 
157 
161  inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetMultiValueHeaders() const{ return m_multiValueHeaders; }
162 
166  inline void SetMultiValueHeaders(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_multiValueHeaders = value; }
167 
171  inline void SetMultiValueHeaders(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_multiValueHeaders = std::move(value); }
172 
176  inline TestInvokeMethodResult& WithMultiValueHeaders(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetMultiValueHeaders(value); return *this;}
177 
181  inline TestInvokeMethodResult& WithMultiValueHeaders(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetMultiValueHeaders(std::move(value)); return *this;}
182 
186  inline TestInvokeMethodResult& AddMultiValueHeaders(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_multiValueHeaders.emplace(key, value); return *this; }
187 
191  inline TestInvokeMethodResult& AddMultiValueHeaders(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_multiValueHeaders.emplace(std::move(key), value); return *this; }
192 
196  inline TestInvokeMethodResult& AddMultiValueHeaders(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_multiValueHeaders.emplace(key, std::move(value)); return *this; }
197 
201  inline TestInvokeMethodResult& AddMultiValueHeaders(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_multiValueHeaders.emplace(std::move(key), std::move(value)); return *this; }
202 
206  inline TestInvokeMethodResult& AddMultiValueHeaders(const char* key, Aws::Vector<Aws::String>&& value) { m_multiValueHeaders.emplace(key, std::move(value)); return *this; }
207 
211  inline TestInvokeMethodResult& AddMultiValueHeaders(const char* key, const Aws::Vector<Aws::String>& value) { m_multiValueHeaders.emplace(key, value); return *this; }
212 
213 
217  inline const Aws::String& GetLog() const{ return m_log; }
218 
222  inline void SetLog(const Aws::String& value) { m_log = value; }
223 
227  inline void SetLog(Aws::String&& value) { m_log = std::move(value); }
228 
232  inline void SetLog(const char* value) { m_log.assign(value); }
233 
237  inline TestInvokeMethodResult& WithLog(const Aws::String& value) { SetLog(value); return *this;}
238 
242  inline TestInvokeMethodResult& WithLog(Aws::String&& value) { SetLog(std::move(value)); return *this;}
243 
247  inline TestInvokeMethodResult& WithLog(const char* value) { SetLog(value); return *this;}
248 
249 
253  inline long long GetLatency() const{ return m_latency; }
254 
258  inline void SetLatency(long long value) { m_latency = value; }
259 
263  inline TestInvokeMethodResult& WithLatency(long long value) { SetLatency(value); return *this;}
264 
265  private:
266 
267  int m_status;
268 
269  Aws::String m_body;
270 
272 
274 
275  Aws::String m_log;
276 
277  long long m_latency;
278  };
279 
280 } // namespace Model
281 } // namespace APIGateway
282 } // namespace Aws
Aws::APIGateway::Model::TestInvokeMethodResult::GetLog
const Aws::String & GetLog() const
Definition: TestInvokeMethodResult.h:217
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::APIGateway::Model::TestInvokeMethodResult::WithBody
TestInvokeMethodResult & WithBody(const Aws::String &value)
Definition: TestInvokeMethodResult.h:84
Aws::APIGateway::Model::TestInvokeMethodResult::SetLatency
void SetLatency(long long value)
Definition: TestInvokeMethodResult.h:258
Aws::APIGateway::Model::TestInvokeMethodResult::WithLog
TestInvokeMethodResult & WithLog(const Aws::String &value)
Definition: TestInvokeMethodResult.h:237
Aws::APIGateway::Model::TestInvokeMethodResult::SetHeaders
void SetHeaders(Aws::Map< Aws::String, Aws::String > &&value)
Definition: TestInvokeMethodResult.h:110
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::TestInvokeMethodResult::AddHeaders
TestInvokeMethodResult & AddHeaders(const Aws::String &key, const Aws::String &value)
Definition: TestInvokeMethodResult.h:125
Aws::APIGateway::Model::TestInvokeMethodResult::SetLog
void SetLog(Aws::String &&value)
Definition: TestInvokeMethodResult.h:227
Aws::APIGateway::Model::TestInvokeMethodResult::SetLog
void SetLog(const Aws::String &value)
Definition: TestInvokeMethodResult.h:222
Aws::APIGateway::Model::TestInvokeMethodResult::SetHeaders
void SetHeaders(const Aws::Map< Aws::String, Aws::String > &value)
Definition: TestInvokeMethodResult.h:105
Aws::APIGateway::Model::TestInvokeMethodResult::SetStatus
void SetStatus(int value)
Definition: TestInvokeMethodResult.h:53
Aws::APIGateway::Model::TestInvokeMethodResult::WithStatus
TestInvokeMethodResult & WithStatus(int value)
Definition: TestInvokeMethodResult.h:58
Aws::APIGateway::Model::TestInvokeMethodResult::AddHeaders
TestInvokeMethodResult & AddHeaders(Aws::String &&key, Aws::String &&value)
Definition: TestInvokeMethodResult.h:140
APIGateway_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::APIGateway::Model::TestInvokeMethodResult::AddHeaders
TestInvokeMethodResult & AddHeaders(const Aws::String &key, Aws::String &&value)
Definition: TestInvokeMethodResult.h:135
Aws::APIGateway::Model::TestInvokeMethodResult::operator=
TestInvokeMethodResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSVector.h
Aws::APIGateway::Model::TestInvokeMethodResult::TestInvokeMethodResult
TestInvokeMethodResult()
Aws::APIGateway::Model::TestInvokeMethodResult::SetMultiValueHeaders
void SetMultiValueHeaders(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
Definition: TestInvokeMethodResult.h:166
Aws::APIGateway::Model::TestInvokeMethodResult::AddMultiValueHeaders
TestInvokeMethodResult & AddMultiValueHeaders(Aws::String &&key, const Aws::Vector< Aws::String > &value)
Definition: TestInvokeMethodResult.h:191
Aws::APIGateway::Model::TestInvokeMethodResult::AddMultiValueHeaders
TestInvokeMethodResult & AddMultiValueHeaders(Aws::String &&key, Aws::Vector< Aws::String > &&value)
Definition: TestInvokeMethodResult.h:201
Aws::APIGateway::Model::TestInvokeMethodResult::WithMultiValueHeaders
TestInvokeMethodResult & WithMultiValueHeaders(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Definition: TestInvokeMethodResult.h:181
Aws::APIGateway::Model::TestInvokeMethodResult::WithMultiValueHeaders
TestInvokeMethodResult & WithMultiValueHeaders(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
Definition: TestInvokeMethodResult.h:176
Aws::APIGateway::Model::TestInvokeMethodResult::AddHeaders
TestInvokeMethodResult & AddHeaders(Aws::String &&key, const char *value)
Definition: TestInvokeMethodResult.h:150
Aws::APIGateway::Model::TestInvokeMethodResult::TestInvokeMethodResult
TestInvokeMethodResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::APIGateway::Model::TestInvokeMethodResult::AddHeaders
TestInvokeMethodResult & AddHeaders(Aws::String &&key, const Aws::String &value)
Definition: TestInvokeMethodResult.h:130
Aws::APIGateway::Model::TestInvokeMethodResult::SetMultiValueHeaders
void SetMultiValueHeaders(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Definition: TestInvokeMethodResult.h:171
Aws::APIGateway::Model::TestInvokeMethodResult::SetBody
void SetBody(const Aws::String &value)
Definition: TestInvokeMethodResult.h:69
Aws::APIGateway::Model::TestInvokeMethodResult::AddMultiValueHeaders
TestInvokeMethodResult & AddMultiValueHeaders(const char *key, const Aws::Vector< Aws::String > &value)
Definition: TestInvokeMethodResult.h:211
Aws::APIGateway::Model::TestInvokeMethodResult::GetHeaders
const Aws::Map< Aws::String, Aws::String > & GetHeaders() const
Definition: TestInvokeMethodResult.h:100
Aws::APIGateway::Model::TestInvokeMethodResult::GetStatus
int GetStatus() const
Definition: TestInvokeMethodResult.h:48
Aws::APIGateway::Model::TestInvokeMethodResult::WithLatency
TestInvokeMethodResult & WithLatency(long long value)
Definition: TestInvokeMethodResult.h:263
Aws::APIGateway::Model::TestInvokeMethodResult::SetBody
void SetBody(const char *value)
Definition: TestInvokeMethodResult.h:79
AWSString.h
Aws::APIGateway::Model::TestInvokeMethodResult::AddMultiValueHeaders
TestInvokeMethodResult & AddMultiValueHeaders(const Aws::String &key, Aws::Vector< Aws::String > &&value)
Definition: TestInvokeMethodResult.h:196
Aws::APIGateway::Model::TestInvokeMethodResult::WithHeaders
TestInvokeMethodResult & WithHeaders(const Aws::Map< Aws::String, Aws::String > &value)
Definition: TestInvokeMethodResult.h:115
Aws::APIGateway::Model::TestInvokeMethodResult::GetMultiValueHeaders
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetMultiValueHeaders() const
Definition: TestInvokeMethodResult.h:161
Aws::APIGateway::Model::TestInvokeMethodResult::WithHeaders
TestInvokeMethodResult & WithHeaders(Aws::Map< Aws::String, Aws::String > &&value)
Definition: TestInvokeMethodResult.h:120
Aws::APIGateway::Model::TestInvokeMethodResult::SetLog
void SetLog(const char *value)
Definition: TestInvokeMethodResult.h:232
Aws::APIGateway::Model::TestInvokeMethodResult::AddMultiValueHeaders
TestInvokeMethodResult & AddMultiValueHeaders(const Aws::String &key, const Aws::Vector< Aws::String > &value)
Definition: TestInvokeMethodResult.h:186
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::TestInvokeMethodResult::AddHeaders
TestInvokeMethodResult & AddHeaders(const char *key, const char *value)
Definition: TestInvokeMethodResult.h:155
Aws::APIGateway::Model::TestInvokeMethodResult::WithBody
TestInvokeMethodResult & WithBody(Aws::String &&value)
Definition: TestInvokeMethodResult.h:89
Aws::APIGateway::Model::TestInvokeMethodResult::GetBody
const Aws::String & GetBody() const
Definition: TestInvokeMethodResult.h:64
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::TestInvokeMethodResult::AddMultiValueHeaders
TestInvokeMethodResult & AddMultiValueHeaders(const char *key, Aws::Vector< Aws::String > &&value)
Definition: TestInvokeMethodResult.h:206
Aws::APIGateway::Model::TestInvokeMethodResult::WithLog
TestInvokeMethodResult & WithLog(const char *value)
Definition: TestInvokeMethodResult.h:247
Aws::APIGateway::Model::TestInvokeMethodResult::GetLatency
long long GetLatency() const
Definition: TestInvokeMethodResult.h:253
Aws::APIGateway::Model::TestInvokeMethodResult::AddHeaders
TestInvokeMethodResult & AddHeaders(const char *key, Aws::String &&value)
Definition: TestInvokeMethodResult.h:145
Aws::APIGateway::Model::TestInvokeMethodResult::WithBody
TestInvokeMethodResult & WithBody(const char *value)
Definition: TestInvokeMethodResult.h:94
Aws::APIGateway::Model::TestInvokeMethodResult::WithLog
TestInvokeMethodResult & WithLog(Aws::String &&value)
Definition: TestInvokeMethodResult.h:242
Aws::APIGateway::Model::TestInvokeMethodResult
Definition: TestInvokeMethodResult.h:38
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::TestInvokeMethodResult::SetBody
void SetBody(Aws::String &&value)
Definition: TestInvokeMethodResult.h:74