AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateAuthorizerRequest.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2Request.h>
8#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
9#include <aws/apigatewayv2/model/AuthorizerType.h>
10#include <aws/apigatewayv2/model/JWTConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace ApiGatewayV2 {
18namespace Model {
19
27 public:
28 AWS_APIGATEWAYV2_API CreateAuthorizerRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateAuthorizer"; }
35
36 AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetApiId() const { return m_apiId; }
43 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
44 template <typename ApiIdT = Aws::String>
45 void SetApiId(ApiIdT&& value) {
46 m_apiIdHasBeenSet = true;
47 m_apiId = std::forward<ApiIdT>(value);
48 }
49 template <typename ApiIdT = Aws::String>
51 SetApiId(std::forward<ApiIdT>(value));
52 return *this;
53 }
55
57
64 inline const Aws::String& GetAuthorizerCredentialsArn() const { return m_authorizerCredentialsArn; }
65 inline bool AuthorizerCredentialsArnHasBeenSet() const { return m_authorizerCredentialsArnHasBeenSet; }
66 template <typename AuthorizerCredentialsArnT = Aws::String>
67 void SetAuthorizerCredentialsArn(AuthorizerCredentialsArnT&& value) {
68 m_authorizerCredentialsArnHasBeenSet = true;
69 m_authorizerCredentialsArn = std::forward<AuthorizerCredentialsArnT>(value);
70 }
71 template <typename AuthorizerCredentialsArnT = Aws::String>
72 CreateAuthorizerRequest& WithAuthorizerCredentialsArn(AuthorizerCredentialsArnT&& value) {
73 SetAuthorizerCredentialsArn(std::forward<AuthorizerCredentialsArnT>(value));
74 return *this;
75 }
77
79
86 inline const Aws::String& GetAuthorizerPayloadFormatVersion() const { return m_authorizerPayloadFormatVersion; }
87 inline bool AuthorizerPayloadFormatVersionHasBeenSet() const { return m_authorizerPayloadFormatVersionHasBeenSet; }
88 template <typename AuthorizerPayloadFormatVersionT = Aws::String>
89 void SetAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT&& value) {
90 m_authorizerPayloadFormatVersionHasBeenSet = true;
91 m_authorizerPayloadFormatVersion = std::forward<AuthorizerPayloadFormatVersionT>(value);
92 }
93 template <typename AuthorizerPayloadFormatVersionT = Aws::String>
94 CreateAuthorizerRequest& WithAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT&& value) {
95 SetAuthorizerPayloadFormatVersion(std::forward<AuthorizerPayloadFormatVersionT>(value));
96 return *this;
97 }
99
101
107 inline int GetAuthorizerResultTtlInSeconds() const { return m_authorizerResultTtlInSeconds; }
108 inline bool AuthorizerResultTtlInSecondsHasBeenSet() const { return m_authorizerResultTtlInSecondsHasBeenSet; }
109 inline void SetAuthorizerResultTtlInSeconds(int value) {
110 m_authorizerResultTtlInSecondsHasBeenSet = true;
111 m_authorizerResultTtlInSeconds = value;
112 }
115 return *this;
116 }
118
120
125 inline AuthorizerType GetAuthorizerType() const { return m_authorizerType; }
126 inline bool AuthorizerTypeHasBeenSet() const { return m_authorizerTypeHasBeenSet; }
128 m_authorizerTypeHasBeenSet = true;
129 m_authorizerType = value;
130 }
132 SetAuthorizerType(value);
133 return *this;
134 }
136
138
152 inline const Aws::String& GetAuthorizerUri() const { return m_authorizerUri; }
153 inline bool AuthorizerUriHasBeenSet() const { return m_authorizerUriHasBeenSet; }
154 template <typename AuthorizerUriT = Aws::String>
155 void SetAuthorizerUri(AuthorizerUriT&& value) {
156 m_authorizerUriHasBeenSet = true;
157 m_authorizerUri = std::forward<AuthorizerUriT>(value);
158 }
159 template <typename AuthorizerUriT = Aws::String>
161 SetAuthorizerUri(std::forward<AuthorizerUriT>(value));
162 return *this;
163 }
165
167
175 inline bool GetEnableSimpleResponses() const { return m_enableSimpleResponses; }
176 inline bool EnableSimpleResponsesHasBeenSet() const { return m_enableSimpleResponsesHasBeenSet; }
177 inline void SetEnableSimpleResponses(bool value) {
178 m_enableSimpleResponsesHasBeenSet = true;
179 m_enableSimpleResponses = value;
180 }
183 return *this;
184 }
186
188
210 inline const Aws::Vector<Aws::String>& GetIdentitySource() const { return m_identitySource; }
211 inline bool IdentitySourceHasBeenSet() const { return m_identitySourceHasBeenSet; }
212 template <typename IdentitySourceT = Aws::Vector<Aws::String>>
213 void SetIdentitySource(IdentitySourceT&& value) {
214 m_identitySourceHasBeenSet = true;
215 m_identitySource = std::forward<IdentitySourceT>(value);
216 }
217 template <typename IdentitySourceT = Aws::Vector<Aws::String>>
218 CreateAuthorizerRequest& WithIdentitySource(IdentitySourceT&& value) {
219 SetIdentitySource(std::forward<IdentitySourceT>(value));
220 return *this;
221 }
222 template <typename IdentitySourceT = Aws::String>
223 CreateAuthorizerRequest& AddIdentitySource(IdentitySourceT&& value) {
224 m_identitySourceHasBeenSet = true;
225 m_identitySource.emplace_back(std::forward<IdentitySourceT>(value));
226 return *this;
227 }
229
231
234 inline const Aws::String& GetIdentityValidationExpression() const { return m_identityValidationExpression; }
235 inline bool IdentityValidationExpressionHasBeenSet() const { return m_identityValidationExpressionHasBeenSet; }
236 template <typename IdentityValidationExpressionT = Aws::String>
237 void SetIdentityValidationExpression(IdentityValidationExpressionT&& value) {
238 m_identityValidationExpressionHasBeenSet = true;
239 m_identityValidationExpression = std::forward<IdentityValidationExpressionT>(value);
240 }
241 template <typename IdentityValidationExpressionT = Aws::String>
242 CreateAuthorizerRequest& WithIdentityValidationExpression(IdentityValidationExpressionT&& value) {
243 SetIdentityValidationExpression(std::forward<IdentityValidationExpressionT>(value));
244 return *this;
245 }
247
249
253 inline const JWTConfiguration& GetJwtConfiguration() const { return m_jwtConfiguration; }
254 inline bool JwtConfigurationHasBeenSet() const { return m_jwtConfigurationHasBeenSet; }
255 template <typename JwtConfigurationT = JWTConfiguration>
256 void SetJwtConfiguration(JwtConfigurationT&& value) {
257 m_jwtConfigurationHasBeenSet = true;
258 m_jwtConfiguration = std::forward<JwtConfigurationT>(value);
259 }
260 template <typename JwtConfigurationT = JWTConfiguration>
261 CreateAuthorizerRequest& WithJwtConfiguration(JwtConfigurationT&& value) {
262 SetJwtConfiguration(std::forward<JwtConfigurationT>(value));
263 return *this;
264 }
266
268
271 inline const Aws::String& GetName() const { return m_name; }
272 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
273 template <typename NameT = Aws::String>
274 void SetName(NameT&& value) {
275 m_nameHasBeenSet = true;
276 m_name = std::forward<NameT>(value);
277 }
278 template <typename NameT = Aws::String>
280 SetName(std::forward<NameT>(value));
281 return *this;
282 }
284 private:
285 Aws::String m_apiId;
286
287 Aws::String m_authorizerCredentialsArn;
288
289 Aws::String m_authorizerPayloadFormatVersion;
290
291 int m_authorizerResultTtlInSeconds{0};
292
293 AuthorizerType m_authorizerType{AuthorizerType::NOT_SET};
294
295 Aws::String m_authorizerUri;
296
297 bool m_enableSimpleResponses{false};
298
299 Aws::Vector<Aws::String> m_identitySource;
300
301 Aws::String m_identityValidationExpression;
302
303 JWTConfiguration m_jwtConfiguration;
304
305 Aws::String m_name;
306 bool m_apiIdHasBeenSet = false;
307 bool m_authorizerCredentialsArnHasBeenSet = false;
308 bool m_authorizerPayloadFormatVersionHasBeenSet = false;
309 bool m_authorizerResultTtlInSecondsHasBeenSet = false;
310 bool m_authorizerTypeHasBeenSet = false;
311 bool m_authorizerUriHasBeenSet = false;
312 bool m_enableSimpleResponsesHasBeenSet = false;
313 bool m_identitySourceHasBeenSet = false;
314 bool m_identityValidationExpressionHasBeenSet = false;
315 bool m_jwtConfigurationHasBeenSet = false;
316 bool m_nameHasBeenSet = false;
317};
318
319} // namespace Model
320} // namespace ApiGatewayV2
321} // namespace Aws
CreateAuthorizerRequest & WithIdentityValidationExpression(IdentityValidationExpressionT &&value)
CreateAuthorizerRequest & WithApiId(ApiIdT &&value)
CreateAuthorizerRequest & WithJwtConfiguration(JwtConfigurationT &&value)
AWS_APIGATEWAYV2_API CreateAuthorizerRequest()=default
AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override
void SetAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT &&value)
const Aws::Vector< Aws::String > & GetIdentitySource() const
CreateAuthorizerRequest & AddIdentitySource(IdentitySourceT &&value)
CreateAuthorizerRequest & WithIdentitySource(IdentitySourceT &&value)
void SetAuthorizerCredentialsArn(AuthorizerCredentialsArnT &&value)
virtual const char * GetServiceRequestName() const override
CreateAuthorizerRequest & WithName(NameT &&value)
CreateAuthorizerRequest & WithAuthorizerResultTtlInSeconds(int value)
CreateAuthorizerRequest & WithAuthorizerCredentialsArn(AuthorizerCredentialsArnT &&value)
CreateAuthorizerRequest & WithAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT &&value)
CreateAuthorizerRequest & WithEnableSimpleResponses(bool value)
CreateAuthorizerRequest & WithAuthorizerType(AuthorizerType value)
void SetIdentityValidationExpression(IdentityValidationExpressionT &&value)
CreateAuthorizerRequest & WithAuthorizerUri(AuthorizerUriT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector