AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ApiIdT = Aws::String>
50 void SetApiId(ApiIdT&& value) { m_apiIdHasBeenSet = true; m_apiId = std::forward<ApiIdT>(value); }
51 template<typename ApiIdT = Aws::String>
52 CreateRouteRequest& WithApiId(ApiIdT&& value) { SetApiId(std::forward<ApiIdT>(value)); return *this;}
54
56
60 inline bool GetApiKeyRequired() const { return m_apiKeyRequired; }
61 inline bool ApiKeyRequiredHasBeenSet() const { return m_apiKeyRequiredHasBeenSet; }
62 inline void SetApiKeyRequired(bool value) { m_apiKeyRequiredHasBeenSet = true; m_apiKeyRequired = value; }
63 inline CreateRouteRequest& WithApiKeyRequired(bool value) { SetApiKeyRequired(value); return *this;}
65
67
70 inline const Aws::Vector<Aws::String>& GetAuthorizationScopes() const { return m_authorizationScopes; }
71 inline bool AuthorizationScopesHasBeenSet() const { return m_authorizationScopesHasBeenSet; }
72 template<typename AuthorizationScopesT = Aws::Vector<Aws::String>>
73 void SetAuthorizationScopes(AuthorizationScopesT&& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes = std::forward<AuthorizationScopesT>(value); }
74 template<typename AuthorizationScopesT = Aws::Vector<Aws::String>>
75 CreateRouteRequest& WithAuthorizationScopes(AuthorizationScopesT&& value) { SetAuthorizationScopes(std::forward<AuthorizationScopesT>(value)); return *this;}
76 template<typename AuthorizationScopesT = Aws::String>
77 CreateRouteRequest& AddAuthorizationScopes(AuthorizationScopesT&& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes.emplace_back(std::forward<AuthorizationScopesT>(value)); return *this; }
79
81
88 inline AuthorizationType GetAuthorizationType() const { return m_authorizationType; }
89 inline bool AuthorizationTypeHasBeenSet() const { return m_authorizationTypeHasBeenSet; }
90 inline void SetAuthorizationType(AuthorizationType value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = value; }
93
95
100 inline const Aws::String& GetAuthorizerId() const { return m_authorizerId; }
101 inline bool AuthorizerIdHasBeenSet() const { return m_authorizerIdHasBeenSet; }
102 template<typename AuthorizerIdT = Aws::String>
103 void SetAuthorizerId(AuthorizerIdT&& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = std::forward<AuthorizerIdT>(value); }
104 template<typename AuthorizerIdT = Aws::String>
105 CreateRouteRequest& WithAuthorizerId(AuthorizerIdT&& value) { SetAuthorizerId(std::forward<AuthorizerIdT>(value)); return *this;}
107
109
113 inline const Aws::String& GetModelSelectionExpression() const { return m_modelSelectionExpression; }
114 inline bool ModelSelectionExpressionHasBeenSet() const { return m_modelSelectionExpressionHasBeenSet; }
115 template<typename ModelSelectionExpressionT = Aws::String>
116 void SetModelSelectionExpression(ModelSelectionExpressionT&& value) { m_modelSelectionExpressionHasBeenSet = true; m_modelSelectionExpression = std::forward<ModelSelectionExpressionT>(value); }
117 template<typename ModelSelectionExpressionT = Aws::String>
118 CreateRouteRequest& WithModelSelectionExpression(ModelSelectionExpressionT&& value) { SetModelSelectionExpression(std::forward<ModelSelectionExpressionT>(value)); return *this;}
120
122
125 inline const Aws::String& GetOperationName() const { return m_operationName; }
126 inline bool OperationNameHasBeenSet() const { return m_operationNameHasBeenSet; }
127 template<typename OperationNameT = Aws::String>
128 void SetOperationName(OperationNameT&& value) { m_operationNameHasBeenSet = true; m_operationName = std::forward<OperationNameT>(value); }
129 template<typename OperationNameT = Aws::String>
130 CreateRouteRequest& WithOperationName(OperationNameT&& value) { SetOperationName(std::forward<OperationNameT>(value)); return *this;}
132
134
137 inline const Aws::Map<Aws::String, Aws::String>& GetRequestModels() const { return m_requestModels; }
138 inline bool RequestModelsHasBeenSet() const { return m_requestModelsHasBeenSet; }
139 template<typename RequestModelsT = Aws::Map<Aws::String, Aws::String>>
140 void SetRequestModels(RequestModelsT&& value) { m_requestModelsHasBeenSet = true; m_requestModels = std::forward<RequestModelsT>(value); }
141 template<typename RequestModelsT = Aws::Map<Aws::String, Aws::String>>
142 CreateRouteRequest& WithRequestModels(RequestModelsT&& value) { SetRequestModels(std::forward<RequestModelsT>(value)); return *this;}
143 template<typename RequestModelsKeyT = Aws::String, typename RequestModelsValueT = Aws::String>
144 CreateRouteRequest& AddRequestModels(RequestModelsKeyT&& key, RequestModelsValueT&& value) {
145 m_requestModelsHasBeenSet = true; m_requestModels.emplace(std::forward<RequestModelsKeyT>(key), std::forward<RequestModelsValueT>(value)); return *this;
146 }
148
150
153 inline const Aws::Map<Aws::String, ParameterConstraints>& GetRequestParameters() const { return m_requestParameters; }
154 inline bool RequestParametersHasBeenSet() const { return m_requestParametersHasBeenSet; }
155 template<typename RequestParametersT = Aws::Map<Aws::String, ParameterConstraints>>
156 void SetRequestParameters(RequestParametersT&& value) { m_requestParametersHasBeenSet = true; m_requestParameters = std::forward<RequestParametersT>(value); }
157 template<typename RequestParametersT = Aws::Map<Aws::String, ParameterConstraints>>
158 CreateRouteRequest& WithRequestParameters(RequestParametersT&& value) { SetRequestParameters(std::forward<RequestParametersT>(value)); return *this;}
159 template<typename RequestParametersKeyT = Aws::String, typename RequestParametersValueT = ParameterConstraints>
160 CreateRouteRequest& AddRequestParameters(RequestParametersKeyT&& key, RequestParametersValueT&& value) {
161 m_requestParametersHasBeenSet = true; m_requestParameters.emplace(std::forward<RequestParametersKeyT>(key), std::forward<RequestParametersValueT>(value)); return *this;
162 }
164
166
169 inline const Aws::String& GetRouteKey() const { return m_routeKey; }
170 inline bool RouteKeyHasBeenSet() const { return m_routeKeyHasBeenSet; }
171 template<typename RouteKeyT = Aws::String>
172 void SetRouteKey(RouteKeyT&& value) { m_routeKeyHasBeenSet = true; m_routeKey = std::forward<RouteKeyT>(value); }
173 template<typename RouteKeyT = Aws::String>
174 CreateRouteRequest& WithRouteKey(RouteKeyT&& value) { SetRouteKey(std::forward<RouteKeyT>(value)); return *this;}
176
178
182 inline const Aws::String& GetRouteResponseSelectionExpression() const { return m_routeResponseSelectionExpression; }
183 inline bool RouteResponseSelectionExpressionHasBeenSet() const { return m_routeResponseSelectionExpressionHasBeenSet; }
184 template<typename RouteResponseSelectionExpressionT = Aws::String>
185 void SetRouteResponseSelectionExpression(RouteResponseSelectionExpressionT&& value) { m_routeResponseSelectionExpressionHasBeenSet = true; m_routeResponseSelectionExpression = std::forward<RouteResponseSelectionExpressionT>(value); }
186 template<typename RouteResponseSelectionExpressionT = Aws::String>
187 CreateRouteRequest& WithRouteResponseSelectionExpression(RouteResponseSelectionExpressionT&& value) { SetRouteResponseSelectionExpression(std::forward<RouteResponseSelectionExpressionT>(value)); return *this;}
189
191
194 inline const Aws::String& GetTarget() const { return m_target; }
195 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
196 template<typename TargetT = Aws::String>
197 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
198 template<typename TargetT = Aws::String>
199 CreateRouteRequest& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
201 private:
202
203 Aws::String m_apiId;
204 bool m_apiIdHasBeenSet = false;
205
206 bool m_apiKeyRequired{false};
207 bool m_apiKeyRequiredHasBeenSet = false;
208
209 Aws::Vector<Aws::String> m_authorizationScopes;
210 bool m_authorizationScopesHasBeenSet = false;
211
213 bool m_authorizationTypeHasBeenSet = false;
214
215 Aws::String m_authorizerId;
216 bool m_authorizerIdHasBeenSet = false;
217
218 Aws::String m_modelSelectionExpression;
219 bool m_modelSelectionExpressionHasBeenSet = false;
220
221 Aws::String m_operationName;
222 bool m_operationNameHasBeenSet = false;
223
225 bool m_requestModelsHasBeenSet = false;
226
228 bool m_requestParametersHasBeenSet = false;
229
230 Aws::String m_routeKey;
231 bool m_routeKeyHasBeenSet = false;
232
233 Aws::String m_routeResponseSelectionExpression;
234 bool m_routeResponseSelectionExpressionHasBeenSet = false;
235
236 Aws::String m_target;
237 bool m_targetHasBeenSet = false;
238 };
239
240} // namespace Model
241} // namespace ApiGatewayV2
242} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetRequestModels() const
void SetRouteResponseSelectionExpression(RouteResponseSelectionExpressionT &&value)
CreateRouteRequest & WithRequestParameters(RequestParametersT &&value)
CreateRouteRequest & AddRequestModels(RequestModelsKeyT &&key, RequestModelsValueT &&value)
void SetAuthorizationType(AuthorizationType value)
AWS_APIGATEWAYV2_API CreateRouteRequest()=default
CreateRouteRequest & WithRouteResponseSelectionExpression(RouteResponseSelectionExpressionT &&value)
virtual const char * GetServiceRequestName() const override
CreateRouteRequest & AddRequestParameters(RequestParametersKeyT &&key, RequestParametersValueT &&value)
CreateRouteRequest & WithRequestModels(RequestModelsT &&value)
const Aws::String & GetModelSelectionExpression() const
CreateRouteRequest & WithApiId(ApiIdT &&value)
CreateRouteRequest & WithAuthorizationType(AuthorizationType value)
void SetRequestParameters(RequestParametersT &&value)
CreateRouteRequest & WithTarget(TargetT &&value)
CreateRouteRequest & WithApiKeyRequired(bool value)
void SetModelSelectionExpression(ModelSelectionExpressionT &&value)
CreateRouteRequest & AddAuthorizationScopes(AuthorizationScopesT &&value)
CreateRouteRequest & WithAuthorizerId(AuthorizerIdT &&value)
CreateRouteRequest & WithOperationName(OperationNameT &&value)
const Aws::Map< Aws::String, ParameterConstraints > & GetRequestParameters() const
const Aws::String & GetRouteResponseSelectionExpression() const
CreateRouteRequest & WithModelSelectionExpression(ModelSelectionExpressionT &&value)
void SetAuthorizationScopes(AuthorizationScopesT &&value)
AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override
CreateRouteRequest & WithAuthorizationScopes(AuthorizationScopesT &&value)
const Aws::Vector< Aws::String > & GetAuthorizationScopes() const
CreateRouteRequest & WithRouteKey(RouteKeyT &&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