AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
TestInvokeAuthorizerRequest.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 TestInvokeAuthorizerRequest() = 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 "TestInvokeAuthorizer"; }
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& GetAuthorizerId() const { return m_authorizerId; }
60 inline bool AuthorizerIdHasBeenSet() const { return m_authorizerIdHasBeenSet; }
61 template <typename AuthorizerIdT = Aws::String>
62 void SetAuthorizerId(AuthorizerIdT&& value) {
63 m_authorizerIdHasBeenSet = true;
64 m_authorizerId = std::forward<AuthorizerIdT>(value);
65 }
66 template <typename AuthorizerIdT = Aws::String>
68 SetAuthorizerId(std::forward<AuthorizerIdT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetMultiValueHeaders() const { return m_multiValueHeaders; }
80 inline bool MultiValueHeadersHasBeenSet() const { return m_multiValueHeadersHasBeenSet; }
81 template <typename MultiValueHeadersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
82 void SetMultiValueHeaders(MultiValueHeadersT&& value) {
83 m_multiValueHeadersHasBeenSet = true;
84 m_multiValueHeaders = std::forward<MultiValueHeadersT>(value);
85 }
86 template <typename MultiValueHeadersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
88 SetMultiValueHeaders(std::forward<MultiValueHeadersT>(value));
89 return *this;
90 }
91 template <typename MultiValueHeadersKeyT = Aws::String, typename MultiValueHeadersValueT = Aws::Vector<Aws::String>>
92 TestInvokeAuthorizerRequest& AddMultiValueHeaders(MultiValueHeadersKeyT&& key, MultiValueHeadersValueT&& value) {
93 m_multiValueHeadersHasBeenSet = true;
94 m_multiValueHeaders.emplace(std::forward<MultiValueHeadersKeyT>(key), std::forward<MultiValueHeadersValueT>(value));
95 return *this;
96 }
98
100
104 inline const Aws::String& GetPathWithQueryString() const { return m_pathWithQueryString; }
105 inline bool PathWithQueryStringHasBeenSet() const { return m_pathWithQueryStringHasBeenSet; }
106 template <typename PathWithQueryStringT = Aws::String>
107 void SetPathWithQueryString(PathWithQueryStringT&& value) {
108 m_pathWithQueryStringHasBeenSet = true;
109 m_pathWithQueryString = std::forward<PathWithQueryStringT>(value);
110 }
111 template <typename PathWithQueryStringT = Aws::String>
113 SetPathWithQueryString(std::forward<PathWithQueryStringT>(value));
114 return *this;
115 }
117
119
123 inline const Aws::Map<Aws::String, Aws::String>& GetStageVariables() const { return m_stageVariables; }
124 inline bool StageVariablesHasBeenSet() const { return m_stageVariablesHasBeenSet; }
125 template <typename StageVariablesT = Aws::Map<Aws::String, Aws::String>>
126 void SetStageVariables(StageVariablesT&& value) {
127 m_stageVariablesHasBeenSet = true;
128 m_stageVariables = std::forward<StageVariablesT>(value);
129 }
130 template <typename StageVariablesT = Aws::Map<Aws::String, Aws::String>>
132 SetStageVariables(std::forward<StageVariablesT>(value));
133 return *this;
134 }
135 template <typename StageVariablesKeyT = Aws::String, typename StageVariablesValueT = Aws::String>
136 TestInvokeAuthorizerRequest& AddStageVariables(StageVariablesKeyT&& key, StageVariablesValueT&& value) {
137 m_stageVariablesHasBeenSet = true;
138 m_stageVariables.emplace(std::forward<StageVariablesKeyT>(key), std::forward<StageVariablesValueT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalContext() const { return m_additionalContext; }
148 inline bool AdditionalContextHasBeenSet() const { return m_additionalContextHasBeenSet; }
149 template <typename AdditionalContextT = Aws::Map<Aws::String, Aws::String>>
150 void SetAdditionalContext(AdditionalContextT&& value) {
151 m_additionalContextHasBeenSet = true;
152 m_additionalContext = std::forward<AdditionalContextT>(value);
153 }
154 template <typename AdditionalContextT = Aws::Map<Aws::String, Aws::String>>
156 SetAdditionalContext(std::forward<AdditionalContextT>(value));
157 return *this;
158 }
159 template <typename AdditionalContextKeyT = Aws::String, typename AdditionalContextValueT = Aws::String>
160 TestInvokeAuthorizerRequest& AddAdditionalContext(AdditionalContextKeyT&& key, AdditionalContextValueT&& value) {
161 m_additionalContextHasBeenSet = true;
162 m_additionalContext.emplace(std::forward<AdditionalContextKeyT>(key), std::forward<AdditionalContextValueT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::String& GetRequestBody() const { return m_requestBody; }
172 inline bool RequestBodyHasBeenSet() const { return m_requestBodyHasBeenSet; }
173 template <typename RequestBodyT = Aws::String>
174 void SetRequestBody(RequestBodyT&& value) {
175 m_requestBodyHasBeenSet = true;
176 m_requestBody = std::forward<RequestBodyT>(value);
177 }
178 template <typename RequestBodyT = Aws::String>
180 SetRequestBody(std::forward<RequestBodyT>(value));
181 return *this;
182 }
184
186
191 inline const Aws::Map<Aws::String, Aws::String>& GetRequestHeaders() const { return m_requestHeaders; }
192 inline bool RequestHeadersHasBeenSet() const { return m_requestHeadersHasBeenSet; }
193 template <typename RequestHeadersT = Aws::Map<Aws::String, Aws::String>>
194 void SetRequestHeaders(RequestHeadersT&& value) {
195 m_requestHeadersHasBeenSet = true;
196 m_requestHeaders = std::forward<RequestHeadersT>(value);
197 }
198 template <typename RequestHeadersT = Aws::Map<Aws::String, Aws::String>>
200 SetRequestHeaders(std::forward<RequestHeadersT>(value));
201 return *this;
202 }
203 template <typename RequestHeadersKeyT = Aws::String, typename RequestHeadersValueT = Aws::String>
204 TestInvokeAuthorizerRequest& AddRequestHeaders(RequestHeadersKeyT&& key, RequestHeadersValueT&& value) {
205 m_requestHeadersHasBeenSet = true;
206 m_requestHeaders.emplace(std::forward<RequestHeadersKeyT>(key), std::forward<RequestHeadersValueT>(value));
207 return *this;
208 }
210 private:
211 Aws::String m_restApiId;
212
213 Aws::String m_authorizerId;
214
216
217 Aws::String m_pathWithQueryString;
218
219 Aws::Map<Aws::String, Aws::String> m_stageVariables;
220
221 Aws::Map<Aws::String, Aws::String> m_additionalContext;
222
223 Aws::String m_requestBody;
224
225 Aws::Map<Aws::String, Aws::String> m_requestHeaders;
226 bool m_restApiIdHasBeenSet = false;
227 bool m_authorizerIdHasBeenSet = false;
228 bool m_multiValueHeadersHasBeenSet = false;
229 bool m_pathWithQueryStringHasBeenSet = false;
230 bool m_stageVariablesHasBeenSet = false;
231 bool m_additionalContextHasBeenSet = false;
232 bool m_requestBodyHasBeenSet = false;
233 bool m_requestHeadersHasBeenSet = false;
234};
235
236} // namespace Model
237} // namespace APIGateway
238} // namespace Aws
TestInvokeAuthorizerRequest & AddRequestHeaders(RequestHeadersKeyT &&key, RequestHeadersValueT &&value)
TestInvokeAuthorizerRequest & WithAuthorizerId(AuthorizerIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAdditionalContext() const
TestInvokeAuthorizerRequest & WithStageVariables(StageVariablesT &&value)
TestInvokeAuthorizerRequest & AddMultiValueHeaders(MultiValueHeadersKeyT &&key, MultiValueHeadersValueT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetMultiValueHeaders() const
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetRequestHeaders() const
TestInvokeAuthorizerRequest & AddAdditionalContext(AdditionalContextKeyT &&key, AdditionalContextValueT &&value)
AWS_APIGATEWAY_API TestInvokeAuthorizerRequest()=default
TestInvokeAuthorizerRequest & AddStageVariables(StageVariablesKeyT &&key, StageVariablesValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetStageVariables() const
TestInvokeAuthorizerRequest & WithRequestBody(RequestBodyT &&value)
TestInvokeAuthorizerRequest & WithPathWithQueryString(PathWithQueryStringT &&value)
TestInvokeAuthorizerRequest & WithMultiValueHeaders(MultiValueHeadersT &&value)
TestInvokeAuthorizerRequest & WithRequestHeaders(RequestHeadersT &&value)
TestInvokeAuthorizerRequest & WithRestApiId(RestApiIdT &&value)
TestInvokeAuthorizerRequest & WithAdditionalContext(AdditionalContextT &&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