AWS SDK for C++  0.14.3
AWS SDK for C++
CreateAuthorizerRequest.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
21 
22 namespace Aws
23 {
24 namespace APIGateway
25 {
26 namespace Model
27 {
28 
34  {
35  public:
37  Aws::String SerializePayload() const override;
38 
43  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
44 
49  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
50 
55  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
56 
61  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
62 
67  inline CreateAuthorizerRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
68 
73  inline CreateAuthorizerRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(value); return *this;}
74 
79  inline CreateAuthorizerRequest& WithRestApiId(const char* value) { SetRestApiId(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 CreateAuthorizerRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
105 
109  inline CreateAuthorizerRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
110 
114  inline CreateAuthorizerRequest& WithName(const char* value) { SetName(value); return *this;}
115 
119  inline const AuthorizerType& GetType() const{ return m_type; }
120 
124  inline void SetType(const AuthorizerType& value) { m_typeHasBeenSet = true; m_type = value; }
125 
129  inline void SetType(AuthorizerType&& value) { m_typeHasBeenSet = true; m_type = value; }
130 
134  inline CreateAuthorizerRequest& WithType(const AuthorizerType& value) { SetType(value); return *this;}
135 
139  inline CreateAuthorizerRequest& WithType(AuthorizerType&& value) { SetType(value); return *this;}
140 
141 
142  inline const Aws::Vector<Aws::String>& GetProviderARNs() const{ return m_providerARNs; }
143 
144 
145  inline void SetProviderARNs(const Aws::Vector<Aws::String>& value) { m_providerARNsHasBeenSet = true; m_providerARNs = value; }
146 
147 
148  inline void SetProviderARNs(Aws::Vector<Aws::String>&& value) { m_providerARNsHasBeenSet = true; m_providerARNs = value; }
149 
150 
151  inline CreateAuthorizerRequest& WithProviderARNs(const Aws::Vector<Aws::String>& value) { SetProviderARNs(value); return *this;}
152 
153 
154  inline CreateAuthorizerRequest& WithProviderARNs(Aws::Vector<Aws::String>&& value) { SetProviderARNs(value); return *this;}
155 
156 
157  inline CreateAuthorizerRequest& AddProviderARNs(const Aws::String& value) { m_providerARNsHasBeenSet = true; m_providerARNs.push_back(value); return *this; }
158 
159 
160  inline CreateAuthorizerRequest& AddProviderARNs(Aws::String&& value) { m_providerARNsHasBeenSet = true; m_providerARNs.push_back(value); return *this; }
161 
162 
163  inline CreateAuthorizerRequest& AddProviderARNs(const char* value) { m_providerARNsHasBeenSet = true; m_providerARNs.push_back(value); return *this; }
164 
169  inline const Aws::String& GetAuthType() const{ return m_authType; }
170 
175  inline void SetAuthType(const Aws::String& value) { m_authTypeHasBeenSet = true; m_authType = value; }
176 
181  inline void SetAuthType(Aws::String&& value) { m_authTypeHasBeenSet = true; m_authType = value; }
182 
187  inline void SetAuthType(const char* value) { m_authTypeHasBeenSet = true; m_authType.assign(value); }
188 
193  inline CreateAuthorizerRequest& WithAuthType(const Aws::String& value) { SetAuthType(value); return *this;}
194 
199  inline CreateAuthorizerRequest& WithAuthType(Aws::String&& value) { SetAuthType(value); return *this;}
200 
205  inline CreateAuthorizerRequest& WithAuthType(const char* value) { SetAuthType(value); return *this;}
206 
210  inline const Aws::String& GetAuthorizerUri() const{ return m_authorizerUri; }
211 
215  inline void SetAuthorizerUri(const Aws::String& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = value; }
216 
220  inline void SetAuthorizerUri(Aws::String&& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = value; }
221 
225  inline void SetAuthorizerUri(const char* value) { m_authorizerUriHasBeenSet = true; m_authorizerUri.assign(value); }
226 
230  inline CreateAuthorizerRequest& WithAuthorizerUri(const Aws::String& value) { SetAuthorizerUri(value); return *this;}
231 
235  inline CreateAuthorizerRequest& WithAuthorizerUri(Aws::String&& value) { SetAuthorizerUri(value); return *this;}
236 
240  inline CreateAuthorizerRequest& WithAuthorizerUri(const char* value) { SetAuthorizerUri(value); return *this;}
241 
245  inline const Aws::String& GetAuthorizerCredentials() const{ return m_authorizerCredentials; }
246 
250  inline void SetAuthorizerCredentials(const Aws::String& value) { m_authorizerCredentialsHasBeenSet = true; m_authorizerCredentials = value; }
251 
255  inline void SetAuthorizerCredentials(Aws::String&& value) { m_authorizerCredentialsHasBeenSet = true; m_authorizerCredentials = value; }
256 
260  inline void SetAuthorizerCredentials(const char* value) { m_authorizerCredentialsHasBeenSet = true; m_authorizerCredentials.assign(value); }
261 
265  inline CreateAuthorizerRequest& WithAuthorizerCredentials(const Aws::String& value) { SetAuthorizerCredentials(value); return *this;}
266 
270  inline CreateAuthorizerRequest& WithAuthorizerCredentials(Aws::String&& value) { SetAuthorizerCredentials(value); return *this;}
271 
275  inline CreateAuthorizerRequest& WithAuthorizerCredentials(const char* value) { SetAuthorizerCredentials(value); return *this;}
276 
280  inline const Aws::String& GetIdentitySource() const{ return m_identitySource; }
281 
285  inline void SetIdentitySource(const Aws::String& value) { m_identitySourceHasBeenSet = true; m_identitySource = value; }
286 
290  inline void SetIdentitySource(Aws::String&& value) { m_identitySourceHasBeenSet = true; m_identitySource = value; }
291 
295  inline void SetIdentitySource(const char* value) { m_identitySourceHasBeenSet = true; m_identitySource.assign(value); }
296 
300  inline CreateAuthorizerRequest& WithIdentitySource(const Aws::String& value) { SetIdentitySource(value); return *this;}
301 
305  inline CreateAuthorizerRequest& WithIdentitySource(Aws::String&& value) { SetIdentitySource(value); return *this;}
306 
310  inline CreateAuthorizerRequest& WithIdentitySource(const char* value) { SetIdentitySource(value); return *this;}
311 
315  inline const Aws::String& GetIdentityValidationExpression() const{ return m_identityValidationExpression; }
316 
320  inline void SetIdentityValidationExpression(const Aws::String& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = value; }
321 
325  inline void SetIdentityValidationExpression(Aws::String&& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = value; }
326 
330  inline void SetIdentityValidationExpression(const char* value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression.assign(value); }
331 
335  inline CreateAuthorizerRequest& WithIdentityValidationExpression(const Aws::String& value) { SetIdentityValidationExpression(value); return *this;}
336 
340  inline CreateAuthorizerRequest& WithIdentityValidationExpression(Aws::String&& value) { SetIdentityValidationExpression(value); return *this;}
341 
345  inline CreateAuthorizerRequest& WithIdentityValidationExpression(const char* value) { SetIdentityValidationExpression(value); return *this;}
346 
350  inline int GetAuthorizerResultTtlInSeconds() const{ return m_authorizerResultTtlInSeconds; }
351 
355  inline void SetAuthorizerResultTtlInSeconds(int value) { m_authorizerResultTtlInSecondsHasBeenSet = true; m_authorizerResultTtlInSeconds = value; }
356 
360  inline CreateAuthorizerRequest& WithAuthorizerResultTtlInSeconds(int value) { SetAuthorizerResultTtlInSeconds(value); return *this;}
361 
362  private:
363  Aws::String m_restApiId;
364  bool m_restApiIdHasBeenSet;
365  Aws::String m_name;
366  bool m_nameHasBeenSet;
367  AuthorizerType m_type;
368  bool m_typeHasBeenSet;
369  Aws::Vector<Aws::String> m_providerARNs;
370  bool m_providerARNsHasBeenSet;
371  Aws::String m_authType;
372  bool m_authTypeHasBeenSet;
373  Aws::String m_authorizerUri;
374  bool m_authorizerUriHasBeenSet;
375  Aws::String m_authorizerCredentials;
376  bool m_authorizerCredentialsHasBeenSet;
377  Aws::String m_identitySource;
378  bool m_identitySourceHasBeenSet;
379  Aws::String m_identityValidationExpression;
380  bool m_identityValidationExpressionHasBeenSet;
381  int m_authorizerResultTtlInSeconds;
382  bool m_authorizerResultTtlInSecondsHasBeenSet;
383  };
384 
385 } // namespace Model
386 } // namespace APIGateway
387 } // namespace Aws
CreateAuthorizerRequest & AddProviderARNs(const char *value)
CreateAuthorizerRequest & WithAuthorizerCredentials(const char *value)
CreateAuthorizerRequest & WithAuthorizerUri(const char *value)
CreateAuthorizerRequest & WithName(Aws::String &&value)
CreateAuthorizerRequest & AddProviderARNs(const Aws::String &value)
CreateAuthorizerRequest & WithRestApiId(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CreateAuthorizerRequest & WithName(const char *value)
CreateAuthorizerRequest & WithName(const Aws::String &value)
CreateAuthorizerRequest & WithAuthType(Aws::String &&value)
CreateAuthorizerRequest & AddProviderARNs(Aws::String &&value)
const Aws::Vector< Aws::String > & GetProviderARNs() const
CreateAuthorizerRequest & WithAuthorizerResultTtlInSeconds(int value)
CreateAuthorizerRequest & WithAuthorizerCredentials(Aws::String &&value)
CreateAuthorizerRequest & WithProviderARNs(const Aws::Vector< Aws::String > &value)
CreateAuthorizerRequest & WithAuthType(const char *value)
CreateAuthorizerRequest & WithAuthorizerCredentials(const Aws::String &value)
CreateAuthorizerRequest & WithAuthType(const Aws::String &value)
void SetProviderARNs(const Aws::Vector< Aws::String > &value)
CreateAuthorizerRequest & WithType(AuthorizerType &&value)
CreateAuthorizerRequest & WithIdentityValidationExpression(const Aws::String &value)
CreateAuthorizerRequest & WithIdentitySource(Aws::String &&value)
CreateAuthorizerRequest & WithIdentityValidationExpression(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_APIGATEWAY_API
CreateAuthorizerRequest & WithRestApiId(Aws::String &&value)
CreateAuthorizerRequest & WithProviderARNs(Aws::Vector< Aws::String > &&value)
CreateAuthorizerRequest & WithAuthorizerUri(Aws::String &&value)
void SetIdentityValidationExpression(const Aws::String &value)
CreateAuthorizerRequest & WithIdentitySource(const Aws::String &value)
CreateAuthorizerRequest & WithIdentitySource(const char *value)
CreateAuthorizerRequest & WithRestApiId(const Aws::String &value)
CreateAuthorizerRequest & WithAuthorizerUri(const Aws::String &value)
CreateAuthorizerRequest & WithType(const AuthorizerType &value)
CreateAuthorizerRequest & WithIdentityValidationExpression(Aws::String &&value)
void SetProviderARNs(Aws::Vector< Aws::String > &&value)
JSON (JavaScript Object Notation).