AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetAuthorizerResult.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/apigatewayv2/model/AuthorizerType.h>
9#include <aws/apigatewayv2/model/JWTConfiguration.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace ApiGatewayV2 {
26namespace Model {
28 public:
29 AWS_APIGATEWAYV2_API GetAuthorizerResult() = default;
32
34
41 inline const Aws::String& GetAuthorizerCredentialsArn() const { return m_authorizerCredentialsArn; }
42 template <typename AuthorizerCredentialsArnT = Aws::String>
43 void SetAuthorizerCredentialsArn(AuthorizerCredentialsArnT&& value) {
44 m_authorizerCredentialsArnHasBeenSet = true;
45 m_authorizerCredentialsArn = std::forward<AuthorizerCredentialsArnT>(value);
46 }
47 template <typename AuthorizerCredentialsArnT = Aws::String>
48 GetAuthorizerResult& WithAuthorizerCredentialsArn(AuthorizerCredentialsArnT&& value) {
49 SetAuthorizerCredentialsArn(std::forward<AuthorizerCredentialsArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetAuthorizerId() const { return m_authorizerId; }
59 template <typename AuthorizerIdT = Aws::String>
60 void SetAuthorizerId(AuthorizerIdT&& value) {
61 m_authorizerIdHasBeenSet = true;
62 m_authorizerId = std::forward<AuthorizerIdT>(value);
63 }
64 template <typename AuthorizerIdT = Aws::String>
65 GetAuthorizerResult& WithAuthorizerId(AuthorizerIdT&& value) {
66 SetAuthorizerId(std::forward<AuthorizerIdT>(value));
67 return *this;
68 }
70
72
79 inline const Aws::String& GetAuthorizerPayloadFormatVersion() const { return m_authorizerPayloadFormatVersion; }
80 template <typename AuthorizerPayloadFormatVersionT = Aws::String>
81 void SetAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT&& value) {
82 m_authorizerPayloadFormatVersionHasBeenSet = true;
83 m_authorizerPayloadFormatVersion = std::forward<AuthorizerPayloadFormatVersionT>(value);
84 }
85 template <typename AuthorizerPayloadFormatVersionT = Aws::String>
86 GetAuthorizerResult& WithAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT&& value) {
87 SetAuthorizerPayloadFormatVersion(std::forward<AuthorizerPayloadFormatVersionT>(value));
88 return *this;
89 }
91
93
99 inline int GetAuthorizerResultTtlInSeconds() const { return m_authorizerResultTtlInSeconds; }
100 inline void SetAuthorizerResultTtlInSeconds(int value) {
101 m_authorizerResultTtlInSecondsHasBeenSet = true;
102 m_authorizerResultTtlInSeconds = value;
103 }
106 return *this;
107 }
109
111
116 inline AuthorizerType GetAuthorizerType() const { return m_authorizerType; }
118 m_authorizerTypeHasBeenSet = true;
119 m_authorizerType = value;
120 }
122 SetAuthorizerType(value);
123 return *this;
124 }
126
128
142 inline const Aws::String& GetAuthorizerUri() const { return m_authorizerUri; }
143 template <typename AuthorizerUriT = Aws::String>
144 void SetAuthorizerUri(AuthorizerUriT&& value) {
145 m_authorizerUriHasBeenSet = true;
146 m_authorizerUri = std::forward<AuthorizerUriT>(value);
147 }
148 template <typename AuthorizerUriT = Aws::String>
149 GetAuthorizerResult& WithAuthorizerUri(AuthorizerUriT&& value) {
150 SetAuthorizerUri(std::forward<AuthorizerUriT>(value));
151 return *this;
152 }
154
156
163 inline bool GetEnableSimpleResponses() const { return m_enableSimpleResponses; }
164 inline void SetEnableSimpleResponses(bool value) {
165 m_enableSimpleResponsesHasBeenSet = true;
166 m_enableSimpleResponses = value;
167 }
170 return *this;
171 }
173
175
197 inline const Aws::Vector<Aws::String>& GetIdentitySource() const { return m_identitySource; }
198 template <typename IdentitySourceT = Aws::Vector<Aws::String>>
199 void SetIdentitySource(IdentitySourceT&& value) {
200 m_identitySourceHasBeenSet = true;
201 m_identitySource = std::forward<IdentitySourceT>(value);
202 }
203 template <typename IdentitySourceT = Aws::Vector<Aws::String>>
204 GetAuthorizerResult& WithIdentitySource(IdentitySourceT&& value) {
205 SetIdentitySource(std::forward<IdentitySourceT>(value));
206 return *this;
207 }
208 template <typename IdentitySourceT = Aws::String>
209 GetAuthorizerResult& AddIdentitySource(IdentitySourceT&& value) {
210 m_identitySourceHasBeenSet = true;
211 m_identitySource.emplace_back(std::forward<IdentitySourceT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::String& GetIdentityValidationExpression() const { return m_identityValidationExpression; }
221 template <typename IdentityValidationExpressionT = Aws::String>
222 void SetIdentityValidationExpression(IdentityValidationExpressionT&& value) {
223 m_identityValidationExpressionHasBeenSet = true;
224 m_identityValidationExpression = std::forward<IdentityValidationExpressionT>(value);
225 }
226 template <typename IdentityValidationExpressionT = Aws::String>
227 GetAuthorizerResult& WithIdentityValidationExpression(IdentityValidationExpressionT&& value) {
228 SetIdentityValidationExpression(std::forward<IdentityValidationExpressionT>(value));
229 return *this;
230 }
232
234
238 inline const JWTConfiguration& GetJwtConfiguration() const { return m_jwtConfiguration; }
239 template <typename JwtConfigurationT = JWTConfiguration>
240 void SetJwtConfiguration(JwtConfigurationT&& value) {
241 m_jwtConfigurationHasBeenSet = true;
242 m_jwtConfiguration = std::forward<JwtConfigurationT>(value);
243 }
244 template <typename JwtConfigurationT = JWTConfiguration>
245 GetAuthorizerResult& WithJwtConfiguration(JwtConfigurationT&& value) {
246 SetJwtConfiguration(std::forward<JwtConfigurationT>(value));
247 return *this;
248 }
250
252
255 inline const Aws::String& GetName() const { return m_name; }
256 template <typename NameT = Aws::String>
257 void SetName(NameT&& value) {
258 m_nameHasBeenSet = true;
259 m_name = std::forward<NameT>(value);
260 }
261 template <typename NameT = Aws::String>
263 SetName(std::forward<NameT>(value));
264 return *this;
265 }
267
269
270 inline const Aws::String& GetRequestId() const { return m_requestId; }
271 template <typename RequestIdT = Aws::String>
272 void SetRequestId(RequestIdT&& value) {
273 m_requestIdHasBeenSet = true;
274 m_requestId = std::forward<RequestIdT>(value);
275 }
276 template <typename RequestIdT = Aws::String>
277 GetAuthorizerResult& WithRequestId(RequestIdT&& value) {
278 SetRequestId(std::forward<RequestIdT>(value));
279 return *this;
280 }
282 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
283
284 private:
285 Aws::String m_authorizerCredentialsArn;
286
287 Aws::String m_authorizerId;
288
289 Aws::String m_authorizerPayloadFormatVersion;
290
291 int m_authorizerResultTtlInSeconds{0};
292
293 AuthorizerType m_authorizerType{AuthorizerType::NOT_SET};
294
295 Aws::String m_authorizerUri;
296
297 bool m_enableSimpleResponses{false};
298
299 Aws::Vector<Aws::String> m_identitySource;
300
301 Aws::String m_identityValidationExpression;
302
303 JWTConfiguration m_jwtConfiguration;
304
305 Aws::String m_name;
306
307 Aws::String m_requestId;
308 Aws::Http::HttpResponseCode m_HttpResponseCode;
309 bool m_authorizerCredentialsArnHasBeenSet = false;
310 bool m_authorizerIdHasBeenSet = false;
311 bool m_authorizerPayloadFormatVersionHasBeenSet = false;
312 bool m_authorizerResultTtlInSecondsHasBeenSet = false;
313 bool m_authorizerTypeHasBeenSet = false;
314 bool m_authorizerUriHasBeenSet = false;
315 bool m_enableSimpleResponsesHasBeenSet = false;
316 bool m_identitySourceHasBeenSet = false;
317 bool m_identityValidationExpressionHasBeenSet = false;
318 bool m_jwtConfigurationHasBeenSet = false;
319 bool m_nameHasBeenSet = false;
320 bool m_requestIdHasBeenSet = false;
321};
322
323} // namespace Model
324} // namespace ApiGatewayV2
325} // namespace Aws
GetAuthorizerResult & WithAuthorizerUri(AuthorizerUriT &&value)
GetAuthorizerResult & WithRequestId(RequestIdT &&value)
GetAuthorizerResult & WithName(NameT &&value)
GetAuthorizerResult & WithAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT &&value)
const Aws::String & GetIdentityValidationExpression() const
GetAuthorizerResult & WithIdentitySource(IdentitySourceT &&value)
GetAuthorizerResult & WithAuthorizerResultTtlInSeconds(int value)
const JWTConfiguration & GetJwtConfiguration() const
GetAuthorizerResult & WithJwtConfiguration(JwtConfigurationT &&value)
GetAuthorizerResult & WithEnableSimpleResponses(bool value)
void SetAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT &&value)
const Aws::Vector< Aws::String > & GetIdentitySource() const
GetAuthorizerResult & AddIdentitySource(IdentitySourceT &&value)
GetAuthorizerResult & WithIdentityValidationExpression(IdentityValidationExpressionT &&value)
AWS_APIGATEWAYV2_API GetAuthorizerResult()=default
GetAuthorizerResult & WithAuthorizerType(AuthorizerType value)
AWS_APIGATEWAYV2_API GetAuthorizerResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetAuthorizerCredentialsArn(AuthorizerCredentialsArnT &&value)
GetAuthorizerResult & WithAuthorizerId(AuthorizerIdT &&value)
AWS_APIGATEWAYV2_API GetAuthorizerResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAuthorizerResult & WithAuthorizerCredentialsArn(AuthorizerCredentialsArnT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetIdentityValidationExpression(IdentityValidationExpressionT &&value)
const Aws::String & GetAuthorizerCredentialsArn() const
const Aws::String & GetAuthorizerPayloadFormatVersion() const
void SetJwtConfiguration(JwtConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue