AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAuthorizerRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/APIGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/apigateway/model/AuthorizerType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace APIGateway
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_APIGATEWAY_API CreateAuthorizerRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateAuthorizer"; }
37
38 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
46 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
47 inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
48 inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
49 inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
50 inline CreateAuthorizerRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
51 inline CreateAuthorizerRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
52 inline CreateAuthorizerRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
54
56
59 inline const Aws::String& GetName() const{ return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 inline CreateAuthorizerRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline CreateAuthorizerRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline CreateAuthorizerRequest& WithName(const char* value) { SetName(value); return *this;}
68
70
76 inline const AuthorizerType& GetType() const{ return m_type; }
77 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
78 inline void SetType(const AuthorizerType& value) { m_typeHasBeenSet = true; m_type = value; }
79 inline void SetType(AuthorizerType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
80 inline CreateAuthorizerRequest& WithType(const AuthorizerType& value) { SetType(value); return *this;}
81 inline CreateAuthorizerRequest& WithType(AuthorizerType&& value) { SetType(std::move(value)); return *this;}
83
85
92 inline const Aws::Vector<Aws::String>& GetProviderARNs() const{ return m_providerARNs; }
93 inline bool ProviderARNsHasBeenSet() const { return m_providerARNsHasBeenSet; }
94 inline void SetProviderARNs(const Aws::Vector<Aws::String>& value) { m_providerARNsHasBeenSet = true; m_providerARNs = value; }
95 inline void SetProviderARNs(Aws::Vector<Aws::String>&& value) { m_providerARNsHasBeenSet = true; m_providerARNs = std::move(value); }
97 inline CreateAuthorizerRequest& WithProviderARNs(Aws::Vector<Aws::String>&& value) { SetProviderARNs(std::move(value)); return *this;}
98 inline CreateAuthorizerRequest& AddProviderARNs(const Aws::String& value) { m_providerARNsHasBeenSet = true; m_providerARNs.push_back(value); return *this; }
99 inline CreateAuthorizerRequest& AddProviderARNs(Aws::String&& value) { m_providerARNsHasBeenSet = true; m_providerARNs.push_back(std::move(value)); return *this; }
100 inline CreateAuthorizerRequest& AddProviderARNs(const char* value) { m_providerARNsHasBeenSet = true; m_providerARNs.push_back(value); return *this; }
102
104
108 inline const Aws::String& GetAuthType() const{ return m_authType; }
109 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
110 inline void SetAuthType(const Aws::String& value) { m_authTypeHasBeenSet = true; m_authType = value; }
111 inline void SetAuthType(Aws::String&& value) { m_authTypeHasBeenSet = true; m_authType = std::move(value); }
112 inline void SetAuthType(const char* value) { m_authTypeHasBeenSet = true; m_authType.assign(value); }
113 inline CreateAuthorizerRequest& WithAuthType(const Aws::String& value) { SetAuthType(value); return *this;}
114 inline CreateAuthorizerRequest& WithAuthType(Aws::String&& value) { SetAuthType(std::move(value)); return *this;}
115 inline CreateAuthorizerRequest& WithAuthType(const char* value) { SetAuthType(value); return *this;}
117
119
132 inline const Aws::String& GetAuthorizerUri() const{ return m_authorizerUri; }
133 inline bool AuthorizerUriHasBeenSet() const { return m_authorizerUriHasBeenSet; }
134 inline void SetAuthorizerUri(const Aws::String& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = value; }
135 inline void SetAuthorizerUri(Aws::String&& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = std::move(value); }
136 inline void SetAuthorizerUri(const char* value) { m_authorizerUriHasBeenSet = true; m_authorizerUri.assign(value); }
137 inline CreateAuthorizerRequest& WithAuthorizerUri(const Aws::String& value) { SetAuthorizerUri(value); return *this;}
138 inline CreateAuthorizerRequest& WithAuthorizerUri(Aws::String&& value) { SetAuthorizerUri(std::move(value)); return *this;}
139 inline CreateAuthorizerRequest& WithAuthorizerUri(const char* value) { SetAuthorizerUri(value); return *this;}
141
143
149 inline const Aws::String& GetAuthorizerCredentials() const{ return m_authorizerCredentials; }
150 inline bool AuthorizerCredentialsHasBeenSet() const { return m_authorizerCredentialsHasBeenSet; }
151 inline void SetAuthorizerCredentials(const Aws::String& value) { m_authorizerCredentialsHasBeenSet = true; m_authorizerCredentials = value; }
152 inline void SetAuthorizerCredentials(Aws::String&& value) { m_authorizerCredentialsHasBeenSet = true; m_authorizerCredentials = std::move(value); }
153 inline void SetAuthorizerCredentials(const char* value) { m_authorizerCredentialsHasBeenSet = true; m_authorizerCredentials.assign(value); }
156 inline CreateAuthorizerRequest& WithAuthorizerCredentials(const char* value) { SetAuthorizerCredentials(value); return *this;}
158
160
182 inline const Aws::String& GetIdentitySource() const{ return m_identitySource; }
183 inline bool IdentitySourceHasBeenSet() const { return m_identitySourceHasBeenSet; }
184 inline void SetIdentitySource(const Aws::String& value) { m_identitySourceHasBeenSet = true; m_identitySource = value; }
185 inline void SetIdentitySource(Aws::String&& value) { m_identitySourceHasBeenSet = true; m_identitySource = std::move(value); }
186 inline void SetIdentitySource(const char* value) { m_identitySourceHasBeenSet = true; m_identitySource.assign(value); }
187 inline CreateAuthorizerRequest& WithIdentitySource(const Aws::String& value) { SetIdentitySource(value); return *this;}
188 inline CreateAuthorizerRequest& WithIdentitySource(Aws::String&& value) { SetIdentitySource(std::move(value)); return *this;}
189 inline CreateAuthorizerRequest& WithIdentitySource(const char* value) { SetIdentitySource(value); return *this;}
191
193
203 inline const Aws::String& GetIdentityValidationExpression() const{ return m_identityValidationExpression; }
204 inline bool IdentityValidationExpressionHasBeenSet() const { return m_identityValidationExpressionHasBeenSet; }
205 inline void SetIdentityValidationExpression(const Aws::String& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = value; }
206 inline void SetIdentityValidationExpression(Aws::String&& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = std::move(value); }
207 inline void SetIdentityValidationExpression(const char* value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression.assign(value); }
212
214
220 inline int GetAuthorizerResultTtlInSeconds() const{ return m_authorizerResultTtlInSeconds; }
221 inline bool AuthorizerResultTtlInSecondsHasBeenSet() const { return m_authorizerResultTtlInSecondsHasBeenSet; }
222 inline void SetAuthorizerResultTtlInSeconds(int value) { m_authorizerResultTtlInSecondsHasBeenSet = true; m_authorizerResultTtlInSeconds = value; }
225 private:
226
227 Aws::String m_restApiId;
228 bool m_restApiIdHasBeenSet = false;
229
230 Aws::String m_name;
231 bool m_nameHasBeenSet = false;
232
233 AuthorizerType m_type;
234 bool m_typeHasBeenSet = false;
235
236 Aws::Vector<Aws::String> m_providerARNs;
237 bool m_providerARNsHasBeenSet = false;
238
239 Aws::String m_authType;
240 bool m_authTypeHasBeenSet = false;
241
242 Aws::String m_authorizerUri;
243 bool m_authorizerUriHasBeenSet = false;
244
245 Aws::String m_authorizerCredentials;
246 bool m_authorizerCredentialsHasBeenSet = false;
247
248 Aws::String m_identitySource;
249 bool m_identitySourceHasBeenSet = false;
250
251 Aws::String m_identityValidationExpression;
252 bool m_identityValidationExpressionHasBeenSet = false;
253
254 int m_authorizerResultTtlInSeconds;
255 bool m_authorizerResultTtlInSecondsHasBeenSet = false;
256 };
257
258} // namespace Model
259} // namespace APIGateway
260} // namespace Aws
void SetIdentityValidationExpression(const Aws::String &value)
CreateAuthorizerRequest & WithProviderARNs(const Aws::Vector< Aws::String > &value)
CreateAuthorizerRequest & WithAuthorizerCredentials(const Aws::String &value)
CreateAuthorizerRequest & WithAuthType(const char *value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
CreateAuthorizerRequest & WithName(const char *value)
CreateAuthorizerRequest & WithAuthorizerUri(const char *value)
CreateAuthorizerRequest & WithAuthorizerCredentials(const char *value)
CreateAuthorizerRequest & AddProviderARNs(const char *value)
CreateAuthorizerRequest & WithIdentityValidationExpression(Aws::String &&value)
CreateAuthorizerRequest & WithRestApiId(Aws::String &&value)
CreateAuthorizerRequest & WithIdentitySource(Aws::String &&value)
void SetProviderARNs(Aws::Vector< Aws::String > &&value)
CreateAuthorizerRequest & WithAuthorizerUri(Aws::String &&value)
CreateAuthorizerRequest & WithIdentityValidationExpression(const Aws::String &value)
CreateAuthorizerRequest & WithAuthorizerResultTtlInSeconds(int value)
CreateAuthorizerRequest & WithName(Aws::String &&value)
CreateAuthorizerRequest & WithName(const Aws::String &value)
CreateAuthorizerRequest & WithAuthorizerUri(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateAuthorizerRequest & WithAuthorizerCredentials(Aws::String &&value)
CreateAuthorizerRequest & WithRestApiId(const Aws::String &value)
CreateAuthorizerRequest & WithIdentityValidationExpression(const char *value)
CreateAuthorizerRequest & AddProviderARNs(const Aws::String &value)
CreateAuthorizerRequest & WithAuthType(Aws::String &&value)
CreateAuthorizerRequest & WithProviderARNs(Aws::Vector< Aws::String > &&value)
CreateAuthorizerRequest & WithType(const AuthorizerType &value)
CreateAuthorizerRequest & AddProviderARNs(Aws::String &&value)
const Aws::Vector< Aws::String > & GetProviderARNs() const
CreateAuthorizerRequest & WithType(AuthorizerType &&value)
CreateAuthorizerRequest & WithRestApiId(const char *value)
CreateAuthorizerRequest & WithIdentitySource(const Aws::String &value)
CreateAuthorizerRequest & WithIdentitySource(const char *value)
CreateAuthorizerRequest & WithAuthType(const Aws::String &value)
void SetProviderARNs(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector