AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
UpdateAuthorizerRequest.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
26 public:
27 AWS_APIGATEWAYV2_API UpdateAuthorizerRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateAuthorizer"; }
34
35 AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetApiId() const { return m_apiId; }
42 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
43 template <typename ApiIdT = Aws::String>
44 void SetApiId(ApiIdT&& value) {
45 m_apiIdHasBeenSet = true;
46 m_apiId = std::forward<ApiIdT>(value);
47 }
48 template <typename ApiIdT = Aws::String>
50 SetApiId(std::forward<ApiIdT>(value));
51 return *this;
52 }
54
56
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) {
66 m_authorizerCredentialsArnHasBeenSet = true;
67 m_authorizerCredentialsArn = std::forward<AuthorizerCredentialsArnT>(value);
68 }
69 template <typename AuthorizerCredentialsArnT = Aws::String>
70 UpdateAuthorizerRequest& WithAuthorizerCredentialsArn(AuthorizerCredentialsArnT&& value) {
71 SetAuthorizerCredentialsArn(std::forward<AuthorizerCredentialsArnT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetAuthorizerId() const { return m_authorizerId; }
81 inline bool AuthorizerIdHasBeenSet() const { return m_authorizerIdHasBeenSet; }
82 template <typename AuthorizerIdT = Aws::String>
83 void SetAuthorizerId(AuthorizerIdT&& value) {
84 m_authorizerIdHasBeenSet = true;
85 m_authorizerId = std::forward<AuthorizerIdT>(value);
86 }
87 template <typename AuthorizerIdT = Aws::String>
88 UpdateAuthorizerRequest& WithAuthorizerId(AuthorizerIdT&& value) {
89 SetAuthorizerId(std::forward<AuthorizerIdT>(value));
90 return *this;
91 }
93
95
102 inline const Aws::String& GetAuthorizerPayloadFormatVersion() const { return m_authorizerPayloadFormatVersion; }
103 inline bool AuthorizerPayloadFormatVersionHasBeenSet() const { return m_authorizerPayloadFormatVersionHasBeenSet; }
104 template <typename AuthorizerPayloadFormatVersionT = Aws::String>
105 void SetAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT&& value) {
106 m_authorizerPayloadFormatVersionHasBeenSet = true;
107 m_authorizerPayloadFormatVersion = std::forward<AuthorizerPayloadFormatVersionT>(value);
108 }
109 template <typename AuthorizerPayloadFormatVersionT = Aws::String>
110 UpdateAuthorizerRequest& WithAuthorizerPayloadFormatVersion(AuthorizerPayloadFormatVersionT&& value) {
111 SetAuthorizerPayloadFormatVersion(std::forward<AuthorizerPayloadFormatVersionT>(value));
112 return *this;
113 }
115
117
123 inline int GetAuthorizerResultTtlInSeconds() const { return m_authorizerResultTtlInSeconds; }
124 inline bool AuthorizerResultTtlInSecondsHasBeenSet() const { return m_authorizerResultTtlInSecondsHasBeenSet; }
125 inline void SetAuthorizerResultTtlInSeconds(int value) {
126 m_authorizerResultTtlInSecondsHasBeenSet = true;
127 m_authorizerResultTtlInSeconds = value;
128 }
131 return *this;
132 }
134
136
141 inline AuthorizerType GetAuthorizerType() const { return m_authorizerType; }
142 inline bool AuthorizerTypeHasBeenSet() const { return m_authorizerTypeHasBeenSet; }
144 m_authorizerTypeHasBeenSet = true;
145 m_authorizerType = value;
146 }
148 SetAuthorizerType(value);
149 return *this;
150 }
152
154
168 inline const Aws::String& GetAuthorizerUri() const { return m_authorizerUri; }
169 inline bool AuthorizerUriHasBeenSet() const { return m_authorizerUriHasBeenSet; }
170 template <typename AuthorizerUriT = Aws::String>
171 void SetAuthorizerUri(AuthorizerUriT&& value) {
172 m_authorizerUriHasBeenSet = true;
173 m_authorizerUri = std::forward<AuthorizerUriT>(value);
174 }
175 template <typename AuthorizerUriT = Aws::String>
177 SetAuthorizerUri(std::forward<AuthorizerUriT>(value));
178 return *this;
179 }
181
183
191 inline bool GetEnableSimpleResponses() const { return m_enableSimpleResponses; }
192 inline bool EnableSimpleResponsesHasBeenSet() const { return m_enableSimpleResponsesHasBeenSet; }
193 inline void SetEnableSimpleResponses(bool value) {
194 m_enableSimpleResponsesHasBeenSet = true;
195 m_enableSimpleResponses = value;
196 }
199 return *this;
200 }
202
204
226 inline const Aws::Vector<Aws::String>& GetIdentitySource() const { return m_identitySource; }
227 inline bool IdentitySourceHasBeenSet() const { return m_identitySourceHasBeenSet; }
228 template <typename IdentitySourceT = Aws::Vector<Aws::String>>
229 void SetIdentitySource(IdentitySourceT&& value) {
230 m_identitySourceHasBeenSet = true;
231 m_identitySource = std::forward<IdentitySourceT>(value);
232 }
233 template <typename IdentitySourceT = Aws::Vector<Aws::String>>
234 UpdateAuthorizerRequest& WithIdentitySource(IdentitySourceT&& value) {
235 SetIdentitySource(std::forward<IdentitySourceT>(value));
236 return *this;
237 }
238 template <typename IdentitySourceT = Aws::String>
239 UpdateAuthorizerRequest& AddIdentitySource(IdentitySourceT&& value) {
240 m_identitySourceHasBeenSet = true;
241 m_identitySource.emplace_back(std::forward<IdentitySourceT>(value));
242 return *this;
243 }
245
247
250 inline const Aws::String& GetIdentityValidationExpression() const { return m_identityValidationExpression; }
251 inline bool IdentityValidationExpressionHasBeenSet() const { return m_identityValidationExpressionHasBeenSet; }
252 template <typename IdentityValidationExpressionT = Aws::String>
253 void SetIdentityValidationExpression(IdentityValidationExpressionT&& value) {
254 m_identityValidationExpressionHasBeenSet = true;
255 m_identityValidationExpression = std::forward<IdentityValidationExpressionT>(value);
256 }
257 template <typename IdentityValidationExpressionT = Aws::String>
258 UpdateAuthorizerRequest& WithIdentityValidationExpression(IdentityValidationExpressionT&& value) {
259 SetIdentityValidationExpression(std::forward<IdentityValidationExpressionT>(value));
260 return *this;
261 }
263
265
269 inline const JWTConfiguration& GetJwtConfiguration() const { return m_jwtConfiguration; }
270 inline bool JwtConfigurationHasBeenSet() const { return m_jwtConfigurationHasBeenSet; }
271 template <typename JwtConfigurationT = JWTConfiguration>
272 void SetJwtConfiguration(JwtConfigurationT&& value) {
273 m_jwtConfigurationHasBeenSet = true;
274 m_jwtConfiguration = std::forward<JwtConfigurationT>(value);
275 }
276 template <typename JwtConfigurationT = JWTConfiguration>
277 UpdateAuthorizerRequest& WithJwtConfiguration(JwtConfigurationT&& value) {
278 SetJwtConfiguration(std::forward<JwtConfigurationT>(value));
279 return *this;
280 }
282
284
287 inline const Aws::String& GetName() const { return m_name; }
288 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
289 template <typename NameT = Aws::String>
290 void SetName(NameT&& value) {
291 m_nameHasBeenSet = true;
292 m_name = std::forward<NameT>(value);
293 }
294 template <typename NameT = Aws::String>
296 SetName(std::forward<NameT>(value));
297 return *this;
298 }
300 private:
301 Aws::String m_apiId;
302
303 Aws::String m_authorizerCredentialsArn;
304
305 Aws::String m_authorizerId;
306
307 Aws::String m_authorizerPayloadFormatVersion;
308
309 int m_authorizerResultTtlInSeconds{0};
310
311 AuthorizerType m_authorizerType{AuthorizerType::NOT_SET};
312
313 Aws::String m_authorizerUri;
314
315 bool m_enableSimpleResponses{false};
316
317 Aws::Vector<Aws::String> m_identitySource;
318
319 Aws::String m_identityValidationExpression;
320
321 JWTConfiguration m_jwtConfiguration;
322
323 Aws::String m_name;
324 bool m_apiIdHasBeenSet = false;
325 bool m_authorizerCredentialsArnHasBeenSet = false;
326 bool m_authorizerIdHasBeenSet = false;
327 bool m_authorizerPayloadFormatVersionHasBeenSet = false;
328 bool m_authorizerResultTtlInSecondsHasBeenSet = false;
329 bool m_authorizerTypeHasBeenSet = false;
330 bool m_authorizerUriHasBeenSet = false;
331 bool m_enableSimpleResponsesHasBeenSet = false;
332 bool m_identitySourceHasBeenSet = false;
333 bool m_identityValidationExpressionHasBeenSet = false;
334 bool m_jwtConfigurationHasBeenSet = false;
335 bool m_nameHasBeenSet = false;
336};
337
338} // namespace Model
339} // namespace ApiGatewayV2
340} // 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