AWS SDK for C++  1.9.20
AWS SDK for C++
Authorizer.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace APIGateway
24 {
25 namespace Model
26 {
27 
40  {
41  public:
46 
47 
51  inline const Aws::String& GetId() const{ return m_id; }
52 
56  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
57 
61  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
62 
66  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
67 
71  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
72 
76  inline Authorizer& WithId(const Aws::String& value) { SetId(value); return *this;}
77 
81  inline Authorizer& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
82 
86  inline Authorizer& WithId(const char* value) { SetId(value); return *this;}
87 
88 
92  inline const Aws::String& GetName() const{ return m_name; }
93 
97  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
98 
102  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
103 
107  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
108 
112  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
113 
117  inline Authorizer& WithName(const Aws::String& value) { SetName(value); return *this;}
118 
122  inline Authorizer& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
123 
127  inline Authorizer& WithName(const char* value) { SetName(value); return *this;}
128 
129 
136  inline const AuthorizerType& GetType() const{ return m_type; }
137 
144  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
145 
152  inline void SetType(const AuthorizerType& value) { m_typeHasBeenSet = true; m_type = value; }
153 
160  inline void SetType(AuthorizerType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
161 
168  inline Authorizer& WithType(const AuthorizerType& value) { SetType(value); return *this;}
169 
176  inline Authorizer& WithType(AuthorizerType&& value) { SetType(std::move(value)); return *this;}
177 
178 
186  inline const Aws::Vector<Aws::String>& GetProviderARNs() const{ return m_providerARNs; }
187 
195  inline bool ProviderARNsHasBeenSet() const { return m_providerARNsHasBeenSet; }
196 
204  inline void SetProviderARNs(const Aws::Vector<Aws::String>& value) { m_providerARNsHasBeenSet = true; m_providerARNs = value; }
205 
213  inline void SetProviderARNs(Aws::Vector<Aws::String>&& value) { m_providerARNsHasBeenSet = true; m_providerARNs = std::move(value); }
214 
222  inline Authorizer& WithProviderARNs(const Aws::Vector<Aws::String>& value) { SetProviderARNs(value); return *this;}
223 
231  inline Authorizer& WithProviderARNs(Aws::Vector<Aws::String>&& value) { SetProviderARNs(std::move(value)); return *this;}
232 
240  inline Authorizer& AddProviderARNs(const Aws::String& value) { m_providerARNsHasBeenSet = true; m_providerARNs.push_back(value); return *this; }
241 
249  inline Authorizer& AddProviderARNs(Aws::String&& value) { m_providerARNsHasBeenSet = true; m_providerARNs.push_back(std::move(value)); return *this; }
250 
258  inline Authorizer& AddProviderARNs(const char* value) { m_providerARNsHasBeenSet = true; m_providerARNs.push_back(value); return *this; }
259 
260 
265  inline const Aws::String& GetAuthType() const{ return m_authType; }
266 
271  inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
272 
277  inline void SetAuthType(const Aws::String& value) { m_authTypeHasBeenSet = true; m_authType = value; }
278 
283  inline void SetAuthType(Aws::String&& value) { m_authTypeHasBeenSet = true; m_authType = std::move(value); }
284 
289  inline void SetAuthType(const char* value) { m_authTypeHasBeenSet = true; m_authType.assign(value); }
290 
295  inline Authorizer& WithAuthType(const Aws::String& value) { SetAuthType(value); return *this;}
296 
301  inline Authorizer& WithAuthType(Aws::String&& value) { SetAuthType(std::move(value)); return *this;}
302 
307  inline Authorizer& WithAuthType(const char* value) { SetAuthType(value); return *this;}
308 
309 
323  inline const Aws::String& GetAuthorizerUri() const{ return m_authorizerUri; }
324 
338  inline bool AuthorizerUriHasBeenSet() const { return m_authorizerUriHasBeenSet; }
339 
353  inline void SetAuthorizerUri(const Aws::String& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = value; }
354 
368  inline void SetAuthorizerUri(Aws::String&& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = std::move(value); }
369 
383  inline void SetAuthorizerUri(const char* value) { m_authorizerUriHasBeenSet = true; m_authorizerUri.assign(value); }
384 
398  inline Authorizer& WithAuthorizerUri(const Aws::String& value) { SetAuthorizerUri(value); return *this;}
399 
413  inline Authorizer& WithAuthorizerUri(Aws::String&& value) { SetAuthorizerUri(std::move(value)); return *this;}
414 
428  inline Authorizer& WithAuthorizerUri(const char* value) { SetAuthorizerUri(value); return *this;}
429 
430 
437  inline const Aws::String& GetAuthorizerCredentials() const{ return m_authorizerCredentials; }
438 
445  inline bool AuthorizerCredentialsHasBeenSet() const { return m_authorizerCredentialsHasBeenSet; }
446 
453  inline void SetAuthorizerCredentials(const Aws::String& value) { m_authorizerCredentialsHasBeenSet = true; m_authorizerCredentials = value; }
454 
461  inline void SetAuthorizerCredentials(Aws::String&& value) { m_authorizerCredentialsHasBeenSet = true; m_authorizerCredentials = std::move(value); }
462 
469  inline void SetAuthorizerCredentials(const char* value) { m_authorizerCredentialsHasBeenSet = true; m_authorizerCredentials.assign(value); }
470 
477  inline Authorizer& WithAuthorizerCredentials(const Aws::String& value) { SetAuthorizerCredentials(value); return *this;}
478 
485  inline Authorizer& WithAuthorizerCredentials(Aws::String&& value) { SetAuthorizerCredentials(std::move(value)); return *this;}
486 
493  inline Authorizer& WithAuthorizerCredentials(const char* value) { SetAuthorizerCredentials(value); return *this;}
494 
495 
518  inline const Aws::String& GetIdentitySource() const{ return m_identitySource; }
519 
542  inline bool IdentitySourceHasBeenSet() const { return m_identitySourceHasBeenSet; }
543 
566  inline void SetIdentitySource(const Aws::String& value) { m_identitySourceHasBeenSet = true; m_identitySource = value; }
567 
590  inline void SetIdentitySource(Aws::String&& value) { m_identitySourceHasBeenSet = true; m_identitySource = std::move(value); }
591 
614  inline void SetIdentitySource(const char* value) { m_identitySourceHasBeenSet = true; m_identitySource.assign(value); }
615 
638  inline Authorizer& WithIdentitySource(const Aws::String& value) { SetIdentitySource(value); return *this;}
639 
662  inline Authorizer& WithIdentitySource(Aws::String&& value) { SetIdentitySource(std::move(value)); return *this;}
663 
686  inline Authorizer& WithIdentitySource(const char* value) { SetIdentitySource(value); return *this;}
687 
688 
699  inline const Aws::String& GetIdentityValidationExpression() const{ return m_identityValidationExpression; }
700 
711  inline bool IdentityValidationExpressionHasBeenSet() const { return m_identityValidationExpressionHasBeenSet; }
712 
723  inline void SetIdentityValidationExpression(const Aws::String& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = value; }
724 
735  inline void SetIdentityValidationExpression(Aws::String&& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = std::move(value); }
736 
747  inline void SetIdentityValidationExpression(const char* value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression.assign(value); }
748 
759  inline Authorizer& WithIdentityValidationExpression(const Aws::String& value) { SetIdentityValidationExpression(value); return *this;}
760 
771  inline Authorizer& WithIdentityValidationExpression(Aws::String&& value) { SetIdentityValidationExpression(std::move(value)); return *this;}
772 
783  inline Authorizer& WithIdentityValidationExpression(const char* value) { SetIdentityValidationExpression(value); return *this;}
784 
785 
792  inline int GetAuthorizerResultTtlInSeconds() const{ return m_authorizerResultTtlInSeconds; }
793 
800  inline bool AuthorizerResultTtlInSecondsHasBeenSet() const { return m_authorizerResultTtlInSecondsHasBeenSet; }
801 
808  inline void SetAuthorizerResultTtlInSeconds(int value) { m_authorizerResultTtlInSecondsHasBeenSet = true; m_authorizerResultTtlInSeconds = value; }
809 
816  inline Authorizer& WithAuthorizerResultTtlInSeconds(int value) { SetAuthorizerResultTtlInSeconds(value); return *this;}
817 
818  private:
819 
820  Aws::String m_id;
821  bool m_idHasBeenSet;
822 
823  Aws::String m_name;
824  bool m_nameHasBeenSet;
825 
826  AuthorizerType m_type;
827  bool m_typeHasBeenSet;
828 
829  Aws::Vector<Aws::String> m_providerARNs;
830  bool m_providerARNsHasBeenSet;
831 
832  Aws::String m_authType;
833  bool m_authTypeHasBeenSet;
834 
835  Aws::String m_authorizerUri;
836  bool m_authorizerUriHasBeenSet;
837 
838  Aws::String m_authorizerCredentials;
839  bool m_authorizerCredentialsHasBeenSet;
840 
841  Aws::String m_identitySource;
842  bool m_identitySourceHasBeenSet;
843 
844  Aws::String m_identityValidationExpression;
845  bool m_identityValidationExpressionHasBeenSet;
846 
847  int m_authorizerResultTtlInSeconds;
848  bool m_authorizerResultTtlInSecondsHasBeenSet;
849  };
850 
851 } // namespace Model
852 } // namespace APIGateway
853 } // namespace Aws
Aws::APIGateway::Model::Authorizer::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Authorizer.h:56
Aws::APIGateway::Model::Authorizer::SetAuthorizerCredentials
void SetAuthorizerCredentials(const Aws::String &value)
Definition: Authorizer.h:453
Aws::APIGateway::Model::Authorizer::SetIdentityValidationExpression
void SetIdentityValidationExpression(Aws::String &&value)
Definition: Authorizer.h:735
Aws::APIGateway::Model::Authorizer::SetId
void SetId(const Aws::String &value)
Definition: Authorizer.h:61
Aws::APIGateway::Model::Authorizer::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Authorizer.h:97
Aws::APIGateway::Model::Authorizer::GetAuthorizerResultTtlInSeconds
int GetAuthorizerResultTtlInSeconds() const
Definition: Authorizer.h:792
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::Authorizer::SetType
void SetType(AuthorizerType &&value)
Definition: Authorizer.h:160
Aws::APIGateway::Model::Authorizer::WithAuthorizerUri
Authorizer & WithAuthorizerUri(Aws::String &&value)
Definition: Authorizer.h:413
Aws::APIGateway::Model::Authorizer::WithType
Authorizer & WithType(const AuthorizerType &value)
Definition: Authorizer.h:168
Aws::APIGateway::Model::Authorizer::WithAuthType
Authorizer & WithAuthType(const Aws::String &value)
Definition: Authorizer.h:295
Aws::APIGateway::Model::Authorizer::GetAuthType
const Aws::String & GetAuthType() const
Definition: Authorizer.h:265
Aws::APIGateway::Model::Authorizer::SetAuthorizerUri
void SetAuthorizerUri(const char *value)
Definition: Authorizer.h:383
Aws::APIGateway::Model::Authorizer::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Authorizer.h:144
Aws::APIGateway::Model::Authorizer::SetProviderARNs
void SetProviderARNs(Aws::Vector< Aws::String > &&value)
Definition: Authorizer.h:213
Aws::APIGateway::Model::Authorizer::WithIdentitySource
Authorizer & WithIdentitySource(const char *value)
Definition: Authorizer.h:686
Aws::APIGateway::Model::Authorizer::SetIdentityValidationExpression
void SetIdentityValidationExpression(const Aws::String &value)
Definition: Authorizer.h:723
Aws::APIGateway::Model::Authorizer::GetName
const Aws::String & GetName() const
Definition: Authorizer.h:92
Aws::APIGateway::Model::Authorizer::WithName
Authorizer & WithName(const Aws::String &value)
Definition: Authorizer.h:117
Aws::APIGateway::Model::Authorizer::GetAuthorizerCredentials
const Aws::String & GetAuthorizerCredentials() const
Definition: Authorizer.h:437
Aws::APIGateway::Model::Authorizer::AuthorizerResultTtlInSecondsHasBeenSet
bool AuthorizerResultTtlInSecondsHasBeenSet() const
Definition: Authorizer.h:800
Aws::APIGateway::Model::Authorizer::SetAuthType
void SetAuthType(const char *value)
Definition: Authorizer.h:289
APIGateway_EXPORTS.h
Aws::APIGateway::Model::Authorizer::AddProviderARNs
Authorizer & AddProviderARNs(Aws::String &&value)
Definition: Authorizer.h:249
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::APIGateway::Model::Authorizer::SetId
void SetId(const char *value)
Definition: Authorizer.h:71
AWSVector.h
Aws::APIGateway::Model::Authorizer::WithId
Authorizer & WithId(Aws::String &&value)
Definition: Authorizer.h:81
Aws::APIGateway::Model::Authorizer::WithAuthorizerUri
Authorizer & WithAuthorizerUri(const char *value)
Definition: Authorizer.h:428
Aws::APIGateway::Model::Authorizer::GetIdentitySource
const Aws::String & GetIdentitySource() const
Definition: Authorizer.h:518
Aws::APIGateway::Model::Authorizer::WithId
Authorizer & WithId(const Aws::String &value)
Definition: Authorizer.h:76
Aws::APIGateway::Model::Authorizer::SetType
void SetType(const AuthorizerType &value)
Definition: Authorizer.h:152
Aws::APIGateway::Model::Authorizer::WithAuthorizerUri
Authorizer & WithAuthorizerUri(const Aws::String &value)
Definition: Authorizer.h:398
Aws::APIGateway::Model::Authorizer::SetIdentitySource
void SetIdentitySource(const char *value)
Definition: Authorizer.h:614
Aws::APIGateway::Model::Authorizer::WithIdentityValidationExpression
Authorizer & WithIdentityValidationExpression(const char *value)
Definition: Authorizer.h:783
Aws::APIGateway::Model::Authorizer::WithProviderARNs
Authorizer & WithProviderARNs(const Aws::Vector< Aws::String > &value)
Definition: Authorizer.h:222
Aws::APIGateway::Model::Authorizer::SetName
void SetName(const char *value)
Definition: Authorizer.h:112
Aws::APIGateway::Model::Authorizer::SetAuthType
void SetAuthType(const Aws::String &value)
Definition: Authorizer.h:277
Aws::APIGateway::Model::Authorizer::SetProviderARNs
void SetProviderARNs(const Aws::Vector< Aws::String > &value)
Definition: Authorizer.h:204
Aws::APIGateway::Model::Authorizer::GetId
const Aws::String & GetId() const
Definition: Authorizer.h:51
Aws::APIGateway::Model::Authorizer::SetAuthType
void SetAuthType(Aws::String &&value)
Definition: Authorizer.h:283
Aws::APIGateway::Model::Authorizer::AddProviderARNs
Authorizer & AddProviderARNs(const Aws::String &value)
Definition: Authorizer.h:240
Aws::APIGateway::Model::Authorizer::SetIdentitySource
void SetIdentitySource(const Aws::String &value)
Definition: Authorizer.h:566
Aws::APIGateway::Model::Authorizer::IdentitySourceHasBeenSet
bool IdentitySourceHasBeenSet() const
Definition: Authorizer.h:542
Aws::APIGateway::Model::Authorizer::SetAuthorizerUri
void SetAuthorizerUri(Aws::String &&value)
Definition: Authorizer.h:368
Aws::APIGateway::Model::Authorizer::SetAuthorizerResultTtlInSeconds
void SetAuthorizerResultTtlInSeconds(int value)
Definition: Authorizer.h:808
Aws::APIGateway::Model::AuthorizerType
AuthorizerType
Definition: AuthorizerType.h:17
Aws::APIGateway::Model::Authorizer::WithIdentityValidationExpression
Authorizer & WithIdentityValidationExpression(Aws::String &&value)
Definition: Authorizer.h:771
Aws::APIGateway::Model::Authorizer::SetIdentitySource
void SetIdentitySource(Aws::String &&value)
Definition: Authorizer.h:590
Aws::APIGateway::Model::Authorizer::SetAuthorizerUri
void SetAuthorizerUri(const Aws::String &value)
Definition: Authorizer.h:353
Aws::APIGateway::Model::Authorizer::WithIdentitySource
Authorizer & WithIdentitySource(const Aws::String &value)
Definition: Authorizer.h:638
Aws::APIGateway::Model::Authorizer::WithName
Authorizer & WithName(Aws::String &&value)
Definition: Authorizer.h:122
Aws::APIGateway::Model::Authorizer::GetIdentityValidationExpression
const Aws::String & GetIdentityValidationExpression() const
Definition: Authorizer.h:699
Aws::APIGateway::Model::Authorizer::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::APIGateway::Model::Authorizer::SetAuthorizerCredentials
void SetAuthorizerCredentials(Aws::String &&value)
Definition: Authorizer.h:461
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::APIGateway::Model::Authorizer::WithAuthorizerCredentials
Authorizer & WithAuthorizerCredentials(Aws::String &&value)
Definition: Authorizer.h:485
Aws::APIGateway::Model::Authorizer::Authorizer
Authorizer()
Aws::APIGateway::Model::Authorizer::GetProviderARNs
const Aws::Vector< Aws::String > & GetProviderARNs() const
Definition: Authorizer.h:186
Aws::APIGateway::Model::Authorizer::WithId
Authorizer & WithId(const char *value)
Definition: Authorizer.h:86
Aws::APIGateway::Model::Authorizer::GetAuthorizerUri
const Aws::String & GetAuthorizerUri() const
Definition: Authorizer.h:323
Aws::APIGateway::Model::Authorizer::SetName
void SetName(const Aws::String &value)
Definition: Authorizer.h:102
Aws::APIGateway::Model::Authorizer::WithIdentitySource
Authorizer & WithIdentitySource(Aws::String &&value)
Definition: Authorizer.h:662
Aws::APIGateway::Model::Authorizer::WithAuthType
Authorizer & WithAuthType(Aws::String &&value)
Definition: Authorizer.h:301
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::Authorizer::WithAuthType
Authorizer & WithAuthType(const char *value)
Definition: Authorizer.h:307
AuthorizerType.h
Aws::APIGateway::Model::Authorizer::Authorizer
Authorizer(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::Authorizer::ProviderARNsHasBeenSet
bool ProviderARNsHasBeenSet() const
Definition: Authorizer.h:195
Aws::APIGateway::Model::Authorizer::GetType
const AuthorizerType & GetType() const
Definition: Authorizer.h:136
Aws::APIGateway::Model::Authorizer::AuthorizerUriHasBeenSet
bool AuthorizerUriHasBeenSet() const
Definition: Authorizer.h:338
Aws::APIGateway::Model::Authorizer::SetAuthorizerCredentials
void SetAuthorizerCredentials(const char *value)
Definition: Authorizer.h:469
Aws::APIGateway::Model::Authorizer::AddProviderARNs
Authorizer & AddProviderARNs(const char *value)
Definition: Authorizer.h:258
Aws::APIGateway::Model::Authorizer
Definition: Authorizer.h:40
Aws::APIGateway::Model::Authorizer::WithAuthorizerCredentials
Authorizer & WithAuthorizerCredentials(const char *value)
Definition: Authorizer.h:493
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::Authorizer::WithType
Authorizer & WithType(AuthorizerType &&value)
Definition: Authorizer.h:176
Aws::APIGateway::Model::Authorizer::operator=
Authorizer & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::Authorizer::SetId
void SetId(Aws::String &&value)
Definition: Authorizer.h:66
Aws::APIGateway::Model::Authorizer::WithAuthorizerResultTtlInSeconds
Authorizer & WithAuthorizerResultTtlInSeconds(int value)
Definition: Authorizer.h:816
Aws::APIGateway::Model::Authorizer::IdentityValidationExpressionHasBeenSet
bool IdentityValidationExpressionHasBeenSet() const
Definition: Authorizer.h:711
Aws::APIGateway::Model::Authorizer::AuthorizerCredentialsHasBeenSet
bool AuthorizerCredentialsHasBeenSet() const
Definition: Authorizer.h:445
Aws::APIGateway::Model::Authorizer::WithName
Authorizer & WithName(const char *value)
Definition: Authorizer.h:127
Aws::APIGateway::Model::Authorizer::SetIdentityValidationExpression
void SetIdentityValidationExpression(const char *value)
Definition: Authorizer.h:747
Aws::APIGateway::Model::Authorizer::WithAuthorizerCredentials
Authorizer & WithAuthorizerCredentials(const Aws::String &value)
Definition: Authorizer.h:477
Aws::APIGateway::Model::Authorizer::WithProviderARNs
Authorizer & WithProviderARNs(Aws::Vector< Aws::String > &&value)
Definition: Authorizer.h:231
Aws::APIGateway::Model::Authorizer::SetName
void SetName(Aws::String &&value)
Definition: Authorizer.h:107
Aws::APIGateway::Model::Authorizer::AuthTypeHasBeenSet
bool AuthTypeHasBeenSet() const
Definition: Authorizer.h:271
Aws::APIGateway::Model::Authorizer::WithIdentityValidationExpression
Authorizer & WithIdentityValidationExpression(const Aws::String &value)
Definition: Authorizer.h:759