AWS SDK for C++

AWS SDK for C++ Version 1.11.778

Loading...
Searching...
No Matches
GetApiResult.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/apigatewayv2/model/Cors.h>
9#include <aws/apigatewayv2/model/IpAddressType.h>
10#include <aws/apigatewayv2/model/ProtocolType.h>
11#include <aws/core/http/HttpResponse.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace ApiGatewayV2 {
29namespace Model {
31 public:
32 AWS_APIGATEWAYV2_API GetApiResult() = default;
35
37
42 inline const Aws::String& GetApiEndpoint() const { return m_apiEndpoint; }
43 template <typename ApiEndpointT = Aws::String>
44 void SetApiEndpoint(ApiEndpointT&& value) {
45 m_apiEndpointHasBeenSet = true;
46 m_apiEndpoint = std::forward<ApiEndpointT>(value);
47 }
48 template <typename ApiEndpointT = Aws::String>
49 GetApiResult& WithApiEndpoint(ApiEndpointT&& value) {
50 SetApiEndpoint(std::forward<ApiEndpointT>(value));
51 return *this;
52 }
54
56
61 inline bool GetApiGatewayManaged() const { return m_apiGatewayManaged; }
62 inline void SetApiGatewayManaged(bool value) {
63 m_apiGatewayManagedHasBeenSet = true;
64 m_apiGatewayManaged = value;
65 }
66 inline GetApiResult& WithApiGatewayManaged(bool value) {
68 return *this;
69 }
71
73
76 inline const Aws::String& GetApiId() const { return m_apiId; }
77 template <typename ApiIdT = Aws::String>
78 void SetApiId(ApiIdT&& value) {
79 m_apiIdHasBeenSet = true;
80 m_apiId = std::forward<ApiIdT>(value);
81 }
82 template <typename ApiIdT = Aws::String>
83 GetApiResult& WithApiId(ApiIdT&& value) {
84 SetApiId(std::forward<ApiIdT>(value));
85 return *this;
86 }
88
90
95 inline const Aws::String& GetApiKeySelectionExpression() const { return m_apiKeySelectionExpression; }
96 template <typename ApiKeySelectionExpressionT = Aws::String>
97 void SetApiKeySelectionExpression(ApiKeySelectionExpressionT&& value) {
98 m_apiKeySelectionExpressionHasBeenSet = true;
99 m_apiKeySelectionExpression = std::forward<ApiKeySelectionExpressionT>(value);
100 }
101 template <typename ApiKeySelectionExpressionT = Aws::String>
102 GetApiResult& WithApiKeySelectionExpression(ApiKeySelectionExpressionT&& value) {
103 SetApiKeySelectionExpression(std::forward<ApiKeySelectionExpressionT>(value));
104 return *this;
105 }
107
109
112 inline const Cors& GetCorsConfiguration() const { return m_corsConfiguration; }
113 template <typename CorsConfigurationT = Cors>
114 void SetCorsConfiguration(CorsConfigurationT&& value) {
115 m_corsConfigurationHasBeenSet = true;
116 m_corsConfiguration = std::forward<CorsConfigurationT>(value);
117 }
118 template <typename CorsConfigurationT = Cors>
119 GetApiResult& WithCorsConfiguration(CorsConfigurationT&& value) {
120 SetCorsConfiguration(std::forward<CorsConfigurationT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
130 template <typename CreatedDateT = Aws::Utils::DateTime>
131 void SetCreatedDate(CreatedDateT&& value) {
132 m_createdDateHasBeenSet = true;
133 m_createdDate = std::forward<CreatedDateT>(value);
134 }
135 template <typename CreatedDateT = Aws::Utils::DateTime>
136 GetApiResult& WithCreatedDate(CreatedDateT&& value) {
137 SetCreatedDate(std::forward<CreatedDateT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetDescription() const { return m_description; }
147 template <typename DescriptionT = Aws::String>
148 void SetDescription(DescriptionT&& value) {
149 m_descriptionHasBeenSet = true;
150 m_description = std::forward<DescriptionT>(value);
151 }
152 template <typename DescriptionT = Aws::String>
153 GetApiResult& WithDescription(DescriptionT&& value) {
154 SetDescription(std::forward<DescriptionT>(value));
155 return *this;
156 }
158
160
164 inline bool GetDisableSchemaValidation() const { return m_disableSchemaValidation; }
165 inline void SetDisableSchemaValidation(bool value) {
166 m_disableSchemaValidationHasBeenSet = true;
167 m_disableSchemaValidation = value;
168 }
171 return *this;
172 }
174
176
183 inline bool GetDisableExecuteApiEndpoint() const { return m_disableExecuteApiEndpoint; }
184 inline void SetDisableExecuteApiEndpoint(bool value) {
185 m_disableExecuteApiEndpointHasBeenSet = true;
186 m_disableExecuteApiEndpoint = value;
187 }
190 return *this;
191 }
193
195
200 inline const Aws::Vector<Aws::String>& GetImportInfo() const { return m_importInfo; }
201 template <typename ImportInfoT = Aws::Vector<Aws::String>>
202 void SetImportInfo(ImportInfoT&& value) {
203 m_importInfoHasBeenSet = true;
204 m_importInfo = std::forward<ImportInfoT>(value);
205 }
206 template <typename ImportInfoT = Aws::Vector<Aws::String>>
207 GetApiResult& WithImportInfo(ImportInfoT&& value) {
208 SetImportInfo(std::forward<ImportInfoT>(value));
209 return *this;
210 }
211 template <typename ImportInfoT = Aws::String>
212 GetApiResult& AddImportInfo(ImportInfoT&& value) {
213 m_importInfoHasBeenSet = true;
214 m_importInfo.emplace_back(std::forward<ImportInfoT>(value));
215 return *this;
216 }
218
220
223 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
224 inline void SetIpAddressType(IpAddressType value) {
225 m_ipAddressTypeHasBeenSet = true;
226 m_ipAddressType = value;
227 }
229 SetIpAddressType(value);
230 return *this;
231 }
233
235
238 inline const Aws::String& GetName() const { return m_name; }
239 template <typename NameT = Aws::String>
240 void SetName(NameT&& value) {
241 m_nameHasBeenSet = true;
242 m_name = std::forward<NameT>(value);
243 }
244 template <typename NameT = Aws::String>
245 GetApiResult& WithName(NameT&& value) {
246 SetName(std::forward<NameT>(value));
247 return *this;
248 }
250
252
255 inline ProtocolType GetProtocolType() const { return m_protocolType; }
256 inline void SetProtocolType(ProtocolType value) {
257 m_protocolTypeHasBeenSet = true;
258 m_protocolType = value;
259 }
261 SetProtocolType(value);
262 return *this;
263 }
265
267
273 inline const Aws::String& GetRouteSelectionExpression() const { return m_routeSelectionExpression; }
274 template <typename RouteSelectionExpressionT = Aws::String>
275 void SetRouteSelectionExpression(RouteSelectionExpressionT&& value) {
276 m_routeSelectionExpressionHasBeenSet = true;
277 m_routeSelectionExpression = std::forward<RouteSelectionExpressionT>(value);
278 }
279 template <typename RouteSelectionExpressionT = Aws::String>
280 GetApiResult& WithRouteSelectionExpression(RouteSelectionExpressionT&& value) {
281 SetRouteSelectionExpression(std::forward<RouteSelectionExpressionT>(value));
282 return *this;
283 }
285
287
290 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
291 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
292 void SetTags(TagsT&& value) {
293 m_tagsHasBeenSet = true;
294 m_tags = std::forward<TagsT>(value);
295 }
296 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
297 GetApiResult& WithTags(TagsT&& value) {
298 SetTags(std::forward<TagsT>(value));
299 return *this;
300 }
301 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
302 GetApiResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
303 m_tagsHasBeenSet = true;
304 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
305 return *this;
306 }
308
310
313 inline const Aws::String& GetVersion() const { return m_version; }
314 template <typename VersionT = Aws::String>
315 void SetVersion(VersionT&& value) {
316 m_versionHasBeenSet = true;
317 m_version = std::forward<VersionT>(value);
318 }
319 template <typename VersionT = Aws::String>
320 GetApiResult& WithVersion(VersionT&& value) {
321 SetVersion(std::forward<VersionT>(value));
322 return *this;
323 }
325
327
331 inline const Aws::Vector<Aws::String>& GetWarnings() const { return m_warnings; }
332 template <typename WarningsT = Aws::Vector<Aws::String>>
333 void SetWarnings(WarningsT&& value) {
334 m_warningsHasBeenSet = true;
335 m_warnings = std::forward<WarningsT>(value);
336 }
337 template <typename WarningsT = Aws::Vector<Aws::String>>
338 GetApiResult& WithWarnings(WarningsT&& value) {
339 SetWarnings(std::forward<WarningsT>(value));
340 return *this;
341 }
342 template <typename WarningsT = Aws::String>
343 GetApiResult& AddWarnings(WarningsT&& value) {
344 m_warningsHasBeenSet = true;
345 m_warnings.emplace_back(std::forward<WarningsT>(value));
346 return *this;
347 }
349
351
352 inline const Aws::String& GetRequestId() const { return m_requestId; }
353 template <typename RequestIdT = Aws::String>
354 void SetRequestId(RequestIdT&& value) {
355 m_requestIdHasBeenSet = true;
356 m_requestId = std::forward<RequestIdT>(value);
357 }
358 template <typename RequestIdT = Aws::String>
359 GetApiResult& WithRequestId(RequestIdT&& value) {
360 SetRequestId(std::forward<RequestIdT>(value));
361 return *this;
362 }
364 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
365
366 private:
367 Aws::String m_apiEndpoint;
368
369 bool m_apiGatewayManaged{false};
370
371 Aws::String m_apiId;
372
373 Aws::String m_apiKeySelectionExpression;
374
375 Cors m_corsConfiguration;
376
377 Aws::Utils::DateTime m_createdDate{};
378
379 Aws::String m_description;
380
381 bool m_disableSchemaValidation{false};
382
383 bool m_disableExecuteApiEndpoint{false};
384
385 Aws::Vector<Aws::String> m_importInfo;
386
387 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
388
389 Aws::String m_name;
390
391 ProtocolType m_protocolType{ProtocolType::NOT_SET};
392
393 Aws::String m_routeSelectionExpression;
394
396
397 Aws::String m_version;
398
399 Aws::Vector<Aws::String> m_warnings;
400
401 Aws::String m_requestId;
402 Aws::Http::HttpResponseCode m_HttpResponseCode;
403 bool m_apiEndpointHasBeenSet = false;
404 bool m_apiGatewayManagedHasBeenSet = false;
405 bool m_apiIdHasBeenSet = false;
406 bool m_apiKeySelectionExpressionHasBeenSet = false;
407 bool m_corsConfigurationHasBeenSet = false;
408 bool m_createdDateHasBeenSet = false;
409 bool m_descriptionHasBeenSet = false;
410 bool m_disableSchemaValidationHasBeenSet = false;
411 bool m_disableExecuteApiEndpointHasBeenSet = false;
412 bool m_importInfoHasBeenSet = false;
413 bool m_ipAddressTypeHasBeenSet = false;
414 bool m_nameHasBeenSet = false;
415 bool m_protocolTypeHasBeenSet = false;
416 bool m_routeSelectionExpressionHasBeenSet = false;
417 bool m_tagsHasBeenSet = false;
418 bool m_versionHasBeenSet = false;
419 bool m_warningsHasBeenSet = false;
420 bool m_requestIdHasBeenSet = false;
421};
422
423} // namespace Model
424} // namespace ApiGatewayV2
425} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetRouteSelectionExpression() const
void SetRouteSelectionExpression(RouteSelectionExpressionT &&value)
void SetApiKeySelectionExpression(ApiKeySelectionExpressionT &&value)
GetApiResult & WithName(NameT &&value)
const Aws::String & GetApiId() const
const Aws::Vector< Aws::String > & GetImportInfo() const
GetApiResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetApiResult & WithProtocolType(ProtocolType value)
GetApiResult & WithVersion(VersionT &&value)
const Aws::String & GetName() const
GetApiResult & WithApiGatewayManaged(bool value)
GetApiResult & WithRouteSelectionExpression(RouteSelectionExpressionT &&value)
void SetWarnings(WarningsT &&value)
GetApiResult & WithApiEndpoint(ApiEndpointT &&value)
GetApiResult & WithApiId(ApiIdT &&value)
void SetImportInfo(ImportInfoT &&value)
const Aws::String & GetDescription() const
GetApiResult & WithApiKeySelectionExpression(ApiKeySelectionExpressionT &&value)
void SetCorsConfiguration(CorsConfigurationT &&value)
AWS_APIGATEWAYV2_API GetApiResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetCreatedDate(CreatedDateT &&value)
const Aws::String & GetRequestId() const
void SetIpAddressType(IpAddressType value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetRequestId(RequestIdT &&value)
GetApiResult & WithCorsConfiguration(CorsConfigurationT &&value)
GetApiResult & AddImportInfo(ImportInfoT &&value)
GetApiResult & WithWarnings(WarningsT &&value)
GetApiResult & WithRequestId(RequestIdT &&value)
AWS_APIGATEWAYV2_API GetApiResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetApiResult & WithCreatedDate(CreatedDateT &&value)
AWS_APIGATEWAYV2_API GetApiResult()=default
void SetProtocolType(ProtocolType value)
GetApiResult & AddWarnings(WarningsT &&value)
GetApiResult & WithDisableExecuteApiEndpoint(bool value)
void SetApiEndpoint(ApiEndpointT &&value)
GetApiResult & WithTags(TagsT &&value)
const Aws::String & GetApiKeySelectionExpression() const
GetApiResult & WithDescription(DescriptionT &&value)
GetApiResult & WithDisableSchemaValidation(bool value)
const Aws::String & GetApiEndpoint() const
const Aws::String & GetVersion() const
const Aws::Utils::DateTime & GetCreatedDate() const
const Cors & GetCorsConfiguration() const
void SetDescription(DescriptionT &&value)
GetApiResult & WithIpAddressType(IpAddressType value)
const Aws::Vector< Aws::String > & GetWarnings() const
GetApiResult & WithImportInfo(ImportInfoT &&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