AWS SDK for C++  0.14.3
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
20 
21 namespace Aws
22 {
23 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Json
29 {
30  class JsonValue;
31 } // namespace Json
32 } // namespace Utils
33 namespace APIGateway
34 {
35 namespace Model
36 {
42  {
43  public:
47 
51  inline const Aws::String& GetId() const{ return m_id; }
52 
56  inline void SetId(const Aws::String& value) { m_id = value; }
57 
61  inline void SetId(Aws::String&& value) { m_id = value; }
62 
66  inline void SetId(const char* value) { m_id.assign(value); }
67 
71  inline GetAuthorizerResult& WithId(const Aws::String& value) { SetId(value); return *this;}
72 
76  inline GetAuthorizerResult& WithId(Aws::String&& value) { SetId(value); return *this;}
77 
81  inline GetAuthorizerResult& WithId(const char* value) { SetId(value); return *this;}
82 
86  inline const Aws::String& GetName() const{ return m_name; }
87 
91  inline void SetName(const Aws::String& value) { m_name = value; }
92 
96  inline void SetName(Aws::String&& value) { m_name = value; }
97 
101  inline void SetName(const char* value) { m_name.assign(value); }
102 
106  inline GetAuthorizerResult& WithName(const Aws::String& value) { SetName(value); return *this;}
107 
111  inline GetAuthorizerResult& WithName(Aws::String&& value) { SetName(value); return *this;}
112 
116  inline GetAuthorizerResult& WithName(const char* value) { SetName(value); return *this;}
117 
122  inline const AuthorizerType& GetType() const{ return m_type; }
123 
128  inline void SetType(const AuthorizerType& value) { m_type = value; }
129 
134  inline void SetType(AuthorizerType&& value) { m_type = value; }
135 
140  inline GetAuthorizerResult& WithType(const AuthorizerType& value) { SetType(value); return *this;}
141 
146  inline GetAuthorizerResult& WithType(AuthorizerType&& value) { SetType(value); return *this;}
147 
148 
149  inline const Aws::Vector<Aws::String>& GetProviderARNs() const{ return m_providerARNs; }
150 
151 
152  inline void SetProviderARNs(const Aws::Vector<Aws::String>& value) { m_providerARNs = value; }
153 
154 
155  inline void SetProviderARNs(Aws::Vector<Aws::String>&& value) { m_providerARNs = value; }
156 
157 
158  inline GetAuthorizerResult& WithProviderARNs(const Aws::Vector<Aws::String>& value) { SetProviderARNs(value); return *this;}
159 
160 
161  inline GetAuthorizerResult& WithProviderARNs(Aws::Vector<Aws::String>&& value) { SetProviderARNs(value); return *this;}
162 
163 
164  inline GetAuthorizerResult& AddProviderARNs(const Aws::String& value) { m_providerARNs.push_back(value); return *this; }
165 
166 
167  inline GetAuthorizerResult& AddProviderARNs(Aws::String&& value) { m_providerARNs.push_back(value); return *this; }
168 
169 
170  inline GetAuthorizerResult& AddProviderARNs(const char* value) { m_providerARNs.push_back(value); return *this; }
171 
176  inline const Aws::String& GetAuthType() const{ return m_authType; }
177 
182  inline void SetAuthType(const Aws::String& value) { m_authType = value; }
183 
188  inline void SetAuthType(Aws::String&& value) { m_authType = value; }
189 
194  inline void SetAuthType(const char* value) { m_authType.assign(value); }
195 
200  inline GetAuthorizerResult& WithAuthType(const Aws::String& value) { SetAuthType(value); return *this;}
201 
206  inline GetAuthorizerResult& WithAuthType(Aws::String&& value) { SetAuthType(value); return *this;}
207 
212  inline GetAuthorizerResult& WithAuthType(const char* value) { SetAuthType(value); return *this;}
213 
225  inline const Aws::String& GetAuthorizerUri() const{ return m_authorizerUri; }
226 
238  inline void SetAuthorizerUri(const Aws::String& value) { m_authorizerUri = value; }
239 
251  inline void SetAuthorizerUri(Aws::String&& value) { m_authorizerUri = value; }
252 
264  inline void SetAuthorizerUri(const char* value) { m_authorizerUri.assign(value); }
265 
277  inline GetAuthorizerResult& WithAuthorizerUri(const Aws::String& value) { SetAuthorizerUri(value); return *this;}
278 
290  inline GetAuthorizerResult& WithAuthorizerUri(Aws::String&& value) { SetAuthorizerUri(value); return *this;}
291 
303  inline GetAuthorizerResult& WithAuthorizerUri(const char* value) { SetAuthorizerUri(value); return *this;}
304 
311  inline const Aws::String& GetAuthorizerCredentials() const{ return m_authorizerCredentials; }
312 
319  inline void SetAuthorizerCredentials(const Aws::String& value) { m_authorizerCredentials = value; }
320 
327  inline void SetAuthorizerCredentials(Aws::String&& value) { m_authorizerCredentials = value; }
328 
335  inline void SetAuthorizerCredentials(const char* value) { m_authorizerCredentials.assign(value); }
336 
343  inline GetAuthorizerResult& WithAuthorizerCredentials(const Aws::String& value) { SetAuthorizerCredentials(value); return *this;}
344 
351  inline GetAuthorizerResult& WithAuthorizerCredentials(Aws::String&& value) { SetAuthorizerCredentials(value); return *this;}
352 
359  inline GetAuthorizerResult& WithAuthorizerCredentials(const char* value) { SetAuthorizerCredentials(value); return *this;}
360 
368  inline const Aws::String& GetIdentitySource() const{ return m_identitySource; }
369 
377  inline void SetIdentitySource(const Aws::String& value) { m_identitySource = value; }
378 
386  inline void SetIdentitySource(Aws::String&& value) { m_identitySource = value; }
387 
395  inline void SetIdentitySource(const char* value) { m_identitySource.assign(value); }
396 
404  inline GetAuthorizerResult& WithIdentitySource(const Aws::String& value) { SetIdentitySource(value); return *this;}
405 
413  inline GetAuthorizerResult& WithIdentitySource(Aws::String&& value) { SetIdentitySource(value); return *this;}
414 
422  inline GetAuthorizerResult& WithIdentitySource(const char* value) { SetIdentitySource(value); return *this;}
423 
430  inline const Aws::String& GetIdentityValidationExpression() const{ return m_identityValidationExpression; }
431 
438  inline void SetIdentityValidationExpression(const Aws::String& value) { m_identityValidationExpression = value; }
439 
446  inline void SetIdentityValidationExpression(Aws::String&& value) { m_identityValidationExpression = value; }
447 
454  inline void SetIdentityValidationExpression(const char* value) { m_identityValidationExpression.assign(value); }
455 
462  inline GetAuthorizerResult& WithIdentityValidationExpression(const Aws::String& value) { SetIdentityValidationExpression(value); return *this;}
463 
470  inline GetAuthorizerResult& WithIdentityValidationExpression(Aws::String&& value) { SetIdentityValidationExpression(value); return *this;}
471 
478  inline GetAuthorizerResult& WithIdentityValidationExpression(const char* value) { SetIdentityValidationExpression(value); return *this;}
479 
485  inline int GetAuthorizerResultTtlInSeconds() const{ return m_authorizerResultTtlInSeconds; }
486 
492  inline void SetAuthorizerResultTtlInSeconds(int value) { m_authorizerResultTtlInSeconds = value; }
493 
499  inline GetAuthorizerResult& WithAuthorizerResultTtlInSeconds(int value) { SetAuthorizerResultTtlInSeconds(value); return *this;}
500 
501  private:
502  Aws::String m_id;
503  Aws::String m_name;
504  AuthorizerType m_type;
505  Aws::Vector<Aws::String> m_providerARNs;
506  Aws::String m_authType;
507  Aws::String m_authorizerUri;
508  Aws::String m_authorizerCredentials;
509  Aws::String m_identitySource;
510  Aws::String m_identityValidationExpression;
511  int m_authorizerResultTtlInSeconds;
512  };
513 
514 } // namespace Model
515 } // namespace APIGateway
516 } // namespace Aws
const Aws::String & GetIdentitySource() const
void SetProviderARNs(const Aws::Vector< Aws::String > &value)
GetAuthorizerResult & WithAuthType(const char *value)
void SetType(const AuthorizerType &value)
const Aws::String & GetAuthorizerCredentials() const
GetAuthorizerResult & WithAuthorizerUri(Aws::String &&value)
GetAuthorizerResult & AddProviderARNs(const char *value)
GetAuthorizerResult & WithProviderARNs(Aws::Vector< Aws::String > &&value)
GetAuthorizerResult & WithAuthorizerCredentials(const Aws::String &value)
const Aws::Vector< Aws::String > & GetProviderARNs() const
GetAuthorizerResult & WithAuthorizerUri(const Aws::String &value)
GetAuthorizerResult & WithId(const char *value)
GetAuthorizerResult & WithIdentitySource(const Aws::String &value)
void SetProviderARNs(Aws::Vector< Aws::String > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
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)
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)
GetAuthorizerResult & WithAuthorizerResultTtlInSeconds(int value)
void SetIdentityValidationExpression(Aws::String &&value)
GetAuthorizerResult & WithIdentitySource(Aws::String &&value)
GetAuthorizerResult & AddProviderARNs(Aws::String &&value)
const Aws::String & GetIdentityValidationExpression() const
GetAuthorizerResult & WithProviderARNs(const Aws::Vector< Aws::String > &value)
GetAuthorizerResult & WithName(const Aws::String &value)
GetAuthorizerResult & AddProviderARNs(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)