AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TestInvokeMethodResult.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace APIGateway
26{
27namespace Model
28{
36 {
37 public:
38 AWS_APIGATEWAY_API TestInvokeMethodResult();
41
42
44
47 inline int GetStatus() const{ return m_status; }
48 inline void SetStatus(int value) { m_status = value; }
49 inline TestInvokeMethodResult& WithStatus(int value) { SetStatus(value); return *this;}
51
53
56 inline const Aws::String& GetBody() const{ return m_body; }
57 inline void SetBody(const Aws::String& value) { m_body = value; }
58 inline void SetBody(Aws::String&& value) { m_body = std::move(value); }
59 inline void SetBody(const char* value) { m_body.assign(value); }
60 inline TestInvokeMethodResult& WithBody(const Aws::String& value) { SetBody(value); return *this;}
61 inline TestInvokeMethodResult& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;}
62 inline TestInvokeMethodResult& WithBody(const char* value) { SetBody(value); return *this;}
64
66
69 inline const Aws::Map<Aws::String, Aws::String>& GetHeaders() const{ return m_headers; }
70 inline void SetHeaders(const Aws::Map<Aws::String, Aws::String>& value) { m_headers = value; }
71 inline void SetHeaders(Aws::Map<Aws::String, Aws::String>&& value) { m_headers = std::move(value); }
73 inline TestInvokeMethodResult& WithHeaders(Aws::Map<Aws::String, Aws::String>&& value) { SetHeaders(std::move(value)); return *this;}
74 inline TestInvokeMethodResult& AddHeaders(const Aws::String& key, const Aws::String& value) { m_headers.emplace(key, value); return *this; }
75 inline TestInvokeMethodResult& AddHeaders(Aws::String&& key, const Aws::String& value) { m_headers.emplace(std::move(key), value); return *this; }
76 inline TestInvokeMethodResult& AddHeaders(const Aws::String& key, Aws::String&& value) { m_headers.emplace(key, std::move(value)); return *this; }
77 inline TestInvokeMethodResult& AddHeaders(Aws::String&& key, Aws::String&& value) { m_headers.emplace(std::move(key), std::move(value)); return *this; }
78 inline TestInvokeMethodResult& AddHeaders(const char* key, Aws::String&& value) { m_headers.emplace(key, std::move(value)); return *this; }
79 inline TestInvokeMethodResult& AddHeaders(Aws::String&& key, const char* value) { m_headers.emplace(std::move(key), value); return *this; }
80 inline TestInvokeMethodResult& AddHeaders(const char* key, const char* value) { m_headers.emplace(key, value); return *this; }
82
84
87 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetMultiValueHeaders() const{ return m_multiValueHeaders; }
88 inline void SetMultiValueHeaders(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_multiValueHeaders = value; }
89 inline void SetMultiValueHeaders(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_multiValueHeaders = std::move(value); }
92 inline TestInvokeMethodResult& AddMultiValueHeaders(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_multiValueHeaders.emplace(key, value); return *this; }
93 inline TestInvokeMethodResult& AddMultiValueHeaders(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_multiValueHeaders.emplace(std::move(key), value); return *this; }
94 inline TestInvokeMethodResult& AddMultiValueHeaders(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_multiValueHeaders.emplace(key, std::move(value)); return *this; }
95 inline TestInvokeMethodResult& AddMultiValueHeaders(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_multiValueHeaders.emplace(std::move(key), std::move(value)); return *this; }
96 inline TestInvokeMethodResult& AddMultiValueHeaders(const char* key, Aws::Vector<Aws::String>&& value) { m_multiValueHeaders.emplace(key, std::move(value)); return *this; }
97 inline TestInvokeMethodResult& AddMultiValueHeaders(const char* key, const Aws::Vector<Aws::String>& value) { m_multiValueHeaders.emplace(key, value); return *this; }
99
101
104 inline const Aws::String& GetLog() const{ return m_log; }
105 inline void SetLog(const Aws::String& value) { m_log = value; }
106 inline void SetLog(Aws::String&& value) { m_log = std::move(value); }
107 inline void SetLog(const char* value) { m_log.assign(value); }
108 inline TestInvokeMethodResult& WithLog(const Aws::String& value) { SetLog(value); return *this;}
109 inline TestInvokeMethodResult& WithLog(Aws::String&& value) { SetLog(std::move(value)); return *this;}
110 inline TestInvokeMethodResult& WithLog(const char* value) { SetLog(value); return *this;}
112
114
117 inline long long GetLatency() const{ return m_latency; }
118 inline void SetLatency(long long value) { m_latency = value; }
119 inline TestInvokeMethodResult& WithLatency(long long value) { SetLatency(value); return *this;}
121
123
124 inline const Aws::String& GetRequestId() const{ return m_requestId; }
125 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
126 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
127 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
128 inline TestInvokeMethodResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
129 inline TestInvokeMethodResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
130 inline TestInvokeMethodResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
132 private:
133
134 int m_status;
135
136 Aws::String m_body;
137
139
141
142 Aws::String m_log;
143
144 long long m_latency;
145
146 Aws::String m_requestId;
147 };
148
149} // namespace Model
150} // namespace APIGateway
151} // namespace Aws
TestInvokeMethodResult & AddHeaders(const char *key, Aws::String &&value)
TestInvokeMethodResult & WithLatency(long long value)
AWS_APIGATEWAY_API TestInvokeMethodResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
TestInvokeMethodResult & AddMultiValueHeaders(const Aws::String &key, Aws::Vector< Aws::String > &&value)
TestInvokeMethodResult & AddHeaders(const Aws::String &key, Aws::String &&value)
TestInvokeMethodResult & WithLog(Aws::String &&value)
void SetMultiValueHeaders(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
void SetHeaders(const Aws::Map< Aws::String, Aws::String > &value)
TestInvokeMethodResult & AddHeaders(Aws::String &&key, Aws::String &&value)
TestInvokeMethodResult & WithLog(const char *value)
TestInvokeMethodResult & WithBody(const Aws::String &value)
TestInvokeMethodResult & WithHeaders(const Aws::Map< Aws::String, Aws::String > &value)
TestInvokeMethodResult & AddMultiValueHeaders(Aws::String &&key, Aws::Vector< Aws::String > &&value)
TestInvokeMethodResult & WithMultiValueHeaders(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
TestInvokeMethodResult & AddMultiValueHeaders(Aws::String &&key, const Aws::Vector< Aws::String > &value)
TestInvokeMethodResult & AddMultiValueHeaders(const char *key, const Aws::Vector< Aws::String > &value)
TestInvokeMethodResult & AddMultiValueHeaders(const Aws::String &key, const Aws::Vector< Aws::String > &value)
TestInvokeMethodResult & WithRequestId(Aws::String &&value)
TestInvokeMethodResult & AddHeaders(const Aws::String &key, const Aws::String &value)
TestInvokeMethodResult & WithLog(const Aws::String &value)
TestInvokeMethodResult & WithHeaders(Aws::Map< Aws::String, Aws::String > &&value)
TestInvokeMethodResult & AddHeaders(Aws::String &&key, const char *value)
TestInvokeMethodResult & WithBody(const char *value)
AWS_APIGATEWAY_API TestInvokeMethodResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
TestInvokeMethodResult & WithRequestId(const Aws::String &value)
void SetMultiValueHeaders(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
const Aws::Map< Aws::String, Aws::String > & GetHeaders() const
void SetHeaders(Aws::Map< Aws::String, Aws::String > &&value)
TestInvokeMethodResult & WithStatus(int value)
TestInvokeMethodResult & AddHeaders(Aws::String &&key, const Aws::String &value)
TestInvokeMethodResult & WithBody(Aws::String &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetMultiValueHeaders() const
TestInvokeMethodResult & WithRequestId(const char *value)
TestInvokeMethodResult & AddMultiValueHeaders(const char *key, Aws::Vector< Aws::String > &&value)
TestInvokeMethodResult & AddHeaders(const char *key, const char *value)
TestInvokeMethodResult & WithMultiValueHeaders(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue