AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
Authorizer.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/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ApiGatewayV2 {
23namespace Model {
24
31 public:
32 AWS_APIGATEWAYV2_API Authorizer() = default;
33 AWS_APIGATEWAYV2_API Authorizer(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APIGATEWAYV2_API Authorizer& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
45 inline const Aws::String& GetAuthorizerCredentialsArn() const { return m_authorizerCredentialsArn; }
46 inline bool AuthorizerCredentialsArnHasBeenSet() const { return m_authorizerCredentialsArnHasBeenSet; }
47 template <typename AuthorizerCredentialsArnT = Aws::String>
48 void SetAuthorizerCredentialsArn(AuthorizerCredentialsArnT&& value) {
49 m_authorizerCredentialsArnHasBeenSet = true;
50 m_authorizerCredentialsArn = std::forward<AuthorizerCredentialsArnT>(value);
51 }
52 template <typename AuthorizerCredentialsArnT = Aws::String>
53 Authorizer& WithAuthorizerCredentialsArn(AuthorizerCredentialsArnT&& value) {
54 SetAuthorizerCredentialsArn(std::forward<AuthorizerCredentialsArnT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetAuthorizerId() const { return m_authorizerId; }
64 inline bool AuthorizerIdHasBeenSet() const { return m_authorizerIdHasBeenSet; }
65 template <typename AuthorizerIdT = Aws::String>
66 void SetAuthorizerId(AuthorizerIdT&& value) {
67 m_authorizerIdHasBeenSet = true;
68 m_authorizerId = std::forward<AuthorizerIdT>(value);
69 }
70 template <typename AuthorizerIdT = Aws::String>
71 Authorizer& WithAuthorizerId(AuthorizerIdT&& value) {
72 SetAuthorizerId(std::forward<AuthorizerIdT>(value));
73 return *this;
74 }
76
78
85 inline const Aws::String& GetAuthorizerPayloadFormatVersion() const { return m_authorizerPayloadFormatVersion; }
86 inline bool AuthorizerPayloadFormatVersionHasBeenSet() const { return m_authorizerPayloadFormatVersionHasBeenSet; }
87 template <typename AuthorizerPayloadFormatVersionT = Aws::String>
88 void SetAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT&& value) {
89 m_authorizerPayloadFormatVersionHasBeenSet = true;
90 m_authorizerPayloadFormatVersion = std::forward<AuthorizerPayloadFormatVersionT>(value);
91 }
92 template <typename AuthorizerPayloadFormatVersionT = Aws::String>
93 Authorizer& WithAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT&& value) {
94 SetAuthorizerPayloadFormatVersion(std::forward<AuthorizerPayloadFormatVersionT>(value));
95 return *this;
96 }
98
100
106 inline int GetAuthorizerResultTtlInSeconds() const { return m_authorizerResultTtlInSeconds; }
107 inline bool AuthorizerResultTtlInSecondsHasBeenSet() const { return m_authorizerResultTtlInSecondsHasBeenSet; }
108 inline void SetAuthorizerResultTtlInSeconds(int value) {
109 m_authorizerResultTtlInSecondsHasBeenSet = true;
110 m_authorizerResultTtlInSeconds = value;
111 }
114 return *this;
115 }
117
119
124 inline AuthorizerType GetAuthorizerType() const { return m_authorizerType; }
125 inline bool AuthorizerTypeHasBeenSet() const { return m_authorizerTypeHasBeenSet; }
127 m_authorizerTypeHasBeenSet = true;
128 m_authorizerType = value;
129 }
131 SetAuthorizerType(value);
132 return *this;
133 }
135
137
151 inline const Aws::String& GetAuthorizerUri() const { return m_authorizerUri; }
152 inline bool AuthorizerUriHasBeenSet() const { return m_authorizerUriHasBeenSet; }
153 template <typename AuthorizerUriT = Aws::String>
154 void SetAuthorizerUri(AuthorizerUriT&& value) {
155 m_authorizerUriHasBeenSet = true;
156 m_authorizerUri = std::forward<AuthorizerUriT>(value);
157 }
158 template <typename AuthorizerUriT = Aws::String>
159 Authorizer& WithAuthorizerUri(AuthorizerUriT&& value) {
160 SetAuthorizerUri(std::forward<AuthorizerUriT>(value));
161 return *this;
162 }
164
166
173 inline bool GetEnableSimpleResponses() const { return m_enableSimpleResponses; }
174 inline bool EnableSimpleResponsesHasBeenSet() const { return m_enableSimpleResponsesHasBeenSet; }
175 inline void SetEnableSimpleResponses(bool value) {
176 m_enableSimpleResponsesHasBeenSet = true;
177 m_enableSimpleResponses = value;
178 }
181 return *this;
182 }
184
186
208 inline const Aws::Vector<Aws::String>& GetIdentitySource() const { return m_identitySource; }
209 inline bool IdentitySourceHasBeenSet() const { return m_identitySourceHasBeenSet; }
210 template <typename IdentitySourceT = Aws::Vector<Aws::String>>
211 void SetIdentitySource(IdentitySourceT&& value) {
212 m_identitySourceHasBeenSet = true;
213 m_identitySource = std::forward<IdentitySourceT>(value);
214 }
215 template <typename IdentitySourceT = Aws::Vector<Aws::String>>
216 Authorizer& WithIdentitySource(IdentitySourceT&& value) {
217 SetIdentitySource(std::forward<IdentitySourceT>(value));
218 return *this;
219 }
220 template <typename IdentitySourceT = Aws::String>
221 Authorizer& AddIdentitySource(IdentitySourceT&& value) {
222 m_identitySourceHasBeenSet = true;
223 m_identitySource.emplace_back(std::forward<IdentitySourceT>(value));
224 return *this;
225 }
227
229
232 inline const Aws::String& GetIdentityValidationExpression() const { return m_identityValidationExpression; }
233 inline bool IdentityValidationExpressionHasBeenSet() const { return m_identityValidationExpressionHasBeenSet; }
234 template <typename IdentityValidationExpressionT = Aws::String>
235 void SetIdentityValidationExpression(IdentityValidationExpressionT&& value) {
236 m_identityValidationExpressionHasBeenSet = true;
237 m_identityValidationExpression = std::forward<IdentityValidationExpressionT>(value);
238 }
239 template <typename IdentityValidationExpressionT = Aws::String>
240 Authorizer& WithIdentityValidationExpression(IdentityValidationExpressionT&& value) {
241 SetIdentityValidationExpression(std::forward<IdentityValidationExpressionT>(value));
242 return *this;
243 }
245
247
251 inline const JWTConfiguration& GetJwtConfiguration() const { return m_jwtConfiguration; }
252 inline bool JwtConfigurationHasBeenSet() const { return m_jwtConfigurationHasBeenSet; }
253 template <typename JwtConfigurationT = JWTConfiguration>
254 void SetJwtConfiguration(JwtConfigurationT&& value) {
255 m_jwtConfigurationHasBeenSet = true;
256 m_jwtConfiguration = std::forward<JwtConfigurationT>(value);
257 }
258 template <typename JwtConfigurationT = JWTConfiguration>
259 Authorizer& WithJwtConfiguration(JwtConfigurationT&& value) {
260 SetJwtConfiguration(std::forward<JwtConfigurationT>(value));
261 return *this;
262 }
264
266
269 inline const Aws::String& GetName() const { return m_name; }
270 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
271 template <typename NameT = Aws::String>
272 void SetName(NameT&& value) {
273 m_nameHasBeenSet = true;
274 m_name = std::forward<NameT>(value);
275 }
276 template <typename NameT = Aws::String>
277 Authorizer& WithName(NameT&& value) {
278 SetName(std::forward<NameT>(value));
279 return *this;
280 }
282 private:
283 Aws::String m_authorizerCredentialsArn;
284
285 Aws::String m_authorizerId;
286
287 Aws::String m_authorizerPayloadFormatVersion;
288
289 int m_authorizerResultTtlInSeconds{0};
290
291 AuthorizerType m_authorizerType{AuthorizerType::NOT_SET};
292
293 Aws::String m_authorizerUri;
294
295 bool m_enableSimpleResponses{false};
296
297 Aws::Vector<Aws::String> m_identitySource;
298
299 Aws::String m_identityValidationExpression;
300
301 JWTConfiguration m_jwtConfiguration;
302
303 Aws::String m_name;
304 bool m_authorizerCredentialsArnHasBeenSet = false;
305 bool m_authorizerIdHasBeenSet = false;
306 bool m_authorizerPayloadFormatVersionHasBeenSet = false;
307 bool m_authorizerResultTtlInSecondsHasBeenSet = false;
308 bool m_authorizerTypeHasBeenSet = false;
309 bool m_authorizerUriHasBeenSet = false;
310 bool m_enableSimpleResponsesHasBeenSet = false;
311 bool m_identitySourceHasBeenSet = false;
312 bool m_identityValidationExpressionHasBeenSet = false;
313 bool m_jwtConfigurationHasBeenSet = false;
314 bool m_nameHasBeenSet = false;
315};
316
317} // namespace Model
318} // namespace ApiGatewayV2
319} // namespace Aws
AWS_APIGATEWAYV2_API Authorizer(Aws::Utils::Json::JsonView jsonValue)
AWS_APIGATEWAYV2_API Authorizer & operator=(Aws::Utils::Json::JsonView jsonValue)
Authorizer & WithAuthorizerCredentialsArn(AuthorizerCredentialsArnT &&value)
Definition Authorizer.h:53
void SetAuthorizerCredentialsArn(AuthorizerCredentialsArnT &&value)
Definition Authorizer.h:48
void SetAuthorizerUri(AuthorizerUriT &&value)
Definition Authorizer.h:154
void SetIdentitySource(IdentitySourceT &&value)
Definition Authorizer.h:211
Authorizer & WithAuthorizerId(AuthorizerIdT &&value)
Definition Authorizer.h:71
Authorizer & WithAuthorizerResultTtlInSeconds(int value)
Definition Authorizer.h:112
const Aws::String & GetAuthorizerPayloadFormatVersion() const
Definition Authorizer.h:85
Authorizer & WithEnableSimpleResponses(bool value)
Definition Authorizer.h:179
void SetAuthorizerType(AuthorizerType value)
Definition Authorizer.h:126
AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetJwtConfiguration(JwtConfigurationT &&value)
Definition Authorizer.h:254
Authorizer & WithName(NameT &&value)
Definition Authorizer.h:277
const Aws::String & GetName() const
Definition Authorizer.h:269
const Aws::Vector< Aws::String > & GetIdentitySource() const
Definition Authorizer.h:208
void SetAuthorizerId(AuthorizerIdT &&value)
Definition Authorizer.h:66
bool AuthorizerPayloadFormatVersionHasBeenSet() const
Definition Authorizer.h:86
Authorizer & WithAuthorizerUri(AuthorizerUriT &&value)
Definition Authorizer.h:159
void SetIdentityValidationExpression(IdentityValidationExpressionT &&value)
Definition Authorizer.h:235
const Aws::String & GetAuthorizerCredentialsArn() const
Definition Authorizer.h:45
bool IdentityValidationExpressionHasBeenSet() const
Definition Authorizer.h:233
const Aws::String & GetAuthorizerUri() const
Definition Authorizer.h:151
Authorizer & AddIdentitySource(IdentitySourceT &&value)
Definition Authorizer.h:221
Authorizer & WithIdentitySource(IdentitySourceT &&value)
Definition Authorizer.h:216
bool AuthorizerCredentialsArnHasBeenSet() const
Definition Authorizer.h:46
AuthorizerType GetAuthorizerType() const
Definition Authorizer.h:124
const Aws::String & GetIdentityValidationExpression() const
Definition Authorizer.h:232
AWS_APIGATEWAYV2_API Authorizer()=default
Authorizer & WithAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT &&value)
Definition Authorizer.h:93
Authorizer & WithIdentityValidationExpression(IdentityValidationExpressionT &&value)
Definition Authorizer.h:240
void SetEnableSimpleResponses(bool value)
Definition Authorizer.h:175
Authorizer & WithJwtConfiguration(JwtConfigurationT &&value)
Definition Authorizer.h:259
void SetAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT &&value)
Definition Authorizer.h:88
const Aws::String & GetAuthorizerId() const
Definition Authorizer.h:63
Authorizer & WithAuthorizerType(AuthorizerType value)
Definition Authorizer.h:130
bool AuthorizerResultTtlInSecondsHasBeenSet() const
Definition Authorizer.h:107
void SetAuthorizerResultTtlInSeconds(int value)
Definition Authorizer.h:108
const JWTConfiguration & GetJwtConfiguration() const
Definition Authorizer.h:251
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue