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/ThrottleSettings.h>
12#include <aws/apigateway/model/QuotaSettings.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/apigateway/model/ApiStage.h>
51 template<
typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
53 template<
typename NameT = Aws::String>
63 template<
typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
65 template<
typename DescriptionT = Aws::String>
75 template<
typename ApiStagesT = Aws::Vector<ApiStage>>
76 void SetApiStages(ApiStagesT&& value) { m_apiStagesHasBeenSet =
true; m_apiStages = std::forward<ApiStagesT>(value); }
77 template<
typename ApiStagesT = Aws::Vector<ApiStage>>
79 template<
typename ApiStagesT = ApiStage>
89 template<
typename ThrottleT = ThrottleSettings>
90 void SetThrottle(ThrottleT&& value) { m_throttleHasBeenSet =
true; m_throttle = std::forward<ThrottleT>(value); }
91 template<
typename ThrottleT = ThrottleSettings>
101 template<
typename QuotaT = QuotaSettings>
102 void SetQuota(QuotaT&& value) { m_quotaHasBeenSet =
true; m_quota = std::forward<QuotaT>(value); }
103 template<
typename QuotaT = QuotaSettings>
115 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
116 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
117 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
119 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
121 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
127 bool m_nameHasBeenSet =
false;
130 bool m_descriptionHasBeenSet =
false;
133 bool m_apiStagesHasBeenSet =
false;
136 bool m_throttleHasBeenSet =
false;
139 bool m_quotaHasBeenSet =
false;
142 bool m_tagsHasBeenSet =
false;
CreateUsagePlanRequest & WithQuota(QuotaT &&value)
bool TagsHasBeenSet() const
CreateUsagePlanRequest & AddApiStages(ApiStagesT &&value)
void SetTags(TagsT &&value)
void SetThrottle(ThrottleT &&value)
CreateUsagePlanRequest & WithThrottle(ThrottleT &&value)
CreateUsagePlanRequest & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
bool NameHasBeenSet() const
void SetQuota(QuotaT &&value)
CreateUsagePlanRequest & WithName(NameT &&value)
const ThrottleSettings & GetThrottle() const
void SetDescription(DescriptionT &&value)
bool DescriptionHasBeenSet() const
bool ApiStagesHasBeenSet() const
CreateUsagePlanRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::String & GetName() const
bool ThrottleHasBeenSet() const
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
CreateUsagePlanRequest & WithApiStages(ApiStagesT &&value)
CreateUsagePlanRequest & WithTags(TagsT &&value)
void SetApiStages(ApiStagesT &&value)
void SetName(NameT &&value)
const Aws::String & GetDescription() const
virtual const char * GetServiceRequestName() const override
const QuotaSettings & GetQuota() const
const Aws::Vector< ApiStage > & GetApiStages() const
bool QuotaHasBeenSet() const
AWS_APIGATEWAY_API CreateUsagePlanRequest()=default
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