AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename IdT = Aws::String>
51 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
52 template<typename IdT = Aws::String>
53 Authorizer& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
64 template<typename NameT = Aws::String>
65 Authorizer& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
67
69
75 inline AuthorizerType GetType() const { return m_type; }
76 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
77 inline void SetType(AuthorizerType value) { m_typeHasBeenSet = true; m_type = value; }
78 inline Authorizer& WithType(AuthorizerType value) { SetType(value); return *this;}
80
82
89 inline const Aws::Vector<Aws::String>& GetProviderARNs() const { return m_providerARNs; }
90 inline bool ProviderARNsHasBeenSet() const { return m_providerARNsHasBeenSet; }
91 template<typename ProviderARNsT = Aws::Vector<Aws::String>>
92 void SetProviderARNs(ProviderARNsT&& value) { m_providerARNsHasBeenSet = true; m_providerARNs = std::forward<ProviderARNsT>(value); }
93 template<typename ProviderARNsT = Aws::Vector<Aws::String>>
94 Authorizer& WithProviderARNs(ProviderARNsT&& value) { SetProviderARNs(std::forward<ProviderARNsT>(value)); return *this;}
95 template<typename ProviderARNsT = Aws::String>
96 Authorizer& AddProviderARNs(ProviderARNsT&& value) { m_providerARNsHasBeenSet = true; m_providerARNs.emplace_back(std::forward<ProviderARNsT>(value)); return *this; }
98
100
104 inline const Aws::String& GetAuthType() const { return m_authType; }
105 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
106 template<typename AuthTypeT = Aws::String>
107 void SetAuthType(AuthTypeT&& value) { m_authTypeHasBeenSet = true; m_authType = std::forward<AuthTypeT>(value); }
108 template<typename AuthTypeT = Aws::String>
109 Authorizer& WithAuthType(AuthTypeT&& value) { SetAuthType(std::forward<AuthTypeT>(value)); return *this;}
111
113
126 inline const Aws::String& GetAuthorizerUri() const { return m_authorizerUri; }
127 inline bool AuthorizerUriHasBeenSet() const { return m_authorizerUriHasBeenSet; }
128 template<typename AuthorizerUriT = Aws::String>
129 void SetAuthorizerUri(AuthorizerUriT&& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = std::forward<AuthorizerUriT>(value); }
130 template<typename AuthorizerUriT = Aws::String>
131 Authorizer& WithAuthorizerUri(AuthorizerUriT&& value) { SetAuthorizerUri(std::forward<AuthorizerUriT>(value)); return *this;}
133
135
141 inline const Aws::String& GetAuthorizerCredentials() const { return m_authorizerCredentials; }
142 inline bool AuthorizerCredentialsHasBeenSet() const { return m_authorizerCredentialsHasBeenSet; }
143 template<typename AuthorizerCredentialsT = Aws::String>
144 void SetAuthorizerCredentials(AuthorizerCredentialsT&& value) { m_authorizerCredentialsHasBeenSet = true; m_authorizerCredentials = std::forward<AuthorizerCredentialsT>(value); }
145 template<typename AuthorizerCredentialsT = Aws::String>
146 Authorizer& WithAuthorizerCredentials(AuthorizerCredentialsT&& value) { SetAuthorizerCredentials(std::forward<AuthorizerCredentialsT>(value)); return *this;}
148
150
172 inline const Aws::String& GetIdentitySource() const { return m_identitySource; }
173 inline bool IdentitySourceHasBeenSet() const { return m_identitySourceHasBeenSet; }
174 template<typename IdentitySourceT = Aws::String>
175 void SetIdentitySource(IdentitySourceT&& value) { m_identitySourceHasBeenSet = true; m_identitySource = std::forward<IdentitySourceT>(value); }
176 template<typename IdentitySourceT = Aws::String>
177 Authorizer& WithIdentitySource(IdentitySourceT&& value) { SetIdentitySource(std::forward<IdentitySourceT>(value)); return *this;}
179
181
191 inline const Aws::String& GetIdentityValidationExpression() const { return m_identityValidationExpression; }
192 inline bool IdentityValidationExpressionHasBeenSet() const { return m_identityValidationExpressionHasBeenSet; }
193 template<typename IdentityValidationExpressionT = Aws::String>
194 void SetIdentityValidationExpression(IdentityValidationExpressionT&& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = std::forward<IdentityValidationExpressionT>(value); }
195 template<typename IdentityValidationExpressionT = Aws::String>
196 Authorizer& WithIdentityValidationExpression(IdentityValidationExpressionT&& value) { SetIdentityValidationExpression(std::forward<IdentityValidationExpressionT>(value)); return *this;}
198
200
206 inline int GetAuthorizerResultTtlInSeconds() const { return m_authorizerResultTtlInSeconds; }
207 inline bool AuthorizerResultTtlInSecondsHasBeenSet() const { return m_authorizerResultTtlInSecondsHasBeenSet; }
208 inline void SetAuthorizerResultTtlInSeconds(int value) { m_authorizerResultTtlInSecondsHasBeenSet = true; m_authorizerResultTtlInSeconds = value; }
211
213
214 inline const Aws::String& GetRequestId() const { return m_requestId; }
215 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
216 template<typename RequestIdT = Aws::String>
217 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
218 template<typename RequestIdT = Aws::String>
219 Authorizer& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
221 private:
222
223 Aws::String m_id;
224 bool m_idHasBeenSet = false;
225
226 Aws::String m_name;
227 bool m_nameHasBeenSet = false;
228
230 bool m_typeHasBeenSet = false;
231
232 Aws::Vector<Aws::String> m_providerARNs;
233 bool m_providerARNsHasBeenSet = false;
234
235 Aws::String m_authType;
236 bool m_authTypeHasBeenSet = false;
237
238 Aws::String m_authorizerUri;
239 bool m_authorizerUriHasBeenSet = false;
240
241 Aws::String m_authorizerCredentials;
242 bool m_authorizerCredentialsHasBeenSet = false;
243
244 Aws::String m_identitySource;
245 bool m_identitySourceHasBeenSet = false;
246
247 Aws::String m_identityValidationExpression;
248 bool m_identityValidationExpressionHasBeenSet = false;
249
250 int m_authorizerResultTtlInSeconds{0};
251 bool m_authorizerResultTtlInSecondsHasBeenSet = false;
252
253 Aws::String m_requestId;
254 bool m_requestIdHasBeenSet = false;
255 };
256
257} // namespace Model
258} // namespace APIGateway
259} // namespace Aws
bool AuthorizerResultTtlInSecondsHasBeenSet() const
Definition Authorizer.h:207
void SetAuthType(AuthTypeT &&value)
Definition Authorizer.h:107
Authorizer & AddProviderARNs(ProviderARNsT &&value)
Definition Authorizer.h:96
void SetType(AuthorizerType value)
Definition Authorizer.h:77
void SetAuthorizerCredentials(AuthorizerCredentialsT &&value)
Definition Authorizer.h:144
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
Authorizer & WithId(IdT &&value)
Definition Authorizer.h:53
void SetAuthorizerUri(AuthorizerUriT &&value)
Definition Authorizer.h:129
void SetIdentitySource(IdentitySourceT &&value)
Definition Authorizer.h:175
AWS_APIGATEWAY_API Authorizer()=default
AWS_APIGATEWAY_API Authorizer & operator=(Aws::Utils::Json::JsonView jsonValue)
bool IdentityValidationExpressionHasBeenSet() const
Definition Authorizer.h:192
void SetIdentityValidationExpression(IdentityValidationExpressionT &&value)
Definition Authorizer.h:194
const Aws::String & GetAuthorizerCredentials() const
Definition Authorizer.h:141
Authorizer & WithName(NameT &&value)
Definition Authorizer.h:65
Authorizer & WithAuthorizerCredentials(AuthorizerCredentialsT &&value)
Definition Authorizer.h:146
Authorizer & WithProviderARNs(ProviderARNsT &&value)
Definition Authorizer.h:94
const Aws::String & GetName() const
Definition Authorizer.h:60
const Aws::String & GetAuthType() const
Definition Authorizer.h:104
Authorizer & WithIdentitySource(IdentitySourceT &&value)
Definition Authorizer.h:177
void SetProviderARNs(ProviderARNsT &&value)
Definition Authorizer.h:92
const Aws::String & GetIdentitySource() const
Definition Authorizer.h:172
void SetAuthorizerResultTtlInSeconds(int value)
Definition Authorizer.h:208
const Aws::String & GetRequestId() const
Definition Authorizer.h:214
const Aws::String & GetIdentityValidationExpression() const
Definition Authorizer.h:191
Authorizer & WithIdentityValidationExpression(IdentityValidationExpressionT &&value)
Definition Authorizer.h:196
AuthorizerType GetType() const
Definition Authorizer.h:75
const Aws::Vector< Aws::String > & GetProviderARNs() const
Definition Authorizer.h:89
AWS_APIGATEWAY_API Authorizer(Aws::Utils::Json::JsonView jsonValue)
Authorizer & WithAuthorizerUri(AuthorizerUriT &&value)
Definition Authorizer.h:131
Authorizer & WithType(AuthorizerType value)
Definition Authorizer.h:78
const Aws::String & GetId() const
Definition Authorizer.h:48
const Aws::String & GetAuthorizerUri() const
Definition Authorizer.h:126
Authorizer & WithRequestId(RequestIdT &&value)
Definition Authorizer.h:219
Authorizer & WithAuthorizerResultTtlInSeconds(int value)
Definition Authorizer.h:209
void SetRequestId(RequestIdT &&value)
Definition Authorizer.h:217
Authorizer & WithAuthType(AuthTypeT &&value)
Definition Authorizer.h:109
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue