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/core/utils/memory/stl/AWSMap.h>
12#include <aws/apigateway/model/StageKey.h>
47 template<
typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
49 template<
typename NameT = Aws::String>
59 template<
typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
61 template<
typename DescriptionT = Aws::String>
71 inline void SetEnabled(
bool value) { m_enabledHasBeenSet =
true; m_enabled = value; }
83 inline void SetGenerateDistinctId(
bool value) { m_generateDistinctIdHasBeenSet =
true; m_generateDistinctId = value; }
93 template<
typename ValueT = Aws::String>
94 void SetValue(ValueT&& value) { m_valueHasBeenSet =
true; m_value = std::forward<ValueT>(value); }
95 template<
typename ValueT = Aws::String>
106 template<
typename StageKeysT = Aws::Vector<StageKey>>
107 void SetStageKeys(StageKeysT&& value) { m_stageKeysHasBeenSet =
true; m_stageKeys = std::forward<StageKeysT>(value); }
108 template<
typename StageKeysT = Aws::Vector<StageKey>>
110 template<
typename StageKeysT = StageKey>
121 template<
typename CustomerIdT = Aws::String>
122 void SetCustomerId(CustomerIdT&& value) { m_customerIdHasBeenSet =
true; m_customerId = std::forward<CustomerIdT>(value); }
123 template<
typename CustomerIdT = Aws::String>
135 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
136 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
137 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
139 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
141 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
147 bool m_nameHasBeenSet =
false;
150 bool m_descriptionHasBeenSet =
false;
152 bool m_enabled{
false};
153 bool m_enabledHasBeenSet =
false;
155 bool m_generateDistinctId{
false};
156 bool m_generateDistinctIdHasBeenSet =
false;
159 bool m_valueHasBeenSet =
false;
162 bool m_stageKeysHasBeenSet =
false;
165 bool m_customerIdHasBeenSet =
false;
168 bool m_tagsHasBeenSet =
false;
void SetTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateApiKeyRequest & WithName(NameT &&value)
bool StageKeysHasBeenSet() const
CreateApiKeyRequest & WithValue(ValueT &&value)
void SetStageKeys(StageKeysT &&value)
CreateApiKeyRequest & WithCustomerId(CustomerIdT &&value)
void SetGenerateDistinctId(bool value)
bool DescriptionHasBeenSet() const
void SetValue(ValueT &&value)
CreateApiKeyRequest & AddStageKeys(StageKeysT &&value)
CreateApiKeyRequest & WithEnabled(bool value)
CreateApiKeyRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
bool EnabledHasBeenSet() const
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
bool ValueHasBeenSet() const
bool NameHasBeenSet() const
const Aws::String & GetCustomerId() const
CreateApiKeyRequest & WithTags(TagsT &&value)
const Aws::String & GetName() const
void SetEnabled(bool value)
bool CustomerIdHasBeenSet() const
bool GetGenerateDistinctId() const
CreateApiKeyRequest & WithGenerateDistinctId(bool value)
bool TagsHasBeenSet() const
void SetCustomerId(CustomerIdT &&value)
void SetName(NameT &&value)
bool GenerateDistinctIdHasBeenSet() const
CreateApiKeyRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateApiKeyRequest & WithStageKeys(StageKeysT &&value)
const Aws::String & GetValue() const
AWS_APIGATEWAY_API CreateApiKeyRequest()=default
const Aws::String & GetDescription() const
void SetDescription(DescriptionT &&value)
const Aws::Vector< StageKey > & GetStageKeys() 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