AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRouteResult.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{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace ApiGatewayV2
28{
29namespace Model
30{
32 {
33 public:
34 AWS_APIGATEWAYV2_API CreateRouteResult();
37
38
40
45 inline bool GetApiGatewayManaged() const{ return m_apiGatewayManaged; }
46 inline void SetApiGatewayManaged(bool value) { m_apiGatewayManaged = value; }
47 inline CreateRouteResult& WithApiGatewayManaged(bool value) { SetApiGatewayManaged(value); return *this;}
49
51
55 inline bool GetApiKeyRequired() const{ return m_apiKeyRequired; }
56 inline void SetApiKeyRequired(bool value) { m_apiKeyRequired = value; }
57 inline CreateRouteResult& WithApiKeyRequired(bool value) { SetApiKeyRequired(value); return *this;}
59
61
70 inline const Aws::Vector<Aws::String>& GetAuthorizationScopes() const{ return m_authorizationScopes; }
71 inline void SetAuthorizationScopes(const Aws::Vector<Aws::String>& value) { m_authorizationScopes = value; }
72 inline void SetAuthorizationScopes(Aws::Vector<Aws::String>&& value) { m_authorizationScopes = std::move(value); }
75 inline CreateRouteResult& AddAuthorizationScopes(const Aws::String& value) { m_authorizationScopes.push_back(value); return *this; }
76 inline CreateRouteResult& AddAuthorizationScopes(Aws::String&& value) { m_authorizationScopes.push_back(std::move(value)); return *this; }
77 inline CreateRouteResult& AddAuthorizationScopes(const char* value) { m_authorizationScopes.push_back(value); return *this; }
79
81
88 inline const AuthorizationType& GetAuthorizationType() const{ return m_authorizationType; }
89 inline void SetAuthorizationType(const AuthorizationType& value) { m_authorizationType = value; }
90 inline void SetAuthorizationType(AuthorizationType&& value) { m_authorizationType = std::move(value); }
92 inline CreateRouteResult& WithAuthorizationType(AuthorizationType&& value) { SetAuthorizationType(std::move(value)); return *this;}
94
96
101 inline const Aws::String& GetAuthorizerId() const{ return m_authorizerId; }
102 inline void SetAuthorizerId(const Aws::String& value) { m_authorizerId = value; }
103 inline void SetAuthorizerId(Aws::String&& value) { m_authorizerId = std::move(value); }
104 inline void SetAuthorizerId(const char* value) { m_authorizerId.assign(value); }
105 inline CreateRouteResult& WithAuthorizerId(const Aws::String& value) { SetAuthorizerId(value); return *this;}
106 inline CreateRouteResult& WithAuthorizerId(Aws::String&& value) { SetAuthorizerId(std::move(value)); return *this;}
107 inline CreateRouteResult& WithAuthorizerId(const char* value) { SetAuthorizerId(value); return *this;}
109
111
115 inline const Aws::String& GetModelSelectionExpression() const{ return m_modelSelectionExpression; }
116 inline void SetModelSelectionExpression(const Aws::String& value) { m_modelSelectionExpression = value; }
117 inline void SetModelSelectionExpression(Aws::String&& value) { m_modelSelectionExpression = std::move(value); }
118 inline void SetModelSelectionExpression(const char* value) { m_modelSelectionExpression.assign(value); }
121 inline CreateRouteResult& WithModelSelectionExpression(const char* value) { SetModelSelectionExpression(value); return *this;}
123
125
128 inline const Aws::String& GetOperationName() const{ return m_operationName; }
129 inline void SetOperationName(const Aws::String& value) { m_operationName = value; }
130 inline void SetOperationName(Aws::String&& value) { m_operationName = std::move(value); }
131 inline void SetOperationName(const char* value) { m_operationName.assign(value); }
132 inline CreateRouteResult& WithOperationName(const Aws::String& value) { SetOperationName(value); return *this;}
133 inline CreateRouteResult& WithOperationName(Aws::String&& value) { SetOperationName(std::move(value)); return *this;}
134 inline CreateRouteResult& WithOperationName(const char* value) { SetOperationName(value); return *this;}
136
138
141 inline const Aws::Map<Aws::String, Aws::String>& GetRequestModels() const{ return m_requestModels; }
142 inline void SetRequestModels(const Aws::Map<Aws::String, Aws::String>& value) { m_requestModels = value; }
143 inline void SetRequestModels(Aws::Map<Aws::String, Aws::String>&& value) { m_requestModels = std::move(value); }
146 inline CreateRouteResult& AddRequestModels(const Aws::String& key, const Aws::String& value) { m_requestModels.emplace(key, value); return *this; }
147 inline CreateRouteResult& AddRequestModels(Aws::String&& key, const Aws::String& value) { m_requestModels.emplace(std::move(key), value); return *this; }
148 inline CreateRouteResult& AddRequestModels(const Aws::String& key, Aws::String&& value) { m_requestModels.emplace(key, std::move(value)); return *this; }
149 inline CreateRouteResult& AddRequestModels(Aws::String&& key, Aws::String&& value) { m_requestModels.emplace(std::move(key), std::move(value)); return *this; }
150 inline CreateRouteResult& AddRequestModels(const char* key, Aws::String&& value) { m_requestModels.emplace(key, std::move(value)); return *this; }
151 inline CreateRouteResult& AddRequestModels(Aws::String&& key, const char* value) { m_requestModels.emplace(std::move(key), value); return *this; }
152 inline CreateRouteResult& AddRequestModels(const char* key, const char* value) { m_requestModels.emplace(key, value); return *this; }
154
156
159 inline const Aws::Map<Aws::String, ParameterConstraints>& GetRequestParameters() const{ return m_requestParameters; }
160 inline void SetRequestParameters(const Aws::Map<Aws::String, ParameterConstraints>& value) { m_requestParameters = value; }
161 inline void SetRequestParameters(Aws::Map<Aws::String, ParameterConstraints>&& value) { m_requestParameters = std::move(value); }
164 inline CreateRouteResult& AddRequestParameters(const Aws::String& key, const ParameterConstraints& value) { m_requestParameters.emplace(key, value); return *this; }
165 inline CreateRouteResult& AddRequestParameters(Aws::String&& key, const ParameterConstraints& value) { m_requestParameters.emplace(std::move(key), value); return *this; }
166 inline CreateRouteResult& AddRequestParameters(const Aws::String& key, ParameterConstraints&& value) { m_requestParameters.emplace(key, std::move(value)); return *this; }
167 inline CreateRouteResult& AddRequestParameters(Aws::String&& key, ParameterConstraints&& value) { m_requestParameters.emplace(std::move(key), std::move(value)); return *this; }
168 inline CreateRouteResult& AddRequestParameters(const char* key, ParameterConstraints&& value) { m_requestParameters.emplace(key, std::move(value)); return *this; }
169 inline CreateRouteResult& AddRequestParameters(const char* key, const ParameterConstraints& value) { m_requestParameters.emplace(key, value); return *this; }
171
173
176 inline const Aws::String& GetRouteId() const{ return m_routeId; }
177 inline void SetRouteId(const Aws::String& value) { m_routeId = value; }
178 inline void SetRouteId(Aws::String&& value) { m_routeId = std::move(value); }
179 inline void SetRouteId(const char* value) { m_routeId.assign(value); }
180 inline CreateRouteResult& WithRouteId(const Aws::String& value) { SetRouteId(value); return *this;}
181 inline CreateRouteResult& WithRouteId(Aws::String&& value) { SetRouteId(std::move(value)); return *this;}
182 inline CreateRouteResult& WithRouteId(const char* value) { SetRouteId(value); return *this;}
184
186
189 inline const Aws::String& GetRouteKey() const{ return m_routeKey; }
190 inline void SetRouteKey(const Aws::String& value) { m_routeKey = value; }
191 inline void SetRouteKey(Aws::String&& value) { m_routeKey = std::move(value); }
192 inline void SetRouteKey(const char* value) { m_routeKey.assign(value); }
193 inline CreateRouteResult& WithRouteKey(const Aws::String& value) { SetRouteKey(value); return *this;}
194 inline CreateRouteResult& WithRouteKey(Aws::String&& value) { SetRouteKey(std::move(value)); return *this;}
195 inline CreateRouteResult& WithRouteKey(const char* value) { SetRouteKey(value); return *this;}
197
199
203 inline const Aws::String& GetRouteResponseSelectionExpression() const{ return m_routeResponseSelectionExpression; }
204 inline void SetRouteResponseSelectionExpression(const Aws::String& value) { m_routeResponseSelectionExpression = value; }
205 inline void SetRouteResponseSelectionExpression(Aws::String&& value) { m_routeResponseSelectionExpression = std::move(value); }
206 inline void SetRouteResponseSelectionExpression(const char* value) { m_routeResponseSelectionExpression.assign(value); }
211
213
216 inline const Aws::String& GetTarget() const{ return m_target; }
217 inline void SetTarget(const Aws::String& value) { m_target = value; }
218 inline void SetTarget(Aws::String&& value) { m_target = std::move(value); }
219 inline void SetTarget(const char* value) { m_target.assign(value); }
220 inline CreateRouteResult& WithTarget(const Aws::String& value) { SetTarget(value); return *this;}
221 inline CreateRouteResult& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;}
222 inline CreateRouteResult& WithTarget(const char* value) { SetTarget(value); return *this;}
224
226
227 inline const Aws::String& GetRequestId() const{ return m_requestId; }
228 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
229 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
230 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
231 inline CreateRouteResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
232 inline CreateRouteResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
233 inline CreateRouteResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
235 private:
236
237 bool m_apiGatewayManaged;
238
239 bool m_apiKeyRequired;
240
241 Aws::Vector<Aws::String> m_authorizationScopes;
242
243 AuthorizationType m_authorizationType;
244
245 Aws::String m_authorizerId;
246
247 Aws::String m_modelSelectionExpression;
248
249 Aws::String m_operationName;
250
252
254
255 Aws::String m_routeId;
256
257 Aws::String m_routeKey;
258
259 Aws::String m_routeResponseSelectionExpression;
260
261 Aws::String m_target;
262
263 Aws::String m_requestId;
264 };
265
266} // namespace Model
267} // namespace ApiGatewayV2
268} // namespace Aws
CreateRouteResult & WithRequestModels(const Aws::Map< Aws::String, Aws::String > &value)
void SetAuthorizationType(AuthorizationType &&value)
const AuthorizationType & GetAuthorizationType() const
CreateRouteResult & AddRequestModels(const Aws::String &key, const Aws::String &value)
CreateRouteResult & AddRequestParameters(const Aws::String &key, const ParameterConstraints &value)
CreateRouteResult & AddRequestParameters(Aws::String &&key, ParameterConstraints &&value)
CreateRouteResult & WithAuthorizerId(const Aws::String &value)
CreateRouteResult & WithRouteResponseSelectionExpression(Aws::String &&value)
CreateRouteResult & WithRequestParameters(const Aws::Map< Aws::String, ParameterConstraints > &value)
void SetRequestId(const Aws::String &value)
CreateRouteResult & WithOperationName(const char *value)
void SetRequestModels(const Aws::Map< Aws::String, Aws::String > &value)
CreateRouteResult & WithRequestModels(Aws::Map< Aws::String, Aws::String > &&value)
CreateRouteResult & WithRouteId(Aws::String &&value)
void SetRouteResponseSelectionExpression(const Aws::String &value)
void SetRouteKey(const Aws::String &value)
CreateRouteResult & WithRouteResponseSelectionExpression(const char *value)
const Aws::Map< Aws::String, ParameterConstraints > & GetRequestParameters() const
CreateRouteResult & AddRequestParameters(const Aws::String &key, ParameterConstraints &&value)
CreateRouteResult & WithAuthorizerId(Aws::String &&value)
CreateRouteResult & WithRouteKey(Aws::String &&value)
CreateRouteResult & AddRequestModels(Aws::String &&key, Aws::String &&value)
CreateRouteResult & WithOperationName(Aws::String &&value)
CreateRouteResult & WithAuthorizationType(AuthorizationType &&value)
CreateRouteResult & AddRequestModels(const Aws::String &key, Aws::String &&value)
CreateRouteResult & WithRouteResponseSelectionExpression(const Aws::String &value)
CreateRouteResult & WithAuthorizationScopes(const Aws::Vector< Aws::String > &value)
CreateRouteResult & WithApiGatewayManaged(bool value)
void SetRequestParameters(const Aws::Map< Aws::String, ParameterConstraints > &value)
void SetAuthorizationType(const AuthorizationType &value)
CreateRouteResult & WithAuthorizationType(const AuthorizationType &value)
void SetModelSelectionExpression(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetRequestModels() const
void SetOperationName(const Aws::String &value)
CreateRouteResult & AddAuthorizationScopes(const char *value)
CreateRouteResult & WithRouteKey(const Aws::String &value)
CreateRouteResult & WithRequestId(Aws::String &&value)
CreateRouteResult & AddRequestParameters(const char *key, const ParameterConstraints &value)
CreateRouteResult & WithTarget(const Aws::String &value)
void SetRouteId(const Aws::String &value)
CreateRouteResult & WithTarget(const char *value)
CreateRouteResult & WithRouteId(const Aws::String &value)
CreateRouteResult & AddRequestParameters(Aws::String &&key, const ParameterConstraints &value)
CreateRouteResult & WithAuthorizationScopes(Aws::Vector< Aws::String > &&value)
CreateRouteResult & AddRequestParameters(const char *key, ParameterConstraints &&value)
CreateRouteResult & WithRouteId(const char *value)
const Aws::String & GetModelSelectionExpression() const
CreateRouteResult & WithRouteKey(const char *value)
CreateRouteResult & WithRequestParameters(Aws::Map< Aws::String, ParameterConstraints > &&value)
CreateRouteResult & AddRequestModels(Aws::String &&key, const Aws::String &value)
CreateRouteResult & AddRequestModels(Aws::String &&key, const char *value)
void SetAuthorizerId(const Aws::String &value)
void SetModelSelectionExpression(const Aws::String &value)
CreateRouteResult & WithModelSelectionExpression(const Aws::String &value)
CreateRouteResult & AddRequestModels(const char *key, const char *value)
CreateRouteResult & WithOperationName(const Aws::String &value)
AWS_APIGATEWAYV2_API CreateRouteResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateRouteResult & WithApiKeyRequired(bool value)
void SetAuthorizationScopes(Aws::Vector< Aws::String > &&value)
CreateRouteResult & WithAuthorizerId(const char *value)
CreateRouteResult & WithTarget(Aws::String &&value)
void SetAuthorizationScopes(const Aws::Vector< Aws::String > &value)
AWS_APIGATEWAYV2_API CreateRouteResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Aws::String > & GetAuthorizationScopes() const
void SetRequestParameters(Aws::Map< Aws::String, ParameterConstraints > &&value)
CreateRouteResult & WithModelSelectionExpression(const char *value)
CreateRouteResult & WithModelSelectionExpression(Aws::String &&value)
CreateRouteResult & WithRequestId(const char *value)
CreateRouteResult & AddRequestModels(const char *key, Aws::String &&value)
void SetRouteResponseSelectionExpression(Aws::String &&value)
CreateRouteResult & WithRequestId(const Aws::String &value)
void SetRouteResponseSelectionExpression(const char *value)
CreateRouteResult & AddAuthorizationScopes(Aws::String &&value)
const Aws::String & GetRouteResponseSelectionExpression() const
CreateRouteResult & AddAuthorizationScopes(const Aws::String &value)
void SetRequestModels(Aws::Map< Aws::String, Aws::String > &&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
Aws::Utils::Json::JsonValue JsonValue