AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetApiResult.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/apigatewayv2/model/Cors.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/apigatewayv2/model/IpAddressType.h>
13#include <aws/apigatewayv2/model/ProtocolType.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace ApiGatewayV2
30{
31namespace Model
32{
34 {
35 public:
36 AWS_APIGATEWAYV2_API GetApiResult() = default;
39
40
42
47 inline const Aws::String& GetApiEndpoint() const { return m_apiEndpoint; }
48 template<typename ApiEndpointT = Aws::String>
49 void SetApiEndpoint(ApiEndpointT&& value) { m_apiEndpointHasBeenSet = true; m_apiEndpoint = std::forward<ApiEndpointT>(value); }
50 template<typename ApiEndpointT = Aws::String>
51 GetApiResult& WithApiEndpoint(ApiEndpointT&& value) { SetApiEndpoint(std::forward<ApiEndpointT>(value)); return *this;}
53
55
60 inline bool GetApiGatewayManaged() const { return m_apiGatewayManaged; }
61 inline void SetApiGatewayManaged(bool value) { m_apiGatewayManagedHasBeenSet = true; m_apiGatewayManaged = value; }
62 inline GetApiResult& WithApiGatewayManaged(bool value) { SetApiGatewayManaged(value); return *this;}
64
66
69 inline const Aws::String& GetApiId() const { return m_apiId; }
70 template<typename ApiIdT = Aws::String>
71 void SetApiId(ApiIdT&& value) { m_apiIdHasBeenSet = true; m_apiId = std::forward<ApiIdT>(value); }
72 template<typename ApiIdT = Aws::String>
73 GetApiResult& WithApiId(ApiIdT&& value) { SetApiId(std::forward<ApiIdT>(value)); return *this;}
75
77
82 inline const Aws::String& GetApiKeySelectionExpression() const { return m_apiKeySelectionExpression; }
83 template<typename ApiKeySelectionExpressionT = Aws::String>
84 void SetApiKeySelectionExpression(ApiKeySelectionExpressionT&& value) { m_apiKeySelectionExpressionHasBeenSet = true; m_apiKeySelectionExpression = std::forward<ApiKeySelectionExpressionT>(value); }
85 template<typename ApiKeySelectionExpressionT = Aws::String>
86 GetApiResult& WithApiKeySelectionExpression(ApiKeySelectionExpressionT&& value) { SetApiKeySelectionExpression(std::forward<ApiKeySelectionExpressionT>(value)); return *this;}
88
90
93 inline const Cors& GetCorsConfiguration() const { return m_corsConfiguration; }
94 template<typename CorsConfigurationT = Cors>
95 void SetCorsConfiguration(CorsConfigurationT&& value) { m_corsConfigurationHasBeenSet = true; m_corsConfiguration = std::forward<CorsConfigurationT>(value); }
96 template<typename CorsConfigurationT = Cors>
97 GetApiResult& WithCorsConfiguration(CorsConfigurationT&& value) { SetCorsConfiguration(std::forward<CorsConfigurationT>(value)); return *this;}
99
101
104 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
105 template<typename CreatedDateT = Aws::Utils::DateTime>
106 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
107 template<typename CreatedDateT = Aws::Utils::DateTime>
108 GetApiResult& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
110
112
115 inline const Aws::String& GetDescription() const { return m_description; }
116 template<typename DescriptionT = Aws::String>
117 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
118 template<typename DescriptionT = Aws::String>
119 GetApiResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
121
123
127 inline bool GetDisableSchemaValidation() const { return m_disableSchemaValidation; }
128 inline void SetDisableSchemaValidation(bool value) { m_disableSchemaValidationHasBeenSet = true; m_disableSchemaValidation = value; }
129 inline GetApiResult& WithDisableSchemaValidation(bool value) { SetDisableSchemaValidation(value); return *this;}
131
133
140 inline bool GetDisableExecuteApiEndpoint() const { return m_disableExecuteApiEndpoint; }
141 inline void SetDisableExecuteApiEndpoint(bool value) { m_disableExecuteApiEndpointHasBeenSet = true; m_disableExecuteApiEndpoint = value; }
144
146
151 inline const Aws::Vector<Aws::String>& GetImportInfo() const { return m_importInfo; }
152 template<typename ImportInfoT = Aws::Vector<Aws::String>>
153 void SetImportInfo(ImportInfoT&& value) { m_importInfoHasBeenSet = true; m_importInfo = std::forward<ImportInfoT>(value); }
154 template<typename ImportInfoT = Aws::Vector<Aws::String>>
155 GetApiResult& WithImportInfo(ImportInfoT&& value) { SetImportInfo(std::forward<ImportInfoT>(value)); return *this;}
156 template<typename ImportInfoT = Aws::String>
157 GetApiResult& AddImportInfo(ImportInfoT&& value) { m_importInfoHasBeenSet = true; m_importInfo.emplace_back(std::forward<ImportInfoT>(value)); return *this; }
159
161
164 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
165 inline void SetIpAddressType(IpAddressType value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
166 inline GetApiResult& WithIpAddressType(IpAddressType value) { SetIpAddressType(value); return *this;}
168
170
173 inline const Aws::String& GetName() const { return m_name; }
174 template<typename NameT = Aws::String>
175 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
176 template<typename NameT = Aws::String>
177 GetApiResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
179
181
184 inline ProtocolType GetProtocolType() const { return m_protocolType; }
185 inline void SetProtocolType(ProtocolType value) { m_protocolTypeHasBeenSet = true; m_protocolType = value; }
186 inline GetApiResult& WithProtocolType(ProtocolType value) { SetProtocolType(value); return *this;}
188
190
196 inline const Aws::String& GetRouteSelectionExpression() const { return m_routeSelectionExpression; }
197 template<typename RouteSelectionExpressionT = Aws::String>
198 void SetRouteSelectionExpression(RouteSelectionExpressionT&& value) { m_routeSelectionExpressionHasBeenSet = true; m_routeSelectionExpression = std::forward<RouteSelectionExpressionT>(value); }
199 template<typename RouteSelectionExpressionT = Aws::String>
200 GetApiResult& WithRouteSelectionExpression(RouteSelectionExpressionT&& value) { SetRouteSelectionExpression(std::forward<RouteSelectionExpressionT>(value)); return *this;}
202
204
207 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
208 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
209 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
210 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
211 GetApiResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
212 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
213 GetApiResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
214 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
215 }
217
219
222 inline const Aws::String& GetVersion() const { return m_version; }
223 template<typename VersionT = Aws::String>
224 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
225 template<typename VersionT = Aws::String>
226 GetApiResult& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
228
230
234 inline const Aws::Vector<Aws::String>& GetWarnings() const { return m_warnings; }
235 template<typename WarningsT = Aws::Vector<Aws::String>>
236 void SetWarnings(WarningsT&& value) { m_warningsHasBeenSet = true; m_warnings = std::forward<WarningsT>(value); }
237 template<typename WarningsT = Aws::Vector<Aws::String>>
238 GetApiResult& WithWarnings(WarningsT&& value) { SetWarnings(std::forward<WarningsT>(value)); return *this;}
239 template<typename WarningsT = Aws::String>
240 GetApiResult& AddWarnings(WarningsT&& value) { m_warningsHasBeenSet = true; m_warnings.emplace_back(std::forward<WarningsT>(value)); return *this; }
242
244
245 inline const Aws::String& GetRequestId() const { return m_requestId; }
246 template<typename RequestIdT = Aws::String>
247 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
248 template<typename RequestIdT = Aws::String>
249 GetApiResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
251 private:
252
253 Aws::String m_apiEndpoint;
254 bool m_apiEndpointHasBeenSet = false;
255
256 bool m_apiGatewayManaged{false};
257 bool m_apiGatewayManagedHasBeenSet = false;
258
259 Aws::String m_apiId;
260 bool m_apiIdHasBeenSet = false;
261
262 Aws::String m_apiKeySelectionExpression;
263 bool m_apiKeySelectionExpressionHasBeenSet = false;
264
265 Cors m_corsConfiguration;
266 bool m_corsConfigurationHasBeenSet = false;
267
268 Aws::Utils::DateTime m_createdDate{};
269 bool m_createdDateHasBeenSet = false;
270
271 Aws::String m_description;
272 bool m_descriptionHasBeenSet = false;
273
274 bool m_disableSchemaValidation{false};
275 bool m_disableSchemaValidationHasBeenSet = false;
276
277 bool m_disableExecuteApiEndpoint{false};
278 bool m_disableExecuteApiEndpointHasBeenSet = false;
279
280 Aws::Vector<Aws::String> m_importInfo;
281 bool m_importInfoHasBeenSet = false;
282
283 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
284 bool m_ipAddressTypeHasBeenSet = false;
285
286 Aws::String m_name;
287 bool m_nameHasBeenSet = false;
288
289 ProtocolType m_protocolType{ProtocolType::NOT_SET};
290 bool m_protocolTypeHasBeenSet = false;
291
292 Aws::String m_routeSelectionExpression;
293 bool m_routeSelectionExpressionHasBeenSet = false;
294
296 bool m_tagsHasBeenSet = false;
297
298 Aws::String m_version;
299 bool m_versionHasBeenSet = false;
300
301 Aws::Vector<Aws::String> m_warnings;
302 bool m_warningsHasBeenSet = false;
303
304 Aws::String m_requestId;
305 bool m_requestIdHasBeenSet = false;
306 };
307
308} // namespace Model
309} // namespace ApiGatewayV2
310} // 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