AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AuthorizerCredentialsArnT = Aws::String>
54 void SetAuthorizerCredentialsArn(AuthorizerCredentialsArnT&& value) { m_authorizerCredentialsArnHasBeenSet = true; m_authorizerCredentialsArn = std::forward<AuthorizerCredentialsArnT>(value); }
55 template<typename AuthorizerCredentialsArnT = Aws::String>
56 Authorizer& WithAuthorizerCredentialsArn(AuthorizerCredentialsArnT&& value) { SetAuthorizerCredentialsArn(std::forward<AuthorizerCredentialsArnT>(value)); return *this;}
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) { m_authorizerIdHasBeenSet = true; m_authorizerId = std::forward<AuthorizerIdT>(value); }
67 template<typename AuthorizerIdT = Aws::String>
68 Authorizer& WithAuthorizerId(AuthorizerIdT&& value) { SetAuthorizerId(std::forward<AuthorizerIdT>(value)); return *this;}
70
72
79 inline const Aws::String& GetAuthorizerPayloadFormatVersion() const { return m_authorizerPayloadFormatVersion; }
80 inline bool AuthorizerPayloadFormatVersionHasBeenSet() const { return m_authorizerPayloadFormatVersionHasBeenSet; }
81 template<typename AuthorizerPayloadFormatVersionT = Aws::String>
82 void SetAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT&& value) { m_authorizerPayloadFormatVersionHasBeenSet = true; m_authorizerPayloadFormatVersion = std::forward<AuthorizerPayloadFormatVersionT>(value); }
83 template<typename AuthorizerPayloadFormatVersionT = Aws::String>
84 Authorizer& WithAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT&& value) { SetAuthorizerPayloadFormatVersion(std::forward<AuthorizerPayloadFormatVersionT>(value)); return *this;}
86
88
94 inline int GetAuthorizerResultTtlInSeconds() const { return m_authorizerResultTtlInSeconds; }
95 inline bool AuthorizerResultTtlInSecondsHasBeenSet() const { return m_authorizerResultTtlInSecondsHasBeenSet; }
96 inline void SetAuthorizerResultTtlInSeconds(int value) { m_authorizerResultTtlInSecondsHasBeenSet = true; m_authorizerResultTtlInSeconds = value; }
99
101
106 inline AuthorizerType GetAuthorizerType() const { return m_authorizerType; }
107 inline bool AuthorizerTypeHasBeenSet() const { return m_authorizerTypeHasBeenSet; }
108 inline void SetAuthorizerType(AuthorizerType value) { m_authorizerTypeHasBeenSet = true; m_authorizerType = value; }
109 inline Authorizer& WithAuthorizerType(AuthorizerType value) { SetAuthorizerType(value); return *this;}
111
113
127 inline const Aws::String& GetAuthorizerUri() const { return m_authorizerUri; }
128 inline bool AuthorizerUriHasBeenSet() const { return m_authorizerUriHasBeenSet; }
129 template<typename AuthorizerUriT = Aws::String>
130 void SetAuthorizerUri(AuthorizerUriT&& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = std::forward<AuthorizerUriT>(value); }
131 template<typename AuthorizerUriT = Aws::String>
132 Authorizer& WithAuthorizerUri(AuthorizerUriT&& value) { SetAuthorizerUri(std::forward<AuthorizerUriT>(value)); return *this;}
134
136
143 inline bool GetEnableSimpleResponses() const { return m_enableSimpleResponses; }
144 inline bool EnableSimpleResponsesHasBeenSet() const { return m_enableSimpleResponsesHasBeenSet; }
145 inline void SetEnableSimpleResponses(bool value) { m_enableSimpleResponsesHasBeenSet = true; m_enableSimpleResponses = value; }
146 inline Authorizer& WithEnableSimpleResponses(bool value) { SetEnableSimpleResponses(value); return *this;}
148
150
172 inline const Aws::Vector<Aws::String>& GetIdentitySource() const { return m_identitySource; }
173 inline bool IdentitySourceHasBeenSet() const { return m_identitySourceHasBeenSet; }
174 template<typename IdentitySourceT = Aws::Vector<Aws::String>>
175 void SetIdentitySource(IdentitySourceT&& value) { m_identitySourceHasBeenSet = true; m_identitySource = std::forward<IdentitySourceT>(value); }
176 template<typename IdentitySourceT = Aws::Vector<Aws::String>>
177 Authorizer& WithIdentitySource(IdentitySourceT&& value) { SetIdentitySource(std::forward<IdentitySourceT>(value)); return *this;}
178 template<typename IdentitySourceT = Aws::String>
179 Authorizer& AddIdentitySource(IdentitySourceT&& value) { m_identitySourceHasBeenSet = true; m_identitySource.emplace_back(std::forward<IdentitySourceT>(value)); return *this; }
181
183
186 inline const Aws::String& GetIdentityValidationExpression() const { return m_identityValidationExpression; }
187 inline bool IdentityValidationExpressionHasBeenSet() const { return m_identityValidationExpressionHasBeenSet; }
188 template<typename IdentityValidationExpressionT = Aws::String>
189 void SetIdentityValidationExpression(IdentityValidationExpressionT&& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = std::forward<IdentityValidationExpressionT>(value); }
190 template<typename IdentityValidationExpressionT = Aws::String>
191 Authorizer& WithIdentityValidationExpression(IdentityValidationExpressionT&& value) { SetIdentityValidationExpression(std::forward<IdentityValidationExpressionT>(value)); return *this;}
193
195
199 inline const JWTConfiguration& GetJwtConfiguration() const { return m_jwtConfiguration; }
200 inline bool JwtConfigurationHasBeenSet() const { return m_jwtConfigurationHasBeenSet; }
201 template<typename JwtConfigurationT = JWTConfiguration>
202 void SetJwtConfiguration(JwtConfigurationT&& value) { m_jwtConfigurationHasBeenSet = true; m_jwtConfiguration = std::forward<JwtConfigurationT>(value); }
203 template<typename JwtConfigurationT = JWTConfiguration>
204 Authorizer& WithJwtConfiguration(JwtConfigurationT&& value) { SetJwtConfiguration(std::forward<JwtConfigurationT>(value)); return *this;}
206
208
211 inline const Aws::String& GetName() const { return m_name; }
212 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
213 template<typename NameT = Aws::String>
214 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
215 template<typename NameT = Aws::String>
216 Authorizer& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
218 private:
219
220 Aws::String m_authorizerCredentialsArn;
221 bool m_authorizerCredentialsArnHasBeenSet = false;
222
223 Aws::String m_authorizerId;
224 bool m_authorizerIdHasBeenSet = false;
225
226 Aws::String m_authorizerPayloadFormatVersion;
227 bool m_authorizerPayloadFormatVersionHasBeenSet = false;
228
229 int m_authorizerResultTtlInSeconds{0};
230 bool m_authorizerResultTtlInSecondsHasBeenSet = false;
231
232 AuthorizerType m_authorizerType{AuthorizerType::NOT_SET};
233 bool m_authorizerTypeHasBeenSet = false;
234
235 Aws::String m_authorizerUri;
236 bool m_authorizerUriHasBeenSet = false;
237
238 bool m_enableSimpleResponses{false};
239 bool m_enableSimpleResponsesHasBeenSet = false;
240
241 Aws::Vector<Aws::String> m_identitySource;
242 bool m_identitySourceHasBeenSet = false;
243
244 Aws::String m_identityValidationExpression;
245 bool m_identityValidationExpressionHasBeenSet = false;
246
247 JWTConfiguration m_jwtConfiguration;
248 bool m_jwtConfigurationHasBeenSet = false;
249
250 Aws::String m_name;
251 bool m_nameHasBeenSet = false;
252 };
253
254} // namespace Model
255} // namespace ApiGatewayV2
256} // 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:56
void SetAuthorizerCredentialsArn(AuthorizerCredentialsArnT &&value)
Definition Authorizer.h:54
void SetAuthorizerUri(AuthorizerUriT &&value)
Definition Authorizer.h:130
void SetIdentitySource(IdentitySourceT &&value)
Definition Authorizer.h:175
Authorizer & WithAuthorizerId(AuthorizerIdT &&value)
Definition Authorizer.h:68
Authorizer & WithAuthorizerResultTtlInSeconds(int value)
Definition Authorizer.h:97
const Aws::String & GetAuthorizerPayloadFormatVersion() const
Definition Authorizer.h:79
Authorizer & WithEnableSimpleResponses(bool value)
Definition Authorizer.h:146
void SetAuthorizerType(AuthorizerType value)
Definition Authorizer.h:108
AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetJwtConfiguration(JwtConfigurationT &&value)
Definition Authorizer.h:202
Authorizer & WithName(NameT &&value)
Definition Authorizer.h:216
const Aws::String & GetName() const
Definition Authorizer.h:211
const Aws::Vector< Aws::String > & GetIdentitySource() const
Definition Authorizer.h:172
void SetAuthorizerId(AuthorizerIdT &&value)
Definition Authorizer.h:66
bool AuthorizerPayloadFormatVersionHasBeenSet() const
Definition Authorizer.h:80
Authorizer & WithAuthorizerUri(AuthorizerUriT &&value)
Definition Authorizer.h:132
void SetIdentityValidationExpression(IdentityValidationExpressionT &&value)
Definition Authorizer.h:189
const Aws::String & GetAuthorizerCredentialsArn() const
Definition Authorizer.h:51
bool IdentityValidationExpressionHasBeenSet() const
Definition Authorizer.h:187
const Aws::String & GetAuthorizerUri() const
Definition Authorizer.h:127
Authorizer & AddIdentitySource(IdentitySourceT &&value)
Definition Authorizer.h:179
Authorizer & WithIdentitySource(IdentitySourceT &&value)
Definition Authorizer.h:177
bool AuthorizerCredentialsArnHasBeenSet() const
Definition Authorizer.h:52
AuthorizerType GetAuthorizerType() const
Definition Authorizer.h:106
const Aws::String & GetIdentityValidationExpression() const
Definition Authorizer.h:186
AWS_APIGATEWAYV2_API Authorizer()=default
Authorizer & WithAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT &&value)
Definition Authorizer.h:84
Authorizer & WithIdentityValidationExpression(IdentityValidationExpressionT &&value)
Definition Authorizer.h:191
void SetEnableSimpleResponses(bool value)
Definition Authorizer.h:145
Authorizer & WithJwtConfiguration(JwtConfigurationT &&value)
Definition Authorizer.h:204
void SetAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT &&value)
Definition Authorizer.h:82
const Aws::String & GetAuthorizerId() const
Definition Authorizer.h:63
Authorizer & WithAuthorizerType(AuthorizerType value)
Definition Authorizer.h:109
bool AuthorizerResultTtlInSecondsHasBeenSet() const
Definition Authorizer.h:95
void SetAuthorizerResultTtlInSeconds(int value)
Definition Authorizer.h:96
const JWTConfiguration & GetJwtConfiguration() const
Definition Authorizer.h:199
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue