AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
CreateAuthorizerResult.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 {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace ApiGatewayV2 {
25namespace Model {
27 public:
28 AWS_APIGATEWAYV2_API CreateAuthorizerResult() = default;
31
33
40 inline const Aws::String& GetAuthorizerCredentialsArn() const { return m_authorizerCredentialsArn; }
41 template <typename AuthorizerCredentialsArnT = Aws::String>
42 void SetAuthorizerCredentialsArn(AuthorizerCredentialsArnT&& value) {
43 m_authorizerCredentialsArnHasBeenSet = true;
44 m_authorizerCredentialsArn = std::forward<AuthorizerCredentialsArnT>(value);
45 }
46 template <typename AuthorizerCredentialsArnT = Aws::String>
47 CreateAuthorizerResult& WithAuthorizerCredentialsArn(AuthorizerCredentialsArnT&& value) {
48 SetAuthorizerCredentialsArn(std::forward<AuthorizerCredentialsArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAuthorizerId() const { return m_authorizerId; }
58 template <typename AuthorizerIdT = Aws::String>
59 void SetAuthorizerId(AuthorizerIdT&& value) {
60 m_authorizerIdHasBeenSet = true;
61 m_authorizerId = std::forward<AuthorizerIdT>(value);
62 }
63 template <typename AuthorizerIdT = Aws::String>
64 CreateAuthorizerResult& WithAuthorizerId(AuthorizerIdT&& value) {
65 SetAuthorizerId(std::forward<AuthorizerIdT>(value));
66 return *this;
67 }
69
71
78 inline const Aws::String& GetAuthorizerPayloadFormatVersion() const { return m_authorizerPayloadFormatVersion; }
79 template <typename AuthorizerPayloadFormatVersionT = Aws::String>
80 void SetAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT&& value) {
81 m_authorizerPayloadFormatVersionHasBeenSet = true;
82 m_authorizerPayloadFormatVersion = std::forward<AuthorizerPayloadFormatVersionT>(value);
83 }
84 template <typename AuthorizerPayloadFormatVersionT = Aws::String>
85 CreateAuthorizerResult& WithAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT&& value) {
86 SetAuthorizerPayloadFormatVersion(std::forward<AuthorizerPayloadFormatVersionT>(value));
87 return *this;
88 }
90
92
98 inline int GetAuthorizerResultTtlInSeconds() const { return m_authorizerResultTtlInSeconds; }
99 inline void SetAuthorizerResultTtlInSeconds(int value) {
100 m_authorizerResultTtlInSecondsHasBeenSet = true;
101 m_authorizerResultTtlInSeconds = value;
102 }
105 return *this;
106 }
108
110
115 inline AuthorizerType GetAuthorizerType() const { return m_authorizerType; }
117 m_authorizerTypeHasBeenSet = true;
118 m_authorizerType = value;
119 }
121 SetAuthorizerType(value);
122 return *this;
123 }
125
127
141 inline const Aws::String& GetAuthorizerUri() const { return m_authorizerUri; }
142 template <typename AuthorizerUriT = Aws::String>
143 void SetAuthorizerUri(AuthorizerUriT&& value) {
144 m_authorizerUriHasBeenSet = true;
145 m_authorizerUri = std::forward<AuthorizerUriT>(value);
146 }
147 template <typename AuthorizerUriT = Aws::String>
148 CreateAuthorizerResult& WithAuthorizerUri(AuthorizerUriT&& value) {
149 SetAuthorizerUri(std::forward<AuthorizerUriT>(value));
150 return *this;
151 }
153
155
162 inline bool GetEnableSimpleResponses() const { return m_enableSimpleResponses; }
163 inline void SetEnableSimpleResponses(bool value) {
164 m_enableSimpleResponsesHasBeenSet = true;
165 m_enableSimpleResponses = value;
166 }
169 return *this;
170 }
172
174
196 inline const Aws::Vector<Aws::String>& GetIdentitySource() const { return m_identitySource; }
197 template <typename IdentitySourceT = Aws::Vector<Aws::String>>
198 void SetIdentitySource(IdentitySourceT&& value) {
199 m_identitySourceHasBeenSet = true;
200 m_identitySource = std::forward<IdentitySourceT>(value);
201 }
202 template <typename IdentitySourceT = Aws::Vector<Aws::String>>
203 CreateAuthorizerResult& WithIdentitySource(IdentitySourceT&& value) {
204 SetIdentitySource(std::forward<IdentitySourceT>(value));
205 return *this;
206 }
207 template <typename IdentitySourceT = Aws::String>
208 CreateAuthorizerResult& AddIdentitySource(IdentitySourceT&& value) {
209 m_identitySourceHasBeenSet = true;
210 m_identitySource.emplace_back(std::forward<IdentitySourceT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::String& GetIdentityValidationExpression() const { return m_identityValidationExpression; }
220 template <typename IdentityValidationExpressionT = Aws::String>
221 void SetIdentityValidationExpression(IdentityValidationExpressionT&& value) {
222 m_identityValidationExpressionHasBeenSet = true;
223 m_identityValidationExpression = std::forward<IdentityValidationExpressionT>(value);
224 }
225 template <typename IdentityValidationExpressionT = Aws::String>
226 CreateAuthorizerResult& WithIdentityValidationExpression(IdentityValidationExpressionT&& value) {
227 SetIdentityValidationExpression(std::forward<IdentityValidationExpressionT>(value));
228 return *this;
229 }
231
233
237 inline const JWTConfiguration& GetJwtConfiguration() const { return m_jwtConfiguration; }
238 template <typename JwtConfigurationT = JWTConfiguration>
239 void SetJwtConfiguration(JwtConfigurationT&& value) {
240 m_jwtConfigurationHasBeenSet = true;
241 m_jwtConfiguration = std::forward<JwtConfigurationT>(value);
242 }
243 template <typename JwtConfigurationT = JWTConfiguration>
244 CreateAuthorizerResult& WithJwtConfiguration(JwtConfigurationT&& value) {
245 SetJwtConfiguration(std::forward<JwtConfigurationT>(value));
246 return *this;
247 }
249
251
254 inline const Aws::String& GetName() const { return m_name; }
255 template <typename NameT = Aws::String>
256 void SetName(NameT&& value) {
257 m_nameHasBeenSet = true;
258 m_name = std::forward<NameT>(value);
259 }
260 template <typename NameT = Aws::String>
262 SetName(std::forward<NameT>(value));
263 return *this;
264 }
266
268
269 inline const Aws::String& GetRequestId() const { return m_requestId; }
270 template <typename RequestIdT = Aws::String>
271 void SetRequestId(RequestIdT&& value) {
272 m_requestIdHasBeenSet = true;
273 m_requestId = std::forward<RequestIdT>(value);
274 }
275 template <typename RequestIdT = Aws::String>
277 SetRequestId(std::forward<RequestIdT>(value));
278 return *this;
279 }
281 private:
282 Aws::String m_authorizerCredentialsArn;
283
284 Aws::String m_authorizerId;
285
286 Aws::String m_authorizerPayloadFormatVersion;
287
288 int m_authorizerResultTtlInSeconds{0};
289
290 AuthorizerType m_authorizerType{AuthorizerType::NOT_SET};
291
292 Aws::String m_authorizerUri;
293
294 bool m_enableSimpleResponses{false};
295
296 Aws::Vector<Aws::String> m_identitySource;
297
298 Aws::String m_identityValidationExpression;
299
300 JWTConfiguration m_jwtConfiguration;
301
302 Aws::String m_name;
303
304 Aws::String m_requestId;
305 bool m_authorizerCredentialsArnHasBeenSet = false;
306 bool m_authorizerIdHasBeenSet = false;
307 bool m_authorizerPayloadFormatVersionHasBeenSet = false;
308 bool m_authorizerResultTtlInSecondsHasBeenSet = false;
309 bool m_authorizerTypeHasBeenSet = false;
310 bool m_authorizerUriHasBeenSet = false;
311 bool m_enableSimpleResponsesHasBeenSet = false;
312 bool m_identitySourceHasBeenSet = false;
313 bool m_identityValidationExpressionHasBeenSet = false;
314 bool m_jwtConfigurationHasBeenSet = false;
315 bool m_nameHasBeenSet = false;
316 bool m_requestIdHasBeenSet = false;
317};
318
319} // namespace Model
320} // namespace ApiGatewayV2
321} // namespace Aws
CreateAuthorizerResult & AddIdentitySource(IdentitySourceT &&value)
void SetIdentityValidationExpression(IdentityValidationExpressionT &&value)
CreateAuthorizerResult & WithJwtConfiguration(JwtConfigurationT &&value)
AWS_APIGATEWAYV2_API CreateAuthorizerResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Aws::String > & GetIdentitySource() const
CreateAuthorizerResult & WithAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT &&value)
CreateAuthorizerResult & WithAuthorizerUri(AuthorizerUriT &&value)
CreateAuthorizerResult & WithAuthorizerType(AuthorizerType value)
AWS_APIGATEWAYV2_API CreateAuthorizerResult()=default
CreateAuthorizerResult & WithAuthorizerId(AuthorizerIdT &&value)
void SetAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT &&value)
CreateAuthorizerResult & WithIdentitySource(IdentitySourceT &&value)
CreateAuthorizerResult & WithName(NameT &&value)
AWS_APIGATEWAYV2_API CreateAuthorizerResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateAuthorizerResult & WithIdentityValidationExpression(IdentityValidationExpressionT &&value)
CreateAuthorizerResult & WithRequestId(RequestIdT &&value)
CreateAuthorizerResult & WithEnableSimpleResponses(bool value)
CreateAuthorizerResult & WithAuthorizerResultTtlInSeconds(int value)
void SetAuthorizerCredentialsArn(AuthorizerCredentialsArnT &&value)
CreateAuthorizerResult & WithAuthorizerCredentialsArn(AuthorizerCredentialsArnT &&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