AWS SDK for C++  1.8.95
AWS SDK for C++
UpdateAuthorizerRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace ApiGatewayV2
18 {
19 namespace Model
20 {
21 
28  {
29  public:
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::String SerializePayload() const override;
39 
40 
44  inline const Aws::String& GetApiId() const{ return m_apiId; }
45 
49  inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
50 
54  inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
55 
59  inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
60 
64  inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
65 
69  inline UpdateAuthorizerRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
70 
74  inline UpdateAuthorizerRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
75 
79  inline UpdateAuthorizerRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
80 
81 
88  inline const Aws::String& GetAuthorizerCredentialsArn() const{ return m_authorizerCredentialsArn; }
89 
96  inline bool AuthorizerCredentialsArnHasBeenSet() const { return m_authorizerCredentialsArnHasBeenSet; }
97 
104  inline void SetAuthorizerCredentialsArn(const Aws::String& value) { m_authorizerCredentialsArnHasBeenSet = true; m_authorizerCredentialsArn = value; }
105 
112  inline void SetAuthorizerCredentialsArn(Aws::String&& value) { m_authorizerCredentialsArnHasBeenSet = true; m_authorizerCredentialsArn = std::move(value); }
113 
120  inline void SetAuthorizerCredentialsArn(const char* value) { m_authorizerCredentialsArnHasBeenSet = true; m_authorizerCredentialsArn.assign(value); }
121 
128  inline UpdateAuthorizerRequest& WithAuthorizerCredentialsArn(const Aws::String& value) { SetAuthorizerCredentialsArn(value); return *this;}
129 
136  inline UpdateAuthorizerRequest& WithAuthorizerCredentialsArn(Aws::String&& value) { SetAuthorizerCredentialsArn(std::move(value)); return *this;}
137 
144  inline UpdateAuthorizerRequest& WithAuthorizerCredentialsArn(const char* value) { SetAuthorizerCredentialsArn(value); return *this;}
145 
146 
150  inline const Aws::String& GetAuthorizerId() const{ return m_authorizerId; }
151 
155  inline bool AuthorizerIdHasBeenSet() const { return m_authorizerIdHasBeenSet; }
156 
160  inline void SetAuthorizerId(const Aws::String& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = value; }
161 
165  inline void SetAuthorizerId(Aws::String&& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = std::move(value); }
166 
170  inline void SetAuthorizerId(const char* value) { m_authorizerIdHasBeenSet = true; m_authorizerId.assign(value); }
171 
175  inline UpdateAuthorizerRequest& WithAuthorizerId(const Aws::String& value) { SetAuthorizerId(value); return *this;}
176 
180  inline UpdateAuthorizerRequest& WithAuthorizerId(Aws::String&& value) { SetAuthorizerId(std::move(value)); return *this;}
181 
185  inline UpdateAuthorizerRequest& WithAuthorizerId(const char* value) { SetAuthorizerId(value); return *this;}
186 
187 
195  inline const Aws::String& GetAuthorizerPayloadFormatVersion() const{ return m_authorizerPayloadFormatVersion; }
196 
204  inline bool AuthorizerPayloadFormatVersionHasBeenSet() const { return m_authorizerPayloadFormatVersionHasBeenSet; }
205 
213  inline void SetAuthorizerPayloadFormatVersion(const Aws::String& value) { m_authorizerPayloadFormatVersionHasBeenSet = true; m_authorizerPayloadFormatVersion = value; }
214 
222  inline void SetAuthorizerPayloadFormatVersion(Aws::String&& value) { m_authorizerPayloadFormatVersionHasBeenSet = true; m_authorizerPayloadFormatVersion = std::move(value); }
223 
231  inline void SetAuthorizerPayloadFormatVersion(const char* value) { m_authorizerPayloadFormatVersionHasBeenSet = true; m_authorizerPayloadFormatVersion.assign(value); }
232 
240  inline UpdateAuthorizerRequest& WithAuthorizerPayloadFormatVersion(const Aws::String& value) { SetAuthorizerPayloadFormatVersion(value); return *this;}
241 
249  inline UpdateAuthorizerRequest& WithAuthorizerPayloadFormatVersion(Aws::String&& value) { SetAuthorizerPayloadFormatVersion(std::move(value)); return *this;}
250 
258  inline UpdateAuthorizerRequest& WithAuthorizerPayloadFormatVersion(const char* value) { SetAuthorizerPayloadFormatVersion(value); return *this;}
259 
260 
267  inline int GetAuthorizerResultTtlInSeconds() const{ return m_authorizerResultTtlInSeconds; }
268 
275  inline bool AuthorizerResultTtlInSecondsHasBeenSet() const { return m_authorizerResultTtlInSecondsHasBeenSet; }
276 
283  inline void SetAuthorizerResultTtlInSeconds(int value) { m_authorizerResultTtlInSecondsHasBeenSet = true; m_authorizerResultTtlInSeconds = value; }
284 
291  inline UpdateAuthorizerRequest& WithAuthorizerResultTtlInSeconds(int value) { SetAuthorizerResultTtlInSeconds(value); return *this;}
292 
293 
299  inline const AuthorizerType& GetAuthorizerType() const{ return m_authorizerType; }
300 
306  inline bool AuthorizerTypeHasBeenSet() const { return m_authorizerTypeHasBeenSet; }
307 
313  inline void SetAuthorizerType(const AuthorizerType& value) { m_authorizerTypeHasBeenSet = true; m_authorizerType = value; }
314 
320  inline void SetAuthorizerType(AuthorizerType&& value) { m_authorizerTypeHasBeenSet = true; m_authorizerType = std::move(value); }
321 
327  inline UpdateAuthorizerRequest& WithAuthorizerType(const AuthorizerType& value) { SetAuthorizerType(value); return *this;}
328 
334  inline UpdateAuthorizerRequest& WithAuthorizerType(AuthorizerType&& value) { SetAuthorizerType(std::move(value)); return *this;}
335 
336 
351  inline const Aws::String& GetAuthorizerUri() const{ return m_authorizerUri; }
352 
367  inline bool AuthorizerUriHasBeenSet() const { return m_authorizerUriHasBeenSet; }
368 
383  inline void SetAuthorizerUri(const Aws::String& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = value; }
384 
399  inline void SetAuthorizerUri(Aws::String&& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = std::move(value); }
400 
415  inline void SetAuthorizerUri(const char* value) { m_authorizerUriHasBeenSet = true; m_authorizerUri.assign(value); }
416 
431  inline UpdateAuthorizerRequest& WithAuthorizerUri(const Aws::String& value) { SetAuthorizerUri(value); return *this;}
432 
447  inline UpdateAuthorizerRequest& WithAuthorizerUri(Aws::String&& value) { SetAuthorizerUri(std::move(value)); return *this;}
448 
463  inline UpdateAuthorizerRequest& WithAuthorizerUri(const char* value) { SetAuthorizerUri(value); return *this;}
464 
465 
474  inline bool GetEnableSimpleResponses() const{ return m_enableSimpleResponses; }
475 
484  inline bool EnableSimpleResponsesHasBeenSet() const { return m_enableSimpleResponsesHasBeenSet; }
485 
494  inline void SetEnableSimpleResponses(bool value) { m_enableSimpleResponsesHasBeenSet = true; m_enableSimpleResponses = value; }
495 
504  inline UpdateAuthorizerRequest& WithEnableSimpleResponses(bool value) { SetEnableSimpleResponses(value); return *this;}
505 
506 
529  inline const Aws::Vector<Aws::String>& GetIdentitySource() const{ return m_identitySource; }
530 
553  inline bool IdentitySourceHasBeenSet() const { return m_identitySourceHasBeenSet; }
554 
577  inline void SetIdentitySource(const Aws::Vector<Aws::String>& value) { m_identitySourceHasBeenSet = true; m_identitySource = value; }
578 
601  inline void SetIdentitySource(Aws::Vector<Aws::String>&& value) { m_identitySourceHasBeenSet = true; m_identitySource = std::move(value); }
602 
625  inline UpdateAuthorizerRequest& WithIdentitySource(const Aws::Vector<Aws::String>& value) { SetIdentitySource(value); return *this;}
626 
649  inline UpdateAuthorizerRequest& WithIdentitySource(Aws::Vector<Aws::String>&& value) { SetIdentitySource(std::move(value)); return *this;}
650 
673  inline UpdateAuthorizerRequest& AddIdentitySource(const Aws::String& value) { m_identitySourceHasBeenSet = true; m_identitySource.push_back(value); return *this; }
674 
697  inline UpdateAuthorizerRequest& AddIdentitySource(Aws::String&& value) { m_identitySourceHasBeenSet = true; m_identitySource.push_back(std::move(value)); return *this; }
698 
721  inline UpdateAuthorizerRequest& AddIdentitySource(const char* value) { m_identitySourceHasBeenSet = true; m_identitySource.push_back(value); return *this; }
722 
723 
727  inline const Aws::String& GetIdentityValidationExpression() const{ return m_identityValidationExpression; }
728 
732  inline bool IdentityValidationExpressionHasBeenSet() const { return m_identityValidationExpressionHasBeenSet; }
733 
737  inline void SetIdentityValidationExpression(const Aws::String& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = value; }
738 
742  inline void SetIdentityValidationExpression(Aws::String&& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = std::move(value); }
743 
747  inline void SetIdentityValidationExpression(const char* value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression.assign(value); }
748 
752  inline UpdateAuthorizerRequest& WithIdentityValidationExpression(const Aws::String& value) { SetIdentityValidationExpression(value); return *this;}
753 
757  inline UpdateAuthorizerRequest& WithIdentityValidationExpression(Aws::String&& value) { SetIdentityValidationExpression(std::move(value)); return *this;}
758 
762  inline UpdateAuthorizerRequest& WithIdentityValidationExpression(const char* value) { SetIdentityValidationExpression(value); return *this;}
763 
764 
769  inline const JWTConfiguration& GetJwtConfiguration() const{ return m_jwtConfiguration; }
770 
775  inline bool JwtConfigurationHasBeenSet() const { return m_jwtConfigurationHasBeenSet; }
776 
781  inline void SetJwtConfiguration(const JWTConfiguration& value) { m_jwtConfigurationHasBeenSet = true; m_jwtConfiguration = value; }
782 
787  inline void SetJwtConfiguration(JWTConfiguration&& value) { m_jwtConfigurationHasBeenSet = true; m_jwtConfiguration = std::move(value); }
788 
793  inline UpdateAuthorizerRequest& WithJwtConfiguration(const JWTConfiguration& value) { SetJwtConfiguration(value); return *this;}
794 
799  inline UpdateAuthorizerRequest& WithJwtConfiguration(JWTConfiguration&& value) { SetJwtConfiguration(std::move(value)); return *this;}
800 
801 
805  inline const Aws::String& GetName() const{ return m_name; }
806 
810  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
811 
815  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
816 
820  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
821 
825  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
826 
830  inline UpdateAuthorizerRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
831 
835  inline UpdateAuthorizerRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
836 
840  inline UpdateAuthorizerRequest& WithName(const char* value) { SetName(value); return *this;}
841 
842  private:
843 
844  Aws::String m_apiId;
845  bool m_apiIdHasBeenSet;
846 
847  Aws::String m_authorizerCredentialsArn;
848  bool m_authorizerCredentialsArnHasBeenSet;
849 
850  Aws::String m_authorizerId;
851  bool m_authorizerIdHasBeenSet;
852 
853  Aws::String m_authorizerPayloadFormatVersion;
854  bool m_authorizerPayloadFormatVersionHasBeenSet;
855 
856  int m_authorizerResultTtlInSeconds;
857  bool m_authorizerResultTtlInSecondsHasBeenSet;
858 
859  AuthorizerType m_authorizerType;
860  bool m_authorizerTypeHasBeenSet;
861 
862  Aws::String m_authorizerUri;
863  bool m_authorizerUriHasBeenSet;
864 
865  bool m_enableSimpleResponses;
866  bool m_enableSimpleResponsesHasBeenSet;
867 
868  Aws::Vector<Aws::String> m_identitySource;
869  bool m_identitySourceHasBeenSet;
870 
871  Aws::String m_identityValidationExpression;
872  bool m_identityValidationExpressionHasBeenSet;
873 
874  JWTConfiguration m_jwtConfiguration;
875  bool m_jwtConfigurationHasBeenSet;
876 
877  Aws::String m_name;
878  bool m_nameHasBeenSet;
879  };
880 
881 } // namespace Model
882 } // namespace ApiGatewayV2
883 } // namespace Aws
UpdateAuthorizerRequest & WithAuthorizerUri(const char *value)
UpdateAuthorizerRequest & AddIdentitySource(const Aws::String &value)
UpdateAuthorizerRequest & WithEnableSimpleResponses(bool value)
UpdateAuthorizerRequest & WithApiId(Aws::String &&value)
void SetIdentitySource(const Aws::Vector< Aws::String > &value)
UpdateAuthorizerRequest & WithAuthorizerId(const char *value)
UpdateAuthorizerRequest & WithAuthorizerUri(const Aws::String &value)
UpdateAuthorizerRequest & AddIdentitySource(Aws::String &&value)
const Aws::Vector< Aws::String > & GetIdentitySource() const
UpdateAuthorizerRequest & WithAuthorizerId(const Aws::String &value)
UpdateAuthorizerRequest & WithIdentityValidationExpression(const char *value)
UpdateAuthorizerRequest & WithName(const Aws::String &value)
UpdateAuthorizerRequest & WithAuthorizerCredentialsArn(const char *value)
UpdateAuthorizerRequest & WithAuthorizerPayloadFormatVersion(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
#define AWS_APIGATEWAYV2_API
UpdateAuthorizerRequest & WithIdentityValidationExpression(Aws::String &&value)
UpdateAuthorizerRequest & WithApiId(const char *value)
virtual const char * GetServiceRequestName() const override
UpdateAuthorizerRequest & WithAuthorizerCredentialsArn(Aws::String &&value)
UpdateAuthorizerRequest & WithAuthorizerType(const AuthorizerType &value)
UpdateAuthorizerRequest & AddIdentitySource(const char *value)
UpdateAuthorizerRequest & WithAuthorizerUri(Aws::String &&value)
UpdateAuthorizerRequest & WithAuthorizerPayloadFormatVersion(const Aws::String &value)
void SetJwtConfiguration(const JWTConfiguration &value)
UpdateAuthorizerRequest & WithName(Aws::String &&value)
UpdateAuthorizerRequest & WithAuthorizerPayloadFormatVersion(const char *value)
void SetIdentityValidationExpression(const Aws::String &value)
UpdateAuthorizerRequest & WithJwtConfiguration(const JWTConfiguration &value)
UpdateAuthorizerRequest & WithAuthorizerCredentialsArn(const Aws::String &value)
UpdateAuthorizerRequest & WithName(const char *value)
UpdateAuthorizerRequest & WithIdentitySource(const Aws::Vector< Aws::String > &value)
UpdateAuthorizerRequest & WithAuthorizerResultTtlInSeconds(int value)
UpdateAuthorizerRequest & WithJwtConfiguration(JWTConfiguration &&value)
void SetIdentitySource(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetAuthorizerPayloadFormatVersion(const Aws::String &value)
UpdateAuthorizerRequest & WithIdentitySource(Aws::Vector< Aws::String > &&value)
UpdateAuthorizerRequest & WithAuthorizerType(AuthorizerType &&value)
UpdateAuthorizerRequest & WithApiId(const Aws::String &value)
UpdateAuthorizerRequest & WithAuthorizerId(Aws::String &&value)
UpdateAuthorizerRequest & WithIdentityValidationExpression(const Aws::String &value)