AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TestInvokeAuthorizerRequest.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 TestInvokeAuthorizerRequest() = 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 "TestInvokeAuthorizer"; }
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 TestInvokeAuthorizerRequest& WithRestApiId(RestApiIdT&& value) { SetRestApiId(std::forward<RestApiIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetAuthorizerId() const { return m_authorizerId; }
58 inline bool AuthorizerIdHasBeenSet() const { return m_authorizerIdHasBeenSet; }
59 template<typename AuthorizerIdT = Aws::String>
60 void SetAuthorizerId(AuthorizerIdT&& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = std::forward<AuthorizerIdT>(value); }
61 template<typename AuthorizerIdT = Aws::String>
62 TestInvokeAuthorizerRequest& WithAuthorizerId(AuthorizerIdT&& value) { SetAuthorizerId(std::forward<AuthorizerIdT>(value)); return *this;}
64
66
71 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetMultiValueHeaders() const { return m_multiValueHeaders; }
72 inline bool MultiValueHeadersHasBeenSet() const { return m_multiValueHeadersHasBeenSet; }
73 template<typename MultiValueHeadersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
74 void SetMultiValueHeaders(MultiValueHeadersT&& value) { m_multiValueHeadersHasBeenSet = true; m_multiValueHeaders = std::forward<MultiValueHeadersT>(value); }
75 template<typename MultiValueHeadersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
76 TestInvokeAuthorizerRequest& WithMultiValueHeaders(MultiValueHeadersT&& value) { SetMultiValueHeaders(std::forward<MultiValueHeadersT>(value)); return *this;}
77 template<typename MultiValueHeadersKeyT = Aws::String, typename MultiValueHeadersValueT = Aws::Vector<Aws::String>>
78 TestInvokeAuthorizerRequest& AddMultiValueHeaders(MultiValueHeadersKeyT&& key, MultiValueHeadersValueT&& value) {
79 m_multiValueHeadersHasBeenSet = true; m_multiValueHeaders.emplace(std::forward<MultiValueHeadersKeyT>(key), std::forward<MultiValueHeadersValueT>(value)); return *this;
80 }
82
84
88 inline const Aws::String& GetPathWithQueryString() const { return m_pathWithQueryString; }
89 inline bool PathWithQueryStringHasBeenSet() const { return m_pathWithQueryStringHasBeenSet; }
90 template<typename PathWithQueryStringT = Aws::String>
91 void SetPathWithQueryString(PathWithQueryStringT&& value) { m_pathWithQueryStringHasBeenSet = true; m_pathWithQueryString = std::forward<PathWithQueryStringT>(value); }
92 template<typename PathWithQueryStringT = Aws::String>
93 TestInvokeAuthorizerRequest& WithPathWithQueryString(PathWithQueryStringT&& value) { SetPathWithQueryString(std::forward<PathWithQueryStringT>(value)); return *this;}
95
97
101 inline const Aws::Map<Aws::String, Aws::String>& GetStageVariables() const { return m_stageVariables; }
102 inline bool StageVariablesHasBeenSet() const { return m_stageVariablesHasBeenSet; }
103 template<typename StageVariablesT = Aws::Map<Aws::String, Aws::String>>
104 void SetStageVariables(StageVariablesT&& value) { m_stageVariablesHasBeenSet = true; m_stageVariables = std::forward<StageVariablesT>(value); }
105 template<typename StageVariablesT = Aws::Map<Aws::String, Aws::String>>
106 TestInvokeAuthorizerRequest& WithStageVariables(StageVariablesT&& value) { SetStageVariables(std::forward<StageVariablesT>(value)); return *this;}
107 template<typename StageVariablesKeyT = Aws::String, typename StageVariablesValueT = Aws::String>
108 TestInvokeAuthorizerRequest& AddStageVariables(StageVariablesKeyT&& key, StageVariablesValueT&& value) {
109 m_stageVariablesHasBeenSet = true; m_stageVariables.emplace(std::forward<StageVariablesKeyT>(key), std::forward<StageVariablesValueT>(value)); return *this;
110 }
112
114
117 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalContext() const { return m_additionalContext; }
118 inline bool AdditionalContextHasBeenSet() const { return m_additionalContextHasBeenSet; }
119 template<typename AdditionalContextT = Aws::Map<Aws::String, Aws::String>>
120 void SetAdditionalContext(AdditionalContextT&& value) { m_additionalContextHasBeenSet = true; m_additionalContext = std::forward<AdditionalContextT>(value); }
121 template<typename AdditionalContextT = Aws::Map<Aws::String, Aws::String>>
122 TestInvokeAuthorizerRequest& WithAdditionalContext(AdditionalContextT&& value) { SetAdditionalContext(std::forward<AdditionalContextT>(value)); return *this;}
123 template<typename AdditionalContextKeyT = Aws::String, typename AdditionalContextValueT = Aws::String>
124 TestInvokeAuthorizerRequest& AddAdditionalContext(AdditionalContextKeyT&& key, AdditionalContextValueT&& value) {
125 m_additionalContextHasBeenSet = true; m_additionalContext.emplace(std::forward<AdditionalContextKeyT>(key), std::forward<AdditionalContextValueT>(value)); return *this;
126 }
128
130
133 inline const Aws::String& GetRequestBody() const { return m_requestBody; }
134 inline bool RequestBodyHasBeenSet() const { return m_requestBodyHasBeenSet; }
135 template<typename RequestBodyT = Aws::String>
136 void SetRequestBody(RequestBodyT&& value) { m_requestBodyHasBeenSet = true; m_requestBody = std::forward<RequestBodyT>(value); }
137 template<typename RequestBodyT = Aws::String>
138 TestInvokeAuthorizerRequest& WithRequestBody(RequestBodyT&& value) { SetRequestBody(std::forward<RequestBodyT>(value)); return *this;}
140
142
147 inline const Aws::Map<Aws::String, Aws::String>& GetRequestHeaders() const { return m_requestHeaders; }
148 inline bool RequestHeadersHasBeenSet() const { return m_requestHeadersHasBeenSet; }
149 template<typename RequestHeadersT = Aws::Map<Aws::String, Aws::String>>
150 void SetRequestHeaders(RequestHeadersT&& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders = std::forward<RequestHeadersT>(value); }
151 template<typename RequestHeadersT = Aws::Map<Aws::String, Aws::String>>
152 TestInvokeAuthorizerRequest& WithRequestHeaders(RequestHeadersT&& value) { SetRequestHeaders(std::forward<RequestHeadersT>(value)); return *this;}
153 template<typename RequestHeadersKeyT = Aws::String, typename RequestHeadersValueT = Aws::String>
154 TestInvokeAuthorizerRequest& AddRequestHeaders(RequestHeadersKeyT&& key, RequestHeadersValueT&& value) {
155 m_requestHeadersHasBeenSet = true; m_requestHeaders.emplace(std::forward<RequestHeadersKeyT>(key), std::forward<RequestHeadersValueT>(value)); return *this;
156 }
158 private:
159
160 Aws::String m_restApiId;
161 bool m_restApiIdHasBeenSet = false;
162
163 Aws::String m_authorizerId;
164 bool m_authorizerIdHasBeenSet = false;
165
167 bool m_multiValueHeadersHasBeenSet = false;
168
169 Aws::String m_pathWithQueryString;
170 bool m_pathWithQueryStringHasBeenSet = false;
171
172 Aws::Map<Aws::String, Aws::String> m_stageVariables;
173 bool m_stageVariablesHasBeenSet = false;
174
175 Aws::Map<Aws::String, Aws::String> m_additionalContext;
176 bool m_additionalContextHasBeenSet = false;
177
178 Aws::String m_requestBody;
179 bool m_requestBodyHasBeenSet = false;
180
181 Aws::Map<Aws::String, Aws::String> m_requestHeaders;
182 bool m_requestHeadersHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace APIGateway
187} // 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