AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace ApiGatewayV2 {
28namespace Model {
30 public:
31 AWS_APIGATEWAYV2_API GetApiResult() = default;
34
36
41 inline const Aws::String& GetApiEndpoint() const { return m_apiEndpoint; }
42 template <typename ApiEndpointT = Aws::String>
43 void SetApiEndpoint(ApiEndpointT&& value) {
44 m_apiEndpointHasBeenSet = true;
45 m_apiEndpoint = std::forward<ApiEndpointT>(value);
46 }
47 template <typename ApiEndpointT = Aws::String>
48 GetApiResult& WithApiEndpoint(ApiEndpointT&& value) {
49 SetApiEndpoint(std::forward<ApiEndpointT>(value));
50 return *this;
51 }
53
55
60 inline bool GetApiGatewayManaged() const { return m_apiGatewayManaged; }
61 inline void SetApiGatewayManaged(bool value) {
62 m_apiGatewayManagedHasBeenSet = true;
63 m_apiGatewayManaged = value;
64 }
65 inline GetApiResult& WithApiGatewayManaged(bool value) {
67 return *this;
68 }
70
72
75 inline const Aws::String& GetApiId() const { return m_apiId; }
76 template <typename ApiIdT = Aws::String>
77 void SetApiId(ApiIdT&& value) {
78 m_apiIdHasBeenSet = true;
79 m_apiId = std::forward<ApiIdT>(value);
80 }
81 template <typename ApiIdT = Aws::String>
82 GetApiResult& WithApiId(ApiIdT&& value) {
83 SetApiId(std::forward<ApiIdT>(value));
84 return *this;
85 }
87
89
94 inline const Aws::String& GetApiKeySelectionExpression() const { return m_apiKeySelectionExpression; }
95 template <typename ApiKeySelectionExpressionT = Aws::String>
96 void SetApiKeySelectionExpression(ApiKeySelectionExpressionT&& value) {
97 m_apiKeySelectionExpressionHasBeenSet = true;
98 m_apiKeySelectionExpression = std::forward<ApiKeySelectionExpressionT>(value);
99 }
100 template <typename ApiKeySelectionExpressionT = Aws::String>
101 GetApiResult& WithApiKeySelectionExpression(ApiKeySelectionExpressionT&& value) {
102 SetApiKeySelectionExpression(std::forward<ApiKeySelectionExpressionT>(value));
103 return *this;
104 }
106
108
111 inline const Cors& GetCorsConfiguration() const { return m_corsConfiguration; }
112 template <typename CorsConfigurationT = Cors>
113 void SetCorsConfiguration(CorsConfigurationT&& value) {
114 m_corsConfigurationHasBeenSet = true;
115 m_corsConfiguration = std::forward<CorsConfigurationT>(value);
116 }
117 template <typename CorsConfigurationT = Cors>
118 GetApiResult& WithCorsConfiguration(CorsConfigurationT&& value) {
119 SetCorsConfiguration(std::forward<CorsConfigurationT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
129 template <typename CreatedDateT = Aws::Utils::DateTime>
130 void SetCreatedDate(CreatedDateT&& value) {
131 m_createdDateHasBeenSet = true;
132 m_createdDate = std::forward<CreatedDateT>(value);
133 }
134 template <typename CreatedDateT = Aws::Utils::DateTime>
135 GetApiResult& WithCreatedDate(CreatedDateT&& value) {
136 SetCreatedDate(std::forward<CreatedDateT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetDescription() const { return m_description; }
146 template <typename DescriptionT = Aws::String>
147 void SetDescription(DescriptionT&& value) {
148 m_descriptionHasBeenSet = true;
149 m_description = std::forward<DescriptionT>(value);
150 }
151 template <typename DescriptionT = Aws::String>
152 GetApiResult& WithDescription(DescriptionT&& value) {
153 SetDescription(std::forward<DescriptionT>(value));
154 return *this;
155 }
157
159
163 inline bool GetDisableSchemaValidation() const { return m_disableSchemaValidation; }
164 inline void SetDisableSchemaValidation(bool value) {
165 m_disableSchemaValidationHasBeenSet = true;
166 m_disableSchemaValidation = value;
167 }
170 return *this;
171 }
173
175
182 inline bool GetDisableExecuteApiEndpoint() const { return m_disableExecuteApiEndpoint; }
183 inline void SetDisableExecuteApiEndpoint(bool value) {
184 m_disableExecuteApiEndpointHasBeenSet = true;
185 m_disableExecuteApiEndpoint = value;
186 }
189 return *this;
190 }
192
194
199 inline const Aws::Vector<Aws::String>& GetImportInfo() const { return m_importInfo; }
200 template <typename ImportInfoT = Aws::Vector<Aws::String>>
201 void SetImportInfo(ImportInfoT&& value) {
202 m_importInfoHasBeenSet = true;
203 m_importInfo = std::forward<ImportInfoT>(value);
204 }
205 template <typename ImportInfoT = Aws::Vector<Aws::String>>
206 GetApiResult& WithImportInfo(ImportInfoT&& value) {
207 SetImportInfo(std::forward<ImportInfoT>(value));
208 return *this;
209 }
210 template <typename ImportInfoT = Aws::String>
211 GetApiResult& AddImportInfo(ImportInfoT&& value) {
212 m_importInfoHasBeenSet = true;
213 m_importInfo.emplace_back(std::forward<ImportInfoT>(value));
214 return *this;
215 }
217
219
222 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
223 inline void SetIpAddressType(IpAddressType value) {
224 m_ipAddressTypeHasBeenSet = true;
225 m_ipAddressType = value;
226 }
228 SetIpAddressType(value);
229 return *this;
230 }
232
234
237 inline const Aws::String& GetName() const { return m_name; }
238 template <typename NameT = Aws::String>
239 void SetName(NameT&& value) {
240 m_nameHasBeenSet = true;
241 m_name = std::forward<NameT>(value);
242 }
243 template <typename NameT = Aws::String>
244 GetApiResult& WithName(NameT&& value) {
245 SetName(std::forward<NameT>(value));
246 return *this;
247 }
249
251
254 inline ProtocolType GetProtocolType() const { return m_protocolType; }
255 inline void SetProtocolType(ProtocolType value) {
256 m_protocolTypeHasBeenSet = true;
257 m_protocolType = value;
258 }
260 SetProtocolType(value);
261 return *this;
262 }
264
266
272 inline const Aws::String& GetRouteSelectionExpression() const { return m_routeSelectionExpression; }
273 template <typename RouteSelectionExpressionT = Aws::String>
274 void SetRouteSelectionExpression(RouteSelectionExpressionT&& value) {
275 m_routeSelectionExpressionHasBeenSet = true;
276 m_routeSelectionExpression = std::forward<RouteSelectionExpressionT>(value);
277 }
278 template <typename RouteSelectionExpressionT = Aws::String>
279 GetApiResult& WithRouteSelectionExpression(RouteSelectionExpressionT&& value) {
280 SetRouteSelectionExpression(std::forward<RouteSelectionExpressionT>(value));
281 return *this;
282 }
284
286
289 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
290 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
291 void SetTags(TagsT&& value) {
292 m_tagsHasBeenSet = true;
293 m_tags = std::forward<TagsT>(value);
294 }
295 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
296 GetApiResult& WithTags(TagsT&& value) {
297 SetTags(std::forward<TagsT>(value));
298 return *this;
299 }
300 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
301 GetApiResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
302 m_tagsHasBeenSet = true;
303 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
304 return *this;
305 }
307
309
312 inline const Aws::String& GetVersion() const { return m_version; }
313 template <typename VersionT = Aws::String>
314 void SetVersion(VersionT&& value) {
315 m_versionHasBeenSet = true;
316 m_version = std::forward<VersionT>(value);
317 }
318 template <typename VersionT = Aws::String>
319 GetApiResult& WithVersion(VersionT&& value) {
320 SetVersion(std::forward<VersionT>(value));
321 return *this;
322 }
324
326
330 inline const Aws::Vector<Aws::String>& GetWarnings() const { return m_warnings; }
331 template <typename WarningsT = Aws::Vector<Aws::String>>
332 void SetWarnings(WarningsT&& value) {
333 m_warningsHasBeenSet = true;
334 m_warnings = std::forward<WarningsT>(value);
335 }
336 template <typename WarningsT = Aws::Vector<Aws::String>>
337 GetApiResult& WithWarnings(WarningsT&& value) {
338 SetWarnings(std::forward<WarningsT>(value));
339 return *this;
340 }
341 template <typename WarningsT = Aws::String>
342 GetApiResult& AddWarnings(WarningsT&& value) {
343 m_warningsHasBeenSet = true;
344 m_warnings.emplace_back(std::forward<WarningsT>(value));
345 return *this;
346 }
348
350
351 inline const Aws::String& GetRequestId() const { return m_requestId; }
352 template <typename RequestIdT = Aws::String>
353 void SetRequestId(RequestIdT&& value) {
354 m_requestIdHasBeenSet = true;
355 m_requestId = std::forward<RequestIdT>(value);
356 }
357 template <typename RequestIdT = Aws::String>
358 GetApiResult& WithRequestId(RequestIdT&& value) {
359 SetRequestId(std::forward<RequestIdT>(value));
360 return *this;
361 }
363 private:
364 Aws::String m_apiEndpoint;
365
366 bool m_apiGatewayManaged{false};
367
368 Aws::String m_apiId;
369
370 Aws::String m_apiKeySelectionExpression;
371
372 Cors m_corsConfiguration;
373
374 Aws::Utils::DateTime m_createdDate{};
375
376 Aws::String m_description;
377
378 bool m_disableSchemaValidation{false};
379
380 bool m_disableExecuteApiEndpoint{false};
381
382 Aws::Vector<Aws::String> m_importInfo;
383
384 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
385
386 Aws::String m_name;
387
388 ProtocolType m_protocolType{ProtocolType::NOT_SET};
389
390 Aws::String m_routeSelectionExpression;
391
393
394 Aws::String m_version;
395
396 Aws::Vector<Aws::String> m_warnings;
397
398 Aws::String m_requestId;
399 bool m_apiEndpointHasBeenSet = false;
400 bool m_apiGatewayManagedHasBeenSet = false;
401 bool m_apiIdHasBeenSet = false;
402 bool m_apiKeySelectionExpressionHasBeenSet = false;
403 bool m_corsConfigurationHasBeenSet = false;
404 bool m_createdDateHasBeenSet = false;
405 bool m_descriptionHasBeenSet = false;
406 bool m_disableSchemaValidationHasBeenSet = false;
407 bool m_disableExecuteApiEndpointHasBeenSet = false;
408 bool m_importInfoHasBeenSet = false;
409 bool m_ipAddressTypeHasBeenSet = false;
410 bool m_nameHasBeenSet = false;
411 bool m_protocolTypeHasBeenSet = false;
412 bool m_routeSelectionExpressionHasBeenSet = false;
413 bool m_tagsHasBeenSet = false;
414 bool m_versionHasBeenSet = false;
415 bool m_warningsHasBeenSet = false;
416 bool m_requestIdHasBeenSet = false;
417};
418
419} // namespace Model
420} // namespace ApiGatewayV2
421} // 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)
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