AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename ApiIdT = Aws::String>
48 void SetApiId(ApiIdT&& value) { m_apiIdHasBeenSet = true; m_apiId = std::forward<ApiIdT>(value); }
49 template<typename ApiIdT = Aws::String>
50 UpdateAuthorizerRequest& WithApiId(ApiIdT&& value) { SetApiId(std::forward<ApiIdT>(value)); return *this;}
52
54
60 inline const Aws::String& GetAuthorizerCredentialsArn() const { return m_authorizerCredentialsArn; }
61 inline bool AuthorizerCredentialsArnHasBeenSet() const { return m_authorizerCredentialsArnHasBeenSet; }
62 template<typename AuthorizerCredentialsArnT = Aws::String>
63 void SetAuthorizerCredentialsArn(AuthorizerCredentialsArnT&& value) { m_authorizerCredentialsArnHasBeenSet = true; m_authorizerCredentialsArn = std::forward<AuthorizerCredentialsArnT>(value); }
64 template<typename AuthorizerCredentialsArnT = Aws::String>
65 UpdateAuthorizerRequest& WithAuthorizerCredentialsArn(AuthorizerCredentialsArnT&& value) { SetAuthorizerCredentialsArn(std::forward<AuthorizerCredentialsArnT>(value)); return *this;}
67
69
72 inline const Aws::String& GetAuthorizerId() const { return m_authorizerId; }
73 inline bool AuthorizerIdHasBeenSet() const { return m_authorizerIdHasBeenSet; }
74 template<typename AuthorizerIdT = Aws::String>
75 void SetAuthorizerId(AuthorizerIdT&& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = std::forward<AuthorizerIdT>(value); }
76 template<typename AuthorizerIdT = Aws::String>
77 UpdateAuthorizerRequest& WithAuthorizerId(AuthorizerIdT&& value) { SetAuthorizerId(std::forward<AuthorizerIdT>(value)); return *this;}
79
81
88 inline const Aws::String& GetAuthorizerPayloadFormatVersion() const { return m_authorizerPayloadFormatVersion; }
89 inline bool AuthorizerPayloadFormatVersionHasBeenSet() const { return m_authorizerPayloadFormatVersionHasBeenSet; }
90 template<typename AuthorizerPayloadFormatVersionT = Aws::String>
91 void SetAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT&& value) { m_authorizerPayloadFormatVersionHasBeenSet = true; m_authorizerPayloadFormatVersion = std::forward<AuthorizerPayloadFormatVersionT>(value); }
92 template<typename AuthorizerPayloadFormatVersionT = Aws::String>
93 UpdateAuthorizerRequest& WithAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT&& value) { SetAuthorizerPayloadFormatVersion(std::forward<AuthorizerPayloadFormatVersionT>(value)); return *this;}
95
97
103 inline int GetAuthorizerResultTtlInSeconds() const { return m_authorizerResultTtlInSeconds; }
104 inline bool AuthorizerResultTtlInSecondsHasBeenSet() const { return m_authorizerResultTtlInSecondsHasBeenSet; }
105 inline void SetAuthorizerResultTtlInSeconds(int value) { m_authorizerResultTtlInSecondsHasBeenSet = true; m_authorizerResultTtlInSeconds = value; }
108
110
115 inline AuthorizerType GetAuthorizerType() const { return m_authorizerType; }
116 inline bool AuthorizerTypeHasBeenSet() const { return m_authorizerTypeHasBeenSet; }
117 inline void SetAuthorizerType(AuthorizerType value) { m_authorizerTypeHasBeenSet = true; m_authorizerType = value; }
120
122
136 inline const Aws::String& GetAuthorizerUri() const { return m_authorizerUri; }
137 inline bool AuthorizerUriHasBeenSet() const { return m_authorizerUriHasBeenSet; }
138 template<typename AuthorizerUriT = Aws::String>
139 void SetAuthorizerUri(AuthorizerUriT&& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = std::forward<AuthorizerUriT>(value); }
140 template<typename AuthorizerUriT = Aws::String>
141 UpdateAuthorizerRequest& WithAuthorizerUri(AuthorizerUriT&& value) { SetAuthorizerUri(std::forward<AuthorizerUriT>(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 template<typename IdentitySourceT = Aws::Vector<Aws::String>>
185 void SetIdentitySource(IdentitySourceT&& value) { m_identitySourceHasBeenSet = true; m_identitySource = std::forward<IdentitySourceT>(value); }
186 template<typename IdentitySourceT = Aws::Vector<Aws::String>>
187 UpdateAuthorizerRequest& WithIdentitySource(IdentitySourceT&& value) { SetIdentitySource(std::forward<IdentitySourceT>(value)); return *this;}
188 template<typename IdentitySourceT = Aws::String>
189 UpdateAuthorizerRequest& AddIdentitySource(IdentitySourceT&& value) { m_identitySourceHasBeenSet = true; m_identitySource.emplace_back(std::forward<IdentitySourceT>(value)); return *this; }
191
193
196 inline const Aws::String& GetIdentityValidationExpression() const { return m_identityValidationExpression; }
197 inline bool IdentityValidationExpressionHasBeenSet() const { return m_identityValidationExpressionHasBeenSet; }
198 template<typename IdentityValidationExpressionT = Aws::String>
199 void SetIdentityValidationExpression(IdentityValidationExpressionT&& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = std::forward<IdentityValidationExpressionT>(value); }
200 template<typename IdentityValidationExpressionT = Aws::String>
201 UpdateAuthorizerRequest& WithIdentityValidationExpression(IdentityValidationExpressionT&& value) { SetIdentityValidationExpression(std::forward<IdentityValidationExpressionT>(value)); return *this;}
203
205
209 inline const JWTConfiguration& GetJwtConfiguration() const { return m_jwtConfiguration; }
210 inline bool JwtConfigurationHasBeenSet() const { return m_jwtConfigurationHasBeenSet; }
211 template<typename JwtConfigurationT = JWTConfiguration>
212 void SetJwtConfiguration(JwtConfigurationT&& value) { m_jwtConfigurationHasBeenSet = true; m_jwtConfiguration = std::forward<JwtConfigurationT>(value); }
213 template<typename JwtConfigurationT = JWTConfiguration>
214 UpdateAuthorizerRequest& WithJwtConfiguration(JwtConfigurationT&& value) { SetJwtConfiguration(std::forward<JwtConfigurationT>(value)); return *this;}
216
218
221 inline const Aws::String& GetName() const { return m_name; }
222 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
223 template<typename NameT = Aws::String>
224 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
225 template<typename NameT = Aws::String>
226 UpdateAuthorizerRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
228 private:
229
230 Aws::String m_apiId;
231 bool m_apiIdHasBeenSet = false;
232
233 Aws::String m_authorizerCredentialsArn;
234 bool m_authorizerCredentialsArnHasBeenSet = false;
235
236 Aws::String m_authorizerId;
237 bool m_authorizerIdHasBeenSet = false;
238
239 Aws::String m_authorizerPayloadFormatVersion;
240 bool m_authorizerPayloadFormatVersionHasBeenSet = false;
241
242 int m_authorizerResultTtlInSeconds{0};
243 bool m_authorizerResultTtlInSecondsHasBeenSet = false;
244
245 AuthorizerType m_authorizerType{AuthorizerType::NOT_SET};
246 bool m_authorizerTypeHasBeenSet = false;
247
248 Aws::String m_authorizerUri;
249 bool m_authorizerUriHasBeenSet = false;
250
251 bool m_enableSimpleResponses{false};
252 bool m_enableSimpleResponsesHasBeenSet = false;
253
254 Aws::Vector<Aws::String> m_identitySource;
255 bool m_identitySourceHasBeenSet = false;
256
257 Aws::String m_identityValidationExpression;
258 bool m_identityValidationExpressionHasBeenSet = false;
259
260 JWTConfiguration m_jwtConfiguration;
261 bool m_jwtConfigurationHasBeenSet = false;
262
263 Aws::String m_name;
264 bool m_nameHasBeenSet = false;
265 };
266
267} // namespace Model
268} // namespace ApiGatewayV2
269} // namespace Aws
AWS_APIGATEWAYV2_API UpdateAuthorizerRequest()=default
UpdateAuthorizerRequest & WithAuthorizerType(AuthorizerType value)
UpdateAuthorizerRequest & WithAuthorizerUri(AuthorizerUriT &&value)
UpdateAuthorizerRequest & WithIdentityValidationExpression(IdentityValidationExpressionT &&value)
UpdateAuthorizerRequest & WithAuthorizerResultTtlInSeconds(int value)
const Aws::Vector< Aws::String > & GetIdentitySource() const
AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override
UpdateAuthorizerRequest & WithIdentitySource(IdentitySourceT &&value)
UpdateAuthorizerRequest & AddIdentitySource(IdentitySourceT &&value)
void SetIdentityValidationExpression(IdentityValidationExpressionT &&value)
UpdateAuthorizerRequest & WithAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT &&value)
void SetAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT &&value)
virtual const char * GetServiceRequestName() const override
void SetAuthorizerCredentialsArn(AuthorizerCredentialsArnT &&value)
UpdateAuthorizerRequest & WithApiId(ApiIdT &&value)
UpdateAuthorizerRequest & WithAuthorizerCredentialsArn(AuthorizerCredentialsArnT &&value)
UpdateAuthorizerRequest & WithName(NameT &&value)
UpdateAuthorizerRequest & WithJwtConfiguration(JwtConfigurationT &&value)
UpdateAuthorizerRequest & WithEnableSimpleResponses(bool value)
UpdateAuthorizerRequest & WithAuthorizerId(AuthorizerIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector