AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateAuthorizerRequest.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/apigatewayv2/ApiGatewayV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/apigatewayv2/model/AuthorizerType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/apigatewayv2/model/JWTConfiguration.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ApiGatewayV2
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_APIGATEWAYV2_API CreateAuthorizerRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateAuthorizer"; }
38
39 AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::String& GetApiId() const { return m_apiId; }
47 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
48 template<typename ApiIdT = Aws::String>
49 void SetApiId(ApiIdT&& value) { m_apiIdHasBeenSet = true; m_apiId = std::forward<ApiIdT>(value); }
50 template<typename ApiIdT = Aws::String>
51 CreateAuthorizerRequest& WithApiId(ApiIdT&& value) { SetApiId(std::forward<ApiIdT>(value)); return *this;}
53
55
62 inline const Aws::String& GetAuthorizerCredentialsArn() const { return m_authorizerCredentialsArn; }
63 inline bool AuthorizerCredentialsArnHasBeenSet() const { return m_authorizerCredentialsArnHasBeenSet; }
64 template<typename AuthorizerCredentialsArnT = Aws::String>
65 void SetAuthorizerCredentialsArn(AuthorizerCredentialsArnT&& value) { m_authorizerCredentialsArnHasBeenSet = true; m_authorizerCredentialsArn = std::forward<AuthorizerCredentialsArnT>(value); }
66 template<typename AuthorizerCredentialsArnT = Aws::String>
67 CreateAuthorizerRequest& WithAuthorizerCredentialsArn(AuthorizerCredentialsArnT&& value) { SetAuthorizerCredentialsArn(std::forward<AuthorizerCredentialsArnT>(value)); return *this;}
69
71
78 inline const Aws::String& GetAuthorizerPayloadFormatVersion() const { return m_authorizerPayloadFormatVersion; }
79 inline bool AuthorizerPayloadFormatVersionHasBeenSet() const { return m_authorizerPayloadFormatVersionHasBeenSet; }
80 template<typename AuthorizerPayloadFormatVersionT = Aws::String>
81 void SetAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT&& value) { m_authorizerPayloadFormatVersionHasBeenSet = true; m_authorizerPayloadFormatVersion = std::forward<AuthorizerPayloadFormatVersionT>(value); }
82 template<typename AuthorizerPayloadFormatVersionT = Aws::String>
83 CreateAuthorizerRequest& WithAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT&& value) { SetAuthorizerPayloadFormatVersion(std::forward<AuthorizerPayloadFormatVersionT>(value)); return *this;}
85
87
93 inline int GetAuthorizerResultTtlInSeconds() const { return m_authorizerResultTtlInSeconds; }
94 inline bool AuthorizerResultTtlInSecondsHasBeenSet() const { return m_authorizerResultTtlInSecondsHasBeenSet; }
95 inline void SetAuthorizerResultTtlInSeconds(int value) { m_authorizerResultTtlInSecondsHasBeenSet = true; m_authorizerResultTtlInSeconds = value; }
98
100
105 inline AuthorizerType GetAuthorizerType() const { return m_authorizerType; }
106 inline bool AuthorizerTypeHasBeenSet() const { return m_authorizerTypeHasBeenSet; }
107 inline void SetAuthorizerType(AuthorizerType value) { m_authorizerTypeHasBeenSet = true; m_authorizerType = value; }
110
112
126 inline const Aws::String& GetAuthorizerUri() const { return m_authorizerUri; }
127 inline bool AuthorizerUriHasBeenSet() const { return m_authorizerUriHasBeenSet; }
128 template<typename AuthorizerUriT = Aws::String>
129 void SetAuthorizerUri(AuthorizerUriT&& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = std::forward<AuthorizerUriT>(value); }
130 template<typename AuthorizerUriT = Aws::String>
131 CreateAuthorizerRequest& WithAuthorizerUri(AuthorizerUriT&& value) { SetAuthorizerUri(std::forward<AuthorizerUriT>(value)); return *this;}
133
135
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; }
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 CreateAuthorizerRequest& WithIdentitySource(IdentitySourceT&& value) { SetIdentitySource(std::forward<IdentitySourceT>(value)); return *this;}
178 template<typename IdentitySourceT = Aws::String>
179 CreateAuthorizerRequest& 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 CreateAuthorizerRequest& 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 CreateAuthorizerRequest& 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 CreateAuthorizerRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
218 private:
219
220 Aws::String m_apiId;
221 bool m_apiIdHasBeenSet = false;
222
223 Aws::String m_authorizerCredentialsArn;
224 bool m_authorizerCredentialsArnHasBeenSet = 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
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