AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
TestInvokeMethodRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGatewayRequest.h>
8#include <aws/apigateway/APIGateway_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace APIGateway {
17namespace Model {
18
26 public:
27 AWS_APIGATEWAY_API TestInvokeMethodRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "TestInvokeMethod"; }
34
35 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
42 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
43 template <typename RestApiIdT = Aws::String>
44 void SetRestApiId(RestApiIdT&& value) {
45 m_restApiIdHasBeenSet = true;
46 m_restApiId = std::forward<RestApiIdT>(value);
47 }
48 template <typename RestApiIdT = Aws::String>
50 SetRestApiId(std::forward<RestApiIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetResourceId() const { return m_resourceId; }
60 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
61 template <typename ResourceIdT = Aws::String>
62 void SetResourceId(ResourceIdT&& value) {
63 m_resourceIdHasBeenSet = true;
64 m_resourceId = std::forward<ResourceIdT>(value);
65 }
66 template <typename ResourceIdT = Aws::String>
68 SetResourceId(std::forward<ResourceIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetHttpMethod() const { return m_httpMethod; }
78 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
79 template <typename HttpMethodT = Aws::String>
80 void SetHttpMethod(HttpMethodT&& value) {
81 m_httpMethodHasBeenSet = true;
82 m_httpMethod = std::forward<HttpMethodT>(value);
83 }
84 template <typename HttpMethodT = Aws::String>
86 SetHttpMethod(std::forward<HttpMethodT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetPathWithQueryString() const { return m_pathWithQueryString; }
97 inline bool PathWithQueryStringHasBeenSet() const { return m_pathWithQueryStringHasBeenSet; }
98 template <typename PathWithQueryStringT = Aws::String>
99 void SetPathWithQueryString(PathWithQueryStringT&& value) {
100 m_pathWithQueryStringHasBeenSet = true;
101 m_pathWithQueryString = std::forward<PathWithQueryStringT>(value);
102 }
103 template <typename PathWithQueryStringT = Aws::String>
104 TestInvokeMethodRequest& WithPathWithQueryString(PathWithQueryStringT&& value) {
105 SetPathWithQueryString(std::forward<PathWithQueryStringT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetMultiValueHeaders() const { return m_multiValueHeaders; }
116 inline bool MultiValueHeadersHasBeenSet() const { return m_multiValueHeadersHasBeenSet; }
117 template <typename MultiValueHeadersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
118 void SetMultiValueHeaders(MultiValueHeadersT&& value) {
119 m_multiValueHeadersHasBeenSet = true;
120 m_multiValueHeaders = std::forward<MultiValueHeadersT>(value);
121 }
122 template <typename MultiValueHeadersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
123 TestInvokeMethodRequest& WithMultiValueHeaders(MultiValueHeadersT&& value) {
124 SetMultiValueHeaders(std::forward<MultiValueHeadersT>(value));
125 return *this;
126 }
127 template <typename MultiValueHeadersKeyT = Aws::String, typename MultiValueHeadersValueT = Aws::Vector<Aws::String>>
128 TestInvokeMethodRequest& AddMultiValueHeaders(MultiValueHeadersKeyT&& key, MultiValueHeadersValueT&& value) {
129 m_multiValueHeadersHasBeenSet = true;
130 m_multiValueHeaders.emplace(std::forward<MultiValueHeadersKeyT>(key), std::forward<MultiValueHeadersValueT>(value));
131 return *this;
132 }
134
136
141 inline const Aws::String& GetClientCertificateId() const { return m_clientCertificateId; }
142 inline bool ClientCertificateIdHasBeenSet() const { return m_clientCertificateIdHasBeenSet; }
143 template <typename ClientCertificateIdT = Aws::String>
144 void SetClientCertificateId(ClientCertificateIdT&& value) {
145 m_clientCertificateIdHasBeenSet = true;
146 m_clientCertificateId = std::forward<ClientCertificateIdT>(value);
147 }
148 template <typename ClientCertificateIdT = Aws::String>
149 TestInvokeMethodRequest& WithClientCertificateId(ClientCertificateIdT&& value) {
150 SetClientCertificateId(std::forward<ClientCertificateIdT>(value));
151 return *this;
152 }
154
156
160 inline const Aws::Map<Aws::String, Aws::String>& GetStageVariables() const { return m_stageVariables; }
161 inline bool StageVariablesHasBeenSet() const { return m_stageVariablesHasBeenSet; }
162 template <typename StageVariablesT = Aws::Map<Aws::String, Aws::String>>
163 void SetStageVariables(StageVariablesT&& value) {
164 m_stageVariablesHasBeenSet = true;
165 m_stageVariables = std::forward<StageVariablesT>(value);
166 }
167 template <typename StageVariablesT = Aws::Map<Aws::String, Aws::String>>
168 TestInvokeMethodRequest& WithStageVariables(StageVariablesT&& value) {
169 SetStageVariables(std::forward<StageVariablesT>(value));
170 return *this;
171 }
172 template <typename StageVariablesKeyT = Aws::String, typename StageVariablesValueT = Aws::String>
173 TestInvokeMethodRequest& AddStageVariables(StageVariablesKeyT&& key, StageVariablesValueT&& value) {
174 m_stageVariablesHasBeenSet = true;
175 m_stageVariables.emplace(std::forward<StageVariablesKeyT>(key), std::forward<StageVariablesValueT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::String& GetRequestBody() const { return m_requestBody; }
185 inline bool RequestBodyHasBeenSet() const { return m_requestBodyHasBeenSet; }
186 template <typename RequestBodyT = Aws::String>
187 void SetRequestBody(RequestBodyT&& value) {
188 m_requestBodyHasBeenSet = true;
189 m_requestBody = std::forward<RequestBodyT>(value);
190 }
191 template <typename RequestBodyT = Aws::String>
193 SetRequestBody(std::forward<RequestBodyT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::Map<Aws::String, Aws::String>& GetRequestHeaders() const { return m_requestHeaders; }
203 inline bool RequestHeadersHasBeenSet() const { return m_requestHeadersHasBeenSet; }
204 template <typename RequestHeadersT = Aws::Map<Aws::String, Aws::String>>
205 void SetRequestHeaders(RequestHeadersT&& value) {
206 m_requestHeadersHasBeenSet = true;
207 m_requestHeaders = std::forward<RequestHeadersT>(value);
208 }
209 template <typename RequestHeadersT = Aws::Map<Aws::String, Aws::String>>
210 TestInvokeMethodRequest& WithRequestHeaders(RequestHeadersT&& value) {
211 SetRequestHeaders(std::forward<RequestHeadersT>(value));
212 return *this;
213 }
214 template <typename RequestHeadersKeyT = Aws::String, typename RequestHeadersValueT = Aws::String>
215 TestInvokeMethodRequest& AddRequestHeaders(RequestHeadersKeyT&& key, RequestHeadersValueT&& value) {
216 m_requestHeadersHasBeenSet = true;
217 m_requestHeaders.emplace(std::forward<RequestHeadersKeyT>(key), std::forward<RequestHeadersValueT>(value));
218 return *this;
219 }
221 private:
222 Aws::String m_restApiId;
223
224 Aws::String m_resourceId;
225
226 Aws::String m_httpMethod;
227
228 Aws::String m_pathWithQueryString;
229
231
232 Aws::String m_clientCertificateId;
233
234 Aws::Map<Aws::String, Aws::String> m_stageVariables;
235
236 Aws::String m_requestBody;
237
238 Aws::Map<Aws::String, Aws::String> m_requestHeaders;
239 bool m_restApiIdHasBeenSet = false;
240 bool m_resourceIdHasBeenSet = false;
241 bool m_httpMethodHasBeenSet = false;
242 bool m_pathWithQueryStringHasBeenSet = false;
243 bool m_multiValueHeadersHasBeenSet = false;
244 bool m_clientCertificateIdHasBeenSet = false;
245 bool m_stageVariablesHasBeenSet = false;
246 bool m_requestBodyHasBeenSet = false;
247 bool m_requestHeadersHasBeenSet = false;
248};
249
250} // namespace Model
251} // namespace APIGateway
252} // namespace Aws
TestInvokeMethodRequest & WithStageVariables(StageVariablesT &&value)
TestInvokeMethodRequest & AddStageVariables(StageVariablesKeyT &&key, StageVariablesValueT &&value)
TestInvokeMethodRequest & AddRequestHeaders(RequestHeadersKeyT &&key, RequestHeadersValueT &&value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
TestInvokeMethodRequest & WithPathWithQueryString(PathWithQueryStringT &&value)
virtual const char * GetServiceRequestName() const override
void SetClientCertificateId(ClientCertificateIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetRequestHeaders() const
TestInvokeMethodRequest & WithResourceId(ResourceIdT &&value)
TestInvokeMethodRequest & WithClientCertificateId(ClientCertificateIdT &&value)
TestInvokeMethodRequest & WithMultiValueHeaders(MultiValueHeadersT &&value)
AWS_APIGATEWAY_API TestInvokeMethodRequest()=default
void SetPathWithQueryString(PathWithQueryStringT &&value)
const Aws::Map< Aws::String, Aws::String > & GetStageVariables() const
TestInvokeMethodRequest & WithRequestBody(RequestBodyT &&value)
TestInvokeMethodRequest & WithHttpMethod(HttpMethodT &&value)
TestInvokeMethodRequest & AddMultiValueHeaders(MultiValueHeadersKeyT &&key, MultiValueHeadersValueT &&value)
TestInvokeMethodRequest & WithRequestHeaders(RequestHeadersT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetMultiValueHeaders() const
TestInvokeMethodRequest & WithRestApiId(RestApiIdT &&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