AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
49 inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
50 inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
51 inline CreateAuthorizerRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
52 inline CreateAuthorizerRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
53 inline CreateAuthorizerRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
55
57
64 inline const Aws::String& GetAuthorizerCredentialsArn() const{ return m_authorizerCredentialsArn; }
65 inline bool AuthorizerCredentialsArnHasBeenSet() const { return m_authorizerCredentialsArnHasBeenSet; }
66 inline void SetAuthorizerCredentialsArn(const Aws::String& value) { m_authorizerCredentialsArnHasBeenSet = true; m_authorizerCredentialsArn = value; }
67 inline void SetAuthorizerCredentialsArn(Aws::String&& value) { m_authorizerCredentialsArnHasBeenSet = true; m_authorizerCredentialsArn = std::move(value); }
68 inline void SetAuthorizerCredentialsArn(const char* value) { m_authorizerCredentialsArnHasBeenSet = true; m_authorizerCredentialsArn.assign(value); }
71 inline CreateAuthorizerRequest& WithAuthorizerCredentialsArn(const char* value) { SetAuthorizerCredentialsArn(value); return *this;}
73
75
82 inline const Aws::String& GetAuthorizerPayloadFormatVersion() const{ return m_authorizerPayloadFormatVersion; }
83 inline bool AuthorizerPayloadFormatVersionHasBeenSet() const { return m_authorizerPayloadFormatVersionHasBeenSet; }
84 inline void SetAuthorizerPayloadFormatVersion(const Aws::String& value) { m_authorizerPayloadFormatVersionHasBeenSet = true; m_authorizerPayloadFormatVersion = value; }
85 inline void SetAuthorizerPayloadFormatVersion(Aws::String&& value) { m_authorizerPayloadFormatVersionHasBeenSet = true; m_authorizerPayloadFormatVersion = std::move(value); }
86 inline void SetAuthorizerPayloadFormatVersion(const char* value) { m_authorizerPayloadFormatVersionHasBeenSet = true; m_authorizerPayloadFormatVersion.assign(value); }
91
93
99 inline int GetAuthorizerResultTtlInSeconds() const{ return m_authorizerResultTtlInSeconds; }
100 inline bool AuthorizerResultTtlInSecondsHasBeenSet() const { return m_authorizerResultTtlInSecondsHasBeenSet; }
101 inline void SetAuthorizerResultTtlInSeconds(int value) { m_authorizerResultTtlInSecondsHasBeenSet = true; m_authorizerResultTtlInSeconds = value; }
104
106
111 inline const AuthorizerType& GetAuthorizerType() const{ return m_authorizerType; }
112 inline bool AuthorizerTypeHasBeenSet() const { return m_authorizerTypeHasBeenSet; }
113 inline void SetAuthorizerType(const AuthorizerType& value) { m_authorizerTypeHasBeenSet = true; m_authorizerType = value; }
114 inline void SetAuthorizerType(AuthorizerType&& value) { m_authorizerTypeHasBeenSet = true; m_authorizerType = std::move(value); }
115 inline CreateAuthorizerRequest& WithAuthorizerType(const AuthorizerType& value) { SetAuthorizerType(value); return *this;}
116 inline CreateAuthorizerRequest& WithAuthorizerType(AuthorizerType&& value) { SetAuthorizerType(std::move(value)); return *this;}
118
120
134 inline const Aws::String& GetAuthorizerUri() const{ return m_authorizerUri; }
135 inline bool AuthorizerUriHasBeenSet() const { return m_authorizerUriHasBeenSet; }
136 inline void SetAuthorizerUri(const Aws::String& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = value; }
137 inline void SetAuthorizerUri(Aws::String&& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = std::move(value); }
138 inline void SetAuthorizerUri(const char* value) { m_authorizerUriHasBeenSet = true; m_authorizerUri.assign(value); }
139 inline CreateAuthorizerRequest& WithAuthorizerUri(const Aws::String& value) { SetAuthorizerUri(value); return *this;}
140 inline CreateAuthorizerRequest& WithAuthorizerUri(Aws::String&& value) { SetAuthorizerUri(std::move(value)); return *this;}
141 inline CreateAuthorizerRequest& WithAuthorizerUri(const char* value) { SetAuthorizerUri(value); return *this;}
143
145
153 inline bool GetEnableSimpleResponses() const{ return m_enableSimpleResponses; }
154 inline bool EnableSimpleResponsesHasBeenSet() const { return m_enableSimpleResponsesHasBeenSet; }
155 inline void SetEnableSimpleResponses(bool value) { m_enableSimpleResponsesHasBeenSet = true; m_enableSimpleResponses = value; }
158
160
182 inline const Aws::Vector<Aws::String>& GetIdentitySource() const{ return m_identitySource; }
183 inline bool IdentitySourceHasBeenSet() const { return m_identitySourceHasBeenSet; }
184 inline void SetIdentitySource(const Aws::Vector<Aws::String>& value) { m_identitySourceHasBeenSet = true; m_identitySource = value; }
185 inline void SetIdentitySource(Aws::Vector<Aws::String>&& value) { m_identitySourceHasBeenSet = true; m_identitySource = std::move(value); }
188 inline CreateAuthorizerRequest& AddIdentitySource(const Aws::String& value) { m_identitySourceHasBeenSet = true; m_identitySource.push_back(value); return *this; }
189 inline CreateAuthorizerRequest& AddIdentitySource(Aws::String&& value) { m_identitySourceHasBeenSet = true; m_identitySource.push_back(std::move(value)); return *this; }
190 inline CreateAuthorizerRequest& AddIdentitySource(const char* value) { m_identitySourceHasBeenSet = true; m_identitySource.push_back(value); return *this; }
192
194
197 inline const Aws::String& GetIdentityValidationExpression() const{ return m_identityValidationExpression; }
198 inline bool IdentityValidationExpressionHasBeenSet() const { return m_identityValidationExpressionHasBeenSet; }
199 inline void SetIdentityValidationExpression(const Aws::String& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = value; }
200 inline void SetIdentityValidationExpression(Aws::String&& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = std::move(value); }
201 inline void SetIdentityValidationExpression(const char* value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression.assign(value); }
206
208
212 inline const JWTConfiguration& GetJwtConfiguration() const{ return m_jwtConfiguration; }
213 inline bool JwtConfigurationHasBeenSet() const { return m_jwtConfigurationHasBeenSet; }
214 inline void SetJwtConfiguration(const JWTConfiguration& value) { m_jwtConfigurationHasBeenSet = true; m_jwtConfiguration = value; }
215 inline void SetJwtConfiguration(JWTConfiguration&& value) { m_jwtConfigurationHasBeenSet = true; m_jwtConfiguration = std::move(value); }
217 inline CreateAuthorizerRequest& WithJwtConfiguration(JWTConfiguration&& value) { SetJwtConfiguration(std::move(value)); return *this;}
219
221
224 inline const Aws::String& GetName() const{ return m_name; }
225 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
226 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
227 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
228 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
229 inline CreateAuthorizerRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
230 inline CreateAuthorizerRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
231 inline CreateAuthorizerRequest& WithName(const char* value) { SetName(value); return *this;}
233 private:
234
235 Aws::String m_apiId;
236 bool m_apiIdHasBeenSet = false;
237
238 Aws::String m_authorizerCredentialsArn;
239 bool m_authorizerCredentialsArnHasBeenSet = false;
240
241 Aws::String m_authorizerPayloadFormatVersion;
242 bool m_authorizerPayloadFormatVersionHasBeenSet = false;
243
244 int m_authorizerResultTtlInSeconds;
245 bool m_authorizerResultTtlInSecondsHasBeenSet = false;
246
247 AuthorizerType m_authorizerType;
248 bool m_authorizerTypeHasBeenSet = false;
249
250 Aws::String m_authorizerUri;
251 bool m_authorizerUriHasBeenSet = false;
252
253 bool m_enableSimpleResponses;
254 bool m_enableSimpleResponsesHasBeenSet = false;
255
256 Aws::Vector<Aws::String> m_identitySource;
257 bool m_identitySourceHasBeenSet = false;
258
259 Aws::String m_identityValidationExpression;
260 bool m_identityValidationExpressionHasBeenSet = false;
261
262 JWTConfiguration m_jwtConfiguration;
263 bool m_jwtConfigurationHasBeenSet = false;
264
265 Aws::String m_name;
266 bool m_nameHasBeenSet = false;
267 };
268
269} // namespace Model
270} // namespace ApiGatewayV2
271} // namespace Aws
CreateAuthorizerRequest & WithJwtConfiguration(JWTConfiguration &&value)
CreateAuthorizerRequest & WithAuthorizerPayloadFormatVersion(const char *value)
CreateAuthorizerRequest & WithAuthorizerCredentialsArn(const Aws::String &value)
CreateAuthorizerRequest & WithAuthorizerPayloadFormatVersion(const Aws::String &value)
CreateAuthorizerRequest & WithAuthorizerType(const AuthorizerType &value)
CreateAuthorizerRequest & WithJwtConfiguration(const JWTConfiguration &value)
CreateAuthorizerRequest & WithAuthorizerUri(const Aws::String &value)
CreateAuthorizerRequest & WithAuthorizerPayloadFormatVersion(Aws::String &&value)
CreateAuthorizerRequest & WithName(Aws::String &&value)
CreateAuthorizerRequest & WithIdentitySource(Aws::Vector< Aws::String > &&value)
CreateAuthorizerRequest & WithApiId(const Aws::String &value)
CreateAuthorizerRequest & AddIdentitySource(const Aws::String &value)
CreateAuthorizerRequest & WithIdentityValidationExpression(const char *value)
AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override
void SetIdentitySource(Aws::Vector< Aws::String > &&value)
CreateAuthorizerRequest & WithName(const char *value)
CreateAuthorizerRequest & WithIdentitySource(const Aws::Vector< Aws::String > &value)
CreateAuthorizerRequest & AddIdentitySource(Aws::String &&value)
CreateAuthorizerRequest & WithAuthorizerUri(const char *value)
CreateAuthorizerRequest & WithAuthorizerCredentialsArn(Aws::String &&value)
const Aws::Vector< Aws::String > & GetIdentitySource() const
CreateAuthorizerRequest & WithApiId(const char *value)
CreateAuthorizerRequest & WithAuthorizerUri(Aws::String &&value)
void SetJwtConfiguration(const JWTConfiguration &value)
virtual const char * GetServiceRequestName() const override
CreateAuthorizerRequest & WithApiId(Aws::String &&value)
CreateAuthorizerRequest & WithAuthorizerResultTtlInSeconds(int value)
CreateAuthorizerRequest & WithName(const Aws::String &value)
CreateAuthorizerRequest & WithIdentityValidationExpression(const Aws::String &value)
CreateAuthorizerRequest & WithAuthorizerCredentialsArn(const char *value)
CreateAuthorizerRequest & WithIdentityValidationExpression(Aws::String &&value)
void SetIdentitySource(const Aws::Vector< Aws::String > &value)
CreateAuthorizerRequest & WithEnableSimpleResponses(bool value)
CreateAuthorizerRequest & WithAuthorizerType(AuthorizerType &&value)
void SetAuthorizerPayloadFormatVersion(const Aws::String &value)
CreateAuthorizerRequest & AddIdentitySource(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector