AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
UpdateAuthorizerResult.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/model/AuthorizerType.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace APIGateway {
25namespace Model {
34 public:
35 AWS_APIGATEWAY_API UpdateAuthorizerResult() = default;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
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>
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
80 inline AuthorizerType GetType() const { return m_type; }
81 inline void SetType(AuthorizerType value) {
82 m_typeHasBeenSet = true;
83 m_type = value;
84 }
86 SetType(value);
87 return *this;
88 }
90
92
99 inline const Aws::Vector<Aws::String>& GetProviderARNs() const { return m_providerARNs; }
100 template <typename ProviderARNsT = Aws::Vector<Aws::String>>
101 void SetProviderARNs(ProviderARNsT&& value) {
102 m_providerARNsHasBeenSet = true;
103 m_providerARNs = std::forward<ProviderARNsT>(value);
104 }
105 template <typename ProviderARNsT = Aws::Vector<Aws::String>>
106 UpdateAuthorizerResult& WithProviderARNs(ProviderARNsT&& value) {
107 SetProviderARNs(std::forward<ProviderARNsT>(value));
108 return *this;
109 }
110 template <typename ProviderARNsT = Aws::String>
111 UpdateAuthorizerResult& AddProviderARNs(ProviderARNsT&& value) {
112 m_providerARNsHasBeenSet = true;
113 m_providerARNs.emplace_back(std::forward<ProviderARNsT>(value));
114 return *this;
115 }
117
119
123 inline const Aws::String& GetAuthType() const { return m_authType; }
124 template <typename AuthTypeT = Aws::String>
125 void SetAuthType(AuthTypeT&& value) {
126 m_authTypeHasBeenSet = true;
127 m_authType = std::forward<AuthTypeT>(value);
128 }
129 template <typename AuthTypeT = Aws::String>
131 SetAuthType(std::forward<AuthTypeT>(value));
132 return *this;
133 }
135
137
150 inline const Aws::String& GetAuthorizerUri() const { return m_authorizerUri; }
151 template <typename AuthorizerUriT = Aws::String>
152 void SetAuthorizerUri(AuthorizerUriT&& value) {
153 m_authorizerUriHasBeenSet = true;
154 m_authorizerUri = std::forward<AuthorizerUriT>(value);
155 }
156 template <typename AuthorizerUriT = Aws::String>
157 UpdateAuthorizerResult& WithAuthorizerUri(AuthorizerUriT&& value) {
158 SetAuthorizerUri(std::forward<AuthorizerUriT>(value));
159 return *this;
160 }
162
164
170 inline const Aws::String& GetAuthorizerCredentials() const { return m_authorizerCredentials; }
171 template <typename AuthorizerCredentialsT = Aws::String>
172 void SetAuthorizerCredentials(AuthorizerCredentialsT&& value) {
173 m_authorizerCredentialsHasBeenSet = true;
174 m_authorizerCredentials = std::forward<AuthorizerCredentialsT>(value);
175 }
176 template <typename AuthorizerCredentialsT = Aws::String>
177 UpdateAuthorizerResult& WithAuthorizerCredentials(AuthorizerCredentialsT&& value) {
178 SetAuthorizerCredentials(std::forward<AuthorizerCredentialsT>(value));
179 return *this;
180 }
182
184
206 inline const Aws::String& GetIdentitySource() const { return m_identitySource; }
207 template <typename IdentitySourceT = Aws::String>
208 void SetIdentitySource(IdentitySourceT&& value) {
209 m_identitySourceHasBeenSet = true;
210 m_identitySource = std::forward<IdentitySourceT>(value);
211 }
212 template <typename IdentitySourceT = Aws::String>
213 UpdateAuthorizerResult& WithIdentitySource(IdentitySourceT&& value) {
214 SetIdentitySource(std::forward<IdentitySourceT>(value));
215 return *this;
216 }
218
220
230 inline const Aws::String& GetIdentityValidationExpression() const { return m_identityValidationExpression; }
231 template <typename IdentityValidationExpressionT = Aws::String>
232 void SetIdentityValidationExpression(IdentityValidationExpressionT&& value) {
233 m_identityValidationExpressionHasBeenSet = true;
234 m_identityValidationExpression = std::forward<IdentityValidationExpressionT>(value);
235 }
236 template <typename IdentityValidationExpressionT = Aws::String>
237 UpdateAuthorizerResult& WithIdentityValidationExpression(IdentityValidationExpressionT&& value) {
238 SetIdentityValidationExpression(std::forward<IdentityValidationExpressionT>(value));
239 return *this;
240 }
242
244
250 inline int GetAuthorizerResultTtlInSeconds() const { return m_authorizerResultTtlInSeconds; }
251 inline void SetAuthorizerResultTtlInSeconds(int value) {
252 m_authorizerResultTtlInSecondsHasBeenSet = true;
253 m_authorizerResultTtlInSeconds = value;
254 }
257 return *this;
258 }
260
262
263 inline const Aws::String& GetRequestId() const { return m_requestId; }
264 template <typename RequestIdT = Aws::String>
265 void SetRequestId(RequestIdT&& value) {
266 m_requestIdHasBeenSet = true;
267 m_requestId = std::forward<RequestIdT>(value);
268 }
269 template <typename RequestIdT = Aws::String>
271 SetRequestId(std::forward<RequestIdT>(value));
272 return *this;
273 }
275 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
276
277 private:
278 Aws::String m_id;
279
280 Aws::String m_name;
281
283
284 Aws::Vector<Aws::String> m_providerARNs;
285
286 Aws::String m_authType;
287
288 Aws::String m_authorizerUri;
289
290 Aws::String m_authorizerCredentials;
291
292 Aws::String m_identitySource;
293
294 Aws::String m_identityValidationExpression;
295
296 int m_authorizerResultTtlInSeconds{0};
297
298 Aws::String m_requestId;
299 Aws::Http::HttpResponseCode m_HttpResponseCode;
300 bool m_idHasBeenSet = false;
301 bool m_nameHasBeenSet = false;
302 bool m_typeHasBeenSet = false;
303 bool m_providerARNsHasBeenSet = false;
304 bool m_authTypeHasBeenSet = false;
305 bool m_authorizerUriHasBeenSet = false;
306 bool m_authorizerCredentialsHasBeenSet = false;
307 bool m_identitySourceHasBeenSet = false;
308 bool m_identityValidationExpressionHasBeenSet = false;
309 bool m_authorizerResultTtlInSecondsHasBeenSet = false;
310 bool m_requestIdHasBeenSet = false;
311};
312
313} // namespace Model
314} // namespace APIGateway
315} // namespace Aws
const Aws::Vector< Aws::String > & GetProviderARNs() const
UpdateAuthorizerResult & WithAuthorizerUri(AuthorizerUriT &&value)
UpdateAuthorizerResult & WithIdentityValidationExpression(IdentityValidationExpressionT &&value)
UpdateAuthorizerResult & WithProviderARNs(ProviderARNsT &&value)
void SetAuthorizerCredentials(AuthorizerCredentialsT &&value)
UpdateAuthorizerResult & WithType(AuthorizerType value)
UpdateAuthorizerResult & AddProviderARNs(ProviderARNsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdateAuthorizerResult & WithRequestId(RequestIdT &&value)
AWS_APIGATEWAY_API UpdateAuthorizerResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateAuthorizerResult & WithAuthorizerResultTtlInSeconds(int value)
UpdateAuthorizerResult & WithIdentitySource(IdentitySourceT &&value)
AWS_APIGATEWAY_API UpdateAuthorizerResult()=default
UpdateAuthorizerResult & WithAuthType(AuthTypeT &&value)
AWS_APIGATEWAY_API UpdateAuthorizerResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateAuthorizerResult & WithAuthorizerCredentials(AuthorizerCredentialsT &&value)
UpdateAuthorizerResult & WithId(IdT &&value)
UpdateAuthorizerResult & WithName(NameT &&value)
void SetIdentityValidationExpression(IdentityValidationExpressionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue