AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Authorizer.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/apigatewayv2/model/AuthorizerType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/apigatewayv2/model/JWTConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ApiGatewayV2
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_APIGATEWAYV2_API Authorizer();
38 AWS_APIGATEWAYV2_API Authorizer(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APIGATEWAYV2_API Authorizer& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
51 inline const Aws::String& GetAuthorizerCredentialsArn() const{ return m_authorizerCredentialsArn; }
52 inline bool AuthorizerCredentialsArnHasBeenSet() const { return m_authorizerCredentialsArnHasBeenSet; }
53 inline void SetAuthorizerCredentialsArn(const Aws::String& value) { m_authorizerCredentialsArnHasBeenSet = true; m_authorizerCredentialsArn = value; }
54 inline void SetAuthorizerCredentialsArn(Aws::String&& value) { m_authorizerCredentialsArnHasBeenSet = true; m_authorizerCredentialsArn = std::move(value); }
55 inline void SetAuthorizerCredentialsArn(const char* value) { m_authorizerCredentialsArnHasBeenSet = true; m_authorizerCredentialsArn.assign(value); }
57 inline Authorizer& WithAuthorizerCredentialsArn(Aws::String&& value) { SetAuthorizerCredentialsArn(std::move(value)); return *this;}
58 inline Authorizer& WithAuthorizerCredentialsArn(const char* value) { SetAuthorizerCredentialsArn(value); return *this;}
60
62
65 inline const Aws::String& GetAuthorizerId() const{ return m_authorizerId; }
66 inline bool AuthorizerIdHasBeenSet() const { return m_authorizerIdHasBeenSet; }
67 inline void SetAuthorizerId(const Aws::String& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = value; }
68 inline void SetAuthorizerId(Aws::String&& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = std::move(value); }
69 inline void SetAuthorizerId(const char* value) { m_authorizerIdHasBeenSet = true; m_authorizerId.assign(value); }
70 inline Authorizer& WithAuthorizerId(const Aws::String& value) { SetAuthorizerId(value); return *this;}
71 inline Authorizer& WithAuthorizerId(Aws::String&& value) { SetAuthorizerId(std::move(value)); return *this;}
72 inline Authorizer& WithAuthorizerId(const char* value) { SetAuthorizerId(value); return *this;}
74
76
83 inline const Aws::String& GetAuthorizerPayloadFormatVersion() const{ return m_authorizerPayloadFormatVersion; }
84 inline bool AuthorizerPayloadFormatVersionHasBeenSet() const { return m_authorizerPayloadFormatVersionHasBeenSet; }
85 inline void SetAuthorizerPayloadFormatVersion(const Aws::String& value) { m_authorizerPayloadFormatVersionHasBeenSet = true; m_authorizerPayloadFormatVersion = value; }
86 inline void SetAuthorizerPayloadFormatVersion(Aws::String&& value) { m_authorizerPayloadFormatVersionHasBeenSet = true; m_authorizerPayloadFormatVersion = std::move(value); }
87 inline void SetAuthorizerPayloadFormatVersion(const char* value) { m_authorizerPayloadFormatVersionHasBeenSet = true; m_authorizerPayloadFormatVersion.assign(value); }
90 inline Authorizer& WithAuthorizerPayloadFormatVersion(const char* value) { SetAuthorizerPayloadFormatVersion(value); return *this;}
92
94
100 inline int GetAuthorizerResultTtlInSeconds() const{ return m_authorizerResultTtlInSeconds; }
101 inline bool AuthorizerResultTtlInSecondsHasBeenSet() const { return m_authorizerResultTtlInSecondsHasBeenSet; }
102 inline void SetAuthorizerResultTtlInSeconds(int value) { m_authorizerResultTtlInSecondsHasBeenSet = true; m_authorizerResultTtlInSeconds = value; }
105
107
112 inline const AuthorizerType& GetAuthorizerType() const{ return m_authorizerType; }
113 inline bool AuthorizerTypeHasBeenSet() const { return m_authorizerTypeHasBeenSet; }
114 inline void SetAuthorizerType(const AuthorizerType& value) { m_authorizerTypeHasBeenSet = true; m_authorizerType = value; }
115 inline void SetAuthorizerType(AuthorizerType&& value) { m_authorizerTypeHasBeenSet = true; m_authorizerType = std::move(value); }
116 inline Authorizer& WithAuthorizerType(const AuthorizerType& value) { SetAuthorizerType(value); return *this;}
117 inline Authorizer& WithAuthorizerType(AuthorizerType&& value) { SetAuthorizerType(std::move(value)); return *this;}
119
121
135 inline const Aws::String& GetAuthorizerUri() const{ return m_authorizerUri; }
136 inline bool AuthorizerUriHasBeenSet() const { return m_authorizerUriHasBeenSet; }
137 inline void SetAuthorizerUri(const Aws::String& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = value; }
138 inline void SetAuthorizerUri(Aws::String&& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = std::move(value); }
139 inline void SetAuthorizerUri(const char* value) { m_authorizerUriHasBeenSet = true; m_authorizerUri.assign(value); }
140 inline Authorizer& WithAuthorizerUri(const Aws::String& value) { SetAuthorizerUri(value); return *this;}
141 inline Authorizer& WithAuthorizerUri(Aws::String&& value) { SetAuthorizerUri(std::move(value)); return *this;}
142 inline Authorizer& WithAuthorizerUri(const char* value) { SetAuthorizerUri(value); return *this;}
144
146
153 inline bool GetEnableSimpleResponses() const{ return m_enableSimpleResponses; }
154 inline bool EnableSimpleResponsesHasBeenSet() const { return m_enableSimpleResponsesHasBeenSet; }
155 inline void SetEnableSimpleResponses(bool value) { m_enableSimpleResponsesHasBeenSet = true; m_enableSimpleResponses = value; }
156 inline Authorizer& WithEnableSimpleResponses(bool value) { SetEnableSimpleResponses(value); return *this;}
158
160
182 inline const Aws::Vector<Aws::String>& GetIdentitySource() const{ return m_identitySource; }
183 inline bool IdentitySourceHasBeenSet() const { return m_identitySourceHasBeenSet; }
184 inline void SetIdentitySource(const Aws::Vector<Aws::String>& value) { m_identitySourceHasBeenSet = true; m_identitySource = value; }
185 inline void SetIdentitySource(Aws::Vector<Aws::String>&& value) { m_identitySourceHasBeenSet = true; m_identitySource = std::move(value); }
186 inline Authorizer& WithIdentitySource(const Aws::Vector<Aws::String>& value) { SetIdentitySource(value); return *this;}
187 inline Authorizer& WithIdentitySource(Aws::Vector<Aws::String>&& value) { SetIdentitySource(std::move(value)); return *this;}
188 inline Authorizer& AddIdentitySource(const Aws::String& value) { m_identitySourceHasBeenSet = true; m_identitySource.push_back(value); return *this; }
189 inline Authorizer& AddIdentitySource(Aws::String&& value) { m_identitySourceHasBeenSet = true; m_identitySource.push_back(std::move(value)); return *this; }
190 inline Authorizer& AddIdentitySource(const char* value) { m_identitySourceHasBeenSet = true; m_identitySource.push_back(value); return *this; }
192
194
197 inline const Aws::String& GetIdentityValidationExpression() const{ return m_identityValidationExpression; }
198 inline bool IdentityValidationExpressionHasBeenSet() const { return m_identityValidationExpressionHasBeenSet; }
199 inline void SetIdentityValidationExpression(const Aws::String& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = value; }
200 inline void SetIdentityValidationExpression(Aws::String&& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = std::move(value); }
201 inline void SetIdentityValidationExpression(const char* value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression.assign(value); }
204 inline Authorizer& WithIdentityValidationExpression(const char* value) { SetIdentityValidationExpression(value); return *this;}
206
208
212 inline const JWTConfiguration& GetJwtConfiguration() const{ return m_jwtConfiguration; }
213 inline bool JwtConfigurationHasBeenSet() const { return m_jwtConfigurationHasBeenSet; }
214 inline void SetJwtConfiguration(const JWTConfiguration& value) { m_jwtConfigurationHasBeenSet = true; m_jwtConfiguration = value; }
215 inline void SetJwtConfiguration(JWTConfiguration&& value) { m_jwtConfigurationHasBeenSet = true; m_jwtConfiguration = std::move(value); }
216 inline Authorizer& WithJwtConfiguration(const JWTConfiguration& value) { SetJwtConfiguration(value); return *this;}
217 inline Authorizer& WithJwtConfiguration(JWTConfiguration&& value) { SetJwtConfiguration(std::move(value)); return *this;}
219
221
224 inline const Aws::String& GetName() const{ return m_name; }
225 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
226 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
227 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
228 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
229 inline Authorizer& WithName(const Aws::String& value) { SetName(value); return *this;}
230 inline Authorizer& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
231 inline Authorizer& WithName(const char* value) { SetName(value); return *this;}
233 private:
234
235 Aws::String m_authorizerCredentialsArn;
236 bool m_authorizerCredentialsArnHasBeenSet = false;
237
238 Aws::String m_authorizerId;
239 bool m_authorizerIdHasBeenSet = false;
240
241 Aws::String m_authorizerPayloadFormatVersion;
242 bool m_authorizerPayloadFormatVersionHasBeenSet = false;
243
244 int m_authorizerResultTtlInSeconds;
245 bool m_authorizerResultTtlInSecondsHasBeenSet = false;
246
247 AuthorizerType m_authorizerType;
248 bool m_authorizerTypeHasBeenSet = false;
249
250 Aws::String m_authorizerUri;
251 bool m_authorizerUriHasBeenSet = false;
252
253 bool m_enableSimpleResponses;
254 bool m_enableSimpleResponsesHasBeenSet = false;
255
256 Aws::Vector<Aws::String> m_identitySource;
257 bool m_identitySourceHasBeenSet = false;
258
259 Aws::String m_identityValidationExpression;
260 bool m_identityValidationExpressionHasBeenSet = false;
261
262 JWTConfiguration m_jwtConfiguration;
263 bool m_jwtConfigurationHasBeenSet = false;
264
265 Aws::String m_name;
266 bool m_nameHasBeenSet = false;
267 };
268
269} // namespace Model
270} // namespace ApiGatewayV2
271} // namespace Aws
AWS_APIGATEWAYV2_API Authorizer(Aws::Utils::Json::JsonView jsonValue)
AWS_APIGATEWAYV2_API Authorizer & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAuthorizerPayloadFormatVersion(const char *value)
Definition Authorizer.h:87
Authorizer & WithAuthorizerPayloadFormatVersion(const Aws::String &value)
Definition Authorizer.h:88
void SetJwtConfiguration(JWTConfiguration &&value)
Definition Authorizer.h:215
Authorizer & AddIdentitySource(const Aws::String &value)
Definition Authorizer.h:188
void SetAuthorizerType(const AuthorizerType &value)
Definition Authorizer.h:114
Authorizer & WithAuthorizerResultTtlInSeconds(int value)
Definition Authorizer.h:103
Authorizer & WithAuthorizerUri(Aws::String &&value)
Definition Authorizer.h:141
Authorizer & WithAuthorizerCredentialsArn(const Aws::String &value)
Definition Authorizer.h:56
const Aws::String & GetAuthorizerPayloadFormatVersion() const
Definition Authorizer.h:83
Authorizer & WithIdentityValidationExpression(Aws::String &&value)
Definition Authorizer.h:203
Authorizer & WithEnableSimpleResponses(bool value)
Definition Authorizer.h:156
Authorizer & WithAuthorizerPayloadFormatVersion(const char *value)
Definition Authorizer.h:90
AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAuthorizerId(const Aws::String &value)
Definition Authorizer.h:67
void SetAuthorizerId(Aws::String &&value)
Definition Authorizer.h:68
void SetAuthorizerType(AuthorizerType &&value)
Definition Authorizer.h:115
Authorizer & WithIdentityValidationExpression(const char *value)
Definition Authorizer.h:204
void SetAuthorizerPayloadFormatVersion(const Aws::String &value)
Definition Authorizer.h:85
Authorizer & WithAuthorizerId(const Aws::String &value)
Definition Authorizer.h:70
Authorizer & WithName(const Aws::String &value)
Definition Authorizer.h:229
const Aws::String & GetName() const
Definition Authorizer.h:224
const Aws::Vector< Aws::String > & GetIdentitySource() const
Definition Authorizer.h:182
void SetName(const char *value)
Definition Authorizer.h:228
Authorizer & WithJwtConfiguration(const JWTConfiguration &value)
Definition Authorizer.h:216
void SetAuthorizerUri(Aws::String &&value)
Definition Authorizer.h:138
void SetIdentitySource(const Aws::Vector< Aws::String > &value)
Definition Authorizer.h:184
void SetJwtConfiguration(const JWTConfiguration &value)
Definition Authorizer.h:214
void SetIdentityValidationExpression(const char *value)
Definition Authorizer.h:201
void SetIdentityValidationExpression(Aws::String &&value)
Definition Authorizer.h:200
bool AuthorizerPayloadFormatVersionHasBeenSet() const
Definition Authorizer.h:84
Authorizer & AddIdentitySource(Aws::String &&value)
Definition Authorizer.h:189
Authorizer & WithAuthorizerId(const char *value)
Definition Authorizer.h:72
const Aws::String & GetAuthorizerCredentialsArn() const
Definition Authorizer.h:51
const AuthorizerType & GetAuthorizerType() const
Definition Authorizer.h:112
Authorizer & WithName(const char *value)
Definition Authorizer.h:231
Authorizer & WithAuthorizerType(const AuthorizerType &value)
Definition Authorizer.h:116
void SetIdentityValidationExpression(const Aws::String &value)
Definition Authorizer.h:199
bool IdentityValidationExpressionHasBeenSet() const
Definition Authorizer.h:198
Authorizer & WithAuthorizerUri(const char *value)
Definition Authorizer.h:142
const Aws::String & GetAuthorizerUri() const
Definition Authorizer.h:135
Authorizer & WithAuthorizerPayloadFormatVersion(Aws::String &&value)
Definition Authorizer.h:89
Authorizer & WithAuthorizerCredentialsArn(const char *value)
Definition Authorizer.h:58
bool AuthorizerCredentialsArnHasBeenSet() const
Definition Authorizer.h:52
const Aws::String & GetIdentityValidationExpression() const
Definition Authorizer.h:197
void SetIdentitySource(Aws::Vector< Aws::String > &&value)
Definition Authorizer.h:185
Authorizer & WithIdentitySource(const Aws::Vector< Aws::String > &value)
Definition Authorizer.h:186
Authorizer & WithAuthorizerType(AuthorizerType &&value)
Definition Authorizer.h:117
Authorizer & AddIdentitySource(const char *value)
Definition Authorizer.h:190
void SetAuthorizerCredentialsArn(Aws::String &&value)
Definition Authorizer.h:54
Authorizer & WithAuthorizerUri(const Aws::String &value)
Definition Authorizer.h:140
void SetAuthorizerCredentialsArn(const Aws::String &value)
Definition Authorizer.h:53
Authorizer & WithJwtConfiguration(JWTConfiguration &&value)
Definition Authorizer.h:217
Authorizer & WithAuthorizerId(Aws::String &&value)
Definition Authorizer.h:71
Authorizer & WithIdentityValidationExpression(const Aws::String &value)
Definition Authorizer.h:202
void SetEnableSimpleResponses(bool value)
Definition Authorizer.h:155
Authorizer & WithName(Aws::String &&value)
Definition Authorizer.h:230
void SetAuthorizerId(const char *value)
Definition Authorizer.h:69
void SetAuthorizerUri(const Aws::String &value)
Definition Authorizer.h:137
const Aws::String & GetAuthorizerId() const
Definition Authorizer.h:65
Authorizer & WithAuthorizerCredentialsArn(Aws::String &&value)
Definition Authorizer.h:57
void SetName(Aws::String &&value)
Definition Authorizer.h:227
void SetAuthorizerCredentialsArn(const char *value)
Definition Authorizer.h:55
Authorizer & WithIdentitySource(Aws::Vector< Aws::String > &&value)
Definition Authorizer.h:187
void SetAuthorizerUri(const char *value)
Definition Authorizer.h:139
bool AuthorizerResultTtlInSecondsHasBeenSet() const
Definition Authorizer.h:101
void SetName(const Aws::String &value)
Definition Authorizer.h:226
AWS_APIGATEWAYV2_API Authorizer()
void SetAuthorizerPayloadFormatVersion(Aws::String &&value)
Definition Authorizer.h:86
void SetAuthorizerResultTtlInSeconds(int value)
Definition Authorizer.h:102
const JWTConfiguration & GetJwtConfiguration() const
Definition Authorizer.h:212
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue