AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRouteRequest.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
30 {
31 public:
32 AWS_APIGATEWAYV2_API CreateRouteRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateRoute"; }
39
40 AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override;
41
42
44
47 inline const Aws::String& GetApiId() const{ return m_apiId; }
48 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
49 inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
50 inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
51 inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
52 inline CreateRouteRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
53 inline CreateRouteRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
54 inline CreateRouteRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
56
58
62 inline bool GetApiKeyRequired() const{ return m_apiKeyRequired; }
63 inline bool ApiKeyRequiredHasBeenSet() const { return m_apiKeyRequiredHasBeenSet; }
64 inline void SetApiKeyRequired(bool value) { m_apiKeyRequiredHasBeenSet = true; m_apiKeyRequired = value; }
65 inline CreateRouteRequest& WithApiKeyRequired(bool value) { SetApiKeyRequired(value); return *this;}
67
69
72 inline const Aws::Vector<Aws::String>& GetAuthorizationScopes() const{ return m_authorizationScopes; }
73 inline bool AuthorizationScopesHasBeenSet() const { return m_authorizationScopesHasBeenSet; }
74 inline void SetAuthorizationScopes(const Aws::Vector<Aws::String>& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes = value; }
75 inline void SetAuthorizationScopes(Aws::Vector<Aws::String>&& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes = std::move(value); }
78 inline CreateRouteRequest& AddAuthorizationScopes(const Aws::String& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes.push_back(value); return *this; }
79 inline CreateRouteRequest& AddAuthorizationScopes(Aws::String&& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes.push_back(std::move(value)); return *this; }
80 inline CreateRouteRequest& AddAuthorizationScopes(const char* value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes.push_back(value); return *this; }
82
84
91 inline const AuthorizationType& GetAuthorizationType() const{ return m_authorizationType; }
92 inline bool AuthorizationTypeHasBeenSet() const { return m_authorizationTypeHasBeenSet; }
93 inline void SetAuthorizationType(const AuthorizationType& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = value; }
94 inline void SetAuthorizationType(AuthorizationType&& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = std::move(value); }
96 inline CreateRouteRequest& WithAuthorizationType(AuthorizationType&& value) { SetAuthorizationType(std::move(value)); return *this;}
98
100
105 inline const Aws::String& GetAuthorizerId() const{ return m_authorizerId; }
106 inline bool AuthorizerIdHasBeenSet() const { return m_authorizerIdHasBeenSet; }
107 inline void SetAuthorizerId(const Aws::String& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = value; }
108 inline void SetAuthorizerId(Aws::String&& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = std::move(value); }
109 inline void SetAuthorizerId(const char* value) { m_authorizerIdHasBeenSet = true; m_authorizerId.assign(value); }
110 inline CreateRouteRequest& WithAuthorizerId(const Aws::String& value) { SetAuthorizerId(value); return *this;}
111 inline CreateRouteRequest& WithAuthorizerId(Aws::String&& value) { SetAuthorizerId(std::move(value)); return *this;}
112 inline CreateRouteRequest& WithAuthorizerId(const char* value) { SetAuthorizerId(value); return *this;}
114
116
120 inline const Aws::String& GetModelSelectionExpression() const{ return m_modelSelectionExpression; }
121 inline bool ModelSelectionExpressionHasBeenSet() const { return m_modelSelectionExpressionHasBeenSet; }
122 inline void SetModelSelectionExpression(const Aws::String& value) { m_modelSelectionExpressionHasBeenSet = true; m_modelSelectionExpression = value; }
123 inline void SetModelSelectionExpression(Aws::String&& value) { m_modelSelectionExpressionHasBeenSet = true; m_modelSelectionExpression = std::move(value); }
124 inline void SetModelSelectionExpression(const char* value) { m_modelSelectionExpressionHasBeenSet = true; m_modelSelectionExpression.assign(value); }
127 inline CreateRouteRequest& WithModelSelectionExpression(const char* value) { SetModelSelectionExpression(value); return *this;}
129
131
134 inline const Aws::String& GetOperationName() const{ return m_operationName; }
135 inline bool OperationNameHasBeenSet() const { return m_operationNameHasBeenSet; }
136 inline void SetOperationName(const Aws::String& value) { m_operationNameHasBeenSet = true; m_operationName = value; }
137 inline void SetOperationName(Aws::String&& value) { m_operationNameHasBeenSet = true; m_operationName = std::move(value); }
138 inline void SetOperationName(const char* value) { m_operationNameHasBeenSet = true; m_operationName.assign(value); }
139 inline CreateRouteRequest& WithOperationName(const Aws::String& value) { SetOperationName(value); return *this;}
140 inline CreateRouteRequest& WithOperationName(Aws::String&& value) { SetOperationName(std::move(value)); return *this;}
141 inline CreateRouteRequest& WithOperationName(const char* value) { SetOperationName(value); return *this;}
143
145
148 inline const Aws::Map<Aws::String, Aws::String>& GetRequestModels() const{ return m_requestModels; }
149 inline bool RequestModelsHasBeenSet() const { return m_requestModelsHasBeenSet; }
150 inline void SetRequestModels(const Aws::Map<Aws::String, Aws::String>& value) { m_requestModelsHasBeenSet = true; m_requestModels = value; }
151 inline void SetRequestModels(Aws::Map<Aws::String, Aws::String>&& value) { m_requestModelsHasBeenSet = true; m_requestModels = std::move(value); }
154 inline CreateRouteRequest& AddRequestModels(const Aws::String& key, const Aws::String& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(key, value); return *this; }
155 inline CreateRouteRequest& AddRequestModels(Aws::String&& key, const Aws::String& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(std::move(key), value); return *this; }
156 inline CreateRouteRequest& AddRequestModels(const Aws::String& key, Aws::String&& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(key, std::move(value)); return *this; }
157 inline CreateRouteRequest& AddRequestModels(Aws::String&& key, Aws::String&& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(std::move(key), std::move(value)); return *this; }
158 inline CreateRouteRequest& AddRequestModels(const char* key, Aws::String&& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(key, std::move(value)); return *this; }
159 inline CreateRouteRequest& AddRequestModels(Aws::String&& key, const char* value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(std::move(key), value); return *this; }
160 inline CreateRouteRequest& AddRequestModels(const char* key, const char* value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(key, value); return *this; }
162
164
167 inline const Aws::Map<Aws::String, ParameterConstraints>& GetRequestParameters() const{ return m_requestParameters; }
168 inline bool RequestParametersHasBeenSet() const { return m_requestParametersHasBeenSet; }
169 inline void SetRequestParameters(const Aws::Map<Aws::String, ParameterConstraints>& value) { m_requestParametersHasBeenSet = true; m_requestParameters = value; }
170 inline void SetRequestParameters(Aws::Map<Aws::String, ParameterConstraints>&& value) { m_requestParametersHasBeenSet = true; m_requestParameters = std::move(value); }
173 inline CreateRouteRequest& AddRequestParameters(const Aws::String& key, const ParameterConstraints& value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(key, value); return *this; }
174 inline CreateRouteRequest& AddRequestParameters(Aws::String&& key, const ParameterConstraints& value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(std::move(key), value); return *this; }
175 inline CreateRouteRequest& AddRequestParameters(const Aws::String& key, ParameterConstraints&& value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(key, std::move(value)); return *this; }
176 inline CreateRouteRequest& AddRequestParameters(Aws::String&& key, ParameterConstraints&& value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(std::move(key), std::move(value)); return *this; }
177 inline CreateRouteRequest& AddRequestParameters(const char* key, ParameterConstraints&& value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(key, std::move(value)); return *this; }
178 inline CreateRouteRequest& AddRequestParameters(const char* key, const ParameterConstraints& value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(key, value); return *this; }
180
182
185 inline const Aws::String& GetRouteKey() const{ return m_routeKey; }
186 inline bool RouteKeyHasBeenSet() const { return m_routeKeyHasBeenSet; }
187 inline void SetRouteKey(const Aws::String& value) { m_routeKeyHasBeenSet = true; m_routeKey = value; }
188 inline void SetRouteKey(Aws::String&& value) { m_routeKeyHasBeenSet = true; m_routeKey = std::move(value); }
189 inline void SetRouteKey(const char* value) { m_routeKeyHasBeenSet = true; m_routeKey.assign(value); }
190 inline CreateRouteRequest& WithRouteKey(const Aws::String& value) { SetRouteKey(value); return *this;}
191 inline CreateRouteRequest& WithRouteKey(Aws::String&& value) { SetRouteKey(std::move(value)); return *this;}
192 inline CreateRouteRequest& WithRouteKey(const char* value) { SetRouteKey(value); return *this;}
194
196
200 inline const Aws::String& GetRouteResponseSelectionExpression() const{ return m_routeResponseSelectionExpression; }
201 inline bool RouteResponseSelectionExpressionHasBeenSet() const { return m_routeResponseSelectionExpressionHasBeenSet; }
202 inline void SetRouteResponseSelectionExpression(const Aws::String& value) { m_routeResponseSelectionExpressionHasBeenSet = true; m_routeResponseSelectionExpression = value; }
203 inline void SetRouteResponseSelectionExpression(Aws::String&& value) { m_routeResponseSelectionExpressionHasBeenSet = true; m_routeResponseSelectionExpression = std::move(value); }
204 inline void SetRouteResponseSelectionExpression(const char* value) { m_routeResponseSelectionExpressionHasBeenSet = true; m_routeResponseSelectionExpression.assign(value); }
209
211
214 inline const Aws::String& GetTarget() const{ return m_target; }
215 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
216 inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; }
217 inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
218 inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); }
219 inline CreateRouteRequest& WithTarget(const Aws::String& value) { SetTarget(value); return *this;}
220 inline CreateRouteRequest& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;}
221 inline CreateRouteRequest& WithTarget(const char* value) { SetTarget(value); return *this;}
223 private:
224
225 Aws::String m_apiId;
226 bool m_apiIdHasBeenSet = false;
227
228 bool m_apiKeyRequired;
229 bool m_apiKeyRequiredHasBeenSet = false;
230
231 Aws::Vector<Aws::String> m_authorizationScopes;
232 bool m_authorizationScopesHasBeenSet = false;
233
234 AuthorizationType m_authorizationType;
235 bool m_authorizationTypeHasBeenSet = false;
236
237 Aws::String m_authorizerId;
238 bool m_authorizerIdHasBeenSet = false;
239
240 Aws::String m_modelSelectionExpression;
241 bool m_modelSelectionExpressionHasBeenSet = false;
242
243 Aws::String m_operationName;
244 bool m_operationNameHasBeenSet = false;
245
247 bool m_requestModelsHasBeenSet = false;
248
250 bool m_requestParametersHasBeenSet = false;
251
252 Aws::String m_routeKey;
253 bool m_routeKeyHasBeenSet = false;
254
255 Aws::String m_routeResponseSelectionExpression;
256 bool m_routeResponseSelectionExpressionHasBeenSet = false;
257
258 Aws::String m_target;
259 bool m_targetHasBeenSet = false;
260 };
261
262} // namespace Model
263} // namespace ApiGatewayV2
264} // namespace Aws
CreateRouteRequest & WithRequestModels(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetRequestModels() const
CreateRouteRequest & WithRequestParameters(Aws::Map< Aws::String, ParameterConstraints > &&value)
CreateRouteRequest & WithTarget(const char *value)
void SetRequestModels(Aws::Map< Aws::String, Aws::String > &&value)
CreateRouteRequest & WithModelSelectionExpression(const Aws::String &value)
CreateRouteRequest & WithRouteResponseSelectionExpression(Aws::String &&value)
void SetAuthorizationScopes(Aws::Vector< Aws::String > &&value)
void SetAuthorizationType(const AuthorizationType &value)
CreateRouteRequest & WithAuthorizationScopes(Aws::Vector< Aws::String > &&value)
CreateRouteRequest & WithRouteKey(Aws::String &&value)
void SetRequestModels(const Aws::Map< Aws::String, Aws::String > &value)
CreateRouteRequest & AddRequestParameters(Aws::String &&key, const ParameterConstraints &value)
CreateRouteRequest & AddRequestParameters(const Aws::String &key, const ParameterConstraints &value)
virtual const char * GetServiceRequestName() const override
CreateRouteRequest & AddAuthorizationScopes(const Aws::String &value)
CreateRouteRequest & WithOperationName(const Aws::String &value)
CreateRouteRequest & WithApiId(const Aws::String &value)
const Aws::String & GetModelSelectionExpression() const
CreateRouteRequest & WithRouteResponseSelectionExpression(const char *value)
CreateRouteRequest & WithTarget(Aws::String &&value)
CreateRouteRequest & WithModelSelectionExpression(Aws::String &&value)
CreateRouteRequest & WithRequestModels(const Aws::Map< Aws::String, Aws::String > &value)
CreateRouteRequest & AddRequestModels(Aws::String &&key, Aws::String &&value)
CreateRouteRequest & WithTarget(const Aws::String &value)
CreateRouteRequest & AddRequestModels(const Aws::String &key, const Aws::String &value)
CreateRouteRequest & WithAuthorizerId(const Aws::String &value)
void SetRouteResponseSelectionExpression(const Aws::String &value)
CreateRouteRequest & WithApiKeyRequired(bool value)
CreateRouteRequest & WithApiId(const char *value)
CreateRouteRequest & AddRequestModels(Aws::String &&key, const char *value)
CreateRouteRequest & AddRequestParameters(const Aws::String &key, ParameterConstraints &&value)
CreateRouteRequest & WithRouteKey(const char *value)
void SetAuthorizationScopes(const Aws::Vector< Aws::String > &value)
CreateRouteRequest & WithAuthorizationScopes(const Aws::Vector< Aws::String > &value)
CreateRouteRequest & WithOperationName(Aws::String &&value)
CreateRouteRequest & AddRequestModels(const Aws::String &key, Aws::String &&value)
CreateRouteRequest & WithAuthorizationType(const AuthorizationType &value)
void SetRouteResponseSelectionExpression(const char *value)
CreateRouteRequest & WithAuthorizationType(AuthorizationType &&value)
void SetAuthorizationType(AuthorizationType &&value)
CreateRouteRequest & AddRequestParameters(const char *key, const ParameterConstraints &value)
void SetRequestParameters(Aws::Map< Aws::String, ParameterConstraints > &&value)
CreateRouteRequest & WithRouteKey(const Aws::String &value)
void SetOperationName(const Aws::String &value)
void SetRouteResponseSelectionExpression(Aws::String &&value)
CreateRouteRequest & WithModelSelectionExpression(const char *value)
CreateRouteRequest & WithAuthorizerId(const char *value)
CreateRouteRequest & WithRouteResponseSelectionExpression(const Aws::String &value)
CreateRouteRequest & AddAuthorizationScopes(const char *value)
CreateRouteRequest & WithOperationName(const char *value)
CreateRouteRequest & WithRequestParameters(const Aws::Map< Aws::String, ParameterConstraints > &value)
CreateRouteRequest & AddAuthorizationScopes(Aws::String &&value)
const Aws::Map< Aws::String, ParameterConstraints > & GetRequestParameters() const
CreateRouteRequest & AddRequestModels(const char *key, Aws::String &&value)
void SetAuthorizerId(const Aws::String &value)
CreateRouteRequest & WithAuthorizerId(Aws::String &&value)
CreateRouteRequest & AddRequestModels(Aws::String &&key, const Aws::String &value)
CreateRouteRequest & WithApiId(Aws::String &&value)
const Aws::String & GetRouteResponseSelectionExpression() const
void SetRequestParameters(const Aws::Map< Aws::String, ParameterConstraints > &value)
AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetAuthorizationScopes() const
CreateRouteRequest & AddRequestParameters(const char *key, ParameterConstraints &&value)
void SetModelSelectionExpression(const Aws::String &value)
const AuthorizationType & GetAuthorizationType() const
CreateRouteRequest & AddRequestModels(const char *key, const char *value)
CreateRouteRequest & AddRequestParameters(Aws::String &&key, ParameterConstraints &&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