AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TestInvokeMethodRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/APIGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace APIGateway
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_APIGATEWAY_API TestInvokeMethodRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "TestInvokeMethod"; }
37
38 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
46 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
47 inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
48 inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
49 inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
50 inline TestInvokeMethodRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
51 inline TestInvokeMethodRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
52 inline TestInvokeMethodRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
54
56
59 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
60 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
61 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
62 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
63 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
64 inline TestInvokeMethodRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
65 inline TestInvokeMethodRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
66 inline TestInvokeMethodRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
68
70
73 inline const Aws::String& GetHttpMethod() const{ return m_httpMethod; }
74 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
75 inline void SetHttpMethod(const Aws::String& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
76 inline void SetHttpMethod(Aws::String&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::move(value); }
77 inline void SetHttpMethod(const char* value) { m_httpMethodHasBeenSet = true; m_httpMethod.assign(value); }
78 inline TestInvokeMethodRequest& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;}
79 inline TestInvokeMethodRequest& WithHttpMethod(Aws::String&& value) { SetHttpMethod(std::move(value)); return *this;}
80 inline TestInvokeMethodRequest& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;}
82
84
88 inline const Aws::String& GetPathWithQueryString() const{ return m_pathWithQueryString; }
89 inline bool PathWithQueryStringHasBeenSet() const { return m_pathWithQueryStringHasBeenSet; }
90 inline void SetPathWithQueryString(const Aws::String& value) { m_pathWithQueryStringHasBeenSet = true; m_pathWithQueryString = value; }
91 inline void SetPathWithQueryString(Aws::String&& value) { m_pathWithQueryStringHasBeenSet = true; m_pathWithQueryString = std::move(value); }
92 inline void SetPathWithQueryString(const char* value) { m_pathWithQueryStringHasBeenSet = true; m_pathWithQueryString.assign(value); }
94 inline TestInvokeMethodRequest& WithPathWithQueryString(Aws::String&& value) { SetPathWithQueryString(std::move(value)); return *this;}
95 inline TestInvokeMethodRequest& WithPathWithQueryString(const char* value) { SetPathWithQueryString(value); return *this;}
97
99
103 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetMultiValueHeaders() const{ return m_multiValueHeaders; }
104 inline bool MultiValueHeadersHasBeenSet() const { return m_multiValueHeadersHasBeenSet; }
105 inline void SetMultiValueHeaders(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_multiValueHeadersHasBeenSet = true; m_multiValueHeaders = value; }
106 inline void SetMultiValueHeaders(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_multiValueHeadersHasBeenSet = true; m_multiValueHeaders = std::move(value); }
109 inline TestInvokeMethodRequest& AddMultiValueHeaders(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_multiValueHeadersHasBeenSet = true; m_multiValueHeaders.emplace(key, value); return *this; }
110 inline TestInvokeMethodRequest& AddMultiValueHeaders(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_multiValueHeadersHasBeenSet = true; m_multiValueHeaders.emplace(std::move(key), value); return *this; }
111 inline TestInvokeMethodRequest& AddMultiValueHeaders(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_multiValueHeadersHasBeenSet = true; m_multiValueHeaders.emplace(key, std::move(value)); return *this; }
112 inline TestInvokeMethodRequest& AddMultiValueHeaders(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_multiValueHeadersHasBeenSet = true; m_multiValueHeaders.emplace(std::move(key), std::move(value)); return *this; }
113 inline TestInvokeMethodRequest& AddMultiValueHeaders(const char* key, Aws::Vector<Aws::String>&& value) { m_multiValueHeadersHasBeenSet = true; m_multiValueHeaders.emplace(key, std::move(value)); return *this; }
114 inline TestInvokeMethodRequest& AddMultiValueHeaders(const char* key, const Aws::Vector<Aws::String>& value) { m_multiValueHeadersHasBeenSet = true; m_multiValueHeaders.emplace(key, value); return *this; }
116
118
123 inline const Aws::String& GetClientCertificateId() const{ return m_clientCertificateId; }
124 inline bool ClientCertificateIdHasBeenSet() const { return m_clientCertificateIdHasBeenSet; }
125 inline void SetClientCertificateId(const Aws::String& value) { m_clientCertificateIdHasBeenSet = true; m_clientCertificateId = value; }
126 inline void SetClientCertificateId(Aws::String&& value) { m_clientCertificateIdHasBeenSet = true; m_clientCertificateId = std::move(value); }
127 inline void SetClientCertificateId(const char* value) { m_clientCertificateIdHasBeenSet = true; m_clientCertificateId.assign(value); }
129 inline TestInvokeMethodRequest& WithClientCertificateId(Aws::String&& value) { SetClientCertificateId(std::move(value)); return *this;}
130 inline TestInvokeMethodRequest& WithClientCertificateId(const char* value) { SetClientCertificateId(value); return *this;}
132
134
138 inline const Aws::Map<Aws::String, Aws::String>& GetStageVariables() const{ return m_stageVariables; }
139 inline bool StageVariablesHasBeenSet() const { return m_stageVariablesHasBeenSet; }
140 inline void SetStageVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_stageVariablesHasBeenSet = true; m_stageVariables = value; }
141 inline void SetStageVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_stageVariablesHasBeenSet = true; m_stageVariables = std::move(value); }
144 inline TestInvokeMethodRequest& AddStageVariables(const Aws::String& key, const Aws::String& value) { m_stageVariablesHasBeenSet = true; m_stageVariables.emplace(key, value); return *this; }
145 inline TestInvokeMethodRequest& AddStageVariables(Aws::String&& key, const Aws::String& value) { m_stageVariablesHasBeenSet = true; m_stageVariables.emplace(std::move(key), value); return *this; }
146 inline TestInvokeMethodRequest& AddStageVariables(const Aws::String& key, Aws::String&& value) { m_stageVariablesHasBeenSet = true; m_stageVariables.emplace(key, std::move(value)); return *this; }
147 inline TestInvokeMethodRequest& AddStageVariables(Aws::String&& key, Aws::String&& value) { m_stageVariablesHasBeenSet = true; m_stageVariables.emplace(std::move(key), std::move(value)); return *this; }
148 inline TestInvokeMethodRequest& AddStageVariables(const char* key, Aws::String&& value) { m_stageVariablesHasBeenSet = true; m_stageVariables.emplace(key, std::move(value)); return *this; }
149 inline TestInvokeMethodRequest& AddStageVariables(Aws::String&& key, const char* value) { m_stageVariablesHasBeenSet = true; m_stageVariables.emplace(std::move(key), value); return *this; }
150 inline TestInvokeMethodRequest& AddStageVariables(const char* key, const char* value) { m_stageVariablesHasBeenSet = true; m_stageVariables.emplace(key, value); return *this; }
152
154
157 inline const Aws::String& GetRequestBody() const{ return m_requestBody; }
158 inline bool RequestBodyHasBeenSet() const { return m_requestBodyHasBeenSet; }
159 inline void SetRequestBody(const Aws::String& value) { m_requestBodyHasBeenSet = true; m_requestBody = value; }
160 inline void SetRequestBody(Aws::String&& value) { m_requestBodyHasBeenSet = true; m_requestBody = std::move(value); }
161 inline void SetRequestBody(const char* value) { m_requestBodyHasBeenSet = true; m_requestBody.assign(value); }
162 inline TestInvokeMethodRequest& WithRequestBody(const Aws::String& value) { SetRequestBody(value); return *this;}
163 inline TestInvokeMethodRequest& WithRequestBody(Aws::String&& value) { SetRequestBody(std::move(value)); return *this;}
164 inline TestInvokeMethodRequest& WithRequestBody(const char* value) { SetRequestBody(value); return *this;}
166
168
171 inline const Aws::Map<Aws::String, Aws::String>& GetRequestHeaders() const{ return m_requestHeaders; }
172 inline bool RequestHeadersHasBeenSet() const { return m_requestHeadersHasBeenSet; }
173 inline void SetRequestHeaders(const Aws::Map<Aws::String, Aws::String>& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders = value; }
174 inline void SetRequestHeaders(Aws::Map<Aws::String, Aws::String>&& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders = std::move(value); }
177 inline TestInvokeMethodRequest& AddRequestHeaders(const Aws::String& key, const Aws::String& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(key, value); return *this; }
178 inline TestInvokeMethodRequest& AddRequestHeaders(Aws::String&& key, const Aws::String& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(std::move(key), value); return *this; }
179 inline TestInvokeMethodRequest& AddRequestHeaders(const Aws::String& key, Aws::String&& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(key, std::move(value)); return *this; }
180 inline TestInvokeMethodRequest& AddRequestHeaders(Aws::String&& key, Aws::String&& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(std::move(key), std::move(value)); return *this; }
181 inline TestInvokeMethodRequest& AddRequestHeaders(const char* key, Aws::String&& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(key, std::move(value)); return *this; }
182 inline TestInvokeMethodRequest& AddRequestHeaders(Aws::String&& key, const char* value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(std::move(key), value); return *this; }
183 inline TestInvokeMethodRequest& AddRequestHeaders(const char* key, const char* value) { m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(key, value); return *this; }
185 private:
186
187 Aws::String m_restApiId;
188 bool m_restApiIdHasBeenSet = false;
189
190 Aws::String m_resourceId;
191 bool m_resourceIdHasBeenSet = false;
192
193 Aws::String m_httpMethod;
194 bool m_httpMethodHasBeenSet = false;
195
196 Aws::String m_pathWithQueryString;
197 bool m_pathWithQueryStringHasBeenSet = false;
198
200 bool m_multiValueHeadersHasBeenSet = false;
201
202 Aws::String m_clientCertificateId;
203 bool m_clientCertificateIdHasBeenSet = false;
204
205 Aws::Map<Aws::String, Aws::String> m_stageVariables;
206 bool m_stageVariablesHasBeenSet = false;
207
208 Aws::String m_requestBody;
209 bool m_requestBodyHasBeenSet = false;
210
211 Aws::Map<Aws::String, Aws::String> m_requestHeaders;
212 bool m_requestHeadersHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace APIGateway
217} // namespace Aws
void SetMultiValueHeaders(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
TestInvokeMethodRequest & AddStageVariables(Aws::String &&key, Aws::String &&value)
TestInvokeMethodRequest & WithStageVariables(Aws::Map< Aws::String, Aws::String > &&value)
TestInvokeMethodRequest & AddRequestHeaders(Aws::String &&key, const Aws::String &value)
TestInvokeMethodRequest & AddMultiValueHeaders(const char *key, const Aws::Vector< Aws::String > &value)
void SetStageVariables(Aws::Map< Aws::String, Aws::String > &&value)
TestInvokeMethodRequest & WithRestApiId(Aws::String &&value)
TestInvokeMethodRequest & AddRequestHeaders(const char *key, Aws::String &&value)
TestInvokeMethodRequest & WithPathWithQueryString(Aws::String &&value)
TestInvokeMethodRequest & AddStageVariables(const char *key, Aws::String &&value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
TestInvokeMethodRequest & AddRequestHeaders(Aws::String &&key, Aws::String &&value)
void SetRequestHeaders(Aws::Map< Aws::String, Aws::String > &&value)
void SetRequestHeaders(const Aws::Map< Aws::String, Aws::String > &value)
TestInvokeMethodRequest & AddMultiValueHeaders(const Aws::String &key, const Aws::Vector< Aws::String > &value)
TestInvokeMethodRequest & WithMultiValueHeaders(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
TestInvokeMethodRequest & AddRequestHeaders(const char *key, const char *value)
TestInvokeMethodRequest & WithRestApiId(const Aws::String &value)
TestInvokeMethodRequest & WithClientCertificateId(Aws::String &&value)
TestInvokeMethodRequest & AddStageVariables(const Aws::String &key, const Aws::String &value)
virtual const char * GetServiceRequestName() const override
TestInvokeMethodRequest & WithRequestBody(Aws::String &&value)
void SetStageVariables(const Aws::Map< Aws::String, Aws::String > &value)
TestInvokeMethodRequest & WithPathWithQueryString(const Aws::String &value)
TestInvokeMethodRequest & AddMultiValueHeaders(Aws::String &&key, const Aws::Vector< Aws::String > &value)
TestInvokeMethodRequest & AddRequestHeaders(const Aws::String &key, Aws::String &&value)
TestInvokeMethodRequest & WithRequestHeaders(Aws::Map< Aws::String, Aws::String > &&value)
TestInvokeMethodRequest & AddMultiValueHeaders(const Aws::String &key, Aws::Vector< Aws::String > &&value)
TestInvokeMethodRequest & WithHttpMethod(const char *value)
TestInvokeMethodRequest & WithClientCertificateId(const Aws::String &value)
TestInvokeMethodRequest & WithRestApiId(const char *value)
TestInvokeMethodRequest & WithResourceId(Aws::String &&value)
TestInvokeMethodRequest & WithRequestHeaders(const Aws::Map< Aws::String, Aws::String > &value)
TestInvokeMethodRequest & WithRequestBody(const Aws::String &value)
TestInvokeMethodRequest & AddStageVariables(const char *key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetRequestHeaders() const
TestInvokeMethodRequest & WithStageVariables(const Aws::Map< Aws::String, Aws::String > &value)
void SetMultiValueHeaders(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
TestInvokeMethodRequest & WithRequestBody(const char *value)
TestInvokeMethodRequest & WithHttpMethod(Aws::String &&value)
TestInvokeMethodRequest & WithResourceId(const char *value)
TestInvokeMethodRequest & AddRequestHeaders(Aws::String &&key, const char *value)
TestInvokeMethodRequest & AddRequestHeaders(const Aws::String &key, const Aws::String &value)
TestInvokeMethodRequest & WithMultiValueHeaders(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
TestInvokeMethodRequest & WithClientCertificateId(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetStageVariables() const
TestInvokeMethodRequest & AddStageVariables(const Aws::String &key, Aws::String &&value)
TestInvokeMethodRequest & WithPathWithQueryString(const char *value)
TestInvokeMethodRequest & WithHttpMethod(const Aws::String &value)
TestInvokeMethodRequest & AddMultiValueHeaders(const char *key, Aws::Vector< Aws::String > &&value)
TestInvokeMethodRequest & AddMultiValueHeaders(Aws::String &&key, Aws::Vector< Aws::String > &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetMultiValueHeaders() const
TestInvokeMethodRequest & AddStageVariables(Aws::String &&key, const char *value)
TestInvokeMethodRequest & WithResourceId(const Aws::String &value)
TestInvokeMethodRequest & AddStageVariables(Aws::String &&key, const 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