7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/model/ApiKeySourceType.h>
9#include <aws/apigateway/model/ApiStatus.h>
10#include <aws/apigateway/model/EndpointAccessMode.h>
11#include <aws/apigateway/model/EndpointConfiguration.h>
12#include <aws/apigateway/model/SecurityPolicy.h>
13#include <aws/core/http/HttpResponse.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
22template <
typename RESULT_TYPE>
23class AmazonWebServiceResult;
49 template <
typename IdT = Aws::String>
51 m_idHasBeenSet =
true;
52 m_id = std::forward<IdT>(value);
54 template <
typename IdT = Aws::String>
56 SetId(std::forward<IdT>(value));
66 template <
typename NameT = Aws::String>
68 m_nameHasBeenSet =
true;
69 m_name = std::forward<NameT>(value);
71 template <
typename NameT = Aws::String>
73 SetName(std::forward<NameT>(value));
83 template <
typename DescriptionT = Aws::String>
85 m_descriptionHasBeenSet =
true;
86 m_description = std::forward<DescriptionT>(value);
88 template <
typename DescriptionT = Aws::String>
100 template <
typename CreatedDateT = Aws::Utils::DateTime>
102 m_createdDateHasBeenSet =
true;
103 m_createdDate = std::forward<CreatedDateT>(value);
105 template <
typename CreatedDateT = Aws::Utils::DateTime>
117 template <
typename VersionT = Aws::String>
119 m_versionHasBeenSet =
true;
120 m_version = std::forward<VersionT>(value);
122 template <
typename VersionT = Aws::String>
135 template <
typename WarningsT = Aws::Vector<Aws::String>>
137 m_warningsHasBeenSet =
true;
138 m_warnings = std::forward<WarningsT>(value);
140 template <
typename WarningsT = Aws::Vector<Aws::String>>
145 template <
typename WarningsT = Aws::String>
147 m_warningsHasBeenSet =
true;
148 m_warnings.emplace_back(std::forward<WarningsT>(value));
159 template <
typename BinaryMediaTypesT = Aws::Vector<Aws::String>>
161 m_binaryMediaTypesHasBeenSet =
true;
162 m_binaryMediaTypes = std::forward<BinaryMediaTypesT>(value);
164 template <
typename BinaryMediaTypesT = Aws::Vector<Aws::String>>
169 template <
typename BinaryMediaTypesT = Aws::String>
171 m_binaryMediaTypesHasBeenSet =
true;
172 m_binaryMediaTypes.emplace_back(std::forward<BinaryMediaTypesT>(value));
187 m_minimumCompressionSizeHasBeenSet =
true;
188 m_minimumCompressionSize = value;
205 m_apiKeySourceHasBeenSet =
true;
206 m_apiKeySource = value;
220 template <
typename Endpo
intConfigurationT = Endpo
intConfiguration>
222 m_endpointConfigurationHasBeenSet =
true;
223 m_endpointConfiguration = std::forward<EndpointConfigurationT>(value);
225 template <
typename Endpo
intConfigurationT = Endpo
intConfiguration>
238 template <
typename PolicyT = Aws::String>
240 m_policyHasBeenSet =
true;
241 m_policy = std::forward<PolicyT>(value);
243 template <
typename PolicyT = Aws::String>
256 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
258 m_tagsHasBeenSet =
true;
259 m_tags = std::forward<TagsT>(value);
261 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
263 SetTags(std::forward<TagsT>(value));
266 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
268 m_tagsHasBeenSet =
true;
269 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
284 m_disableExecuteApiEndpointHasBeenSet =
true;
285 m_disableExecuteApiEndpoint = value;
298 template <
typename RootResourceIdT = Aws::String>
300 m_rootResourceIdHasBeenSet =
true;
301 m_rootResourceId = std::forward<RootResourceIdT>(value);
303 template <
typename RootResourceIdT = Aws::String>
317 m_securityPolicyHasBeenSet =
true;
318 m_securityPolicy = value;
332 m_endpointAccessModeHasBeenSet =
true;
333 m_endpointAccessMode = value;
347 m_apiStatusHasBeenSet =
true;
362 template <
typename ApiStatusMessageT = Aws::String>
364 m_apiStatusMessageHasBeenSet =
true;
365 m_apiStatusMessage = std::forward<ApiStatusMessageT>(value);
367 template <
typename ApiStatusMessageT = Aws::String>
377 template <
typename RequestIdT = Aws::String>
379 m_requestIdHasBeenSet =
true;
380 m_requestId = std::forward<RequestIdT>(value);
382 template <
typename RequestIdT = Aws::String>
405 int m_minimumCompressionSize{0};
409 EndpointConfiguration m_endpointConfiguration;
415 bool m_disableExecuteApiEndpoint{
false};
429 bool m_idHasBeenSet =
false;
430 bool m_nameHasBeenSet =
false;
431 bool m_descriptionHasBeenSet =
false;
432 bool m_createdDateHasBeenSet =
false;
433 bool m_versionHasBeenSet =
false;
434 bool m_warningsHasBeenSet =
false;
435 bool m_binaryMediaTypesHasBeenSet =
false;
436 bool m_minimumCompressionSizeHasBeenSet =
false;
437 bool m_apiKeySourceHasBeenSet =
false;
438 bool m_endpointConfigurationHasBeenSet =
false;
439 bool m_policyHasBeenSet =
false;
440 bool m_tagsHasBeenSet =
false;
441 bool m_disableExecuteApiEndpointHasBeenSet =
false;
442 bool m_rootResourceIdHasBeenSet =
false;
443 bool m_securityPolicyHasBeenSet =
false;
444 bool m_endpointAccessModeHasBeenSet =
false;
445 bool m_apiStatusHasBeenSet =
false;
446 bool m_apiStatusMessageHasBeenSet =
false;
447 bool m_requestIdHasBeenSet =
false;
CreateRestApiResult & WithApiKeySource(ApiKeySourceType value)
bool GetDisableExecuteApiEndpoint() const
AWS_APIGATEWAY_API CreateRestApiResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateRestApiResult & WithName(NameT &&value)
CreateRestApiResult & WithTags(TagsT &&value)
CreateRestApiResult & WithCreatedDate(CreatedDateT &&value)
const Aws::String & GetVersion() const
const Aws::String & GetApiStatusMessage() const
CreateRestApiResult & WithSecurityPolicy(SecurityPolicy value)
const Aws::String & GetId() const
ApiStatus GetApiStatus() const
CreateRestApiResult & WithVersion(VersionT &&value)
CreateRestApiResult & WithDisableExecuteApiEndpoint(bool value)
const Aws::String & GetName() const
void SetVersion(VersionT &&value)
void SetCreatedDate(CreatedDateT &&value)
const Aws::String & GetDescription() const
void SetName(NameT &&value)
CreateRestApiResult & WithRootResourceId(RootResourceIdT &&value)
void SetRequestId(RequestIdT &&value)
void SetDescription(DescriptionT &&value)
void SetDisableExecuteApiEndpoint(bool value)
const Aws::Vector< Aws::String > & GetBinaryMediaTypes() const
void SetRootResourceId(RootResourceIdT &&value)
CreateRestApiResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetApiKeySource(ApiKeySourceType value)
CreateRestApiResult & WithWarnings(WarningsT &&value)
void SetBinaryMediaTypes(BinaryMediaTypesT &&value)
CreateRestApiResult & WithRequestId(RequestIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetTags(TagsT &&value)
CreateRestApiResult & WithMinimumCompressionSize(int value)
void SetWarnings(WarningsT &&value)
CreateRestApiResult & WithId(IdT &&value)
CreateRestApiResult & AddBinaryMediaTypes(BinaryMediaTypesT &&value)
EndpointAccessMode GetEndpointAccessMode() const
void SetMinimumCompressionSize(int value)
ApiKeySourceType GetApiKeySource() const
CreateRestApiResult & WithBinaryMediaTypes(BinaryMediaTypesT &&value)
void SetApiStatus(ApiStatus value)
CreateRestApiResult & WithApiStatus(ApiStatus value)
CreateRestApiResult & WithPolicy(PolicyT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
const Aws::Vector< Aws::String > & GetWarnings() const
const Aws::String & GetRootResourceId() const
CreateRestApiResult & WithEndpointAccessMode(EndpointAccessMode value)
void SetSecurityPolicy(SecurityPolicy value)
CreateRestApiResult & WithEndpointConfiguration(EndpointConfigurationT &&value)
CreateRestApiResult & AddWarnings(WarningsT &&value)
void SetEndpointConfiguration(EndpointConfigurationT &&value)
CreateRestApiResult & WithApiStatusMessage(ApiStatusMessageT &&value)
AWS_APIGATEWAY_API CreateRestApiResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetApiStatusMessage(ApiStatusMessageT &&value)
int GetMinimumCompressionSize() const
CreateRestApiResult & WithDescription(DescriptionT &&value)
const EndpointConfiguration & GetEndpointConfiguration() const
SecurityPolicy GetSecurityPolicy() const
void SetEndpointAccessMode(EndpointAccessMode value)
const Aws::String & GetRequestId() const
AWS_APIGATEWAY_API CreateRestApiResult()=default
const Aws::String & GetPolicy() const
void SetPolicy(PolicyT &&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