AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
Authorizer.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/model/AuthorizerType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace APIGateway {
22namespace Model {
23
32 public:
33 AWS_APIGATEWAY_API Authorizer() = default;
34 AWS_APIGATEWAY_API Authorizer(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APIGATEWAY_API Authorizer& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
50 Authorizer& WithId(IdT&& value) {
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
68 Authorizer& WithName(NameT&& value) {
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
81 inline AuthorizerType GetType() const { return m_type; }
82 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
83 inline void SetType(AuthorizerType value) {
84 m_typeHasBeenSet = true;
85 m_type = value;
86 }
88 SetType(value);
89 return *this;
90 }
92
94
101 inline const Aws::Vector<Aws::String>& GetProviderARNs() const { return m_providerARNs; }
102 inline bool ProviderARNsHasBeenSet() const { return m_providerARNsHasBeenSet; }
103 template <typename ProviderARNsT = Aws::Vector<Aws::String>>
104 void SetProviderARNs(ProviderARNsT&& value) {
105 m_providerARNsHasBeenSet = true;
106 m_providerARNs = std::forward<ProviderARNsT>(value);
107 }
108 template <typename ProviderARNsT = Aws::Vector<Aws::String>>
109 Authorizer& WithProviderARNs(ProviderARNsT&& value) {
110 SetProviderARNs(std::forward<ProviderARNsT>(value));
111 return *this;
112 }
113 template <typename ProviderARNsT = Aws::String>
114 Authorizer& AddProviderARNs(ProviderARNsT&& value) {
115 m_providerARNsHasBeenSet = true;
116 m_providerARNs.emplace_back(std::forward<ProviderARNsT>(value));
117 return *this;
118 }
120
122
126 inline const Aws::String& GetAuthType() const { return m_authType; }
127 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
128 template <typename AuthTypeT = Aws::String>
129 void SetAuthType(AuthTypeT&& value) {
130 m_authTypeHasBeenSet = true;
131 m_authType = std::forward<AuthTypeT>(value);
132 }
133 template <typename AuthTypeT = Aws::String>
134 Authorizer& WithAuthType(AuthTypeT&& value) {
135 SetAuthType(std::forward<AuthTypeT>(value));
136 return *this;
137 }
139
141
154 inline const Aws::String& GetAuthorizerUri() const { return m_authorizerUri; }
155 inline bool AuthorizerUriHasBeenSet() const { return m_authorizerUriHasBeenSet; }
156 template <typename AuthorizerUriT = Aws::String>
157 void SetAuthorizerUri(AuthorizerUriT&& value) {
158 m_authorizerUriHasBeenSet = true;
159 m_authorizerUri = std::forward<AuthorizerUriT>(value);
160 }
161 template <typename AuthorizerUriT = Aws::String>
162 Authorizer& WithAuthorizerUri(AuthorizerUriT&& value) {
163 SetAuthorizerUri(std::forward<AuthorizerUriT>(value));
164 return *this;
165 }
167
169
175 inline const Aws::String& GetAuthorizerCredentials() const { return m_authorizerCredentials; }
176 inline bool AuthorizerCredentialsHasBeenSet() const { return m_authorizerCredentialsHasBeenSet; }
177 template <typename AuthorizerCredentialsT = Aws::String>
178 void SetAuthorizerCredentials(AuthorizerCredentialsT&& value) {
179 m_authorizerCredentialsHasBeenSet = true;
180 m_authorizerCredentials = std::forward<AuthorizerCredentialsT>(value);
181 }
182 template <typename AuthorizerCredentialsT = Aws::String>
183 Authorizer& WithAuthorizerCredentials(AuthorizerCredentialsT&& value) {
184 SetAuthorizerCredentials(std::forward<AuthorizerCredentialsT>(value));
185 return *this;
186 }
188
190
212 inline const Aws::String& GetIdentitySource() const { return m_identitySource; }
213 inline bool IdentitySourceHasBeenSet() const { return m_identitySourceHasBeenSet; }
214 template <typename IdentitySourceT = Aws::String>
215 void SetIdentitySource(IdentitySourceT&& value) {
216 m_identitySourceHasBeenSet = true;
217 m_identitySource = std::forward<IdentitySourceT>(value);
218 }
219 template <typename IdentitySourceT = Aws::String>
220 Authorizer& WithIdentitySource(IdentitySourceT&& value) {
221 SetIdentitySource(std::forward<IdentitySourceT>(value));
222 return *this;
223 }
225
227
237 inline const Aws::String& GetIdentityValidationExpression() const { return m_identityValidationExpression; }
238 inline bool IdentityValidationExpressionHasBeenSet() const { return m_identityValidationExpressionHasBeenSet; }
239 template <typename IdentityValidationExpressionT = Aws::String>
240 void SetIdentityValidationExpression(IdentityValidationExpressionT&& value) {
241 m_identityValidationExpressionHasBeenSet = true;
242 m_identityValidationExpression = std::forward<IdentityValidationExpressionT>(value);
243 }
244 template <typename IdentityValidationExpressionT = Aws::String>
245 Authorizer& WithIdentityValidationExpression(IdentityValidationExpressionT&& value) {
246 SetIdentityValidationExpression(std::forward<IdentityValidationExpressionT>(value));
247 return *this;
248 }
250
252
258 inline int GetAuthorizerResultTtlInSeconds() const { return m_authorizerResultTtlInSeconds; }
259 inline bool AuthorizerResultTtlInSecondsHasBeenSet() const { return m_authorizerResultTtlInSecondsHasBeenSet; }
260 inline void SetAuthorizerResultTtlInSeconds(int value) {
261 m_authorizerResultTtlInSecondsHasBeenSet = true;
262 m_authorizerResultTtlInSeconds = value;
263 }
266 return *this;
267 }
269
271
272 inline const Aws::String& GetRequestId() const { return m_requestId; }
273 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
274 template <typename RequestIdT = Aws::String>
275 void SetRequestId(RequestIdT&& value) {
276 m_requestIdHasBeenSet = true;
277 m_requestId = std::forward<RequestIdT>(value);
278 }
279 template <typename RequestIdT = Aws::String>
280 Authorizer& WithRequestId(RequestIdT&& value) {
281 SetRequestId(std::forward<RequestIdT>(value));
282 return *this;
283 }
285 private:
286 Aws::String m_id;
287
288 Aws::String m_name;
289
291
292 Aws::Vector<Aws::String> m_providerARNs;
293
294 Aws::String m_authType;
295
296 Aws::String m_authorizerUri;
297
298 Aws::String m_authorizerCredentials;
299
300 Aws::String m_identitySource;
301
302 Aws::String m_identityValidationExpression;
303
304 int m_authorizerResultTtlInSeconds{0};
305
306 Aws::String m_requestId;
307 bool m_idHasBeenSet = false;
308 bool m_nameHasBeenSet = false;
309 bool m_typeHasBeenSet = false;
310 bool m_providerARNsHasBeenSet = false;
311 bool m_authTypeHasBeenSet = false;
312 bool m_authorizerUriHasBeenSet = false;
313 bool m_authorizerCredentialsHasBeenSet = false;
314 bool m_identitySourceHasBeenSet = false;
315 bool m_identityValidationExpressionHasBeenSet = false;
316 bool m_authorizerResultTtlInSecondsHasBeenSet = false;
317 bool m_requestIdHasBeenSet = false;
318};
319
320} // namespace Model
321} // namespace APIGateway
322} // namespace Aws
bool AuthorizerResultTtlInSecondsHasBeenSet() const
Definition Authorizer.h:259
void SetAuthType(AuthTypeT &&value)
Definition Authorizer.h:129
Authorizer & AddProviderARNs(ProviderARNsT &&value)
Definition Authorizer.h:114
void SetType(AuthorizerType value)
Definition Authorizer.h:83
void SetAuthorizerCredentials(AuthorizerCredentialsT &&value)
Definition Authorizer.h:178
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
Authorizer & WithId(IdT &&value)
Definition Authorizer.h:50
void SetAuthorizerUri(AuthorizerUriT &&value)
Definition Authorizer.h:157
void SetIdentitySource(IdentitySourceT &&value)
Definition Authorizer.h:215
AWS_APIGATEWAY_API Authorizer()=default
AWS_APIGATEWAY_API Authorizer & operator=(Aws::Utils::Json::JsonView jsonValue)
bool IdentityValidationExpressionHasBeenSet() const
Definition Authorizer.h:238
void SetIdentityValidationExpression(IdentityValidationExpressionT &&value)
Definition Authorizer.h:240
const Aws::String & GetAuthorizerCredentials() const
Definition Authorizer.h:175
Authorizer & WithName(NameT &&value)
Definition Authorizer.h:68
Authorizer & WithAuthorizerCredentials(AuthorizerCredentialsT &&value)
Definition Authorizer.h:183
Authorizer & WithProviderARNs(ProviderARNsT &&value)
Definition Authorizer.h:109
const Aws::String & GetName() const
Definition Authorizer.h:60
const Aws::String & GetAuthType() const
Definition Authorizer.h:126
Authorizer & WithIdentitySource(IdentitySourceT &&value)
Definition Authorizer.h:220
void SetProviderARNs(ProviderARNsT &&value)
Definition Authorizer.h:104
const Aws::String & GetIdentitySource() const
Definition Authorizer.h:212
void SetAuthorizerResultTtlInSeconds(int value)
Definition Authorizer.h:260
const Aws::String & GetRequestId() const
Definition Authorizer.h:272
const Aws::String & GetIdentityValidationExpression() const
Definition Authorizer.h:237
Authorizer & WithIdentityValidationExpression(IdentityValidationExpressionT &&value)
Definition Authorizer.h:245
AuthorizerType GetType() const
Definition Authorizer.h:81
const Aws::Vector< Aws::String > & GetProviderARNs() const
Definition Authorizer.h:101
AWS_APIGATEWAY_API Authorizer(Aws::Utils::Json::JsonView jsonValue)
Authorizer & WithAuthorizerUri(AuthorizerUriT &&value)
Definition Authorizer.h:162
Authorizer & WithType(AuthorizerType value)
Definition Authorizer.h:87
const Aws::String & GetId() const
Definition Authorizer.h:42
const Aws::String & GetAuthorizerUri() const
Definition Authorizer.h:154
Authorizer & WithRequestId(RequestIdT &&value)
Definition Authorizer.h:280
Authorizer & WithAuthorizerResultTtlInSeconds(int value)
Definition Authorizer.h:264
void SetRequestId(RequestIdT &&value)
Definition Authorizer.h:275
Authorizer & WithAuthType(AuthTypeT &&value)
Definition Authorizer.h:134
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue