AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
CreateAuthorizerRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGatewayRequest.h>
8#include <aws/apigateway/APIGateway_EXPORTS.h>
9#include <aws/apigateway/model/AuthorizerType.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 {
16namespace APIGateway {
17namespace Model {
18
26 public:
27 AWS_APIGATEWAY_API CreateAuthorizerRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateAuthorizer"; }
34
35 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
42 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
43 template <typename RestApiIdT = Aws::String>
44 void SetRestApiId(RestApiIdT&& value) {
45 m_restApiIdHasBeenSet = true;
46 m_restApiId = std::forward<RestApiIdT>(value);
47 }
48 template <typename RestApiIdT = Aws::String>
50 SetRestApiId(std::forward<RestApiIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
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 bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
82 inline void SetType(AuthorizerType value) {
83 m_typeHasBeenSet = true;
84 m_type = value;
85 }
87 SetType(value);
88 return *this;
89 }
91
93
100 inline const Aws::Vector<Aws::String>& GetProviderARNs() const { return m_providerARNs; }
101 inline bool ProviderARNsHasBeenSet() const { return m_providerARNsHasBeenSet; }
102 template <typename ProviderARNsT = Aws::Vector<Aws::String>>
103 void SetProviderARNs(ProviderARNsT&& value) {
104 m_providerARNsHasBeenSet = true;
105 m_providerARNs = std::forward<ProviderARNsT>(value);
106 }
107 template <typename ProviderARNsT = Aws::Vector<Aws::String>>
109 SetProviderARNs(std::forward<ProviderARNsT>(value));
110 return *this;
111 }
112 template <typename ProviderARNsT = Aws::String>
113 CreateAuthorizerRequest& AddProviderARNs(ProviderARNsT&& value) {
114 m_providerARNsHasBeenSet = true;
115 m_providerARNs.emplace_back(std::forward<ProviderARNsT>(value));
116 return *this;
117 }
119
121
125 inline const Aws::String& GetAuthType() const { return m_authType; }
126 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
127 template <typename AuthTypeT = Aws::String>
128 void SetAuthType(AuthTypeT&& value) {
129 m_authTypeHasBeenSet = true;
130 m_authType = std::forward<AuthTypeT>(value);
131 }
132 template <typename AuthTypeT = Aws::String>
134 SetAuthType(std::forward<AuthTypeT>(value));
135 return *this;
136 }
138
140
153 inline const Aws::String& GetAuthorizerUri() const { return m_authorizerUri; }
154 inline bool AuthorizerUriHasBeenSet() const { return m_authorizerUriHasBeenSet; }
155 template <typename AuthorizerUriT = Aws::String>
156 void SetAuthorizerUri(AuthorizerUriT&& value) {
157 m_authorizerUriHasBeenSet = true;
158 m_authorizerUri = std::forward<AuthorizerUriT>(value);
159 }
160 template <typename AuthorizerUriT = Aws::String>
162 SetAuthorizerUri(std::forward<AuthorizerUriT>(value));
163 return *this;
164 }
166
168
174 inline const Aws::String& GetAuthorizerCredentials() const { return m_authorizerCredentials; }
175 inline bool AuthorizerCredentialsHasBeenSet() const { return m_authorizerCredentialsHasBeenSet; }
176 template <typename AuthorizerCredentialsT = Aws::String>
177 void SetAuthorizerCredentials(AuthorizerCredentialsT&& value) {
178 m_authorizerCredentialsHasBeenSet = true;
179 m_authorizerCredentials = std::forward<AuthorizerCredentialsT>(value);
180 }
181 template <typename AuthorizerCredentialsT = Aws::String>
182 CreateAuthorizerRequest& WithAuthorizerCredentials(AuthorizerCredentialsT&& value) {
183 SetAuthorizerCredentials(std::forward<AuthorizerCredentialsT>(value));
184 return *this;
185 }
187
189
211 inline const Aws::String& GetIdentitySource() const { return m_identitySource; }
212 inline bool IdentitySourceHasBeenSet() const { return m_identitySourceHasBeenSet; }
213 template <typename IdentitySourceT = Aws::String>
214 void SetIdentitySource(IdentitySourceT&& value) {
215 m_identitySourceHasBeenSet = true;
216 m_identitySource = std::forward<IdentitySourceT>(value);
217 }
218 template <typename IdentitySourceT = Aws::String>
219 CreateAuthorizerRequest& WithIdentitySource(IdentitySourceT&& value) {
220 SetIdentitySource(std::forward<IdentitySourceT>(value));
221 return *this;
222 }
224
226
236 inline const Aws::String& GetIdentityValidationExpression() const { return m_identityValidationExpression; }
237 inline bool IdentityValidationExpressionHasBeenSet() const { return m_identityValidationExpressionHasBeenSet; }
238 template <typename IdentityValidationExpressionT = Aws::String>
239 void SetIdentityValidationExpression(IdentityValidationExpressionT&& value) {
240 m_identityValidationExpressionHasBeenSet = true;
241 m_identityValidationExpression = std::forward<IdentityValidationExpressionT>(value);
242 }
243 template <typename IdentityValidationExpressionT = Aws::String>
244 CreateAuthorizerRequest& WithIdentityValidationExpression(IdentityValidationExpressionT&& value) {
245 SetIdentityValidationExpression(std::forward<IdentityValidationExpressionT>(value));
246 return *this;
247 }
249
251
257 inline int GetAuthorizerResultTtlInSeconds() const { return m_authorizerResultTtlInSeconds; }
258 inline bool AuthorizerResultTtlInSecondsHasBeenSet() const { return m_authorizerResultTtlInSecondsHasBeenSet; }
259 inline void SetAuthorizerResultTtlInSeconds(int value) {
260 m_authorizerResultTtlInSecondsHasBeenSet = true;
261 m_authorizerResultTtlInSeconds = value;
262 }
265 return *this;
266 }
268 private:
269 Aws::String m_restApiId;
270
271 Aws::String m_name;
272
274
275 Aws::Vector<Aws::String> m_providerARNs;
276
277 Aws::String m_authType;
278
279 Aws::String m_authorizerUri;
280
281 Aws::String m_authorizerCredentials;
282
283 Aws::String m_identitySource;
284
285 Aws::String m_identityValidationExpression;
286
287 int m_authorizerResultTtlInSeconds{0};
288 bool m_restApiIdHasBeenSet = false;
289 bool m_nameHasBeenSet = false;
290 bool m_typeHasBeenSet = false;
291 bool m_providerARNsHasBeenSet = false;
292 bool m_authTypeHasBeenSet = false;
293 bool m_authorizerUriHasBeenSet = false;
294 bool m_authorizerCredentialsHasBeenSet = false;
295 bool m_identitySourceHasBeenSet = false;
296 bool m_identityValidationExpressionHasBeenSet = false;
297 bool m_authorizerResultTtlInSecondsHasBeenSet = false;
298};
299
300} // namespace Model
301} // namespace APIGateway
302} // namespace Aws
void SetAuthorizerCredentials(AuthorizerCredentialsT &&value)
CreateAuthorizerRequest & WithRestApiId(RestApiIdT &&value)
AWS_APIGATEWAY_API CreateAuthorizerRequest()=default
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
CreateAuthorizerRequest & WithType(AuthorizerType value)
CreateAuthorizerRequest & WithAuthorizerUri(AuthorizerUriT &&value)
CreateAuthorizerRequest & WithAuthorizerCredentials(AuthorizerCredentialsT &&value)
CreateAuthorizerRequest & WithAuthorizerResultTtlInSeconds(int value)
CreateAuthorizerRequest & WithIdentityValidationExpression(IdentityValidationExpressionT &&value)
virtual const char * GetServiceRequestName() const override
CreateAuthorizerRequest & WithIdentitySource(IdentitySourceT &&value)
void SetIdentityValidationExpression(IdentityValidationExpressionT &&value)
CreateAuthorizerRequest & WithAuthType(AuthTypeT &&value)
CreateAuthorizerRequest & AddProviderARNs(ProviderARNsT &&value)
const Aws::Vector< Aws::String > & GetProviderARNs() const
CreateAuthorizerRequest & WithProviderARNs(ProviderARNsT &&value)
CreateAuthorizerRequest & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector