AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetRouteResult.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 GetRouteResult();
37
38
40
45 inline bool GetApiGatewayManaged() const{ return m_apiGatewayManaged; }
46 inline void SetApiGatewayManaged(bool value) { m_apiGatewayManaged = value; }
47 inline GetRouteResult& 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 GetRouteResult& 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 GetRouteResult& AddAuthorizationScopes(const Aws::String& value) { m_authorizationScopes.push_back(value); return *this; }
76 inline GetRouteResult& AddAuthorizationScopes(Aws::String&& value) { m_authorizationScopes.push_back(std::move(value)); return *this; }
77 inline GetRouteResult& 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); }
91 inline GetRouteResult& WithAuthorizationType(const AuthorizationType& value) { SetAuthorizationType(value); return *this;}
92 inline GetRouteResult& 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 GetRouteResult& WithAuthorizerId(const Aws::String& value) { SetAuthorizerId(value); return *this;}
106 inline GetRouteResult& WithAuthorizerId(Aws::String&& value) { SetAuthorizerId(std::move(value)); return *this;}
107 inline GetRouteResult& 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); }
120 inline GetRouteResult& WithModelSelectionExpression(Aws::String&& value) { SetModelSelectionExpression(std::move(value)); return *this;}
121 inline GetRouteResult& 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 GetRouteResult& WithOperationName(const Aws::String& value) { SetOperationName(value); return *this;}
133 inline GetRouteResult& WithOperationName(Aws::String&& value) { SetOperationName(std::move(value)); return *this;}
134 inline GetRouteResult& 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); }
145 inline GetRouteResult& WithRequestModels(Aws::Map<Aws::String, Aws::String>&& value) { SetRequestModels(std::move(value)); return *this;}
146 inline GetRouteResult& AddRequestModels(const Aws::String& key, const Aws::String& value) { m_requestModels.emplace(key, value); return *this; }
147 inline GetRouteResult& AddRequestModels(Aws::String&& key, const Aws::String& value) { m_requestModels.emplace(std::move(key), value); return *this; }
148 inline GetRouteResult& AddRequestModels(const Aws::String& key, Aws::String&& value) { m_requestModels.emplace(key, std::move(value)); return *this; }
149 inline GetRouteResult& AddRequestModels(Aws::String&& key, Aws::String&& value) { m_requestModels.emplace(std::move(key), std::move(value)); return *this; }
150 inline GetRouteResult& AddRequestModels(const char* key, Aws::String&& value) { m_requestModels.emplace(key, std::move(value)); return *this; }
151 inline GetRouteResult& AddRequestModels(Aws::String&& key, const char* value) { m_requestModels.emplace(std::move(key), value); return *this; }
152 inline GetRouteResult& 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 GetRouteResult& AddRequestParameters(const Aws::String& key, const ParameterConstraints& value) { m_requestParameters.emplace(key, value); return *this; }
165 inline GetRouteResult& AddRequestParameters(Aws::String&& key, const ParameterConstraints& value) { m_requestParameters.emplace(std::move(key), value); return *this; }
166 inline GetRouteResult& AddRequestParameters(const Aws::String& key, ParameterConstraints&& value) { m_requestParameters.emplace(key, std::move(value)); return *this; }
167 inline GetRouteResult& AddRequestParameters(Aws::String&& key, ParameterConstraints&& value) { m_requestParameters.emplace(std::move(key), std::move(value)); return *this; }
168 inline GetRouteResult& AddRequestParameters(const char* key, ParameterConstraints&& value) { m_requestParameters.emplace(key, std::move(value)); return *this; }
169 inline GetRouteResult& 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 GetRouteResult& WithRouteId(const Aws::String& value) { SetRouteId(value); return *this;}
181 inline GetRouteResult& WithRouteId(Aws::String&& value) { SetRouteId(std::move(value)); return *this;}
182 inline GetRouteResult& 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 GetRouteResult& WithRouteKey(const Aws::String& value) { SetRouteKey(value); return *this;}
194 inline GetRouteResult& WithRouteKey(Aws::String&& value) { SetRouteKey(std::move(value)); return *this;}
195 inline GetRouteResult& 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 GetRouteResult& WithTarget(const Aws::String& value) { SetTarget(value); return *this;}
221 inline GetRouteResult& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;}
222 inline GetRouteResult& 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 GetRouteResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
232 inline GetRouteResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
233 inline GetRouteResult& 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
GetRouteResult & WithAuthorizerId(const Aws::String &value)
GetRouteResult & WithRouteResponseSelectionExpression(const Aws::String &value)
GetRouteResult & AddRequestParameters(Aws::String &&key, const ParameterConstraints &value)
GetRouteResult & WithRouteId(const char *value)
void SetAuthorizationType(const AuthorizationType &value)
const Aws::String & GetAuthorizerId() const
GetRouteResult & WithOperationName(const char *value)
AWS_APIGATEWAYV2_API GetRouteResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRouteResult & AddRequestModels(const char *key, const char *value)
GetRouteResult & WithOperationName(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetRequestModels() const
GetRouteResult & WithRequestModels(const Aws::Map< Aws::String, Aws::String > &value)
GetRouteResult & WithTarget(const char *value)
GetRouteResult & WithTarget(const Aws::String &value)
GetRouteResult & AddAuthorizationScopes(Aws::String &&value)
const Aws::Vector< Aws::String > & GetAuthorizationScopes() const
const Aws::String & GetRouteResponseSelectionExpression() const
GetRouteResult & WithRouteResponseSelectionExpression(const char *value)
void SetRouteId(const Aws::String &value)
void SetModelSelectionExpression(const char *value)
GetRouteResult & WithRequestParameters(const Aws::Map< Aws::String, ParameterConstraints > &value)
GetRouteResult & WithModelSelectionExpression(const Aws::String &value)
GetRouteResult & AddRequestParameters(const char *key, ParameterConstraints &&value)
GetRouteResult & AddRequestModels(const Aws::String &key, const Aws::String &value)
GetRouteResult & AddRequestModels(Aws::String &&key, Aws::String &&value)
const AuthorizationType & GetAuthorizationType() const
GetRouteResult & WithRouteId(const Aws::String &value)
GetRouteResult & AddRequestModels(const char *key, Aws::String &&value)
void SetRequestParameters(const Aws::Map< Aws::String, ParameterConstraints > &value)
GetRouteResult & WithRouteKey(const char *value)
GetRouteResult & WithModelSelectionExpression(const char *value)
GetRouteResult & AddRequestModels(Aws::String &&key, const Aws::String &value)
GetRouteResult & WithAuthorizerId(Aws::String &&value)
GetRouteResult & WithTarget(Aws::String &&value)
void SetOperationName(const Aws::String &value)
void SetTarget(const Aws::String &value)
GetRouteResult & AddRequestModels(Aws::String &&key, const char *value)
GetRouteResult & WithRouteKey(const Aws::String &value)
void SetAuthorizationType(AuthorizationType &&value)
GetRouteResult & WithApiGatewayManaged(bool value)
GetRouteResult & WithRouteKey(Aws::String &&value)
const Aws::String & GetModelSelectionExpression() const
const Aws::String & GetTarget() const
GetRouteResult & WithAuthorizationType(AuthorizationType &&value)
void SetModelSelectionExpression(const Aws::String &value)
GetRouteResult & AddAuthorizationScopes(const char *value)
GetRouteResult & AddRequestParameters(const char *key, const ParameterConstraints &value)
void SetAuthorizerId(Aws::String &&value)
GetRouteResult & WithRequestModels(Aws::Map< Aws::String, Aws::String > &&value)
GetRouteResult & WithRequestParameters(Aws::Map< Aws::String, ParameterConstraints > &&value)
void SetOperationName(Aws::String &&value)
GetRouteResult & WithAuthorizerId(const char *value)
const Aws::String & GetOperationName() const
GetRouteResult & WithRequestId(const char *value)
const Aws::String & GetRouteId() const
void SetRequestModels(const Aws::Map< Aws::String, Aws::String > &value)
GetRouteResult & WithOperationName(Aws::String &&value)
GetRouteResult & WithRequestId(Aws::String &&value)
void SetModelSelectionExpression(Aws::String &&value)
AWS_APIGATEWAYV2_API GetRouteResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetAuthorizationScopes(const Aws::Vector< Aws::String > &value)
GetRouteResult & WithAuthorizationScopes(Aws::Vector< Aws::String > &&value)
void SetRequestParameters(Aws::Map< Aws::String, ParameterConstraints > &&value)
GetRouteResult & WithApiKeyRequired(bool value)
void SetRouteResponseSelectionExpression(const char *value)
GetRouteResult & AddAuthorizationScopes(const Aws::String &value)
const Aws::String & GetRouteKey() const
GetRouteResult & AddRequestModels(const Aws::String &key, Aws::String &&value)
void SetRequestModels(Aws::Map< Aws::String, Aws::String > &&value)
void SetRouteKey(const Aws::String &value)
GetRouteResult & WithModelSelectionExpression(Aws::String &&value)
void SetAuthorizationScopes(Aws::Vector< Aws::String > &&value)
const Aws::Map< Aws::String, ParameterConstraints > & GetRequestParameters() const
GetRouteResult & WithAuthorizationType(const AuthorizationType &value)
GetRouteResult & AddRequestParameters(const Aws::String &key, ParameterConstraints &&value)
GetRouteResult & WithRequestId(const Aws::String &value)
const Aws::String & GetRequestId() const
void SetRouteResponseSelectionExpression(Aws::String &&value)
GetRouteResult & WithRouteResponseSelectionExpression(Aws::String &&value)
void SetRequestId(const Aws::String &value)
GetRouteResult & WithAuthorizationScopes(const Aws::Vector< Aws::String > &value)
void SetRouteResponseSelectionExpression(const Aws::String &value)
GetRouteResult & AddRequestParameters(const Aws::String &key, const ParameterConstraints &value)
GetRouteResult & AddRequestParameters(Aws::String &&key, ParameterConstraints &&value)
void SetAuthorizerId(const Aws::String &value)
GetRouteResult & WithRouteId(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