AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Route.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/apigatewayv2/model/AuthorizationType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/apigatewayv2/model/ParameterConstraints.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ApiGatewayV2
26{
27namespace Model
28{
29
35 class Route
36 {
37 public:
38 AWS_APIGATEWAYV2_API Route();
39 AWS_APIGATEWAYV2_API Route(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APIGATEWAYV2_API Route& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline bool GetApiGatewayManaged() const{ return m_apiGatewayManaged; }
51 inline bool ApiGatewayManagedHasBeenSet() const { return m_apiGatewayManagedHasBeenSet; }
52 inline void SetApiGatewayManaged(bool value) { m_apiGatewayManagedHasBeenSet = true; m_apiGatewayManaged = value; }
53 inline Route& WithApiGatewayManaged(bool value) { SetApiGatewayManaged(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 Route& WithApiKeyRequired(bool value) { SetApiKeyRequired(value); return *this;}
66
68
77 inline const Aws::Vector<Aws::String>& GetAuthorizationScopes() const{ return m_authorizationScopes; }
78 inline bool AuthorizationScopesHasBeenSet() const { return m_authorizationScopesHasBeenSet; }
79 inline void SetAuthorizationScopes(const Aws::Vector<Aws::String>& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes = value; }
80 inline void SetAuthorizationScopes(Aws::Vector<Aws::String>&& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes = std::move(value); }
82 inline Route& WithAuthorizationScopes(Aws::Vector<Aws::String>&& value) { SetAuthorizationScopes(std::move(value)); return *this;}
83 inline Route& AddAuthorizationScopes(const Aws::String& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes.push_back(value); return *this; }
84 inline Route& AddAuthorizationScopes(Aws::String&& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes.push_back(std::move(value)); return *this; }
85 inline Route& AddAuthorizationScopes(const char* value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes.push_back(value); return *this; }
87
89
96 inline const AuthorizationType& GetAuthorizationType() const{ return m_authorizationType; }
97 inline bool AuthorizationTypeHasBeenSet() const { return m_authorizationTypeHasBeenSet; }
98 inline void SetAuthorizationType(const AuthorizationType& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = value; }
99 inline void SetAuthorizationType(AuthorizationType&& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = std::move(value); }
100 inline Route& WithAuthorizationType(const AuthorizationType& value) { SetAuthorizationType(value); return *this;}
101 inline Route& WithAuthorizationType(AuthorizationType&& value) { SetAuthorizationType(std::move(value)); return *this;}
103
105
110 inline const Aws::String& GetAuthorizerId() const{ return m_authorizerId; }
111 inline bool AuthorizerIdHasBeenSet() const { return m_authorizerIdHasBeenSet; }
112 inline void SetAuthorizerId(const Aws::String& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = value; }
113 inline void SetAuthorizerId(Aws::String&& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = std::move(value); }
114 inline void SetAuthorizerId(const char* value) { m_authorizerIdHasBeenSet = true; m_authorizerId.assign(value); }
115 inline Route& WithAuthorizerId(const Aws::String& value) { SetAuthorizerId(value); return *this;}
116 inline Route& WithAuthorizerId(Aws::String&& value) { SetAuthorizerId(std::move(value)); return *this;}
117 inline Route& WithAuthorizerId(const char* value) { SetAuthorizerId(value); return *this;}
119
121
125 inline const Aws::String& GetModelSelectionExpression() const{ return m_modelSelectionExpression; }
126 inline bool ModelSelectionExpressionHasBeenSet() const { return m_modelSelectionExpressionHasBeenSet; }
127 inline void SetModelSelectionExpression(const Aws::String& value) { m_modelSelectionExpressionHasBeenSet = true; m_modelSelectionExpression = value; }
128 inline void SetModelSelectionExpression(Aws::String&& value) { m_modelSelectionExpressionHasBeenSet = true; m_modelSelectionExpression = std::move(value); }
129 inline void SetModelSelectionExpression(const char* value) { m_modelSelectionExpressionHasBeenSet = true; m_modelSelectionExpression.assign(value); }
130 inline Route& WithModelSelectionExpression(const Aws::String& value) { SetModelSelectionExpression(value); return *this;}
131 inline Route& WithModelSelectionExpression(Aws::String&& value) { SetModelSelectionExpression(std::move(value)); return *this;}
132 inline Route& WithModelSelectionExpression(const char* value) { SetModelSelectionExpression(value); return *this;}
134
136
139 inline const Aws::String& GetOperationName() const{ return m_operationName; }
140 inline bool OperationNameHasBeenSet() const { return m_operationNameHasBeenSet; }
141 inline void SetOperationName(const Aws::String& value) { m_operationNameHasBeenSet = true; m_operationName = value; }
142 inline void SetOperationName(Aws::String&& value) { m_operationNameHasBeenSet = true; m_operationName = std::move(value); }
143 inline void SetOperationName(const char* value) { m_operationNameHasBeenSet = true; m_operationName.assign(value); }
144 inline Route& WithOperationName(const Aws::String& value) { SetOperationName(value); return *this;}
145 inline Route& WithOperationName(Aws::String&& value) { SetOperationName(std::move(value)); return *this;}
146 inline Route& WithOperationName(const char* value) { SetOperationName(value); return *this;}
148
150
153 inline const Aws::Map<Aws::String, Aws::String>& GetRequestModels() const{ return m_requestModels; }
154 inline bool RequestModelsHasBeenSet() const { return m_requestModelsHasBeenSet; }
155 inline void SetRequestModels(const Aws::Map<Aws::String, Aws::String>& value) { m_requestModelsHasBeenSet = true; m_requestModels = value; }
156 inline void SetRequestModels(Aws::Map<Aws::String, Aws::String>&& value) { m_requestModelsHasBeenSet = true; m_requestModels = std::move(value); }
157 inline Route& WithRequestModels(const Aws::Map<Aws::String, Aws::String>& value) { SetRequestModels(value); return *this;}
158 inline Route& WithRequestModels(Aws::Map<Aws::String, Aws::String>&& value) { SetRequestModels(std::move(value)); return *this;}
159 inline Route& AddRequestModels(const Aws::String& key, const Aws::String& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(key, value); return *this; }
160 inline Route& AddRequestModels(Aws::String&& key, const Aws::String& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(std::move(key), value); return *this; }
161 inline Route& AddRequestModels(const Aws::String& key, Aws::String&& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(key, std::move(value)); return *this; }
162 inline Route& AddRequestModels(Aws::String&& key, Aws::String&& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(std::move(key), std::move(value)); return *this; }
163 inline Route& AddRequestModels(const char* key, Aws::String&& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(key, std::move(value)); return *this; }
164 inline Route& AddRequestModels(Aws::String&& key, const char* value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(std::move(key), value); return *this; }
165 inline Route& AddRequestModels(const char* key, const char* value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(key, value); return *this; }
167
169
172 inline const Aws::Map<Aws::String, ParameterConstraints>& GetRequestParameters() const{ return m_requestParameters; }
173 inline bool RequestParametersHasBeenSet() const { return m_requestParametersHasBeenSet; }
174 inline void SetRequestParameters(const Aws::Map<Aws::String, ParameterConstraints>& value) { m_requestParametersHasBeenSet = true; m_requestParameters = value; }
175 inline void SetRequestParameters(Aws::Map<Aws::String, ParameterConstraints>&& value) { m_requestParametersHasBeenSet = true; m_requestParameters = std::move(value); }
178 inline Route& AddRequestParameters(const Aws::String& key, const ParameterConstraints& value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(key, value); return *this; }
179 inline Route& AddRequestParameters(Aws::String&& key, const ParameterConstraints& value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(std::move(key), value); return *this; }
180 inline Route& AddRequestParameters(const Aws::String& key, ParameterConstraints&& value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(key, std::move(value)); return *this; }
181 inline Route& AddRequestParameters(Aws::String&& key, ParameterConstraints&& value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(std::move(key), std::move(value)); return *this; }
182 inline Route& AddRequestParameters(const char* key, ParameterConstraints&& value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(key, std::move(value)); return *this; }
183 inline Route& AddRequestParameters(const char* key, const ParameterConstraints& value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(key, value); return *this; }
185
187
190 inline const Aws::String& GetRouteId() const{ return m_routeId; }
191 inline bool RouteIdHasBeenSet() const { return m_routeIdHasBeenSet; }
192 inline void SetRouteId(const Aws::String& value) { m_routeIdHasBeenSet = true; m_routeId = value; }
193 inline void SetRouteId(Aws::String&& value) { m_routeIdHasBeenSet = true; m_routeId = std::move(value); }
194 inline void SetRouteId(const char* value) { m_routeIdHasBeenSet = true; m_routeId.assign(value); }
195 inline Route& WithRouteId(const Aws::String& value) { SetRouteId(value); return *this;}
196 inline Route& WithRouteId(Aws::String&& value) { SetRouteId(std::move(value)); return *this;}
197 inline Route& WithRouteId(const char* value) { SetRouteId(value); return *this;}
199
201
204 inline const Aws::String& GetRouteKey() const{ return m_routeKey; }
205 inline bool RouteKeyHasBeenSet() const { return m_routeKeyHasBeenSet; }
206 inline void SetRouteKey(const Aws::String& value) { m_routeKeyHasBeenSet = true; m_routeKey = value; }
207 inline void SetRouteKey(Aws::String&& value) { m_routeKeyHasBeenSet = true; m_routeKey = std::move(value); }
208 inline void SetRouteKey(const char* value) { m_routeKeyHasBeenSet = true; m_routeKey.assign(value); }
209 inline Route& WithRouteKey(const Aws::String& value) { SetRouteKey(value); return *this;}
210 inline Route& WithRouteKey(Aws::String&& value) { SetRouteKey(std::move(value)); return *this;}
211 inline Route& WithRouteKey(const char* value) { SetRouteKey(value); return *this;}
213
215
219 inline const Aws::String& GetRouteResponseSelectionExpression() const{ return m_routeResponseSelectionExpression; }
220 inline bool RouteResponseSelectionExpressionHasBeenSet() const { return m_routeResponseSelectionExpressionHasBeenSet; }
221 inline void SetRouteResponseSelectionExpression(const Aws::String& value) { m_routeResponseSelectionExpressionHasBeenSet = true; m_routeResponseSelectionExpression = value; }
222 inline void SetRouteResponseSelectionExpression(Aws::String&& value) { m_routeResponseSelectionExpressionHasBeenSet = true; m_routeResponseSelectionExpression = std::move(value); }
223 inline void SetRouteResponseSelectionExpression(const char* value) { m_routeResponseSelectionExpressionHasBeenSet = true; m_routeResponseSelectionExpression.assign(value); }
226 inline Route& WithRouteResponseSelectionExpression(const char* value) { SetRouteResponseSelectionExpression(value); return *this;}
228
230
233 inline const Aws::String& GetTarget() const{ return m_target; }
234 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
235 inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; }
236 inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
237 inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); }
238 inline Route& WithTarget(const Aws::String& value) { SetTarget(value); return *this;}
239 inline Route& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;}
240 inline Route& WithTarget(const char* value) { SetTarget(value); return *this;}
242 private:
243
244 bool m_apiGatewayManaged;
245 bool m_apiGatewayManagedHasBeenSet = false;
246
247 bool m_apiKeyRequired;
248 bool m_apiKeyRequiredHasBeenSet = false;
249
250 Aws::Vector<Aws::String> m_authorizationScopes;
251 bool m_authorizationScopesHasBeenSet = false;
252
253 AuthorizationType m_authorizationType;
254 bool m_authorizationTypeHasBeenSet = false;
255
256 Aws::String m_authorizerId;
257 bool m_authorizerIdHasBeenSet = false;
258
259 Aws::String m_modelSelectionExpression;
260 bool m_modelSelectionExpressionHasBeenSet = false;
261
262 Aws::String m_operationName;
263 bool m_operationNameHasBeenSet = false;
264
266 bool m_requestModelsHasBeenSet = false;
267
269 bool m_requestParametersHasBeenSet = false;
270
271 Aws::String m_routeId;
272 bool m_routeIdHasBeenSet = false;
273
274 Aws::String m_routeKey;
275 bool m_routeKeyHasBeenSet = false;
276
277 Aws::String m_routeResponseSelectionExpression;
278 bool m_routeResponseSelectionExpressionHasBeenSet = false;
279
280 Aws::String m_target;
281 bool m_targetHasBeenSet = false;
282 };
283
284} // namespace Model
285} // namespace ApiGatewayV2
286} // namespace Aws
Route & AddRequestModels(const char *key, const char *value)
Definition Route.h:165
Route & WithRouteKey(const char *value)
Definition Route.h:211
Route & AddRequestParameters(Aws::String &&key, const ParameterConstraints &value)
Definition Route.h:179
Route & WithRequestParameters(const Aws::Map< Aws::String, ParameterConstraints > &value)
Definition Route.h:176
Route & WithOperationName(const char *value)
Definition Route.h:146
const Aws::String & GetAuthorizerId() const
Definition Route.h:110
void SetApiGatewayManaged(bool value)
Definition Route.h:52
void SetAuthorizationScopes(const Aws::Vector< Aws::String > &value)
Definition Route.h:79
void SetRouteResponseSelectionExpression(const Aws::String &value)
Definition Route.h:221
Route & WithRouteKey(Aws::String &&value)
Definition Route.h:210
Route & WithAuthorizationScopes(const Aws::Vector< Aws::String > &value)
Definition Route.h:81
const Aws::String & GetRouteKey() const
Definition Route.h:204
const Aws::String & GetOperationName() const
Definition Route.h:139
Route & WithRouteKey(const Aws::String &value)
Definition Route.h:209
bool ApiGatewayManagedHasBeenSet() const
Definition Route.h:51
void SetModelSelectionExpression(Aws::String &&value)
Definition Route.h:128
const Aws::Map< Aws::String, ParameterConstraints > & GetRequestParameters() const
Definition Route.h:172
Route & WithTarget(const Aws::String &value)
Definition Route.h:238
void SetRouteKey(const char *value)
Definition Route.h:208
bool RouteKeyHasBeenSet() const
Definition Route.h:205
void SetRequestModels(const Aws::Map< Aws::String, Aws::String > &value)
Definition Route.h:155
bool AuthorizationScopesHasBeenSet() const
Definition Route.h:78
void SetAuthorizationType(const AuthorizationType &value)
Definition Route.h:98
Route & AddAuthorizationScopes(const Aws::String &value)
Definition Route.h:83
const AuthorizationType & GetAuthorizationType() const
Definition Route.h:96
const Aws::Vector< Aws::String > & GetAuthorizationScopes() const
Definition Route.h:77
AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const
Route & WithRouteResponseSelectionExpression(const Aws::String &value)
Definition Route.h:224
Route & AddAuthorizationScopes(const char *value)
Definition Route.h:85
void SetAuthorizerId(Aws::String &&value)
Definition Route.h:113
Route & WithApiKeyRequired(bool value)
Definition Route.h:64
Route & WithOperationName(const Aws::String &value)
Definition Route.h:144
bool RouteResponseSelectionExpressionHasBeenSet() const
Definition Route.h:220
Route & AddRequestParameters(Aws::String &&key, ParameterConstraints &&value)
Definition Route.h:181
bool AuthorizationTypeHasBeenSet() const
Definition Route.h:97
Route & WithTarget(const char *value)
Definition Route.h:240
void SetRequestParameters(Aws::Map< Aws::String, ParameterConstraints > &&value)
Definition Route.h:175
const Aws::String & GetModelSelectionExpression() const
Definition Route.h:125
void SetApiKeyRequired(bool value)
Definition Route.h:63
Route & WithAuthorizerId(const char *value)
Definition Route.h:117
bool RequestParametersHasBeenSet() const
Definition Route.h:173
void SetOperationName(const Aws::String &value)
Definition Route.h:141
Route & WithRouteId(Aws::String &&value)
Definition Route.h:196
void SetTarget(const char *value)
Definition Route.h:237
void SetRouteResponseSelectionExpression(const char *value)
Definition Route.h:223
void SetTarget(Aws::String &&value)
Definition Route.h:236
Route & WithModelSelectionExpression(const Aws::String &value)
Definition Route.h:130
Route & AddRequestModels(const char *key, Aws::String &&value)
Definition Route.h:163
Route & WithOperationName(Aws::String &&value)
Definition Route.h:145
void SetRouteId(const char *value)
Definition Route.h:194
void SetAuthorizationScopes(Aws::Vector< Aws::String > &&value)
Definition Route.h:80
AWS_APIGATEWAYV2_API Route()
const Aws::String & GetRouteId() const
Definition Route.h:190
void SetOperationName(Aws::String &&value)
Definition Route.h:142
Route & WithAuthorizationType(AuthorizationType &&value)
Definition Route.h:101
void SetRequestModels(Aws::Map< Aws::String, Aws::String > &&value)
Definition Route.h:156
Route & AddRequestParameters(const Aws::String &key, const ParameterConstraints &value)
Definition Route.h:178
void SetOperationName(const char *value)
Definition Route.h:143
void SetTarget(const Aws::String &value)
Definition Route.h:235
const Aws::String & GetTarget() const
Definition Route.h:233
Route & AddRequestParameters(const char *key, const ParameterConstraints &value)
Definition Route.h:183
bool RouteIdHasBeenSet() const
Definition Route.h:191
Route & AddRequestModels(const Aws::String &key, Aws::String &&value)
Definition Route.h:161
void SetRouteId(Aws::String &&value)
Definition Route.h:193
bool OperationNameHasBeenSet() const
Definition Route.h:140
Route & WithAuthorizerId(const Aws::String &value)
Definition Route.h:115
Route & WithApiGatewayManaged(bool value)
Definition Route.h:53
Route & WithAuthorizerId(Aws::String &&value)
Definition Route.h:116
bool ApiKeyRequiredHasBeenSet() const
Definition Route.h:62
void SetModelSelectionExpression(const Aws::String &value)
Definition Route.h:127
bool RequestModelsHasBeenSet() const
Definition Route.h:154
void SetModelSelectionExpression(const char *value)
Definition Route.h:129
Route & AddRequestParameters(const Aws::String &key, ParameterConstraints &&value)
Definition Route.h:180
Route & WithAuthorizationScopes(Aws::Vector< Aws::String > &&value)
Definition Route.h:82
Route & WithRouteId(const Aws::String &value)
Definition Route.h:195
Route & WithAuthorizationType(const AuthorizationType &value)
Definition Route.h:100
Route & AddRequestModels(const Aws::String &key, const Aws::String &value)
Definition Route.h:159
bool ModelSelectionExpressionHasBeenSet() const
Definition Route.h:126
Route & WithRequestModels(const Aws::Map< Aws::String, Aws::String > &value)
Definition Route.h:157
Route & WithModelSelectionExpression(Aws::String &&value)
Definition Route.h:131
void SetAuthorizerId(const Aws::String &value)
Definition Route.h:112
Route & WithModelSelectionExpression(const char *value)
Definition Route.h:132
void SetAuthorizationType(AuthorizationType &&value)
Definition Route.h:99
Route & AddRequestParameters(const char *key, ParameterConstraints &&value)
Definition Route.h:182
void SetAuthorizerId(const char *value)
Definition Route.h:114
void SetRequestParameters(const Aws::Map< Aws::String, ParameterConstraints > &value)
Definition Route.h:174
Route & WithRouteId(const char *value)
Definition Route.h:197
bool TargetHasBeenSet() const
Definition Route.h:234
Route & AddRequestModels(Aws::String &&key, const char *value)
Definition Route.h:164
const Aws::Map< Aws::String, Aws::String > & GetRequestModels() const
Definition Route.h:153
void SetRouteKey(const Aws::String &value)
Definition Route.h:206
void SetRouteKey(Aws::String &&value)
Definition Route.h:207
Route & WithRouteResponseSelectionExpression(const char *value)
Definition Route.h:226
const Aws::String & GetRouteResponseSelectionExpression() const
Definition Route.h:219
void SetRouteId(const Aws::String &value)
Definition Route.h:192
Route & WithRequestParameters(Aws::Map< Aws::String, ParameterConstraints > &&value)
Definition Route.h:177
Route & AddAuthorizationScopes(Aws::String &&value)
Definition Route.h:84
Route & AddRequestModels(Aws::String &&key, Aws::String &&value)
Definition Route.h:162
AWS_APIGATEWAYV2_API Route(Aws::Utils::Json::JsonView jsonValue)
bool GetApiKeyRequired() const
Definition Route.h:61
void SetRouteResponseSelectionExpression(Aws::String &&value)
Definition Route.h:222
bool AuthorizerIdHasBeenSet() const
Definition Route.h:111
Route & AddRequestModels(Aws::String &&key, const Aws::String &value)
Definition Route.h:160
bool GetApiGatewayManaged() const
Definition Route.h:50
Route & WithRequestModels(Aws::Map< Aws::String, Aws::String > &&value)
Definition Route.h:158
AWS_APIGATEWAYV2_API Route & operator=(Aws::Utils::Json::JsonView jsonValue)
Route & WithTarget(Aws::String &&value)
Definition Route.h:239
Route & WithRouteResponseSelectionExpression(Aws::String &&value)
Definition Route.h:225
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
Aws::Utils::Json::JsonValue JsonValue