7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/APIGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.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>
49 template<
typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
51 template<
typename NameT = Aws::String>
61 template<
typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
63 template<
typename DescriptionT = Aws::String>
73 template<
typename VersionT = Aws::String>
74 void SetVersion(VersionT&& value) { m_versionHasBeenSet =
true; m_version = std::forward<VersionT>(value); }
75 template<
typename VersionT = Aws::String>
85 template<
typename CloneFromT = Aws::String>
86 void SetCloneFrom(CloneFromT&& value) { m_cloneFromHasBeenSet =
true; m_cloneFrom = std::forward<CloneFromT>(value); }
87 template<
typename CloneFromT = Aws::String>
98 template<
typename BinaryMediaTypesT = Aws::Vector<Aws::String>>
99 void SetBinaryMediaTypes(BinaryMediaTypesT&& value) { m_binaryMediaTypesHasBeenSet =
true; m_binaryMediaTypes = std::forward<BinaryMediaTypesT>(value); }
100 template<
typename BinaryMediaTypesT = Aws::Vector<Aws::String>>
102 template<
typename BinaryMediaTypesT = Aws::String>
140 template<
typename Endpo
intConfigurationT = Endpo
intConfiguration>
141 void SetEndpointConfiguration(EndpointConfigurationT&& value) { m_endpointConfigurationHasBeenSet =
true; m_endpointConfiguration = std::forward<EndpointConfigurationT>(value); }
142 template<
typename Endpo
intConfigurationT = Endpo
intConfiguration>
153 template<
typename PolicyT = Aws::String>
154 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet =
true; m_policy = std::forward<PolicyT>(value); }
155 template<
typename PolicyT = Aws::String>
167 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
168 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
169 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
171 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
173 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
193 bool m_nameHasBeenSet =
false;
196 bool m_descriptionHasBeenSet =
false;
199 bool m_versionHasBeenSet =
false;
202 bool m_cloneFromHasBeenSet =
false;
205 bool m_binaryMediaTypesHasBeenSet =
false;
207 int m_minimumCompressionSize{0};
208 bool m_minimumCompressionSizeHasBeenSet =
false;
211 bool m_apiKeySourceHasBeenSet =
false;
213 EndpointConfiguration m_endpointConfiguration;
214 bool m_endpointConfigurationHasBeenSet =
false;
217 bool m_policyHasBeenSet =
false;
220 bool m_tagsHasBeenSet =
false;
222 bool m_disableExecuteApiEndpoint{
false};
223 bool m_disableExecuteApiEndpointHasBeenSet =
false;
const Aws::String & GetVersion() const
bool TagsHasBeenSet() const
void SetBinaryMediaTypes(BinaryMediaTypesT &&value)
AWS_APIGATEWAY_API CreateRestApiRequest()=default
bool CloneFromHasBeenSet() const
CreateRestApiRequest & WithVersion(VersionT &&value)
void SetDescription(DescriptionT &&value)
int GetMinimumCompressionSize() const
void SetPolicy(PolicyT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
bool NameHasBeenSet() const
CreateRestApiRequest & WithPolicy(PolicyT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetPolicy() const
CreateRestApiRequest & AddBinaryMediaTypes(BinaryMediaTypesT &&value)
bool VersionHasBeenSet() const
void SetEndpointConfiguration(EndpointConfigurationT &&value)
bool MinimumCompressionSizeHasBeenSet() const
const Aws::Vector< Aws::String > & GetBinaryMediaTypes() const
void SetTags(TagsT &&value)
const Aws::String & GetCloneFrom() const
CreateRestApiRequest & WithCloneFrom(CloneFromT &&value)
CreateRestApiRequest & WithTags(TagsT &&value)
bool DisableExecuteApiEndpointHasBeenSet() const
bool GetDisableExecuteApiEndpoint() const
CreateRestApiRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateRestApiRequest & WithDisableExecuteApiEndpoint(bool value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
bool PolicyHasBeenSet() const
bool BinaryMediaTypesHasBeenSet() const
CreateRestApiRequest & WithEndpointConfiguration(EndpointConfigurationT &&value)
CreateRestApiRequest & WithApiKeySource(ApiKeySourceType value)
const Aws::String & GetDescription() const
bool EndpointConfigurationHasBeenSet() const
CreateRestApiRequest & WithMinimumCompressionSize(int value)
CreateRestApiRequest & WithDescription(DescriptionT &&value)
CreateRestApiRequest & WithName(NameT &&value)
void SetVersion(VersionT &&value)
CreateRestApiRequest & WithBinaryMediaTypes(BinaryMediaTypesT &&value)
void SetCloneFrom(CloneFromT &&value)
const EndpointConfiguration & GetEndpointConfiguration() const
void SetName(NameT &&value)
bool DescriptionHasBeenSet() const
ApiKeySourceType GetApiKeySource() const
void SetApiKeySource(ApiKeySourceType value)
void SetMinimumCompressionSize(int value)
void SetDisableExecuteApiEndpoint(bool value)
bool ApiKeySourceHasBeenSet() const
const Aws::String & GetName() 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