AWS SDK for C++  1.8.71
AWS SDK for C++
CreateAuthorizerRequest.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 
29  {
30  public:
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::String SerializePayload() const override;
40 
41 
45  inline const Aws::String& GetApiId() const{ return m_apiId; }
46 
50  inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
51 
55  inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
56 
60  inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
61 
65  inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
66 
70  inline CreateAuthorizerRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
71 
75  inline CreateAuthorizerRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
76 
80  inline CreateAuthorizerRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
81 
82 
90  inline const Aws::String& GetAuthorizerCredentialsArn() const{ return m_authorizerCredentialsArn; }
91 
99  inline bool AuthorizerCredentialsArnHasBeenSet() const { return m_authorizerCredentialsArnHasBeenSet; }
100 
108  inline void SetAuthorizerCredentialsArn(const Aws::String& value) { m_authorizerCredentialsArnHasBeenSet = true; m_authorizerCredentialsArn = value; }
109 
117  inline void SetAuthorizerCredentialsArn(Aws::String&& value) { m_authorizerCredentialsArnHasBeenSet = true; m_authorizerCredentialsArn = std::move(value); }
118 
126  inline void SetAuthorizerCredentialsArn(const char* value) { m_authorizerCredentialsArnHasBeenSet = true; m_authorizerCredentialsArn.assign(value); }
127 
135  inline CreateAuthorizerRequest& WithAuthorizerCredentialsArn(const Aws::String& value) { SetAuthorizerCredentialsArn(value); return *this;}
136 
144  inline CreateAuthorizerRequest& WithAuthorizerCredentialsArn(Aws::String&& value) { SetAuthorizerCredentialsArn(std::move(value)); return *this;}
145 
153  inline CreateAuthorizerRequest& WithAuthorizerCredentialsArn(const char* value) { SetAuthorizerCredentialsArn(value); return *this;}
154 
155 
163  inline const Aws::String& GetAuthorizerPayloadFormatVersion() const{ return m_authorizerPayloadFormatVersion; }
164 
172  inline bool AuthorizerPayloadFormatVersionHasBeenSet() const { return m_authorizerPayloadFormatVersionHasBeenSet; }
173 
181  inline void SetAuthorizerPayloadFormatVersion(const Aws::String& value) { m_authorizerPayloadFormatVersionHasBeenSet = true; m_authorizerPayloadFormatVersion = value; }
182 
190  inline void SetAuthorizerPayloadFormatVersion(Aws::String&& value) { m_authorizerPayloadFormatVersionHasBeenSet = true; m_authorizerPayloadFormatVersion = std::move(value); }
191 
199  inline void SetAuthorizerPayloadFormatVersion(const char* value) { m_authorizerPayloadFormatVersionHasBeenSet = true; m_authorizerPayloadFormatVersion.assign(value); }
200 
208  inline CreateAuthorizerRequest& WithAuthorizerPayloadFormatVersion(const Aws::String& value) { SetAuthorizerPayloadFormatVersion(value); return *this;}
209 
217  inline CreateAuthorizerRequest& WithAuthorizerPayloadFormatVersion(Aws::String&& value) { SetAuthorizerPayloadFormatVersion(std::move(value)); return *this;}
218 
226  inline CreateAuthorizerRequest& WithAuthorizerPayloadFormatVersion(const char* value) { SetAuthorizerPayloadFormatVersion(value); return *this;}
227 
228 
235  inline int GetAuthorizerResultTtlInSeconds() const{ return m_authorizerResultTtlInSeconds; }
236 
243  inline bool AuthorizerResultTtlInSecondsHasBeenSet() const { return m_authorizerResultTtlInSecondsHasBeenSet; }
244 
251  inline void SetAuthorizerResultTtlInSeconds(int value) { m_authorizerResultTtlInSecondsHasBeenSet = true; m_authorizerResultTtlInSeconds = value; }
252 
259  inline CreateAuthorizerRequest& WithAuthorizerResultTtlInSeconds(int value) { SetAuthorizerResultTtlInSeconds(value); return *this;}
260 
261 
267  inline const AuthorizerType& GetAuthorizerType() const{ return m_authorizerType; }
268 
274  inline bool AuthorizerTypeHasBeenSet() const { return m_authorizerTypeHasBeenSet; }
275 
281  inline void SetAuthorizerType(const AuthorizerType& value) { m_authorizerTypeHasBeenSet = true; m_authorizerType = value; }
282 
288  inline void SetAuthorizerType(AuthorizerType&& value) { m_authorizerTypeHasBeenSet = true; m_authorizerType = std::move(value); }
289 
295  inline CreateAuthorizerRequest& WithAuthorizerType(const AuthorizerType& value) { SetAuthorizerType(value); return *this;}
296 
302  inline CreateAuthorizerRequest& WithAuthorizerType(AuthorizerType&& value) { SetAuthorizerType(std::move(value)); return *this;}
303 
304 
319  inline const Aws::String& GetAuthorizerUri() const{ return m_authorizerUri; }
320 
335  inline bool AuthorizerUriHasBeenSet() const { return m_authorizerUriHasBeenSet; }
336 
351  inline void SetAuthorizerUri(const Aws::String& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = value; }
352 
367  inline void SetAuthorizerUri(Aws::String&& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = std::move(value); }
368 
383  inline void SetAuthorizerUri(const char* value) { m_authorizerUriHasBeenSet = true; m_authorizerUri.assign(value); }
384 
399  inline CreateAuthorizerRequest& WithAuthorizerUri(const Aws::String& value) { SetAuthorizerUri(value); return *this;}
400 
415  inline CreateAuthorizerRequest& WithAuthorizerUri(Aws::String&& value) { SetAuthorizerUri(std::move(value)); return *this;}
416 
431  inline CreateAuthorizerRequest& WithAuthorizerUri(const char* value) { SetAuthorizerUri(value); return *this;}
432 
433 
442  inline bool GetEnableSimpleResponses() const{ return m_enableSimpleResponses; }
443 
452  inline bool EnableSimpleResponsesHasBeenSet() const { return m_enableSimpleResponsesHasBeenSet; }
453 
462  inline void SetEnableSimpleResponses(bool value) { m_enableSimpleResponsesHasBeenSet = true; m_enableSimpleResponses = value; }
463 
472  inline CreateAuthorizerRequest& WithEnableSimpleResponses(bool value) { SetEnableSimpleResponses(value); return *this;}
473 
474 
497  inline const Aws::Vector<Aws::String>& GetIdentitySource() const{ return m_identitySource; }
498 
521  inline bool IdentitySourceHasBeenSet() const { return m_identitySourceHasBeenSet; }
522 
545  inline void SetIdentitySource(const Aws::Vector<Aws::String>& value) { m_identitySourceHasBeenSet = true; m_identitySource = value; }
546 
569  inline void SetIdentitySource(Aws::Vector<Aws::String>&& value) { m_identitySourceHasBeenSet = true; m_identitySource = std::move(value); }
570 
593  inline CreateAuthorizerRequest& WithIdentitySource(const Aws::Vector<Aws::String>& value) { SetIdentitySource(value); return *this;}
594 
617  inline CreateAuthorizerRequest& WithIdentitySource(Aws::Vector<Aws::String>&& value) { SetIdentitySource(std::move(value)); return *this;}
618 
641  inline CreateAuthorizerRequest& AddIdentitySource(const Aws::String& value) { m_identitySourceHasBeenSet = true; m_identitySource.push_back(value); return *this; }
642 
665  inline CreateAuthorizerRequest& AddIdentitySource(Aws::String&& value) { m_identitySourceHasBeenSet = true; m_identitySource.push_back(std::move(value)); return *this; }
666 
689  inline CreateAuthorizerRequest& AddIdentitySource(const char* value) { m_identitySourceHasBeenSet = true; m_identitySource.push_back(value); return *this; }
690 
691 
695  inline const Aws::String& GetIdentityValidationExpression() const{ return m_identityValidationExpression; }
696 
700  inline bool IdentityValidationExpressionHasBeenSet() const { return m_identityValidationExpressionHasBeenSet; }
701 
705  inline void SetIdentityValidationExpression(const Aws::String& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = value; }
706 
710  inline void SetIdentityValidationExpression(Aws::String&& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = std::move(value); }
711 
715  inline void SetIdentityValidationExpression(const char* value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression.assign(value); }
716 
720  inline CreateAuthorizerRequest& WithIdentityValidationExpression(const Aws::String& value) { SetIdentityValidationExpression(value); return *this;}
721 
725  inline CreateAuthorizerRequest& WithIdentityValidationExpression(Aws::String&& value) { SetIdentityValidationExpression(std::move(value)); return *this;}
726 
730  inline CreateAuthorizerRequest& WithIdentityValidationExpression(const char* value) { SetIdentityValidationExpression(value); return *this;}
731 
732 
737  inline const JWTConfiguration& GetJwtConfiguration() const{ return m_jwtConfiguration; }
738 
743  inline bool JwtConfigurationHasBeenSet() const { return m_jwtConfigurationHasBeenSet; }
744 
749  inline void SetJwtConfiguration(const JWTConfiguration& value) { m_jwtConfigurationHasBeenSet = true; m_jwtConfiguration = value; }
750 
755  inline void SetJwtConfiguration(JWTConfiguration&& value) { m_jwtConfigurationHasBeenSet = true; m_jwtConfiguration = std::move(value); }
756 
761  inline CreateAuthorizerRequest& WithJwtConfiguration(const JWTConfiguration& value) { SetJwtConfiguration(value); return *this;}
762 
767  inline CreateAuthorizerRequest& WithJwtConfiguration(JWTConfiguration&& value) { SetJwtConfiguration(std::move(value)); return *this;}
768 
769 
773  inline const Aws::String& GetName() const{ return m_name; }
774 
778  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
779 
783  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
784 
788  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
789 
793  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
794 
798  inline CreateAuthorizerRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
799 
803  inline CreateAuthorizerRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
804 
808  inline CreateAuthorizerRequest& WithName(const char* value) { SetName(value); return *this;}
809 
810  private:
811 
812  Aws::String m_apiId;
813  bool m_apiIdHasBeenSet;
814 
815  Aws::String m_authorizerCredentialsArn;
816  bool m_authorizerCredentialsArnHasBeenSet;
817 
818  Aws::String m_authorizerPayloadFormatVersion;
819  bool m_authorizerPayloadFormatVersionHasBeenSet;
820 
821  int m_authorizerResultTtlInSeconds;
822  bool m_authorizerResultTtlInSecondsHasBeenSet;
823 
824  AuthorizerType m_authorizerType;
825  bool m_authorizerTypeHasBeenSet;
826 
827  Aws::String m_authorizerUri;
828  bool m_authorizerUriHasBeenSet;
829 
830  bool m_enableSimpleResponses;
831  bool m_enableSimpleResponsesHasBeenSet;
832 
833  Aws::Vector<Aws::String> m_identitySource;
834  bool m_identitySourceHasBeenSet;
835 
836  Aws::String m_identityValidationExpression;
837  bool m_identityValidationExpressionHasBeenSet;
838 
839  JWTConfiguration m_jwtConfiguration;
840  bool m_jwtConfigurationHasBeenSet;
841 
842  Aws::String m_name;
843  bool m_nameHasBeenSet;
844  };
845 
846 } // namespace Model
847 } // namespace ApiGatewayV2
848 } // namespace Aws
CreateAuthorizerRequest & WithAuthorizerUri(const Aws::String &value)
CreateAuthorizerRequest & WithIdentitySource(Aws::Vector< Aws::String > &&value)
void SetJwtConfiguration(const JWTConfiguration &value)
void SetAuthorizerPayloadFormatVersion(const Aws::String &value)
CreateAuthorizerRequest & WithAuthorizerCredentialsArn(Aws::String &&value)
CreateAuthorizerRequest & WithApiId(const char *value)
CreateAuthorizerRequest & WithJwtConfiguration(JWTConfiguration &&value)
CreateAuthorizerRequest & WithName(const char *value)
CreateAuthorizerRequest & WithIdentityValidationExpression(const Aws::String &value)
CreateAuthorizerRequest & WithApiId(const Aws::String &value)
CreateAuthorizerRequest & WithAuthorizerCredentialsArn(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
const Aws::Vector< Aws::String > & GetIdentitySource() const
CreateAuthorizerRequest & AddIdentitySource(const Aws::String &value)
CreateAuthorizerRequest & WithApiId(Aws::String &&value)
#define AWS_APIGATEWAYV2_API
void SetIdentitySource(const Aws::Vector< Aws::String > &value)
CreateAuthorizerRequest & WithName(const Aws::String &value)
CreateAuthorizerRequest & WithAuthorizerType(AuthorizerType &&value)
CreateAuthorizerRequest & WithIdentityValidationExpression(Aws::String &&value)
CreateAuthorizerRequest & WithName(Aws::String &&value)
CreateAuthorizerRequest & WithAuthorizerPayloadFormatVersion(const Aws::String &value)
CreateAuthorizerRequest & WithAuthorizerResultTtlInSeconds(int value)
CreateAuthorizerRequest & WithAuthorizerType(const AuthorizerType &value)
void SetIdentityValidationExpression(const Aws::String &value)
CreateAuthorizerRequest & WithAuthorizerPayloadFormatVersion(Aws::String &&value)
CreateAuthorizerRequest & WithAuthorizerPayloadFormatVersion(const char *value)
CreateAuthorizerRequest & WithJwtConfiguration(const JWTConfiguration &value)
CreateAuthorizerRequest & WithAuthorizerUri(Aws::String &&value)
CreateAuthorizerRequest & WithAuthorizerCredentialsArn(const char *value)
CreateAuthorizerRequest & WithEnableSimpleResponses(bool value)
CreateAuthorizerRequest & WithAuthorizerUri(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateAuthorizerRequest & AddIdentitySource(Aws::String &&value)
CreateAuthorizerRequest & AddIdentitySource(const char *value)
CreateAuthorizerRequest & WithIdentityValidationExpression(const char *value)
void SetIdentitySource(Aws::Vector< Aws::String > &&value)
CreateAuthorizerRequest & WithIdentitySource(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override