AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateAuthorizerResult.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{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace ApiGatewayV2
27{
28namespace Model
29{
31 {
32 public:
33 AWS_APIGATEWAYV2_API CreateAuthorizerResult() = default;
36
37
39
46 inline const Aws::String& GetAuthorizerCredentialsArn() const { return m_authorizerCredentialsArn; }
47 template<typename AuthorizerCredentialsArnT = Aws::String>
48 void SetAuthorizerCredentialsArn(AuthorizerCredentialsArnT&& value) { m_authorizerCredentialsArnHasBeenSet = true; m_authorizerCredentialsArn = std::forward<AuthorizerCredentialsArnT>(value); }
49 template<typename AuthorizerCredentialsArnT = Aws::String>
50 CreateAuthorizerResult& WithAuthorizerCredentialsArn(AuthorizerCredentialsArnT&& value) { SetAuthorizerCredentialsArn(std::forward<AuthorizerCredentialsArnT>(value)); return *this;}
52
54
57 inline const Aws::String& GetAuthorizerId() const { return m_authorizerId; }
58 template<typename AuthorizerIdT = Aws::String>
59 void SetAuthorizerId(AuthorizerIdT&& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = std::forward<AuthorizerIdT>(value); }
60 template<typename AuthorizerIdT = Aws::String>
61 CreateAuthorizerResult& WithAuthorizerId(AuthorizerIdT&& value) { SetAuthorizerId(std::forward<AuthorizerIdT>(value)); return *this;}
63
65
72 inline const Aws::String& GetAuthorizerPayloadFormatVersion() const { return m_authorizerPayloadFormatVersion; }
73 template<typename AuthorizerPayloadFormatVersionT = Aws::String>
74 void SetAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT&& value) { m_authorizerPayloadFormatVersionHasBeenSet = true; m_authorizerPayloadFormatVersion = std::forward<AuthorizerPayloadFormatVersionT>(value); }
75 template<typename AuthorizerPayloadFormatVersionT = Aws::String>
76 CreateAuthorizerResult& WithAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT&& value) { SetAuthorizerPayloadFormatVersion(std::forward<AuthorizerPayloadFormatVersionT>(value)); return *this;}
78
80
86 inline int GetAuthorizerResultTtlInSeconds() const { return m_authorizerResultTtlInSeconds; }
87 inline void SetAuthorizerResultTtlInSeconds(int value) { m_authorizerResultTtlInSecondsHasBeenSet = true; m_authorizerResultTtlInSeconds = value; }
90
92
97 inline AuthorizerType GetAuthorizerType() const { return m_authorizerType; }
98 inline void SetAuthorizerType(AuthorizerType value) { m_authorizerTypeHasBeenSet = true; m_authorizerType = value; }
101
103
117 inline const Aws::String& GetAuthorizerUri() const { return m_authorizerUri; }
118 template<typename AuthorizerUriT = Aws::String>
119 void SetAuthorizerUri(AuthorizerUriT&& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = std::forward<AuthorizerUriT>(value); }
120 template<typename AuthorizerUriT = Aws::String>
121 CreateAuthorizerResult& WithAuthorizerUri(AuthorizerUriT&& value) { SetAuthorizerUri(std::forward<AuthorizerUriT>(value)); return *this;}
123
125
132 inline bool GetEnableSimpleResponses() const { return m_enableSimpleResponses; }
133 inline void SetEnableSimpleResponses(bool value) { m_enableSimpleResponsesHasBeenSet = true; m_enableSimpleResponses = value; }
136
138
160 inline const Aws::Vector<Aws::String>& GetIdentitySource() const { return m_identitySource; }
161 template<typename IdentitySourceT = Aws::Vector<Aws::String>>
162 void SetIdentitySource(IdentitySourceT&& value) { m_identitySourceHasBeenSet = true; m_identitySource = std::forward<IdentitySourceT>(value); }
163 template<typename IdentitySourceT = Aws::Vector<Aws::String>>
164 CreateAuthorizerResult& WithIdentitySource(IdentitySourceT&& value) { SetIdentitySource(std::forward<IdentitySourceT>(value)); return *this;}
165 template<typename IdentitySourceT = Aws::String>
166 CreateAuthorizerResult& AddIdentitySource(IdentitySourceT&& value) { m_identitySourceHasBeenSet = true; m_identitySource.emplace_back(std::forward<IdentitySourceT>(value)); return *this; }
168
170
173 inline const Aws::String& GetIdentityValidationExpression() const { return m_identityValidationExpression; }
174 template<typename IdentityValidationExpressionT = Aws::String>
175 void SetIdentityValidationExpression(IdentityValidationExpressionT&& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = std::forward<IdentityValidationExpressionT>(value); }
176 template<typename IdentityValidationExpressionT = Aws::String>
177 CreateAuthorizerResult& WithIdentityValidationExpression(IdentityValidationExpressionT&& value) { SetIdentityValidationExpression(std::forward<IdentityValidationExpressionT>(value)); return *this;}
179
181
185 inline const JWTConfiguration& GetJwtConfiguration() const { return m_jwtConfiguration; }
186 template<typename JwtConfigurationT = JWTConfiguration>
187 void SetJwtConfiguration(JwtConfigurationT&& value) { m_jwtConfigurationHasBeenSet = true; m_jwtConfiguration = std::forward<JwtConfigurationT>(value); }
188 template<typename JwtConfigurationT = JWTConfiguration>
189 CreateAuthorizerResult& WithJwtConfiguration(JwtConfigurationT&& value) { SetJwtConfiguration(std::forward<JwtConfigurationT>(value)); return *this;}
191
193
196 inline const Aws::String& GetName() const { return m_name; }
197 template<typename NameT = Aws::String>
198 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
199 template<typename NameT = Aws::String>
200 CreateAuthorizerResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
202
204
205 inline const Aws::String& GetRequestId() const { return m_requestId; }
206 template<typename RequestIdT = Aws::String>
207 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
208 template<typename RequestIdT = Aws::String>
209 CreateAuthorizerResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
211 private:
212
213 Aws::String m_authorizerCredentialsArn;
214 bool m_authorizerCredentialsArnHasBeenSet = false;
215
216 Aws::String m_authorizerId;
217 bool m_authorizerIdHasBeenSet = false;
218
219 Aws::String m_authorizerPayloadFormatVersion;
220 bool m_authorizerPayloadFormatVersionHasBeenSet = false;
221
222 int m_authorizerResultTtlInSeconds{0};
223 bool m_authorizerResultTtlInSecondsHasBeenSet = false;
224
225 AuthorizerType m_authorizerType{AuthorizerType::NOT_SET};
226 bool m_authorizerTypeHasBeenSet = false;
227
228 Aws::String m_authorizerUri;
229 bool m_authorizerUriHasBeenSet = false;
230
231 bool m_enableSimpleResponses{false};
232 bool m_enableSimpleResponsesHasBeenSet = false;
233
234 Aws::Vector<Aws::String> m_identitySource;
235 bool m_identitySourceHasBeenSet = false;
236
237 Aws::String m_identityValidationExpression;
238 bool m_identityValidationExpressionHasBeenSet = false;
239
240 JWTConfiguration m_jwtConfiguration;
241 bool m_jwtConfigurationHasBeenSet = false;
242
243 Aws::String m_name;
244 bool m_nameHasBeenSet = false;
245
246 Aws::String m_requestId;
247 bool m_requestIdHasBeenSet = false;
248 };
249
250} // namespace Model
251} // namespace ApiGatewayV2
252} // 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