7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/apigateway/model/ApiKeySourceType.h>
12#include <aws/apigateway/model/EndpointConfiguration.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
52 template<
typename IdT = Aws::String>
53 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
54 template<
typename IdT = Aws::String>
64 template<
typename NameT = Aws::String>
65 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
66 template<
typename NameT = Aws::String>
76 template<
typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
78 template<
typename DescriptionT = Aws::String>
88 template<
typename CreatedDateT = Aws::Utils::DateTime>
89 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet =
true; m_createdDate = std::forward<CreatedDateT>(value); }
90 template<
typename CreatedDateT = Aws::Utils::DateTime>
100 template<
typename VersionT = Aws::String>
101 void SetVersion(VersionT&& value) { m_versionHasBeenSet =
true; m_version = std::forward<VersionT>(value); }
102 template<
typename VersionT = Aws::String>
113 template<
typename WarningsT = Aws::Vector<Aws::String>>
114 void SetWarnings(WarningsT&& value) { m_warningsHasBeenSet =
true; m_warnings = std::forward<WarningsT>(value); }
115 template<
typename WarningsT = Aws::Vector<Aws::String>>
117 template<
typename WarningsT = Aws::String>
118 RestApi&
AddWarnings(WarningsT&& value) { m_warningsHasBeenSet =
true; m_warnings.emplace_back(std::forward<WarningsT>(value));
return *
this; }
128 template<
typename BinaryMediaTypesT = Aws::Vector<Aws::String>>
129 void SetBinaryMediaTypes(BinaryMediaTypesT&& value) { m_binaryMediaTypesHasBeenSet =
true; m_binaryMediaTypes = std::forward<BinaryMediaTypesT>(value); }
130 template<
typename BinaryMediaTypesT = Aws::Vector<Aws::String>>
132 template<
typename BinaryMediaTypesT = Aws::String>
133 RestApi&
AddBinaryMediaTypes(BinaryMediaTypesT&& value) { m_binaryMediaTypesHasBeenSet =
true; m_binaryMediaTypes.emplace_back(std::forward<BinaryMediaTypesT>(value));
return *
this; }
170 template<
typename Endpo
intConfigurationT = Endpo
intConfiguration>
171 void SetEndpointConfiguration(EndpointConfigurationT&& value) { m_endpointConfigurationHasBeenSet =
true; m_endpointConfiguration = std::forward<EndpointConfigurationT>(value); }
172 template<
typename Endpo
intConfigurationT = Endpo
intConfiguration>
183 template<
typename PolicyT = Aws::String>
184 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet =
true; m_policy = std::forward<PolicyT>(value); }
185 template<
typename PolicyT = Aws::String>
196 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
197 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
198 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
200 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
202 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
226 template<
typename RootResourceIdT = Aws::String>
227 void SetRootResourceId(RootResourceIdT&& value) { m_rootResourceIdHasBeenSet =
true; m_rootResourceId = std::forward<RootResourceIdT>(value); }
228 template<
typename RootResourceIdT = Aws::String>
236 template<
typename RequestIdT = Aws::String>
237 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet =
true; m_requestId = std::forward<RequestIdT>(value); }
238 template<
typename RequestIdT = Aws::String>
244 bool m_idHasBeenSet =
false;
247 bool m_nameHasBeenSet =
false;
250 bool m_descriptionHasBeenSet =
false;
253 bool m_createdDateHasBeenSet =
false;
256 bool m_versionHasBeenSet =
false;
259 bool m_warningsHasBeenSet =
false;
262 bool m_binaryMediaTypesHasBeenSet =
false;
264 int m_minimumCompressionSize{0};
265 bool m_minimumCompressionSizeHasBeenSet =
false;
268 bool m_apiKeySourceHasBeenSet =
false;
270 EndpointConfiguration m_endpointConfiguration;
271 bool m_endpointConfigurationHasBeenSet =
false;
274 bool m_policyHasBeenSet =
false;
277 bool m_tagsHasBeenSet =
false;
279 bool m_disableExecuteApiEndpoint{
false};
280 bool m_disableExecuteApiEndpointHasBeenSet =
false;
283 bool m_rootResourceIdHasBeenSet =
false;
286 bool m_requestIdHasBeenSet =
false;
bool DisableExecuteApiEndpointHasBeenSet() const
RestApi & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetDisableExecuteApiEndpoint(bool value)
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDescription() const
bool IdHasBeenSet() const
int GetMinimumCompressionSize() const
const Aws::String & GetId() const
const Aws::String & GetVersion() const
bool MinimumCompressionSizeHasBeenSet() const
void SetVersion(VersionT &&value)
bool VersionHasBeenSet() const
void SetApiKeySource(ApiKeySourceType value)
RestApi & AddWarnings(WarningsT &&value)
const Aws::String & GetRequestId() const
bool TagsHasBeenSet() const
bool PolicyHasBeenSet() const
void SetCreatedDate(CreatedDateT &&value)
void SetRootResourceId(RootResourceIdT &&value)
bool RootResourceIdHasBeenSet() const
bool GetDisableExecuteApiEndpoint() const
AWS_APIGATEWAY_API RestApi(Aws::Utils::Json::JsonView jsonValue)
RestApi & WithId(IdT &&value)
const Aws::Vector< Aws::String > & GetWarnings() const
bool CreatedDateHasBeenSet() const
AWS_APIGATEWAY_API RestApi & operator=(Aws::Utils::Json::JsonView jsonValue)
RestApi & WithApiKeySource(ApiKeySourceType value)
bool BinaryMediaTypesHasBeenSet() const
bool WarningsHasBeenSet() const
AWS_APIGATEWAY_API RestApi()=default
void SetEndpointConfiguration(EndpointConfigurationT &&value)
RestApi & AddBinaryMediaTypes(BinaryMediaTypesT &&value)
const Aws::String & GetPolicy() const
RestApi & WithRootResourceId(RootResourceIdT &&value)
void SetWarnings(WarningsT &&value)
void SetBinaryMediaTypes(BinaryMediaTypesT &&value)
void SetPolicy(PolicyT &&value)
RestApi & WithCreatedDate(CreatedDateT &&value)
const Aws::String & GetName() const
RestApi & WithWarnings(WarningsT &&value)
bool ApiKeySourceHasBeenSet() const
ApiKeySourceType GetApiKeySource() const
bool EndpointConfigurationHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedDate() const
void SetRequestId(RequestIdT &&value)
RestApi & WithBinaryMediaTypes(BinaryMediaTypesT &&value)
RestApi & WithVersion(VersionT &&value)
RestApi & WithRequestId(RequestIdT &&value)
void SetDescription(DescriptionT &&value)
void SetTags(TagsT &&value)
const Aws::String & GetRootResourceId() const
void SetName(NameT &&value)
RestApi & WithDescription(DescriptionT &&value)
const Aws::Vector< Aws::String > & GetBinaryMediaTypes() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
RestApi & WithPolicy(PolicyT &&value)
RestApi & WithName(NameT &&value)
bool RequestIdHasBeenSet() const
RestApi & WithEndpointConfiguration(EndpointConfigurationT &&value)
void SetMinimumCompressionSize(int value)
RestApi & WithMinimumCompressionSize(int value)
RestApi & WithTags(TagsT &&value)
bool NameHasBeenSet() const
const EndpointConfiguration & GetEndpointConfiguration() const
RestApi & WithDisableExecuteApiEndpoint(bool value)
bool DescriptionHasBeenSet() const
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