AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateAuthorizerRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/APIGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/apigateway/model/AuthorizerType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace APIGateway
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_APIGATEWAY_API CreateAuthorizerRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateAuthorizer"; }
37
38 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
46 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
47 template<typename RestApiIdT = Aws::String>
48 void SetRestApiId(RestApiIdT&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::forward<RestApiIdT>(value); }
49 template<typename RestApiIdT = Aws::String>
50 CreateAuthorizerRequest& WithRestApiId(RestApiIdT&& value) { SetRestApiId(std::forward<RestApiIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template<typename NameT = Aws::String>
60 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
61 template<typename NameT = Aws::String>
62 CreateAuthorizerRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
64
66
72 inline AuthorizerType GetType() const { return m_type; }
73 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
74 inline void SetType(AuthorizerType value) { m_typeHasBeenSet = true; m_type = value; }
75 inline CreateAuthorizerRequest& WithType(AuthorizerType value) { SetType(value); return *this;}
77
79
86 inline const Aws::Vector<Aws::String>& GetProviderARNs() const { return m_providerARNs; }
87 inline bool ProviderARNsHasBeenSet() const { return m_providerARNsHasBeenSet; }
88 template<typename ProviderARNsT = Aws::Vector<Aws::String>>
89 void SetProviderARNs(ProviderARNsT&& value) { m_providerARNsHasBeenSet = true; m_providerARNs = std::forward<ProviderARNsT>(value); }
90 template<typename ProviderARNsT = Aws::Vector<Aws::String>>
91 CreateAuthorizerRequest& WithProviderARNs(ProviderARNsT&& value) { SetProviderARNs(std::forward<ProviderARNsT>(value)); return *this;}
92 template<typename ProviderARNsT = Aws::String>
93 CreateAuthorizerRequest& AddProviderARNs(ProviderARNsT&& value) { m_providerARNsHasBeenSet = true; m_providerARNs.emplace_back(std::forward<ProviderARNsT>(value)); return *this; }
95
97
101 inline const Aws::String& GetAuthType() const { return m_authType; }
102 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
103 template<typename AuthTypeT = Aws::String>
104 void SetAuthType(AuthTypeT&& value) { m_authTypeHasBeenSet = true; m_authType = std::forward<AuthTypeT>(value); }
105 template<typename AuthTypeT = Aws::String>
106 CreateAuthorizerRequest& WithAuthType(AuthTypeT&& value) { SetAuthType(std::forward<AuthTypeT>(value)); return *this;}
108
110
123 inline const Aws::String& GetAuthorizerUri() const { return m_authorizerUri; }
124 inline bool AuthorizerUriHasBeenSet() const { return m_authorizerUriHasBeenSet; }
125 template<typename AuthorizerUriT = Aws::String>
126 void SetAuthorizerUri(AuthorizerUriT&& value) { m_authorizerUriHasBeenSet = true; m_authorizerUri = std::forward<AuthorizerUriT>(value); }
127 template<typename AuthorizerUriT = Aws::String>
128 CreateAuthorizerRequest& WithAuthorizerUri(AuthorizerUriT&& value) { SetAuthorizerUri(std::forward<AuthorizerUriT>(value)); return *this;}
130
132
138 inline const Aws::String& GetAuthorizerCredentials() const { return m_authorizerCredentials; }
139 inline bool AuthorizerCredentialsHasBeenSet() const { return m_authorizerCredentialsHasBeenSet; }
140 template<typename AuthorizerCredentialsT = Aws::String>
141 void SetAuthorizerCredentials(AuthorizerCredentialsT&& value) { m_authorizerCredentialsHasBeenSet = true; m_authorizerCredentials = std::forward<AuthorizerCredentialsT>(value); }
142 template<typename AuthorizerCredentialsT = Aws::String>
143 CreateAuthorizerRequest& WithAuthorizerCredentials(AuthorizerCredentialsT&& value) { SetAuthorizerCredentials(std::forward<AuthorizerCredentialsT>(value)); return *this;}
145
147
169 inline const Aws::String& GetIdentitySource() const { return m_identitySource; }
170 inline bool IdentitySourceHasBeenSet() const { return m_identitySourceHasBeenSet; }
171 template<typename IdentitySourceT = Aws::String>
172 void SetIdentitySource(IdentitySourceT&& value) { m_identitySourceHasBeenSet = true; m_identitySource = std::forward<IdentitySourceT>(value); }
173 template<typename IdentitySourceT = Aws::String>
174 CreateAuthorizerRequest& WithIdentitySource(IdentitySourceT&& value) { SetIdentitySource(std::forward<IdentitySourceT>(value)); return *this;}
176
178
188 inline const Aws::String& GetIdentityValidationExpression() const { return m_identityValidationExpression; }
189 inline bool IdentityValidationExpressionHasBeenSet() const { return m_identityValidationExpressionHasBeenSet; }
190 template<typename IdentityValidationExpressionT = Aws::String>
191 void SetIdentityValidationExpression(IdentityValidationExpressionT&& value) { m_identityValidationExpressionHasBeenSet = true; m_identityValidationExpression = std::forward<IdentityValidationExpressionT>(value); }
192 template<typename IdentityValidationExpressionT = Aws::String>
193 CreateAuthorizerRequest& WithIdentityValidationExpression(IdentityValidationExpressionT&& value) { SetIdentityValidationExpression(std::forward<IdentityValidationExpressionT>(value)); return *this;}
195
197
203 inline int GetAuthorizerResultTtlInSeconds() const { return m_authorizerResultTtlInSeconds; }
204 inline bool AuthorizerResultTtlInSecondsHasBeenSet() const { return m_authorizerResultTtlInSecondsHasBeenSet; }
205 inline void SetAuthorizerResultTtlInSeconds(int value) { m_authorizerResultTtlInSecondsHasBeenSet = true; m_authorizerResultTtlInSeconds = value; }
208 private:
209
210 Aws::String m_restApiId;
211 bool m_restApiIdHasBeenSet = false;
212
213 Aws::String m_name;
214 bool m_nameHasBeenSet = false;
215
217 bool m_typeHasBeenSet = false;
218
219 Aws::Vector<Aws::String> m_providerARNs;
220 bool m_providerARNsHasBeenSet = false;
221
222 Aws::String m_authType;
223 bool m_authTypeHasBeenSet = false;
224
225 Aws::String m_authorizerUri;
226 bool m_authorizerUriHasBeenSet = false;
227
228 Aws::String m_authorizerCredentials;
229 bool m_authorizerCredentialsHasBeenSet = false;
230
231 Aws::String m_identitySource;
232 bool m_identitySourceHasBeenSet = false;
233
234 Aws::String m_identityValidationExpression;
235 bool m_identityValidationExpressionHasBeenSet = false;
236
237 int m_authorizerResultTtlInSeconds{0};
238 bool m_authorizerResultTtlInSecondsHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace APIGateway
243} // 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