AWS SDK for C++  0.14.3
AWS SDK for C++
Authorizer.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace APIGateway
31 {
32 namespace Model
33 {
34 
40  {
41  public:
42  Authorizer();
43  Authorizer(const Aws::Utils::Json::JsonValue& jsonValue);
44  Authorizer& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
50  inline const Aws::String& GetId() const{ return m_id; }
51 
55  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
56 
60  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
61 
65  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
66 
70  inline Authorizer& WithId(const Aws::String& value) { SetId(value); return *this;}
71 
75  inline Authorizer& WithId(Aws::String&& value) { SetId(value); return *this;}
76 
80  inline Authorizer& WithId(const char* value) { SetId(value); return *this;}
81 
85  inline const Aws::String& GetName() const{ return m_name; }
86 
90  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
91 
95  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
96 
100  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
101 
105  inline Authorizer& WithName(const Aws::String& value) { SetName(value); return *this;}
106 
110  inline Authorizer& WithName(Aws::String&& value) { SetName(value); return *this;}
111 
115  inline Authorizer& WithName(const char* value) { SetName(value); return *this;}
116 
121  inline const AuthorizerType& GetType() const{ return m_type; }
122 
127  inline void SetType(const AuthorizerType& value) { m_typeHasBeenSet = true; m_type = value; }
128 
133  inline void SetType(AuthorizerType&& value) { m_typeHasBeenSet = true; m_type = value; }
134 
139  inline Authorizer& WithType(const AuthorizerType& value) { SetType(value); return *this;}
140 
145  inline Authorizer& WithType(AuthorizerType&& value) { SetType(value); return *this;}
146 
147 
148  inline const Aws::Vector<Aws::String>& GetProviderARNs() const{ return m_providerARNs; }
149 
150 
151  inline void SetProviderARNs(const Aws::Vector<Aws::String>& value) { m_providerARNsHasBeenSet = true; m_providerARNs = value; }
152 
153 
154  inline void SetProviderARNs(Aws::Vector<Aws::String>&& value) { m_providerARNsHasBeenSet = true; m_providerARNs = value; }
155 
156 
157  inline Authorizer& WithProviderARNs(const Aws::Vector<Aws::String>& value) { SetProviderARNs(value); return *this;}
158 
159 
160  inline Authorizer& WithProviderARNs(Aws::Vector<Aws::String>&& value) { SetProviderARNs(value); return *this;}
161 
162 
163  inline Authorizer& AddProviderARNs(const Aws::String& value) { m_providerARNsHasBeenSet = true; m_providerARNs.push_back(value); return *this; }
164 
165 
166  inline Authorizer& AddProviderARNs(Aws::String&& value) { m_providerARNsHasBeenSet = true; m_providerARNs.push_back(value); return *this; }
167 
168 
169  inline Authorizer& AddProviderARNs(const char* value) { m_providerARNsHasBeenSet = true; m_providerARNs.push_back(value); return *this; }
170 
175  inline const Aws::String& GetAuthType() const{ return m_authType; }
176 
181  inline void SetAuthType(const Aws::String& value) { m_authTypeHasBeenSet = true; m_authType = value; }
182 
187  inline void SetAuthType(Aws::String&& value) { m_authTypeHasBeenSet = true; m_authType = value; }
188 
193  inline void SetAuthType(const char* value) { m_authTypeHasBeenSet = true; m_authType.assign(value); }
194 
199  inline Authorizer& WithAuthType(const Aws::String& value) { SetAuthType(value); return *this;}
200 
205  inline Authorizer& WithAuthType(Aws::String&& value) { SetAuthType(value); return *this;}
206 
211  inline Authorizer& WithAuthType(const char* value) { SetAuthType(value); return *this;}
212 
224  inline const Aws::String& GetAuthorizerUri() const{ return m_authorizerUri; }
225 
237  inline void SetAuthorizerUri(const Aws::String& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = value; }
238 
250  inline void SetAuthorizerUri(Aws::String&& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = value; }
251 
263  inline void SetAuthorizerUri(const char* value) { m_authorizerUriHasBeenSet = true; m_authorizerUri.assign(value); }
264 
276  inline Authorizer& WithAuthorizerUri(const Aws::String& value) { SetAuthorizerUri(value); return *this;}
277 
289  inline Authorizer& WithAuthorizerUri(Aws::String&& value) { SetAuthorizerUri(value); return *this;}
290 
302  inline Authorizer& WithAuthorizerUri(const char* value) { SetAuthorizerUri(value); return *this;}
303 
310  inline const Aws::String& GetAuthorizerCredentials() const{ return m_authorizerCredentials; }
311 
318  inline void SetAuthorizerCredentials(const Aws::String& value) { m_authorizerCredentialsHasBeenSet = true; m_authorizerCredentials = value; }
319 
326  inline void SetAuthorizerCredentials(Aws::String&& value) { m_authorizerCredentialsHasBeenSet = true; m_authorizerCredentials = value; }
327 
334  inline void SetAuthorizerCredentials(const char* value) { m_authorizerCredentialsHasBeenSet = true; m_authorizerCredentials.assign(value); }
335 
342  inline Authorizer& WithAuthorizerCredentials(const Aws::String& value) { SetAuthorizerCredentials(value); return *this;}
343 
350  inline Authorizer& WithAuthorizerCredentials(Aws::String&& value) { SetAuthorizerCredentials(value); return *this;}
351 
358  inline Authorizer& WithAuthorizerCredentials(const char* value) { SetAuthorizerCredentials(value); return *this;}
359 
367  inline const Aws::String& GetIdentitySource() const{ return m_identitySource; }
368 
376  inline void SetIdentitySource(const Aws::String& value) { m_identitySourceHasBeenSet = true; m_identitySource = value; }
377 
385  inline void SetIdentitySource(Aws::String&& value) { m_identitySourceHasBeenSet = true; m_identitySource = value; }
386 
394  inline void SetIdentitySource(const char* value) { m_identitySourceHasBeenSet = true; m_identitySource.assign(value); }
395 
403  inline Authorizer& WithIdentitySource(const Aws::String& value) { SetIdentitySource(value); return *this;}
404 
412  inline Authorizer& WithIdentitySource(Aws::String&& value) { SetIdentitySource(value); return *this;}
413 
421  inline Authorizer& WithIdentitySource(const char* value) { SetIdentitySource(value); return *this;}
422 
429  inline const Aws::String& GetIdentityValidationExpression() const{ return m_identityValidationExpression; }
430 
437  inline void SetIdentityValidationExpression(const Aws::String& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = value; }
438 
445  inline void SetIdentityValidationExpression(Aws::String&& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = value; }
446 
453  inline void SetIdentityValidationExpression(const char* value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression.assign(value); }
454 
461  inline Authorizer& WithIdentityValidationExpression(const Aws::String& value) { SetIdentityValidationExpression(value); return *this;}
462 
469  inline Authorizer& WithIdentityValidationExpression(Aws::String&& value) { SetIdentityValidationExpression(value); return *this;}
470 
477  inline Authorizer& WithIdentityValidationExpression(const char* value) { SetIdentityValidationExpression(value); return *this;}
478 
484  inline int GetAuthorizerResultTtlInSeconds() const{ return m_authorizerResultTtlInSeconds; }
485 
491  inline void SetAuthorizerResultTtlInSeconds(int value) { m_authorizerResultTtlInSecondsHasBeenSet = true; m_authorizerResultTtlInSeconds = value; }
492 
498  inline Authorizer& WithAuthorizerResultTtlInSeconds(int value) { SetAuthorizerResultTtlInSeconds(value); return *this;}
499 
500  private:
501  Aws::String m_id;
502  bool m_idHasBeenSet;
503  Aws::String m_name;
504  bool m_nameHasBeenSet;
505  AuthorizerType m_type;
506  bool m_typeHasBeenSet;
507  Aws::Vector<Aws::String> m_providerARNs;
508  bool m_providerARNsHasBeenSet;
509  Aws::String m_authType;
510  bool m_authTypeHasBeenSet;
511  Aws::String m_authorizerUri;
512  bool m_authorizerUriHasBeenSet;
513  Aws::String m_authorizerCredentials;
514  bool m_authorizerCredentialsHasBeenSet;
515  Aws::String m_identitySource;
516  bool m_identitySourceHasBeenSet;
517  Aws::String m_identityValidationExpression;
518  bool m_identityValidationExpressionHasBeenSet;
519  int m_authorizerResultTtlInSeconds;
520  bool m_authorizerResultTtlInSecondsHasBeenSet;
521  };
522 
523 } // namespace Model
524 } // namespace APIGateway
525 } // namespace Aws
Authorizer & WithAuthType(Aws::String &&value)
Definition: Authorizer.h:205
Authorizer & AddProviderARNs(const char *value)
Definition: Authorizer.h:169
const Aws::String & GetAuthType() const
Definition: Authorizer.h:175
void SetType(const AuthorizerType &value)
Definition: Authorizer.h:127
void SetId(const char *value)
Definition: Authorizer.h:65
void SetIdentitySource(const char *value)
Definition: Authorizer.h:394
const Aws::Vector< Aws::String > & GetProviderARNs() const
Definition: Authorizer.h:148
void SetProviderARNs(const Aws::Vector< Aws::String > &value)
Definition: Authorizer.h:151
Authorizer & WithId(Aws::String &&value)
Definition: Authorizer.h:75
void SetAuthType(const Aws::String &value)
Definition: Authorizer.h:181
Authorizer & WithId(const Aws::String &value)
Definition: Authorizer.h:70
Authorizer & AddProviderARNs(const Aws::String &value)
Definition: Authorizer.h:163
Authorizer & WithProviderARNs(const Aws::Vector< Aws::String > &value)
Definition: Authorizer.h:157
void SetAuthorizerUri(const Aws::String &value)
Definition: Authorizer.h:237
Authorizer & WithIdentitySource(const Aws::String &value)
Definition: Authorizer.h:403
void SetAuthorizerResultTtlInSeconds(int value)
Definition: Authorizer.h:491
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetIdentitySource(Aws::String &&value)
Definition: Authorizer.h:385
const Aws::String & GetId() const
Definition: Authorizer.h:50
void SetProviderARNs(Aws::Vector< Aws::String > &&value)
Definition: Authorizer.h:154
Authorizer & WithType(const AuthorizerType &value)
Definition: Authorizer.h:139
Authorizer & WithName(Aws::String &&value)
Definition: Authorizer.h:110
Authorizer & WithIdentitySource(const char *value)
Definition: Authorizer.h:421
Authorizer & WithAuthType(const Aws::String &value)
Definition: Authorizer.h:199
void SetAuthorizerCredentials(Aws::String &&value)
Definition: Authorizer.h:326
void SetIdentityValidationExpression(Aws::String &&value)
Definition: Authorizer.h:445
void SetAuthorizerUri(Aws::String &&value)
Definition: Authorizer.h:250
void SetAuthorizerUri(const char *value)
Definition: Authorizer.h:263
void SetName(const Aws::String &value)
Definition: Authorizer.h:90
Authorizer & WithAuthorizerCredentials(Aws::String &&value)
Definition: Authorizer.h:350
int GetAuthorizerResultTtlInSeconds() const
Definition: Authorizer.h:484
Authorizer & WithIdentitySource(Aws::String &&value)
Definition: Authorizer.h:412
Authorizer & AddProviderARNs(Aws::String &&value)
Definition: Authorizer.h:166
Authorizer & WithName(const Aws::String &value)
Definition: Authorizer.h:105
Authorizer & WithId(const char *value)
Definition: Authorizer.h:80
const Aws::String & GetAuthorizerCredentials() const
Definition: Authorizer.h:310
Authorizer & WithAuthorizerUri(const char *value)
Definition: Authorizer.h:302
const Aws::String & GetAuthorizerUri() const
Definition: Authorizer.h:224
Authorizer & WithIdentityValidationExpression(const char *value)
Definition: Authorizer.h:477
void SetAuthType(Aws::String &&value)
Definition: Authorizer.h:187
void SetName(const char *value)
Definition: Authorizer.h:100
const AuthorizerType & GetType() const
Definition: Authorizer.h:121
const Aws::String & GetName() const
Definition: Authorizer.h:85
Authorizer & WithAuthorizerResultTtlInSeconds(int value)
Definition: Authorizer.h:498
void SetAuthorizerCredentials(const char *value)
Definition: Authorizer.h:334
void SetIdentitySource(const Aws::String &value)
Definition: Authorizer.h:376
Authorizer & WithAuthorizerUri(const Aws::String &value)
Definition: Authorizer.h:276
Authorizer & WithName(const char *value)
Definition: Authorizer.h:115
void SetIdentityValidationExpression(const char *value)
Definition: Authorizer.h:453
Authorizer & WithAuthorizerCredentials(const Aws::String &value)
Definition: Authorizer.h:342
Authorizer & WithProviderARNs(Aws::Vector< Aws::String > &&value)
Definition: Authorizer.h:160
Authorizer & WithIdentityValidationExpression(const Aws::String &value)
Definition: Authorizer.h:461
void SetName(Aws::String &&value)
Definition: Authorizer.h:95
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Authorizer & WithIdentityValidationExpression(Aws::String &&value)
Definition: Authorizer.h:469
#define AWS_APIGATEWAY_API
const Aws::String & GetIdentityValidationExpression() const
Definition: Authorizer.h:429
const Aws::String & GetIdentitySource() const
Definition: Authorizer.h:367
void SetAuthorizerCredentials(const Aws::String &value)
Definition: Authorizer.h:318
Authorizer & WithAuthorizerUri(Aws::String &&value)
Definition: Authorizer.h:289
void SetId(const Aws::String &value)
Definition: Authorizer.h:55
void SetIdentityValidationExpression(const Aws::String &value)
Definition: Authorizer.h:437
Authorizer & WithAuthType(const char *value)
Definition: Authorizer.h:211
JSON (JavaScript Object Notation).
void SetType(AuthorizerType &&value)
Definition: Authorizer.h:133
void SetId(Aws::String &&value)
Definition: Authorizer.h:60
Authorizer & WithAuthorizerCredentials(const char *value)
Definition: Authorizer.h:358
Authorizer & WithType(AuthorizerType &&value)
Definition: Authorizer.h:145
void SetAuthType(const char *value)
Definition: Authorizer.h:193