AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateAuthorizerRequest.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
28 {
29 public:
30 AWS_APIGATEWAYV2_API UpdateAuthorizerRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateAuthorizer"; }
37
38 AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetApiId() const{ return m_apiId; }
46 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
47 inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
48 inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
49 inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
50 inline UpdateAuthorizerRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
51 inline UpdateAuthorizerRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
52 inline UpdateAuthorizerRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
54
56
62 inline const Aws::String& GetAuthorizerCredentialsArn() const{ return m_authorizerCredentialsArn; }
63 inline bool AuthorizerCredentialsArnHasBeenSet() const { return m_authorizerCredentialsArnHasBeenSet; }
64 inline void SetAuthorizerCredentialsArn(const Aws::String& value) { m_authorizerCredentialsArnHasBeenSet = true; m_authorizerCredentialsArn = value; }
65 inline void SetAuthorizerCredentialsArn(Aws::String&& value) { m_authorizerCredentialsArnHasBeenSet = true; m_authorizerCredentialsArn = std::move(value); }
66 inline void SetAuthorizerCredentialsArn(const char* value) { m_authorizerCredentialsArnHasBeenSet = true; m_authorizerCredentialsArn.assign(value); }
69 inline UpdateAuthorizerRequest& WithAuthorizerCredentialsArn(const char* value) { SetAuthorizerCredentialsArn(value); return *this;}
71
73
76 inline const Aws::String& GetAuthorizerId() const{ return m_authorizerId; }
77 inline bool AuthorizerIdHasBeenSet() const { return m_authorizerIdHasBeenSet; }
78 inline void SetAuthorizerId(const Aws::String& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = value; }
79 inline void SetAuthorizerId(Aws::String&& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = std::move(value); }
80 inline void SetAuthorizerId(const char* value) { m_authorizerIdHasBeenSet = true; m_authorizerId.assign(value); }
81 inline UpdateAuthorizerRequest& WithAuthorizerId(const Aws::String& value) { SetAuthorizerId(value); return *this;}
82 inline UpdateAuthorizerRequest& WithAuthorizerId(Aws::String&& value) { SetAuthorizerId(std::move(value)); return *this;}
83 inline UpdateAuthorizerRequest& WithAuthorizerId(const char* value) { SetAuthorizerId(value); return *this;}
85
87
94 inline const Aws::String& GetAuthorizerPayloadFormatVersion() const{ return m_authorizerPayloadFormatVersion; }
95 inline bool AuthorizerPayloadFormatVersionHasBeenSet() const { return m_authorizerPayloadFormatVersionHasBeenSet; }
96 inline void SetAuthorizerPayloadFormatVersion(const Aws::String& value) { m_authorizerPayloadFormatVersionHasBeenSet = true; m_authorizerPayloadFormatVersion = value; }
97 inline void SetAuthorizerPayloadFormatVersion(Aws::String&& value) { m_authorizerPayloadFormatVersionHasBeenSet = true; m_authorizerPayloadFormatVersion = std::move(value); }
98 inline void SetAuthorizerPayloadFormatVersion(const char* value) { m_authorizerPayloadFormatVersionHasBeenSet = true; m_authorizerPayloadFormatVersion.assign(value); }
103
105
111 inline int GetAuthorizerResultTtlInSeconds() const{ return m_authorizerResultTtlInSeconds; }
112 inline bool AuthorizerResultTtlInSecondsHasBeenSet() const { return m_authorizerResultTtlInSecondsHasBeenSet; }
113 inline void SetAuthorizerResultTtlInSeconds(int value) { m_authorizerResultTtlInSecondsHasBeenSet = true; m_authorizerResultTtlInSeconds = value; }
116
118
123 inline const AuthorizerType& GetAuthorizerType() const{ return m_authorizerType; }
124 inline bool AuthorizerTypeHasBeenSet() const { return m_authorizerTypeHasBeenSet; }
125 inline void SetAuthorizerType(const AuthorizerType& value) { m_authorizerTypeHasBeenSet = true; m_authorizerType = value; }
126 inline void SetAuthorizerType(AuthorizerType&& value) { m_authorizerTypeHasBeenSet = true; m_authorizerType = std::move(value); }
127 inline UpdateAuthorizerRequest& WithAuthorizerType(const AuthorizerType& value) { SetAuthorizerType(value); return *this;}
128 inline UpdateAuthorizerRequest& WithAuthorizerType(AuthorizerType&& value) { SetAuthorizerType(std::move(value)); return *this;}
130
132
146 inline const Aws::String& GetAuthorizerUri() const{ return m_authorizerUri; }
147 inline bool AuthorizerUriHasBeenSet() const { return m_authorizerUriHasBeenSet; }
148 inline void SetAuthorizerUri(const Aws::String& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = value; }
149 inline void SetAuthorizerUri(Aws::String&& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = std::move(value); }
150 inline void SetAuthorizerUri(const char* value) { m_authorizerUriHasBeenSet = true; m_authorizerUri.assign(value); }
151 inline UpdateAuthorizerRequest& WithAuthorizerUri(const Aws::String& value) { SetAuthorizerUri(value); return *this;}
152 inline UpdateAuthorizerRequest& WithAuthorizerUri(Aws::String&& value) { SetAuthorizerUri(std::move(value)); return *this;}
153 inline UpdateAuthorizerRequest& WithAuthorizerUri(const char* value) { SetAuthorizerUri(value); return *this;}
155
157
165 inline bool GetEnableSimpleResponses() const{ return m_enableSimpleResponses; }
166 inline bool EnableSimpleResponsesHasBeenSet() const { return m_enableSimpleResponsesHasBeenSet; }
167 inline void SetEnableSimpleResponses(bool value) { m_enableSimpleResponsesHasBeenSet = true; m_enableSimpleResponses = value; }
170
172
194 inline const Aws::Vector<Aws::String>& GetIdentitySource() const{ return m_identitySource; }
195 inline bool IdentitySourceHasBeenSet() const { return m_identitySourceHasBeenSet; }
196 inline void SetIdentitySource(const Aws::Vector<Aws::String>& value) { m_identitySourceHasBeenSet = true; m_identitySource = value; }
197 inline void SetIdentitySource(Aws::Vector<Aws::String>&& value) { m_identitySourceHasBeenSet = true; m_identitySource = std::move(value); }
200 inline UpdateAuthorizerRequest& AddIdentitySource(const Aws::String& value) { m_identitySourceHasBeenSet = true; m_identitySource.push_back(value); return *this; }
201 inline UpdateAuthorizerRequest& AddIdentitySource(Aws::String&& value) { m_identitySourceHasBeenSet = true; m_identitySource.push_back(std::move(value)); return *this; }
202 inline UpdateAuthorizerRequest& AddIdentitySource(const char* value) { m_identitySourceHasBeenSet = true; m_identitySource.push_back(value); return *this; }
204
206
209 inline const Aws::String& GetIdentityValidationExpression() const{ return m_identityValidationExpression; }
210 inline bool IdentityValidationExpressionHasBeenSet() const { return m_identityValidationExpressionHasBeenSet; }
211 inline void SetIdentityValidationExpression(const Aws::String& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = value; }
212 inline void SetIdentityValidationExpression(Aws::String&& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = std::move(value); }
213 inline void SetIdentityValidationExpression(const char* value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression.assign(value); }
218
220
224 inline const JWTConfiguration& GetJwtConfiguration() const{ return m_jwtConfiguration; }
225 inline bool JwtConfigurationHasBeenSet() const { return m_jwtConfigurationHasBeenSet; }
226 inline void SetJwtConfiguration(const JWTConfiguration& value) { m_jwtConfigurationHasBeenSet = true; m_jwtConfiguration = value; }
227 inline void SetJwtConfiguration(JWTConfiguration&& value) { m_jwtConfigurationHasBeenSet = true; m_jwtConfiguration = std::move(value); }
229 inline UpdateAuthorizerRequest& WithJwtConfiguration(JWTConfiguration&& value) { SetJwtConfiguration(std::move(value)); return *this;}
231
233
236 inline const Aws::String& GetName() const{ return m_name; }
237 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
238 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
239 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
240 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
241 inline UpdateAuthorizerRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
242 inline UpdateAuthorizerRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
243 inline UpdateAuthorizerRequest& WithName(const char* value) { SetName(value); return *this;}
245 private:
246
247 Aws::String m_apiId;
248 bool m_apiIdHasBeenSet = false;
249
250 Aws::String m_authorizerCredentialsArn;
251 bool m_authorizerCredentialsArnHasBeenSet = false;
252
253 Aws::String m_authorizerId;
254 bool m_authorizerIdHasBeenSet = false;
255
256 Aws::String m_authorizerPayloadFormatVersion;
257 bool m_authorizerPayloadFormatVersionHasBeenSet = false;
258
259 int m_authorizerResultTtlInSeconds;
260 bool m_authorizerResultTtlInSecondsHasBeenSet = false;
261
262 AuthorizerType m_authorizerType;
263 bool m_authorizerTypeHasBeenSet = false;
264
265 Aws::String m_authorizerUri;
266 bool m_authorizerUriHasBeenSet = false;
267
268 bool m_enableSimpleResponses;
269 bool m_enableSimpleResponsesHasBeenSet = false;
270
271 Aws::Vector<Aws::String> m_identitySource;
272 bool m_identitySourceHasBeenSet = false;
273
274 Aws::String m_identityValidationExpression;
275 bool m_identityValidationExpressionHasBeenSet = false;
276
277 JWTConfiguration m_jwtConfiguration;
278 bool m_jwtConfigurationHasBeenSet = false;
279
280 Aws::String m_name;
281 bool m_nameHasBeenSet = false;
282 };
283
284} // namespace Model
285} // namespace ApiGatewayV2
286} // namespace Aws
UpdateAuthorizerRequest & AddIdentitySource(const char *value)
UpdateAuthorizerRequest & WithAuthorizerId(Aws::String &&value)
UpdateAuthorizerRequest & WithIdentitySource(const Aws::Vector< Aws::String > &value)
UpdateAuthorizerRequest & WithName(const char *value)
void SetIdentitySource(const Aws::Vector< Aws::String > &value)
UpdateAuthorizerRequest & WithApiId(Aws::String &&value)
UpdateAuthorizerRequest & WithIdentityValidationExpression(Aws::String &&value)
UpdateAuthorizerRequest & WithAuthorizerUri(const char *value)
UpdateAuthorizerRequest & WithAuthorizerCredentialsArn(Aws::String &&value)
UpdateAuthorizerRequest & WithApiId(const Aws::String &value)
UpdateAuthorizerRequest & WithAuthorizerResultTtlInSeconds(int value)
UpdateAuthorizerRequest & AddIdentitySource(Aws::String &&value)
UpdateAuthorizerRequest & WithAuthorizerType(const AuthorizerType &value)
UpdateAuthorizerRequest & WithAuthorizerType(AuthorizerType &&value)
void SetIdentitySource(Aws::Vector< Aws::String > &&value)
UpdateAuthorizerRequest & AddIdentitySource(const Aws::String &value)
UpdateAuthorizerRequest & WithAuthorizerCredentialsArn(const char *value)
const Aws::Vector< Aws::String > & GetIdentitySource() const
UpdateAuthorizerRequest & WithAuthorizerUri(Aws::String &&value)
UpdateAuthorizerRequest & WithJwtConfiguration(JWTConfiguration &&value)
AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override
UpdateAuthorizerRequest & WithIdentityValidationExpression(const Aws::String &value)
UpdateAuthorizerRequest & WithAuthorizerPayloadFormatVersion(Aws::String &&value)
UpdateAuthorizerRequest & WithAuthorizerPayloadFormatVersion(const char *value)
UpdateAuthorizerRequest & WithJwtConfiguration(const JWTConfiguration &value)
UpdateAuthorizerRequest & WithName(const Aws::String &value)
UpdateAuthorizerRequest & WithAuthorizerCredentialsArn(const Aws::String &value)
UpdateAuthorizerRequest & WithName(Aws::String &&value)
UpdateAuthorizerRequest & WithApiId(const char *value)
UpdateAuthorizerRequest & WithIdentitySource(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
UpdateAuthorizerRequest & WithIdentityValidationExpression(const char *value)
UpdateAuthorizerRequest & WithAuthorizerId(const Aws::String &value)
UpdateAuthorizerRequest & WithAuthorizerUri(const Aws::String &value)
UpdateAuthorizerRequest & WithAuthorizerId(const char *value)
UpdateAuthorizerRequest & WithAuthorizerPayloadFormatVersion(const Aws::String &value)
UpdateAuthorizerRequest & WithEnableSimpleResponses(bool value)
void SetJwtConfiguration(const JWTConfiguration &value)
void SetAuthorizerPayloadFormatVersion(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector