AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename RestApiIdT = Aws::String>
48 void SetRestApiId(RestApiIdT&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::forward<RestApiIdT>(value); }
49 template<typename RestApiIdT = Aws::String>
50 TestInvokeMethodRequest& WithRestApiId(RestApiIdT&& value) { SetRestApiId(std::forward<RestApiIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetResourceId() const { return m_resourceId; }
58 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
59 template<typename ResourceIdT = Aws::String>
60 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
61 template<typename ResourceIdT = Aws::String>
62 TestInvokeMethodRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
64
66
69 inline const Aws::String& GetHttpMethod() const { return m_httpMethod; }
70 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
71 template<typename HttpMethodT = Aws::String>
72 void SetHttpMethod(HttpMethodT&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::forward<HttpMethodT>(value); }
73 template<typename HttpMethodT = Aws::String>
74 TestInvokeMethodRequest& WithHttpMethod(HttpMethodT&& value) { SetHttpMethod(std::forward<HttpMethodT>(value)); return *this;}
76
78
82 inline const Aws::String& GetPathWithQueryString() const { return m_pathWithQueryString; }
83 inline bool PathWithQueryStringHasBeenSet() const { return m_pathWithQueryStringHasBeenSet; }
84 template<typename PathWithQueryStringT = Aws::String>
85 void SetPathWithQueryString(PathWithQueryStringT&& value) { m_pathWithQueryStringHasBeenSet = true; m_pathWithQueryString = std::forward<PathWithQueryStringT>(value); }
86 template<typename PathWithQueryStringT = Aws::String>
87 TestInvokeMethodRequest& WithPathWithQueryString(PathWithQueryStringT&& value) { SetPathWithQueryString(std::forward<PathWithQueryStringT>(value)); return *this;}
89
91
95 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetMultiValueHeaders() const { return m_multiValueHeaders; }
96 inline bool MultiValueHeadersHasBeenSet() const { return m_multiValueHeadersHasBeenSet; }
97 template<typename MultiValueHeadersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
98 void SetMultiValueHeaders(MultiValueHeadersT&& value) { m_multiValueHeadersHasBeenSet = true; m_multiValueHeaders = std::forward<MultiValueHeadersT>(value); }
99 template<typename MultiValueHeadersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
100 TestInvokeMethodRequest& WithMultiValueHeaders(MultiValueHeadersT&& value) { SetMultiValueHeaders(std::forward<MultiValueHeadersT>(value)); return *this;}
101 template<typename MultiValueHeadersKeyT = Aws::String, typename MultiValueHeadersValueT = Aws::Vector<Aws::String>>
102 TestInvokeMethodRequest& AddMultiValueHeaders(MultiValueHeadersKeyT&& key, MultiValueHeadersValueT&& value) {
103 m_multiValueHeadersHasBeenSet = true; m_multiValueHeaders.emplace(std::forward<MultiValueHeadersKeyT>(key), std::forward<MultiValueHeadersValueT>(value)); return *this;
104 }
106
108
113 inline const Aws::String& GetClientCertificateId() const { return m_clientCertificateId; }
114 inline bool ClientCertificateIdHasBeenSet() const { return m_clientCertificateIdHasBeenSet; }
115 template<typename ClientCertificateIdT = Aws::String>
116 void SetClientCertificateId(ClientCertificateIdT&& value) { m_clientCertificateIdHasBeenSet = true; m_clientCertificateId = std::forward<ClientCertificateIdT>(value); }
117 template<typename ClientCertificateIdT = Aws::String>
118 TestInvokeMethodRequest& WithClientCertificateId(ClientCertificateIdT&& value) { SetClientCertificateId(std::forward<ClientCertificateIdT>(value)); return *this;}
120
122
126 inline const Aws::Map<Aws::String, Aws::String>& GetStageVariables() const { return m_stageVariables; }
127 inline bool StageVariablesHasBeenSet() const { return m_stageVariablesHasBeenSet; }
128 template<typename StageVariablesT = Aws::Map<Aws::String, Aws::String>>
129 void SetStageVariables(StageVariablesT&& value) { m_stageVariablesHasBeenSet = true; m_stageVariables = std::forward<StageVariablesT>(value); }
130 template<typename StageVariablesT = Aws::Map<Aws::String, Aws::String>>
131 TestInvokeMethodRequest& WithStageVariables(StageVariablesT&& value) { SetStageVariables(std::forward<StageVariablesT>(value)); return *this;}
132 template<typename StageVariablesKeyT = Aws::String, typename StageVariablesValueT = Aws::String>
133 TestInvokeMethodRequest& AddStageVariables(StageVariablesKeyT&& key, StageVariablesValueT&& value) {
134 m_stageVariablesHasBeenSet = true; m_stageVariables.emplace(std::forward<StageVariablesKeyT>(key), std::forward<StageVariablesValueT>(value)); return *this;
135 }
137
139
142 inline const Aws::String& GetRequestBody() const { return m_requestBody; }
143 inline bool RequestBodyHasBeenSet() const { return m_requestBodyHasBeenSet; }
144 template<typename RequestBodyT = Aws::String>
145 void SetRequestBody(RequestBodyT&& value) { m_requestBodyHasBeenSet = true; m_requestBody = std::forward<RequestBodyT>(value); }
146 template<typename RequestBodyT = Aws::String>
147 TestInvokeMethodRequest& WithRequestBody(RequestBodyT&& value) { SetRequestBody(std::forward<RequestBodyT>(value)); return *this;}
149
151
154 inline const Aws::Map<Aws::String, Aws::String>& GetRequestHeaders() const { return m_requestHeaders; }
155 inline bool RequestHeadersHasBeenSet() const { return m_requestHeadersHasBeenSet; }
156 template<typename RequestHeadersT = Aws::Map<Aws::String, Aws::String>>
157 void SetRequestHeaders(RequestHeadersT&& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders = std::forward<RequestHeadersT>(value); }
158 template<typename RequestHeadersT = Aws::Map<Aws::String, Aws::String>>
159 TestInvokeMethodRequest& WithRequestHeaders(RequestHeadersT&& value) { SetRequestHeaders(std::forward<RequestHeadersT>(value)); return *this;}
160 template<typename RequestHeadersKeyT = Aws::String, typename RequestHeadersValueT = Aws::String>
161 TestInvokeMethodRequest& AddRequestHeaders(RequestHeadersKeyT&& key, RequestHeadersValueT&& value) {
162 m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(std::forward<RequestHeadersKeyT>(key), std::forward<RequestHeadersValueT>(value)); return *this;
163 }
165 private:
166
167 Aws::String m_restApiId;
168 bool m_restApiIdHasBeenSet = false;
169
170 Aws::String m_resourceId;
171 bool m_resourceIdHasBeenSet = false;
172
173 Aws::String m_httpMethod;
174 bool m_httpMethodHasBeenSet = false;
175
176 Aws::String m_pathWithQueryString;
177 bool m_pathWithQueryStringHasBeenSet = false;
178
180 bool m_multiValueHeadersHasBeenSet = false;
181
182 Aws::String m_clientCertificateId;
183 bool m_clientCertificateIdHasBeenSet = false;
184
185 Aws::Map<Aws::String, Aws::String> m_stageVariables;
186 bool m_stageVariablesHasBeenSet = false;
187
188 Aws::String m_requestBody;
189 bool m_requestBodyHasBeenSet = false;
190
191 Aws::Map<Aws::String, Aws::String> m_requestHeaders;
192 bool m_requestHeadersHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace APIGateway
197} // 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