AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
UpdateRouteRequest.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2Request.h>
8#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
9#include <aws/apigatewayv2/model/AuthorizationType.h>
10#include <aws/apigatewayv2/model/ParameterConstraints.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace ApiGatewayV2 {
19namespace Model {
20
27 public:
28 AWS_APIGATEWAYV2_API UpdateRouteRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateRoute"; }
35
36 AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetApiId() const { return m_apiId; }
43 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
44 template <typename ApiIdT = Aws::String>
45 void SetApiId(ApiIdT&& value) {
46 m_apiIdHasBeenSet = true;
47 m_apiId = std::forward<ApiIdT>(value);
48 }
49 template <typename ApiIdT = Aws::String>
50 UpdateRouteRequest& WithApiId(ApiIdT&& value) {
51 SetApiId(std::forward<ApiIdT>(value));
52 return *this;
53 }
55
57
61 inline bool GetApiKeyRequired() const { return m_apiKeyRequired; }
62 inline bool ApiKeyRequiredHasBeenSet() const { return m_apiKeyRequiredHasBeenSet; }
63 inline void SetApiKeyRequired(bool value) {
64 m_apiKeyRequiredHasBeenSet = true;
65 m_apiKeyRequired = value;
66 }
68 SetApiKeyRequired(value);
69 return *this;
70 }
72
74
77 inline const Aws::Vector<Aws::String>& GetAuthorizationScopes() const { return m_authorizationScopes; }
78 inline bool AuthorizationScopesHasBeenSet() const { return m_authorizationScopesHasBeenSet; }
79 template <typename AuthorizationScopesT = Aws::Vector<Aws::String>>
80 void SetAuthorizationScopes(AuthorizationScopesT&& value) {
81 m_authorizationScopesHasBeenSet = true;
82 m_authorizationScopes = std::forward<AuthorizationScopesT>(value);
83 }
84 template <typename AuthorizationScopesT = Aws::Vector<Aws::String>>
85 UpdateRouteRequest& WithAuthorizationScopes(AuthorizationScopesT&& value) {
86 SetAuthorizationScopes(std::forward<AuthorizationScopesT>(value));
87 return *this;
88 }
89 template <typename AuthorizationScopesT = Aws::String>
90 UpdateRouteRequest& AddAuthorizationScopes(AuthorizationScopesT&& value) {
91 m_authorizationScopesHasBeenSet = true;
92 m_authorizationScopes.emplace_back(std::forward<AuthorizationScopesT>(value));
93 return *this;
94 }
96
98
105 inline AuthorizationType GetAuthorizationType() const { return m_authorizationType; }
106 inline bool AuthorizationTypeHasBeenSet() const { return m_authorizationTypeHasBeenSet; }
108 m_authorizationTypeHasBeenSet = true;
109 m_authorizationType = value;
110 }
113 return *this;
114 }
116
118
123 inline const Aws::String& GetAuthorizerId() const { return m_authorizerId; }
124 inline bool AuthorizerIdHasBeenSet() const { return m_authorizerIdHasBeenSet; }
125 template <typename AuthorizerIdT = Aws::String>
126 void SetAuthorizerId(AuthorizerIdT&& value) {
127 m_authorizerIdHasBeenSet = true;
128 m_authorizerId = std::forward<AuthorizerIdT>(value);
129 }
130 template <typename AuthorizerIdT = Aws::String>
131 UpdateRouteRequest& WithAuthorizerId(AuthorizerIdT&& value) {
132 SetAuthorizerId(std::forward<AuthorizerIdT>(value));
133 return *this;
134 }
136
138
142 inline const Aws::String& GetModelSelectionExpression() const { return m_modelSelectionExpression; }
143 inline bool ModelSelectionExpressionHasBeenSet() const { return m_modelSelectionExpressionHasBeenSet; }
144 template <typename ModelSelectionExpressionT = Aws::String>
145 void SetModelSelectionExpression(ModelSelectionExpressionT&& value) {
146 m_modelSelectionExpressionHasBeenSet = true;
147 m_modelSelectionExpression = std::forward<ModelSelectionExpressionT>(value);
148 }
149 template <typename ModelSelectionExpressionT = Aws::String>
150 UpdateRouteRequest& WithModelSelectionExpression(ModelSelectionExpressionT&& value) {
151 SetModelSelectionExpression(std::forward<ModelSelectionExpressionT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::String& GetOperationName() const { return m_operationName; }
161 inline bool OperationNameHasBeenSet() const { return m_operationNameHasBeenSet; }
162 template <typename OperationNameT = Aws::String>
163 void SetOperationName(OperationNameT&& value) {
164 m_operationNameHasBeenSet = true;
165 m_operationName = std::forward<OperationNameT>(value);
166 }
167 template <typename OperationNameT = Aws::String>
168 UpdateRouteRequest& WithOperationName(OperationNameT&& value) {
169 SetOperationName(std::forward<OperationNameT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::Map<Aws::String, Aws::String>& GetRequestModels() const { return m_requestModels; }
179 inline bool RequestModelsHasBeenSet() const { return m_requestModelsHasBeenSet; }
180 template <typename RequestModelsT = Aws::Map<Aws::String, Aws::String>>
181 void SetRequestModels(RequestModelsT&& value) {
182 m_requestModelsHasBeenSet = true;
183 m_requestModels = std::forward<RequestModelsT>(value);
184 }
185 template <typename RequestModelsT = Aws::Map<Aws::String, Aws::String>>
186 UpdateRouteRequest& WithRequestModels(RequestModelsT&& value) {
187 SetRequestModels(std::forward<RequestModelsT>(value));
188 return *this;
189 }
190 template <typename RequestModelsKeyT = Aws::String, typename RequestModelsValueT = Aws::String>
191 UpdateRouteRequest& AddRequestModels(RequestModelsKeyT&& key, RequestModelsValueT&& value) {
192 m_requestModelsHasBeenSet = true;
193 m_requestModels.emplace(std::forward<RequestModelsKeyT>(key), std::forward<RequestModelsValueT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::Map<Aws::String, ParameterConstraints>& GetRequestParameters() const { return m_requestParameters; }
203 inline bool RequestParametersHasBeenSet() const { return m_requestParametersHasBeenSet; }
204 template <typename RequestParametersT = Aws::Map<Aws::String, ParameterConstraints>>
205 void SetRequestParameters(RequestParametersT&& value) {
206 m_requestParametersHasBeenSet = true;
207 m_requestParameters = std::forward<RequestParametersT>(value);
208 }
209 template <typename RequestParametersT = Aws::Map<Aws::String, ParameterConstraints>>
210 UpdateRouteRequest& WithRequestParameters(RequestParametersT&& value) {
211 SetRequestParameters(std::forward<RequestParametersT>(value));
212 return *this;
213 }
214 template <typename RequestParametersKeyT = Aws::String, typename RequestParametersValueT = ParameterConstraints>
215 UpdateRouteRequest& AddRequestParameters(RequestParametersKeyT&& key, RequestParametersValueT&& value) {
216 m_requestParametersHasBeenSet = true;
217 m_requestParameters.emplace(std::forward<RequestParametersKeyT>(key), std::forward<RequestParametersValueT>(value));
218 return *this;
219 }
221
223
226 inline const Aws::String& GetRouteId() const { return m_routeId; }
227 inline bool RouteIdHasBeenSet() const { return m_routeIdHasBeenSet; }
228 template <typename RouteIdT = Aws::String>
229 void SetRouteId(RouteIdT&& value) {
230 m_routeIdHasBeenSet = true;
231 m_routeId = std::forward<RouteIdT>(value);
232 }
233 template <typename RouteIdT = Aws::String>
234 UpdateRouteRequest& WithRouteId(RouteIdT&& value) {
235 SetRouteId(std::forward<RouteIdT>(value));
236 return *this;
237 }
239
241
244 inline const Aws::String& GetRouteKey() const { return m_routeKey; }
245 inline bool RouteKeyHasBeenSet() const { return m_routeKeyHasBeenSet; }
246 template <typename RouteKeyT = Aws::String>
247 void SetRouteKey(RouteKeyT&& value) {
248 m_routeKeyHasBeenSet = true;
249 m_routeKey = std::forward<RouteKeyT>(value);
250 }
251 template <typename RouteKeyT = Aws::String>
252 UpdateRouteRequest& WithRouteKey(RouteKeyT&& value) {
253 SetRouteKey(std::forward<RouteKeyT>(value));
254 return *this;
255 }
257
259
263 inline const Aws::String& GetRouteResponseSelectionExpression() const { return m_routeResponseSelectionExpression; }
264 inline bool RouteResponseSelectionExpressionHasBeenSet() const { return m_routeResponseSelectionExpressionHasBeenSet; }
265 template <typename RouteResponseSelectionExpressionT = Aws::String>
266 void SetRouteResponseSelectionExpression(RouteResponseSelectionExpressionT&& value) {
267 m_routeResponseSelectionExpressionHasBeenSet = true;
268 m_routeResponseSelectionExpression = std::forward<RouteResponseSelectionExpressionT>(value);
269 }
270 template <typename RouteResponseSelectionExpressionT = Aws::String>
271 UpdateRouteRequest& WithRouteResponseSelectionExpression(RouteResponseSelectionExpressionT&& value) {
272 SetRouteResponseSelectionExpression(std::forward<RouteResponseSelectionExpressionT>(value));
273 return *this;
274 }
276
278
281 inline const Aws::String& GetTarget() const { return m_target; }
282 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
283 template <typename TargetT = Aws::String>
284 void SetTarget(TargetT&& value) {
285 m_targetHasBeenSet = true;
286 m_target = std::forward<TargetT>(value);
287 }
288 template <typename TargetT = Aws::String>
289 UpdateRouteRequest& WithTarget(TargetT&& value) {
290 SetTarget(std::forward<TargetT>(value));
291 return *this;
292 }
294 private:
295 Aws::String m_apiId;
296
297 bool m_apiKeyRequired{false};
298
299 Aws::Vector<Aws::String> m_authorizationScopes;
300
302
303 Aws::String m_authorizerId;
304
305 Aws::String m_modelSelectionExpression;
306
307 Aws::String m_operationName;
308
310
312
313 Aws::String m_routeId;
314
315 Aws::String m_routeKey;
316
317 Aws::String m_routeResponseSelectionExpression;
318
319 Aws::String m_target;
320 bool m_apiIdHasBeenSet = false;
321 bool m_apiKeyRequiredHasBeenSet = false;
322 bool m_authorizationScopesHasBeenSet = false;
323 bool m_authorizationTypeHasBeenSet = false;
324 bool m_authorizerIdHasBeenSet = false;
325 bool m_modelSelectionExpressionHasBeenSet = false;
326 bool m_operationNameHasBeenSet = false;
327 bool m_requestModelsHasBeenSet = false;
328 bool m_requestParametersHasBeenSet = false;
329 bool m_routeIdHasBeenSet = false;
330 bool m_routeKeyHasBeenSet = false;
331 bool m_routeResponseSelectionExpressionHasBeenSet = false;
332 bool m_targetHasBeenSet = false;
333};
334
335} // namespace Model
336} // namespace ApiGatewayV2
337} // namespace Aws
UpdateRouteRequest & WithRequestParameters(RequestParametersT &&value)
void SetRouteResponseSelectionExpression(RouteResponseSelectionExpressionT &&value)
UpdateRouteRequest & WithRouteKey(RouteKeyT &&value)
AWS_APIGATEWAYV2_API UpdateRouteRequest()=default
const Aws::String & GetModelSelectionExpression() const
void SetRequestParameters(RequestParametersT &&value)
void SetAuthorizationScopes(AuthorizationScopesT &&value)
UpdateRouteRequest & WithRequestModels(RequestModelsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetRequestModels() const
virtual const char * GetServiceRequestName() const override
UpdateRouteRequest & WithAuthorizerId(AuthorizerIdT &&value)
UpdateRouteRequest & WithRouteId(RouteIdT &&value)
UpdateRouteRequest & WithTarget(TargetT &&value)
const Aws::Map< Aws::String, ParameterConstraints > & GetRequestParameters() const
UpdateRouteRequest & AddRequestModels(RequestModelsKeyT &&key, RequestModelsValueT &&value)
UpdateRouteRequest & AddRequestParameters(RequestParametersKeyT &&key, RequestParametersValueT &&value)
const Aws::Vector< Aws::String > & GetAuthorizationScopes() const
void SetAuthorizationType(AuthorizationType value)
AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override
UpdateRouteRequest & WithApiKeyRequired(bool value)
UpdateRouteRequest & WithRouteResponseSelectionExpression(RouteResponseSelectionExpressionT &&value)
UpdateRouteRequest & AddAuthorizationScopes(AuthorizationScopesT &&value)
UpdateRouteRequest & WithAuthorizationScopes(AuthorizationScopesT &&value)
const Aws::String & GetRouteResponseSelectionExpression() const
UpdateRouteRequest & WithAuthorizationType(AuthorizationType value)
UpdateRouteRequest & WithOperationName(OperationNameT &&value)
void SetModelSelectionExpression(ModelSelectionExpressionT &&value)
UpdateRouteRequest & WithModelSelectionExpression(ModelSelectionExpressionT &&value)
UpdateRouteRequest & WithApiId(ApiIdT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector