AWS SDK for C++  0.12.9
AWS SDK for C++
GetAuthorizerResult.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 template<typename RESULT_TYPE>
23 class AmazonWebServiceResult;
24 
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace APIGateway
33 {
34 namespace Model
35 {
41  {
42  public:
46 
50  inline const Aws::String& GetId() const{ return m_id; }
51 
55  inline void SetId(const Aws::String& value) { m_id = value; }
56 
60  inline void SetId(Aws::String&& value) { m_id = value; }
61 
65  inline void SetId(const char* value) { m_id.assign(value); }
66 
70  inline GetAuthorizerResult& WithId(const Aws::String& value) { SetId(value); return *this;}
71 
75  inline GetAuthorizerResult& WithId(Aws::String&& value) { SetId(value); return *this;}
76 
80  inline GetAuthorizerResult& 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_name = value; }
91 
95  inline void SetName(Aws::String&& value) { m_name = value; }
96 
100  inline void SetName(const char* value) { m_name.assign(value); }
101 
105  inline GetAuthorizerResult& WithName(const Aws::String& value) { SetName(value); return *this;}
106 
110  inline GetAuthorizerResult& WithName(Aws::String&& value) { SetName(value); return *this;}
111 
115  inline GetAuthorizerResult& 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_type = value; }
128 
133  inline void SetType(AuthorizerType&& value) { m_type = value; }
134 
139  inline GetAuthorizerResult& WithType(const AuthorizerType& value) { SetType(value); return *this;}
140 
145  inline GetAuthorizerResult& WithType(AuthorizerType&& value) { SetType(value); return *this;}
146 
151  inline const Aws::String& GetAuthType() const{ return m_authType; }
152 
157  inline void SetAuthType(const Aws::String& value) { m_authType = value; }
158 
163  inline void SetAuthType(Aws::String&& value) { m_authType = value; }
164 
169  inline void SetAuthType(const char* value) { m_authType.assign(value); }
170 
175  inline GetAuthorizerResult& WithAuthType(const Aws::String& value) { SetAuthType(value); return *this;}
176 
181  inline GetAuthorizerResult& WithAuthType(Aws::String&& value) { SetAuthType(value); return *this;}
182 
187  inline GetAuthorizerResult& WithAuthType(const char* value) { SetAuthType(value); return *this;}
188 
200  inline const Aws::String& GetAuthorizerUri() const{ return m_authorizerUri; }
201 
213  inline void SetAuthorizerUri(const Aws::String& value) { m_authorizerUri = value; }
214 
226  inline void SetAuthorizerUri(Aws::String&& value) { m_authorizerUri = value; }
227 
239  inline void SetAuthorizerUri(const char* value) { m_authorizerUri.assign(value); }
240 
252  inline GetAuthorizerResult& WithAuthorizerUri(const Aws::String& value) { SetAuthorizerUri(value); return *this;}
253 
265  inline GetAuthorizerResult& WithAuthorizerUri(Aws::String&& value) { SetAuthorizerUri(value); return *this;}
266 
278  inline GetAuthorizerResult& WithAuthorizerUri(const char* value) { SetAuthorizerUri(value); return *this;}
279 
286  inline const Aws::String& GetAuthorizerCredentials() const{ return m_authorizerCredentials; }
287 
294  inline void SetAuthorizerCredentials(const Aws::String& value) { m_authorizerCredentials = value; }
295 
302  inline void SetAuthorizerCredentials(Aws::String&& value) { m_authorizerCredentials = value; }
303 
310  inline void SetAuthorizerCredentials(const char* value) { m_authorizerCredentials.assign(value); }
311 
318  inline GetAuthorizerResult& WithAuthorizerCredentials(const Aws::String& value) { SetAuthorizerCredentials(value); return *this;}
319 
326  inline GetAuthorizerResult& WithAuthorizerCredentials(Aws::String&& value) { SetAuthorizerCredentials(value); return *this;}
327 
334  inline GetAuthorizerResult& WithAuthorizerCredentials(const char* value) { SetAuthorizerCredentials(value); return *this;}
335 
343  inline const Aws::String& GetIdentitySource() const{ return m_identitySource; }
344 
352  inline void SetIdentitySource(const Aws::String& value) { m_identitySource = value; }
353 
361  inline void SetIdentitySource(Aws::String&& value) { m_identitySource = value; }
362 
370  inline void SetIdentitySource(const char* value) { m_identitySource.assign(value); }
371 
379  inline GetAuthorizerResult& WithIdentitySource(const Aws::String& value) { SetIdentitySource(value); return *this;}
380 
388  inline GetAuthorizerResult& WithIdentitySource(Aws::String&& value) { SetIdentitySource(value); return *this;}
389 
397  inline GetAuthorizerResult& WithIdentitySource(const char* value) { SetIdentitySource(value); return *this;}
398 
405  inline const Aws::String& GetIdentityValidationExpression() const{ return m_identityValidationExpression; }
406 
413  inline void SetIdentityValidationExpression(const Aws::String& value) { m_identityValidationExpression = value; }
414 
421  inline void SetIdentityValidationExpression(Aws::String&& value) { m_identityValidationExpression = value; }
422 
429  inline void SetIdentityValidationExpression(const char* value) { m_identityValidationExpression.assign(value); }
430 
437  inline GetAuthorizerResult& WithIdentityValidationExpression(const Aws::String& value) { SetIdentityValidationExpression(value); return *this;}
438 
445  inline GetAuthorizerResult& WithIdentityValidationExpression(Aws::String&& value) { SetIdentityValidationExpression(value); return *this;}
446 
453  inline GetAuthorizerResult& WithIdentityValidationExpression(const char* value) { SetIdentityValidationExpression(value); return *this;}
454 
460  inline long GetAuthorizerResultTtlInSeconds() const{ return m_authorizerResultTtlInSeconds; }
461 
467  inline void SetAuthorizerResultTtlInSeconds(long value) { m_authorizerResultTtlInSeconds = value; }
468 
474  inline GetAuthorizerResult& WithAuthorizerResultTtlInSeconds(long value) { SetAuthorizerResultTtlInSeconds(value); return *this;}
475 
476  private:
477  Aws::String m_id;
478  Aws::String m_name;
479  AuthorizerType m_type;
480  Aws::String m_authType;
481  Aws::String m_authorizerUri;
482  Aws::String m_authorizerCredentials;
483  Aws::String m_identitySource;
484  Aws::String m_identityValidationExpression;
485  long m_authorizerResultTtlInSeconds;
486  };
487 
488 } // namespace Model
489 } // namespace APIGateway
490 } // namespace Aws
const Aws::String & GetIdentitySource() const
GetAuthorizerResult & WithAuthType(const char *value)
void SetType(const AuthorizerType &value)
const Aws::String & GetAuthorizerCredentials() const
GetAuthorizerResult & WithAuthorizerUri(Aws::String &&value)
GetAuthorizerResult & WithAuthorizerCredentials(const Aws::String &value)
GetAuthorizerResult & WithAuthorizerUri(const Aws::String &value)
GetAuthorizerResult & WithId(const char *value)
GetAuthorizerResult & WithIdentitySource(const Aws::String &value)
GetAuthorizerResult & WithName(const char *value)
GetAuthorizerResult & WithType(AuthorizerType &&value)
void SetAuthorizerUri(const Aws::String &value)
void SetIdentityValidationExpression(const Aws::String &value)
GetAuthorizerResult & WithAuthType(const Aws::String &value)
GetAuthorizerResult & WithName(Aws::String &&value)
GetAuthorizerResult & WithAuthorizerUri(const char *value)
GetAuthorizerResult & WithAuthorizerCredentials(const char *value)
GetAuthorizerResult & WithAuthType(Aws::String &&value)
GetAuthorizerResult & WithAuthorizerResultTtlInSeconds(long value)
void SetAuthorizerCredentials(const Aws::String &value)
GetAuthorizerResult & WithAuthorizerCredentials(Aws::String &&value)
GetAuthorizerResult & WithId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetAuthorizerResult & WithIdentityValidationExpression(const char *value)
void SetAuthType(const Aws::String &value)
void SetIdentitySource(const Aws::String &value)
#define AWS_APIGATEWAY_API
GetAuthorizerResult & WithId(const Aws::String &value)
void SetIdentityValidationExpression(Aws::String &&value)
GetAuthorizerResult & WithIdentitySource(Aws::String &&value)
const Aws::String & GetIdentityValidationExpression() const
GetAuthorizerResult & WithName(const Aws::String &value)
GetAuthorizerResult & WithIdentityValidationExpression(Aws::String &&value)
GetAuthorizerResult & WithIdentityValidationExpression(const Aws::String &value)
JSON (JavaScript Object Notation).
GetAuthorizerResult & WithType(const AuthorizerType &value)
GetAuthorizerResult & WithIdentitySource(const char *value)