AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Authorizer.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/apigateway/model/AuthorizerType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace APIGateway
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_APIGATEWAY_API Authorizer();
39 AWS_APIGATEWAY_API Authorizer(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APIGATEWAY_API Authorizer& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetId() const{ return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
51 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
52 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
53 inline Authorizer& WithId(const Aws::String& value) { SetId(value); return *this;}
54 inline Authorizer& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
55 inline Authorizer& WithId(const char* value) { SetId(value); return *this;}
57
59
62 inline const Aws::String& GetName() const{ return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
65 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
66 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 inline Authorizer& WithName(const Aws::String& value) { SetName(value); return *this;}
68 inline Authorizer& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
69 inline Authorizer& WithName(const char* value) { SetName(value); return *this;}
71
73
79 inline const AuthorizerType& GetType() const{ return m_type; }
80 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
81 inline void SetType(const AuthorizerType& value) { m_typeHasBeenSet = true; m_type = value; }
82 inline void SetType(AuthorizerType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
83 inline Authorizer& WithType(const AuthorizerType& value) { SetType(value); return *this;}
84 inline Authorizer& WithType(AuthorizerType&& value) { SetType(std::move(value)); return *this;}
86
88
95 inline const Aws::Vector<Aws::String>& GetProviderARNs() const{ return m_providerARNs; }
96 inline bool ProviderARNsHasBeenSet() const { return m_providerARNsHasBeenSet; }
97 inline void SetProviderARNs(const Aws::Vector<Aws::String>& value) { m_providerARNsHasBeenSet = true; m_providerARNs = value; }
98 inline void SetProviderARNs(Aws::Vector<Aws::String>&& value) { m_providerARNsHasBeenSet = true; m_providerARNs = std::move(value); }
99 inline Authorizer& WithProviderARNs(const Aws::Vector<Aws::String>& value) { SetProviderARNs(value); return *this;}
100 inline Authorizer& WithProviderARNs(Aws::Vector<Aws::String>&& value) { SetProviderARNs(std::move(value)); return *this;}
101 inline Authorizer& AddProviderARNs(const Aws::String& value) { m_providerARNsHasBeenSet = true; m_providerARNs.push_back(value); return *this; }
102 inline Authorizer& AddProviderARNs(Aws::String&& value) { m_providerARNsHasBeenSet = true; m_providerARNs.push_back(std::move(value)); return *this; }
103 inline Authorizer& AddProviderARNs(const char* value) { m_providerARNsHasBeenSet = true; m_providerARNs.push_back(value); return *this; }
105
107
111 inline const Aws::String& GetAuthType() const{ return m_authType; }
112 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
113 inline void SetAuthType(const Aws::String& value) { m_authTypeHasBeenSet = true; m_authType = value; }
114 inline void SetAuthType(Aws::String&& value) { m_authTypeHasBeenSet = true; m_authType = std::move(value); }
115 inline void SetAuthType(const char* value) { m_authTypeHasBeenSet = true; m_authType.assign(value); }
116 inline Authorizer& WithAuthType(const Aws::String& value) { SetAuthType(value); return *this;}
117 inline Authorizer& WithAuthType(Aws::String&& value) { SetAuthType(std::move(value)); return *this;}
118 inline Authorizer& WithAuthType(const char* value) { SetAuthType(value); return *this;}
120
122
135 inline const Aws::String& GetAuthorizerUri() const{ return m_authorizerUri; }
136 inline bool AuthorizerUriHasBeenSet() const { return m_authorizerUriHasBeenSet; }
137 inline void SetAuthorizerUri(const Aws::String& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = value; }
138 inline void SetAuthorizerUri(Aws::String&& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = std::move(value); }
139 inline void SetAuthorizerUri(const char* value) { m_authorizerUriHasBeenSet = true; m_authorizerUri.assign(value); }
140 inline Authorizer& WithAuthorizerUri(const Aws::String& value) { SetAuthorizerUri(value); return *this;}
141 inline Authorizer& WithAuthorizerUri(Aws::String&& value) { SetAuthorizerUri(std::move(value)); return *this;}
142 inline Authorizer& WithAuthorizerUri(const char* value) { SetAuthorizerUri(value); return *this;}
144
146
152 inline const Aws::String& GetAuthorizerCredentials() const{ return m_authorizerCredentials; }
153 inline bool AuthorizerCredentialsHasBeenSet() const { return m_authorizerCredentialsHasBeenSet; }
154 inline void SetAuthorizerCredentials(const Aws::String& value) { m_authorizerCredentialsHasBeenSet = true; m_authorizerCredentials = value; }
155 inline void SetAuthorizerCredentials(Aws::String&& value) { m_authorizerCredentialsHasBeenSet = true; m_authorizerCredentials = std::move(value); }
156 inline void SetAuthorizerCredentials(const char* value) { m_authorizerCredentialsHasBeenSet = true; m_authorizerCredentials.assign(value); }
157 inline Authorizer& WithAuthorizerCredentials(const Aws::String& value) { SetAuthorizerCredentials(value); return *this;}
158 inline Authorizer& WithAuthorizerCredentials(Aws::String&& value) { SetAuthorizerCredentials(std::move(value)); return *this;}
159 inline Authorizer& WithAuthorizerCredentials(const char* value) { SetAuthorizerCredentials(value); return *this;}
161
163
185 inline const Aws::String& GetIdentitySource() const{ return m_identitySource; }
186 inline bool IdentitySourceHasBeenSet() const { return m_identitySourceHasBeenSet; }
187 inline void SetIdentitySource(const Aws::String& value) { m_identitySourceHasBeenSet = true; m_identitySource = value; }
188 inline void SetIdentitySource(Aws::String&& value) { m_identitySourceHasBeenSet = true; m_identitySource = std::move(value); }
189 inline void SetIdentitySource(const char* value) { m_identitySourceHasBeenSet = true; m_identitySource.assign(value); }
190 inline Authorizer& WithIdentitySource(const Aws::String& value) { SetIdentitySource(value); return *this;}
191 inline Authorizer& WithIdentitySource(Aws::String&& value) { SetIdentitySource(std::move(value)); return *this;}
192 inline Authorizer& WithIdentitySource(const char* value) { SetIdentitySource(value); return *this;}
194
196
206 inline const Aws::String& GetIdentityValidationExpression() const{ return m_identityValidationExpression; }
207 inline bool IdentityValidationExpressionHasBeenSet() const { return m_identityValidationExpressionHasBeenSet; }
208 inline void SetIdentityValidationExpression(const Aws::String& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = value; }
209 inline void SetIdentityValidationExpression(Aws::String&& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = std::move(value); }
210 inline void SetIdentityValidationExpression(const char* value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression.assign(value); }
213 inline Authorizer& WithIdentityValidationExpression(const char* value) { SetIdentityValidationExpression(value); return *this;}
215
217
223 inline int GetAuthorizerResultTtlInSeconds() const{ return m_authorizerResultTtlInSeconds; }
224 inline bool AuthorizerResultTtlInSecondsHasBeenSet() const { return m_authorizerResultTtlInSecondsHasBeenSet; }
225 inline void SetAuthorizerResultTtlInSeconds(int value) { m_authorizerResultTtlInSecondsHasBeenSet = true; m_authorizerResultTtlInSeconds = value; }
228
230
231 inline const Aws::String& GetRequestId() const{ return m_requestId; }
232 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
233 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
234 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
235 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
236 inline Authorizer& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
237 inline Authorizer& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
238 inline Authorizer& WithRequestId(const char* value) { SetRequestId(value); return *this;}
240 private:
241
242 Aws::String m_id;
243 bool m_idHasBeenSet = false;
244
245 Aws::String m_name;
246 bool m_nameHasBeenSet = false;
247
248 AuthorizerType m_type;
249 bool m_typeHasBeenSet = false;
250
251 Aws::Vector<Aws::String> m_providerARNs;
252 bool m_providerARNsHasBeenSet = false;
253
254 Aws::String m_authType;
255 bool m_authTypeHasBeenSet = false;
256
257 Aws::String m_authorizerUri;
258 bool m_authorizerUriHasBeenSet = false;
259
260 Aws::String m_authorizerCredentials;
261 bool m_authorizerCredentialsHasBeenSet = false;
262
263 Aws::String m_identitySource;
264 bool m_identitySourceHasBeenSet = false;
265
266 Aws::String m_identityValidationExpression;
267 bool m_identityValidationExpressionHasBeenSet = false;
268
269 int m_authorizerResultTtlInSeconds;
270 bool m_authorizerResultTtlInSecondsHasBeenSet = false;
271
272 Aws::String m_requestId;
273 bool m_requestIdHasBeenSet = false;
274 };
275
276} // namespace Model
277} // namespace APIGateway
278} // namespace Aws
void SetType(const AuthorizerType &value)
Definition Authorizer.h:81
Authorizer & WithAuthType(const char *value)
Definition Authorizer.h:118
Authorizer & WithName(const char *value)
Definition Authorizer.h:69
void SetType(AuthorizerType &&value)
Definition Authorizer.h:82
void SetIdentityValidationExpression(const Aws::String &value)
Definition Authorizer.h:208
bool AuthorizerResultTtlInSecondsHasBeenSet() const
Definition Authorizer.h:224
void SetIdentitySource(const Aws::String &value)
Definition Authorizer.h:187
Authorizer & WithId(Aws::String &&value)
Definition Authorizer.h:54
void SetProviderARNs(Aws::Vector< Aws::String > &&value)
Definition Authorizer.h:98
void SetId(const char *value)
Definition Authorizer.h:52
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
Authorizer & WithAuthType(Aws::String &&value)
Definition Authorizer.h:117
Authorizer & WithIdentitySource(const Aws::String &value)
Definition Authorizer.h:190
Authorizer & WithId(const char *value)
Definition Authorizer.h:55
void SetIdentityValidationExpression(Aws::String &&value)
Definition Authorizer.h:209
AWS_APIGATEWAY_API Authorizer & operator=(Aws::Utils::Json::JsonView jsonValue)
bool IdentityValidationExpressionHasBeenSet() const
Definition Authorizer.h:207
Authorizer & WithId(const Aws::String &value)
Definition Authorizer.h:53
void SetId(const Aws::String &value)
Definition Authorizer.h:50
Authorizer & AddProviderARNs(const char *value)
Definition Authorizer.h:103
Authorizer & WithAuthorizerCredentials(Aws::String &&value)
Definition Authorizer.h:158
void SetRequestId(Aws::String &&value)
Definition Authorizer.h:234
void SetAuthType(const Aws::String &value)
Definition Authorizer.h:113
const Aws::String & GetAuthorizerCredentials() const
Definition Authorizer.h:152
const Aws::String & GetName() const
Definition Authorizer.h:62
const Aws::String & GetAuthType() const
Definition Authorizer.h:111
Authorizer & WithIdentityValidationExpression(const char *value)
Definition Authorizer.h:213
Authorizer & WithIdentityValidationExpression(Aws::String &&value)
Definition Authorizer.h:212
void SetAuthorizerUri(Aws::String &&value)
Definition Authorizer.h:138
AWS_APIGATEWAY_API Authorizer()
Authorizer & WithAuthorizerUri(const Aws::String &value)
Definition Authorizer.h:140
Authorizer & WithIdentitySource(Aws::String &&value)
Definition Authorizer.h:191
void SetIdentitySource(Aws::String &&value)
Definition Authorizer.h:188
Authorizer & WithName(Aws::String &&value)
Definition Authorizer.h:68
const Aws::String & GetIdentitySource() const
Definition Authorizer.h:185
void SetAuthorizerResultTtlInSeconds(int value)
Definition Authorizer.h:225
Authorizer & WithAuthorizerCredentials(const Aws::String &value)
Definition Authorizer.h:157
void SetRequestId(const char *value)
Definition Authorizer.h:235
const Aws::String & GetRequestId() const
Definition Authorizer.h:231
Authorizer & WithProviderARNs(const Aws::Vector< Aws::String > &value)
Definition Authorizer.h:99
Authorizer & WithIdentitySource(const char *value)
Definition Authorizer.h:192
Authorizer & WithProviderARNs(Aws::Vector< Aws::String > &&value)
Definition Authorizer.h:100
void SetProviderARNs(const Aws::Vector< Aws::String > &value)
Definition Authorizer.h:97
void SetName(Aws::String &&value)
Definition Authorizer.h:65
const Aws::String & GetIdentityValidationExpression() const
Definition Authorizer.h:206
Authorizer & WithType(AuthorizerType &&value)
Definition Authorizer.h:84
Authorizer & WithName(const Aws::String &value)
Definition Authorizer.h:67
const Aws::Vector< Aws::String > & GetProviderARNs() const
Definition Authorizer.h:95
void SetAuthType(Aws::String &&value)
Definition Authorizer.h:114
Authorizer & WithAuthorizerCredentials(const char *value)
Definition Authorizer.h:159
void SetName(const char *value)
Definition Authorizer.h:66
AWS_APIGATEWAY_API Authorizer(Aws::Utils::Json::JsonView jsonValue)
void SetIdentityValidationExpression(const char *value)
Definition Authorizer.h:210
void SetAuthorizerCredentials(const char *value)
Definition Authorizer.h:156
Authorizer & WithRequestId(const Aws::String &value)
Definition Authorizer.h:236
Authorizer & WithRequestId(Aws::String &&value)
Definition Authorizer.h:237
Authorizer & WithType(const AuthorizerType &value)
Definition Authorizer.h:83
Authorizer & WithAuthorizerUri(const char *value)
Definition Authorizer.h:142
Authorizer & WithAuthorizerUri(Aws::String &&value)
Definition Authorizer.h:141
Authorizer & WithAuthType(const Aws::String &value)
Definition Authorizer.h:116
void SetAuthorizerUri(const char *value)
Definition Authorizer.h:139
void SetRequestId(const Aws::String &value)
Definition Authorizer.h:233
Authorizer & WithRequestId(const char *value)
Definition Authorizer.h:238
void SetName(const Aws::String &value)
Definition Authorizer.h:64
const Aws::String & GetId() const
Definition Authorizer.h:48
const Aws::String & GetAuthorizerUri() const
Definition Authorizer.h:135
Authorizer & AddProviderARNs(const Aws::String &value)
Definition Authorizer.h:101
void SetAuthorizerCredentials(Aws::String &&value)
Definition Authorizer.h:155
void SetIdentitySource(const char *value)
Definition Authorizer.h:189
void SetAuthorizerCredentials(const Aws::String &value)
Definition Authorizer.h:154
Authorizer & WithAuthorizerResultTtlInSeconds(int value)
Definition Authorizer.h:226
void SetAuthType(const char *value)
Definition Authorizer.h:115
Authorizer & AddProviderARNs(Aws::String &&value)
Definition Authorizer.h:102
const AuthorizerType & GetType() const
Definition Authorizer.h:79
Authorizer & WithIdentityValidationExpression(const Aws::String &value)
Definition Authorizer.h:211
void SetId(Aws::String &&value)
Definition Authorizer.h:51
void SetAuthorizerUri(const Aws::String &value)
Definition Authorizer.h:137
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue