AWS SDK for C++  0.12.9
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
20 
21 namespace Aws
22 {
23 namespace APIGateway
24 {
25 namespace Model
26 {
27 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
42  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
43 
48  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
49 
54  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
55 
60  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
61 
66  inline CreateAuthorizerRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
67 
72  inline CreateAuthorizerRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(value); return *this;}
73 
78  inline CreateAuthorizerRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
79 
83  inline const Aws::String& GetName() const{ return m_name; }
84 
88  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
89 
93  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
94 
98  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
99 
103  inline CreateAuthorizerRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
104 
108  inline CreateAuthorizerRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
109 
113  inline CreateAuthorizerRequest& WithName(const char* value) { SetName(value); return *this;}
114 
118  inline const AuthorizerType& GetType() const{ return m_type; }
119 
123  inline void SetType(const AuthorizerType& value) { m_typeHasBeenSet = true; m_type = value; }
124 
128  inline void SetType(AuthorizerType&& value) { m_typeHasBeenSet = true; m_type = value; }
129 
133  inline CreateAuthorizerRequest& WithType(const AuthorizerType& value) { SetType(value); return *this;}
134 
138  inline CreateAuthorizerRequest& WithType(AuthorizerType&& value) { SetType(value); return *this;}
139 
144  inline const Aws::String& GetAuthType() const{ return m_authType; }
145 
150  inline void SetAuthType(const Aws::String& value) { m_authTypeHasBeenSet = true; m_authType = value; }
151 
156  inline void SetAuthType(Aws::String&& value) { m_authTypeHasBeenSet = true; m_authType = value; }
157 
162  inline void SetAuthType(const char* value) { m_authTypeHasBeenSet = true; m_authType.assign(value); }
163 
168  inline CreateAuthorizerRequest& WithAuthType(const Aws::String& value) { SetAuthType(value); return *this;}
169 
174  inline CreateAuthorizerRequest& WithAuthType(Aws::String&& value) { SetAuthType(value); return *this;}
175 
180  inline CreateAuthorizerRequest& WithAuthType(const char* value) { SetAuthType(value); return *this;}
181 
185  inline const Aws::String& GetAuthorizerUri() const{ return m_authorizerUri; }
186 
190  inline void SetAuthorizerUri(const Aws::String& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = value; }
191 
195  inline void SetAuthorizerUri(Aws::String&& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = value; }
196 
200  inline void SetAuthorizerUri(const char* value) { m_authorizerUriHasBeenSet = true; m_authorizerUri.assign(value); }
201 
205  inline CreateAuthorizerRequest& WithAuthorizerUri(const Aws::String& value) { SetAuthorizerUri(value); return *this;}
206 
210  inline CreateAuthorizerRequest& WithAuthorizerUri(Aws::String&& value) { SetAuthorizerUri(value); return *this;}
211 
215  inline CreateAuthorizerRequest& WithAuthorizerUri(const char* value) { SetAuthorizerUri(value); return *this;}
216 
220  inline const Aws::String& GetAuthorizerCredentials() const{ return m_authorizerCredentials; }
221 
225  inline void SetAuthorizerCredentials(const Aws::String& value) { m_authorizerCredentialsHasBeenSet = true; m_authorizerCredentials = value; }
226 
230  inline void SetAuthorizerCredentials(Aws::String&& value) { m_authorizerCredentialsHasBeenSet = true; m_authorizerCredentials = value; }
231 
235  inline void SetAuthorizerCredentials(const char* value) { m_authorizerCredentialsHasBeenSet = true; m_authorizerCredentials.assign(value); }
236 
240  inline CreateAuthorizerRequest& WithAuthorizerCredentials(const Aws::String& value) { SetAuthorizerCredentials(value); return *this;}
241 
245  inline CreateAuthorizerRequest& WithAuthorizerCredentials(Aws::String&& value) { SetAuthorizerCredentials(value); return *this;}
246 
250  inline CreateAuthorizerRequest& WithAuthorizerCredentials(const char* value) { SetAuthorizerCredentials(value); return *this;}
251 
255  inline const Aws::String& GetIdentitySource() const{ return m_identitySource; }
256 
260  inline void SetIdentitySource(const Aws::String& value) { m_identitySourceHasBeenSet = true; m_identitySource = value; }
261 
265  inline void SetIdentitySource(Aws::String&& value) { m_identitySourceHasBeenSet = true; m_identitySource = value; }
266 
270  inline void SetIdentitySource(const char* value) { m_identitySourceHasBeenSet = true; m_identitySource.assign(value); }
271 
275  inline CreateAuthorizerRequest& WithIdentitySource(const Aws::String& value) { SetIdentitySource(value); return *this;}
276 
280  inline CreateAuthorizerRequest& WithIdentitySource(Aws::String&& value) { SetIdentitySource(value); return *this;}
281 
285  inline CreateAuthorizerRequest& WithIdentitySource(const char* value) { SetIdentitySource(value); return *this;}
286 
290  inline const Aws::String& GetIdentityValidationExpression() const{ return m_identityValidationExpression; }
291 
295  inline void SetIdentityValidationExpression(const Aws::String& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = value; }
296 
300  inline void SetIdentityValidationExpression(Aws::String&& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = value; }
301 
305  inline void SetIdentityValidationExpression(const char* value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression.assign(value); }
306 
310  inline CreateAuthorizerRequest& WithIdentityValidationExpression(const Aws::String& value) { SetIdentityValidationExpression(value); return *this;}
311 
315  inline CreateAuthorizerRequest& WithIdentityValidationExpression(Aws::String&& value) { SetIdentityValidationExpression(value); return *this;}
316 
320  inline CreateAuthorizerRequest& WithIdentityValidationExpression(const char* value) { SetIdentityValidationExpression(value); return *this;}
321 
325  inline long GetAuthorizerResultTtlInSeconds() const{ return m_authorizerResultTtlInSeconds; }
326 
330  inline void SetAuthorizerResultTtlInSeconds(long value) { m_authorizerResultTtlInSecondsHasBeenSet = true; m_authorizerResultTtlInSeconds = value; }
331 
335  inline CreateAuthorizerRequest& WithAuthorizerResultTtlInSeconds(long value) { SetAuthorizerResultTtlInSeconds(value); return *this;}
336 
337  private:
338  Aws::String m_restApiId;
339  bool m_restApiIdHasBeenSet;
340  Aws::String m_name;
341  bool m_nameHasBeenSet;
342  AuthorizerType m_type;
343  bool m_typeHasBeenSet;
344  Aws::String m_authType;
345  bool m_authTypeHasBeenSet;
346  Aws::String m_authorizerUri;
347  bool m_authorizerUriHasBeenSet;
348  Aws::String m_authorizerCredentials;
349  bool m_authorizerCredentialsHasBeenSet;
350  Aws::String m_identitySource;
351  bool m_identitySourceHasBeenSet;
352  Aws::String m_identityValidationExpression;
353  bool m_identityValidationExpressionHasBeenSet;
354  long m_authorizerResultTtlInSeconds;
355  bool m_authorizerResultTtlInSecondsHasBeenSet;
356  };
357 
358 } // namespace Model
359 } // namespace APIGateway
360 } // namespace Aws
CreateAuthorizerRequest & WithAuthorizerResultTtlInSeconds(long value)
CreateAuthorizerRequest & WithAuthorizerCredentials(const char *value)
CreateAuthorizerRequest & WithAuthorizerUri(const char *value)
CreateAuthorizerRequest & WithName(Aws::String &&value)
CreateAuthorizerRequest & WithRestApiId(const char *value)
CreateAuthorizerRequest & WithName(const char *value)
CreateAuthorizerRequest & WithName(const Aws::String &value)
CreateAuthorizerRequest & WithAuthType(Aws::String &&value)
CreateAuthorizerRequest & WithAuthorizerCredentials(Aws::String &&value)
CreateAuthorizerRequest & WithAuthType(const char *value)
CreateAuthorizerRequest & WithAuthorizerCredentials(const Aws::String &value)
CreateAuthorizerRequest & WithAuthType(const 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 & 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)
JSON (JavaScript Object Notation).