AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateRouteRequest.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/apigatewayv2/ApiGatewayV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/apigatewayv2/model/AuthorizationType.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/apigatewayv2/model/ParameterConstraints.h>
14#include <utility>
15
16namespace Aws
17{
18namespace ApiGatewayV2
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_APIGATEWAYV2_API UpdateRouteRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "UpdateRoute"; }
38
39 AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::String& GetApiId() const{ return m_apiId; }
47 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
48 inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
49 inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
50 inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
51 inline UpdateRouteRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
52 inline UpdateRouteRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
53 inline UpdateRouteRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
55
57
61 inline bool GetApiKeyRequired() const{ return m_apiKeyRequired; }
62 inline bool ApiKeyRequiredHasBeenSet() const { return m_apiKeyRequiredHasBeenSet; }
63 inline void SetApiKeyRequired(bool value) { m_apiKeyRequiredHasBeenSet = true; m_apiKeyRequired = value; }
64 inline UpdateRouteRequest& WithApiKeyRequired(bool value) { SetApiKeyRequired(value); return *this;}
66
68
71 inline const Aws::Vector<Aws::String>& GetAuthorizationScopes() const{ return m_authorizationScopes; }
72 inline bool AuthorizationScopesHasBeenSet() const { return m_authorizationScopesHasBeenSet; }
73 inline void SetAuthorizationScopes(const Aws::Vector<Aws::String>& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes = value; }
74 inline void SetAuthorizationScopes(Aws::Vector<Aws::String>&& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes = std::move(value); }
77 inline UpdateRouteRequest& AddAuthorizationScopes(const Aws::String& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes.push_back(value); return *this; }
78 inline UpdateRouteRequest& AddAuthorizationScopes(Aws::String&& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes.push_back(std::move(value)); return *this; }
79 inline UpdateRouteRequest& AddAuthorizationScopes(const char* value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes.push_back(value); return *this; }
81
83
90 inline const AuthorizationType& GetAuthorizationType() const{ return m_authorizationType; }
91 inline bool AuthorizationTypeHasBeenSet() const { return m_authorizationTypeHasBeenSet; }
92 inline void SetAuthorizationType(const AuthorizationType& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = value; }
93 inline void SetAuthorizationType(AuthorizationType&& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = std::move(value); }
95 inline UpdateRouteRequest& WithAuthorizationType(AuthorizationType&& value) { SetAuthorizationType(std::move(value)); return *this;}
97
99
104 inline const Aws::String& GetAuthorizerId() const{ return m_authorizerId; }
105 inline bool AuthorizerIdHasBeenSet() const { return m_authorizerIdHasBeenSet; }
106 inline void SetAuthorizerId(const Aws::String& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = value; }
107 inline void SetAuthorizerId(Aws::String&& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = std::move(value); }
108 inline void SetAuthorizerId(const char* value) { m_authorizerIdHasBeenSet = true; m_authorizerId.assign(value); }
109 inline UpdateRouteRequest& WithAuthorizerId(const Aws::String& value) { SetAuthorizerId(value); return *this;}
110 inline UpdateRouteRequest& WithAuthorizerId(Aws::String&& value) { SetAuthorizerId(std::move(value)); return *this;}
111 inline UpdateRouteRequest& WithAuthorizerId(const char* value) { SetAuthorizerId(value); return *this;}
113
115
119 inline const Aws::String& GetModelSelectionExpression() const{ return m_modelSelectionExpression; }
120 inline bool ModelSelectionExpressionHasBeenSet() const { return m_modelSelectionExpressionHasBeenSet; }
121 inline void SetModelSelectionExpression(const Aws::String& value) { m_modelSelectionExpressionHasBeenSet = true; m_modelSelectionExpression = value; }
122 inline void SetModelSelectionExpression(Aws::String&& value) { m_modelSelectionExpressionHasBeenSet = true; m_modelSelectionExpression = std::move(value); }
123 inline void SetModelSelectionExpression(const char* value) { m_modelSelectionExpressionHasBeenSet = true; m_modelSelectionExpression.assign(value); }
126 inline UpdateRouteRequest& WithModelSelectionExpression(const char* value) { SetModelSelectionExpression(value); return *this;}
128
130
133 inline const Aws::String& GetOperationName() const{ return m_operationName; }
134 inline bool OperationNameHasBeenSet() const { return m_operationNameHasBeenSet; }
135 inline void SetOperationName(const Aws::String& value) { m_operationNameHasBeenSet = true; m_operationName = value; }
136 inline void SetOperationName(Aws::String&& value) { m_operationNameHasBeenSet = true; m_operationName = std::move(value); }
137 inline void SetOperationName(const char* value) { m_operationNameHasBeenSet = true; m_operationName.assign(value); }
138 inline UpdateRouteRequest& WithOperationName(const Aws::String& value) { SetOperationName(value); return *this;}
139 inline UpdateRouteRequest& WithOperationName(Aws::String&& value) { SetOperationName(std::move(value)); return *this;}
140 inline UpdateRouteRequest& WithOperationName(const char* value) { SetOperationName(value); return *this;}
142
144
147 inline const Aws::Map<Aws::String, Aws::String>& GetRequestModels() const{ return m_requestModels; }
148 inline bool RequestModelsHasBeenSet() const { return m_requestModelsHasBeenSet; }
149 inline void SetRequestModels(const Aws::Map<Aws::String, Aws::String>& value) { m_requestModelsHasBeenSet = true; m_requestModels = value; }
150 inline void SetRequestModels(Aws::Map<Aws::String, Aws::String>&& value) { m_requestModelsHasBeenSet = true; m_requestModels = std::move(value); }
153 inline UpdateRouteRequest& AddRequestModels(const Aws::String& key, const Aws::String& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(key, value); return *this; }
154 inline UpdateRouteRequest& AddRequestModels(Aws::String&& key, const Aws::String& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(std::move(key), value); return *this; }
155 inline UpdateRouteRequest& AddRequestModels(const Aws::String& key, Aws::String&& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(key, std::move(value)); return *this; }
156 inline UpdateRouteRequest& AddRequestModels(Aws::String&& key, Aws::String&& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(std::move(key), std::move(value)); return *this; }
157 inline UpdateRouteRequest& AddRequestModels(const char* key, Aws::String&& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(key, std::move(value)); return *this; }
158 inline UpdateRouteRequest& AddRequestModels(Aws::String&& key, const char* value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(std::move(key), value); return *this; }
159 inline UpdateRouteRequest& AddRequestModels(const char* key, const char* value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(key, value); return *this; }
161
163
166 inline const Aws::Map<Aws::String, ParameterConstraints>& GetRequestParameters() const{ return m_requestParameters; }
167 inline bool RequestParametersHasBeenSet() const { return m_requestParametersHasBeenSet; }
168 inline void SetRequestParameters(const Aws::Map<Aws::String, ParameterConstraints>& value) { m_requestParametersHasBeenSet = true; m_requestParameters = value; }
169 inline void SetRequestParameters(Aws::Map<Aws::String, ParameterConstraints>&& value) { m_requestParametersHasBeenSet = true; m_requestParameters = std::move(value); }
172 inline UpdateRouteRequest& AddRequestParameters(const Aws::String& key, const ParameterConstraints& value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(key, value); return *this; }
173 inline UpdateRouteRequest& AddRequestParameters(Aws::String&& key, const ParameterConstraints& value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(std::move(key), value); return *this; }
174 inline UpdateRouteRequest& AddRequestParameters(const Aws::String& key, ParameterConstraints&& value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(key, std::move(value)); return *this; }
175 inline UpdateRouteRequest& AddRequestParameters(Aws::String&& key, ParameterConstraints&& value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(std::move(key), std::move(value)); return *this; }
176 inline UpdateRouteRequest& AddRequestParameters(const char* key, ParameterConstraints&& value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(key, std::move(value)); return *this; }
177 inline UpdateRouteRequest& AddRequestParameters(const char* key, const ParameterConstraints& value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(key, value); return *this; }
179
181
184 inline const Aws::String& GetRouteId() const{ return m_routeId; }
185 inline bool RouteIdHasBeenSet() const { return m_routeIdHasBeenSet; }
186 inline void SetRouteId(const Aws::String& value) { m_routeIdHasBeenSet = true; m_routeId = value; }
187 inline void SetRouteId(Aws::String&& value) { m_routeIdHasBeenSet = true; m_routeId = std::move(value); }
188 inline void SetRouteId(const char* value) { m_routeIdHasBeenSet = true; m_routeId.assign(value); }
189 inline UpdateRouteRequest& WithRouteId(const Aws::String& value) { SetRouteId(value); return *this;}
190 inline UpdateRouteRequest& WithRouteId(Aws::String&& value) { SetRouteId(std::move(value)); return *this;}
191 inline UpdateRouteRequest& WithRouteId(const char* value) { SetRouteId(value); return *this;}
193
195
198 inline const Aws::String& GetRouteKey() const{ return m_routeKey; }
199 inline bool RouteKeyHasBeenSet() const { return m_routeKeyHasBeenSet; }
200 inline void SetRouteKey(const Aws::String& value) { m_routeKeyHasBeenSet = true; m_routeKey = value; }
201 inline void SetRouteKey(Aws::String&& value) { m_routeKeyHasBeenSet = true; m_routeKey = std::move(value); }
202 inline void SetRouteKey(const char* value) { m_routeKeyHasBeenSet = true; m_routeKey.assign(value); }
203 inline UpdateRouteRequest& WithRouteKey(const Aws::String& value) { SetRouteKey(value); return *this;}
204 inline UpdateRouteRequest& WithRouteKey(Aws::String&& value) { SetRouteKey(std::move(value)); return *this;}
205 inline UpdateRouteRequest& WithRouteKey(const char* value) { SetRouteKey(value); return *this;}
207
209
213 inline const Aws::String& GetRouteResponseSelectionExpression() const{ return m_routeResponseSelectionExpression; }
214 inline bool RouteResponseSelectionExpressionHasBeenSet() const { return m_routeResponseSelectionExpressionHasBeenSet; }
215 inline void SetRouteResponseSelectionExpression(const Aws::String& value) { m_routeResponseSelectionExpressionHasBeenSet = true; m_routeResponseSelectionExpression = value; }
216 inline void SetRouteResponseSelectionExpression(Aws::String&& value) { m_routeResponseSelectionExpressionHasBeenSet = true; m_routeResponseSelectionExpression = std::move(value); }
217 inline void SetRouteResponseSelectionExpression(const char* value) { m_routeResponseSelectionExpressionHasBeenSet = true; m_routeResponseSelectionExpression.assign(value); }
222
224
227 inline const Aws::String& GetTarget() const{ return m_target; }
228 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
229 inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; }
230 inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
231 inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); }
232 inline UpdateRouteRequest& WithTarget(const Aws::String& value) { SetTarget(value); return *this;}
233 inline UpdateRouteRequest& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;}
234 inline UpdateRouteRequest& WithTarget(const char* value) { SetTarget(value); return *this;}
236 private:
237
238 Aws::String m_apiId;
239 bool m_apiIdHasBeenSet = false;
240
241 bool m_apiKeyRequired;
242 bool m_apiKeyRequiredHasBeenSet = false;
243
244 Aws::Vector<Aws::String> m_authorizationScopes;
245 bool m_authorizationScopesHasBeenSet = false;
246
247 AuthorizationType m_authorizationType;
248 bool m_authorizationTypeHasBeenSet = false;
249
250 Aws::String m_authorizerId;
251 bool m_authorizerIdHasBeenSet = false;
252
253 Aws::String m_modelSelectionExpression;
254 bool m_modelSelectionExpressionHasBeenSet = false;
255
256 Aws::String m_operationName;
257 bool m_operationNameHasBeenSet = false;
258
260 bool m_requestModelsHasBeenSet = false;
261
263 bool m_requestParametersHasBeenSet = false;
264
265 Aws::String m_routeId;
266 bool m_routeIdHasBeenSet = false;
267
268 Aws::String m_routeKey;
269 bool m_routeKeyHasBeenSet = false;
270
271 Aws::String m_routeResponseSelectionExpression;
272 bool m_routeResponseSelectionExpressionHasBeenSet = false;
273
274 Aws::String m_target;
275 bool m_targetHasBeenSet = false;
276 };
277
278} // namespace Model
279} // namespace ApiGatewayV2
280} // namespace Aws
UpdateRouteRequest & WithRequestParameters(const Aws::Map< Aws::String, ParameterConstraints > &value)
UpdateRouteRequest & AddRequestParameters(const Aws::String &key, const ParameterConstraints &value)
UpdateRouteRequest & WithApiId(Aws::String &&value)
UpdateRouteRequest & WithModelSelectionExpression(Aws::String &&value)
UpdateRouteRequest & WithRequestModels(Aws::Map< Aws::String, Aws::String > &&value)
UpdateRouteRequest & WithRouteId(Aws::String &&value)
UpdateRouteRequest & WithApiId(const char *value)
const Aws::String & GetModelSelectionExpression() const
UpdateRouteRequest & WithRouteResponseSelectionExpression(Aws::String &&value)
void SetAuthorizationScopes(const Aws::Vector< Aws::String > &value)
UpdateRouteRequest & WithRequestModels(const Aws::Map< Aws::String, Aws::String > &value)
void SetRequestModels(const Aws::Map< Aws::String, Aws::String > &value)
UpdateRouteRequest & AddRequestModels(const char *key, Aws::String &&value)
UpdateRouteRequest & WithRouteId(const Aws::String &value)
UpdateRouteRequest & WithRouteResponseSelectionExpression(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetRequestModels() const
UpdateRouteRequest & WithOperationName(const char *value)
virtual const char * GetServiceRequestName() const override
void SetRouteResponseSelectionExpression(const Aws::String &value)
UpdateRouteRequest & WithRouteKey(Aws::String &&value)
UpdateRouteRequest & AddRequestModels(const Aws::String &key, Aws::String &&value)
UpdateRouteRequest & WithAuthorizationScopes(const Aws::Vector< Aws::String > &value)
UpdateRouteRequest & WithRouteResponseSelectionExpression(const Aws::String &value)
UpdateRouteRequest & WithRouteKey(const char *value)
void SetAuthorizationType(const AuthorizationType &value)
UpdateRouteRequest & WithAuthorizerId(const Aws::String &value)
const Aws::Map< Aws::String, ParameterConstraints > & GetRequestParameters() const
UpdateRouteRequest & AddRequestParameters(Aws::String &&key, ParameterConstraints &&value)
UpdateRouteRequest & AddRequestModels(Aws::String &&key, Aws::String &&value)
UpdateRouteRequest & AddAuthorizationScopes(const Aws::String &value)
UpdateRouteRequest & WithAuthorizerId(const char *value)
UpdateRouteRequest & AddAuthorizationScopes(const char *value)
const AuthorizationType & GetAuthorizationType() const
const Aws::Vector< Aws::String > & GetAuthorizationScopes() const
void SetModelSelectionExpression(const Aws::String &value)
void SetRequestParameters(Aws::Map< Aws::String, ParameterConstraints > &&value)
AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override
UpdateRouteRequest & AddRequestModels(const Aws::String &key, const Aws::String &value)
UpdateRouteRequest & WithAuthorizerId(Aws::String &&value)
void SetRequestParameters(const Aws::Map< Aws::String, ParameterConstraints > &value)
UpdateRouteRequest & AddRequestParameters(const char *key, const ParameterConstraints &value)
UpdateRouteRequest & WithApiKeyRequired(bool value)
UpdateRouteRequest & WithTarget(const Aws::String &value)
UpdateRouteRequest & AddRequestModels(const char *key, const char *value)
UpdateRouteRequest & WithTarget(const char *value)
void SetAuthorizationScopes(Aws::Vector< Aws::String > &&value)
UpdateRouteRequest & WithAuthorizationScopes(Aws::Vector< Aws::String > &&value)
void SetOperationName(const Aws::String &value)
const Aws::String & GetRouteResponseSelectionExpression() const
UpdateRouteRequest & WithRouteId(const char *value)
void SetRouteResponseSelectionExpression(const char *value)
void SetAuthorizerId(const Aws::String &value)
UpdateRouteRequest & WithModelSelectionExpression(const char *value)
UpdateRouteRequest & WithAuthorizationType(AuthorizationType &&value)
UpdateRouteRequest & WithOperationName(Aws::String &&value)
UpdateRouteRequest & WithOperationName(const Aws::String &value)
UpdateRouteRequest & WithRequestParameters(Aws::Map< Aws::String, ParameterConstraints > &&value)
void SetAuthorizationType(AuthorizationType &&value)
UpdateRouteRequest & WithApiId(const Aws::String &value)
void SetRequestModels(Aws::Map< Aws::String, Aws::String > &&value)
void SetRouteResponseSelectionExpression(Aws::String &&value)
UpdateRouteRequest & AddAuthorizationScopes(Aws::String &&value)
UpdateRouteRequest & AddRequestParameters(Aws::String &&key, const ParameterConstraints &value)
UpdateRouteRequest & WithModelSelectionExpression(const Aws::String &value)
UpdateRouteRequest & WithRouteKey(const Aws::String &value)
UpdateRouteRequest & AddRequestModels(Aws::String &&key, const Aws::String &value)
UpdateRouteRequest & WithAuthorizationType(const AuthorizationType &value)
UpdateRouteRequest & AddRequestParameters(const char *key, ParameterConstraints &&value)
UpdateRouteRequest & AddRequestParameters(const Aws::String &key, ParameterConstraints &&value)
UpdateRouteRequest & WithTarget(Aws::String &&value)
UpdateRouteRequest & AddRequestModels(Aws::String &&key, const char *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