AWS SDK for C++  0.12.9
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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace APIGateway
30 {
31 namespace Model
32 {
33 
39  {
40  public:
41  Authorizer();
42  Authorizer(const Aws::Utils::Json::JsonValue& jsonValue);
43  Authorizer& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetId() const{ return m_id; }
50 
54  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
55 
59  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
60 
64  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
65 
69  inline Authorizer& WithId(const Aws::String& value) { SetId(value); return *this;}
70 
74  inline Authorizer& WithId(Aws::String&& value) { SetId(value); return *this;}
75 
79  inline Authorizer& WithId(const char* value) { SetId(value); return *this;}
80 
84  inline const Aws::String& GetName() const{ return m_name; }
85 
89  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
90 
94  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
95 
99  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
100 
104  inline Authorizer& WithName(const Aws::String& value) { SetName(value); return *this;}
105 
109  inline Authorizer& WithName(Aws::String&& value) { SetName(value); return *this;}
110 
114  inline Authorizer& WithName(const char* value) { SetName(value); return *this;}
115 
120  inline const AuthorizerType& GetType() const{ return m_type; }
121 
126  inline void SetType(const AuthorizerType& value) { m_typeHasBeenSet = true; m_type = value; }
127 
132  inline void SetType(AuthorizerType&& value) { m_typeHasBeenSet = true; m_type = value; }
133 
138  inline Authorizer& WithType(const AuthorizerType& value) { SetType(value); return *this;}
139 
144  inline Authorizer& WithType(AuthorizerType&& value) { SetType(value); return *this;}
145 
150  inline const Aws::String& GetAuthType() const{ return m_authType; }
151 
156  inline void SetAuthType(const Aws::String& value) { m_authTypeHasBeenSet = true; m_authType = value; }
157 
162  inline void SetAuthType(Aws::String&& value) { m_authTypeHasBeenSet = true; m_authType = value; }
163 
168  inline void SetAuthType(const char* value) { m_authTypeHasBeenSet = true; m_authType.assign(value); }
169 
174  inline Authorizer& WithAuthType(const Aws::String& value) { SetAuthType(value); return *this;}
175 
180  inline Authorizer& WithAuthType(Aws::String&& value) { SetAuthType(value); return *this;}
181 
186  inline Authorizer& WithAuthType(const char* value) { SetAuthType(value); return *this;}
187 
199  inline const Aws::String& GetAuthorizerUri() const{ return m_authorizerUri; }
200 
212  inline void SetAuthorizerUri(const Aws::String& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = value; }
213 
225  inline void SetAuthorizerUri(Aws::String&& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = value; }
226 
238  inline void SetAuthorizerUri(const char* value) { m_authorizerUriHasBeenSet = true; m_authorizerUri.assign(value); }
239 
251  inline Authorizer& WithAuthorizerUri(const Aws::String& value) { SetAuthorizerUri(value); return *this;}
252 
264  inline Authorizer& WithAuthorizerUri(Aws::String&& value) { SetAuthorizerUri(value); return *this;}
265 
277  inline Authorizer& WithAuthorizerUri(const char* value) { SetAuthorizerUri(value); return *this;}
278 
285  inline const Aws::String& GetAuthorizerCredentials() const{ return m_authorizerCredentials; }
286 
293  inline void SetAuthorizerCredentials(const Aws::String& value) { m_authorizerCredentialsHasBeenSet = true; m_authorizerCredentials = value; }
294 
301  inline void SetAuthorizerCredentials(Aws::String&& value) { m_authorizerCredentialsHasBeenSet = true; m_authorizerCredentials = value; }
302 
309  inline void SetAuthorizerCredentials(const char* value) { m_authorizerCredentialsHasBeenSet = true; m_authorizerCredentials.assign(value); }
310 
317  inline Authorizer& WithAuthorizerCredentials(const Aws::String& value) { SetAuthorizerCredentials(value); return *this;}
318 
325  inline Authorizer& WithAuthorizerCredentials(Aws::String&& value) { SetAuthorizerCredentials(value); return *this;}
326 
333  inline Authorizer& WithAuthorizerCredentials(const char* value) { SetAuthorizerCredentials(value); return *this;}
334 
342  inline const Aws::String& GetIdentitySource() const{ return m_identitySource; }
343 
351  inline void SetIdentitySource(const Aws::String& value) { m_identitySourceHasBeenSet = true; m_identitySource = value; }
352 
360  inline void SetIdentitySource(Aws::String&& value) { m_identitySourceHasBeenSet = true; m_identitySource = value; }
361 
369  inline void SetIdentitySource(const char* value) { m_identitySourceHasBeenSet = true; m_identitySource.assign(value); }
370 
378  inline Authorizer& WithIdentitySource(const Aws::String& value) { SetIdentitySource(value); return *this;}
379 
387  inline Authorizer& WithIdentitySource(Aws::String&& value) { SetIdentitySource(value); return *this;}
388 
396  inline Authorizer& WithIdentitySource(const char* value) { SetIdentitySource(value); return *this;}
397 
404  inline const Aws::String& GetIdentityValidationExpression() const{ return m_identityValidationExpression; }
405 
412  inline void SetIdentityValidationExpression(const Aws::String& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = value; }
413 
420  inline void SetIdentityValidationExpression(Aws::String&& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = value; }
421 
428  inline void SetIdentityValidationExpression(const char* value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression.assign(value); }
429 
436  inline Authorizer& WithIdentityValidationExpression(const Aws::String& value) { SetIdentityValidationExpression(value); return *this;}
437 
444  inline Authorizer& WithIdentityValidationExpression(Aws::String&& value) { SetIdentityValidationExpression(value); return *this;}
445 
452  inline Authorizer& WithIdentityValidationExpression(const char* value) { SetIdentityValidationExpression(value); return *this;}
453 
459  inline long GetAuthorizerResultTtlInSeconds() const{ return m_authorizerResultTtlInSeconds; }
460 
466  inline void SetAuthorizerResultTtlInSeconds(long value) { m_authorizerResultTtlInSecondsHasBeenSet = true; m_authorizerResultTtlInSeconds = value; }
467 
473  inline Authorizer& WithAuthorizerResultTtlInSeconds(long value) { SetAuthorizerResultTtlInSeconds(value); return *this;}
474 
475  private:
476  Aws::String m_id;
477  bool m_idHasBeenSet;
478  Aws::String m_name;
479  bool m_nameHasBeenSet;
480  AuthorizerType m_type;
481  bool m_typeHasBeenSet;
482  Aws::String m_authType;
483  bool m_authTypeHasBeenSet;
484  Aws::String m_authorizerUri;
485  bool m_authorizerUriHasBeenSet;
486  Aws::String m_authorizerCredentials;
487  bool m_authorizerCredentialsHasBeenSet;
488  Aws::String m_identitySource;
489  bool m_identitySourceHasBeenSet;
490  Aws::String m_identityValidationExpression;
491  bool m_identityValidationExpressionHasBeenSet;
492  long m_authorizerResultTtlInSeconds;
493  bool m_authorizerResultTtlInSecondsHasBeenSet;
494  };
495 
496 } // namespace Model
497 } // namespace APIGateway
498 } // namespace Aws
void SetAuthorizerResultTtlInSeconds(long value)
Definition: Authorizer.h:466
Authorizer & WithAuthType(Aws::String &&value)
Definition: Authorizer.h:180
Authorizer & WithAuthorizerResultTtlInSeconds(long value)
Definition: Authorizer.h:473
const Aws::String & GetAuthType() const
Definition: Authorizer.h:150
void SetType(const AuthorizerType &value)
Definition: Authorizer.h:126
void SetId(const char *value)
Definition: Authorizer.h:64
void SetIdentitySource(const char *value)
Definition: Authorizer.h:369
Authorizer & WithId(Aws::String &&value)
Definition: Authorizer.h:74
void SetAuthType(const Aws::String &value)
Definition: Authorizer.h:156
Authorizer & WithId(const Aws::String &value)
Definition: Authorizer.h:69
void SetAuthorizerUri(const Aws::String &value)
Definition: Authorizer.h:212
Authorizer & WithIdentitySource(const Aws::String &value)
Definition: Authorizer.h:378
void SetIdentitySource(Aws::String &&value)
Definition: Authorizer.h:360
const Aws::String & GetId() const
Definition: Authorizer.h:49
Authorizer & WithType(const AuthorizerType &value)
Definition: Authorizer.h:138
Authorizer & WithName(Aws::String &&value)
Definition: Authorizer.h:109
Authorizer & WithIdentitySource(const char *value)
Definition: Authorizer.h:396
Authorizer & WithAuthType(const Aws::String &value)
Definition: Authorizer.h:174
void SetAuthorizerCredentials(Aws::String &&value)
Definition: Authorizer.h:301
void SetIdentityValidationExpression(Aws::String &&value)
Definition: Authorizer.h:420
void SetAuthorizerUri(Aws::String &&value)
Definition: Authorizer.h:225
void SetAuthorizerUri(const char *value)
Definition: Authorizer.h:238
void SetName(const Aws::String &value)
Definition: Authorizer.h:89
Authorizer & WithAuthorizerCredentials(Aws::String &&value)
Definition: Authorizer.h:325
Authorizer & WithIdentitySource(Aws::String &&value)
Definition: Authorizer.h:387
Authorizer & WithName(const Aws::String &value)
Definition: Authorizer.h:104
long GetAuthorizerResultTtlInSeconds() const
Definition: Authorizer.h:459
Authorizer & WithId(const char *value)
Definition: Authorizer.h:79
const Aws::String & GetAuthorizerCredentials() const
Definition: Authorizer.h:285
Authorizer & WithAuthorizerUri(const char *value)
Definition: Authorizer.h:277
const Aws::String & GetAuthorizerUri() const
Definition: Authorizer.h:199
Authorizer & WithIdentityValidationExpression(const char *value)
Definition: Authorizer.h:452
void SetAuthType(Aws::String &&value)
Definition: Authorizer.h:162
void SetName(const char *value)
Definition: Authorizer.h:99
const AuthorizerType & GetType() const
Definition: Authorizer.h:120
const Aws::String & GetName() const
Definition: Authorizer.h:84
void SetAuthorizerCredentials(const char *value)
Definition: Authorizer.h:309
void SetIdentitySource(const Aws::String &value)
Definition: Authorizer.h:351
Authorizer & WithAuthorizerUri(const Aws::String &value)
Definition: Authorizer.h:251
Authorizer & WithName(const char *value)
Definition: Authorizer.h:114
void SetIdentityValidationExpression(const char *value)
Definition: Authorizer.h:428
Authorizer & WithAuthorizerCredentials(const Aws::String &value)
Definition: Authorizer.h:317
Authorizer & WithIdentityValidationExpression(const Aws::String &value)
Definition: Authorizer.h:436
void SetName(Aws::String &&value)
Definition: Authorizer.h:94
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Authorizer & WithIdentityValidationExpression(Aws::String &&value)
Definition: Authorizer.h:444
#define AWS_APIGATEWAY_API
const Aws::String & GetIdentityValidationExpression() const
Definition: Authorizer.h:404
const Aws::String & GetIdentitySource() const
Definition: Authorizer.h:342
void SetAuthorizerCredentials(const Aws::String &value)
Definition: Authorizer.h:293
Authorizer & WithAuthorizerUri(Aws::String &&value)
Definition: Authorizer.h:264
void SetId(const Aws::String &value)
Definition: Authorizer.h:54
void SetIdentityValidationExpression(const Aws::String &value)
Definition: Authorizer.h:412
Authorizer & WithAuthType(const char *value)
Definition: Authorizer.h:186
JSON (JavaScript Object Notation).
void SetType(AuthorizerType &&value)
Definition: Authorizer.h:132
void SetId(Aws::String &&value)
Definition: Authorizer.h:59
Authorizer & WithAuthorizerCredentials(const char *value)
Definition: Authorizer.h:333
Authorizer & WithType(AuthorizerType &&value)
Definition: Authorizer.h:144
void SetAuthType(const char *value)
Definition: Authorizer.h:168