7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
35 AWS_APIGATEWAY_API
ApiKey() =
default;
46 template <
typename IdT = Aws::String>
48 m_idHasBeenSet =
true;
49 m_id = std::forward<IdT>(value);
51 template <
typename IdT = Aws::String>
53 SetId(std::forward<IdT>(value));
64 template <
typename ValueT = Aws::String>
66 m_valueHasBeenSet =
true;
67 m_value = std::forward<ValueT>(value);
69 template <
typename ValueT = Aws::String>
71 SetValue(std::forward<ValueT>(value));
82 template <
typename NameT = Aws::String>
84 m_nameHasBeenSet =
true;
85 m_name = std::forward<NameT>(value);
87 template <
typename NameT = Aws::String>
89 SetName(std::forward<NameT>(value));
101 template <
typename CustomerIdT = Aws::String>
103 m_customerIdHasBeenSet =
true;
104 m_customerId = std::forward<CustomerIdT>(value);
106 template <
typename CustomerIdT = Aws::String>
119 template <
typename DescriptionT = Aws::String>
121 m_descriptionHasBeenSet =
true;
122 m_description = std::forward<DescriptionT>(value);
124 template <
typename DescriptionT = Aws::String>
138 m_enabledHasBeenSet =
true;
153 template <
typename CreatedDateT = Aws::Utils::DateTime>
155 m_createdDateHasBeenSet =
true;
156 m_createdDate = std::forward<CreatedDateT>(value);
158 template <
typename CreatedDateT = Aws::Utils::DateTime>
171 template <
typename LastUpdatedDateT = Aws::Utils::DateTime>
173 m_lastUpdatedDateHasBeenSet =
true;
174 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
176 template <
typename LastUpdatedDateT = Aws::Utils::DateTime>
189 template <
typename StageKeysT = Aws::Vector<Aws::String>>
191 m_stageKeysHasBeenSet =
true;
192 m_stageKeys = std::forward<StageKeysT>(value);
194 template <
typename StageKeysT = Aws::Vector<Aws::String>>
199 template <
typename StageKeysT = Aws::String>
201 m_stageKeysHasBeenSet =
true;
202 m_stageKeys.emplace_back(std::forward<StageKeysT>(value));
214 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
216 m_tagsHasBeenSet =
true;
217 m_tags = std::forward<TagsT>(value);
219 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
221 SetTags(std::forward<TagsT>(value));
224 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
226 m_tagsHasBeenSet =
true;
227 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
236 template <
typename RequestIdT = Aws::String>
238 m_requestIdHasBeenSet =
true;
239 m_requestId = std::forward<RequestIdT>(value);
241 template <
typename RequestIdT = Aws::String>
258 bool m_enabled{
false};
269 bool m_idHasBeenSet =
false;
270 bool m_valueHasBeenSet =
false;
271 bool m_nameHasBeenSet =
false;
272 bool m_customerIdHasBeenSet =
false;
273 bool m_descriptionHasBeenSet =
false;
274 bool m_enabledHasBeenSet =
false;
275 bool m_createdDateHasBeenSet =
false;
276 bool m_lastUpdatedDateHasBeenSet =
false;
277 bool m_stageKeysHasBeenSet =
false;
278 bool m_tagsHasBeenSet =
false;
279 bool m_requestIdHasBeenSet =
false;
ApiKey & WithLastUpdatedDate(LastUpdatedDateT &&value)
void SetValue(ValueT &&value)
void SetStageKeys(StageKeysT &&value)
ApiKey & WithStageKeys(StageKeysT &&value)
AWS_APIGATEWAY_API ApiKey & operator=(Aws::Utils::Json::JsonView jsonValue)
bool StageKeysHasBeenSet() const
const Aws::Vector< Aws::String > & GetStageKeys() const
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
ApiKey & WithId(IdT &&value)
bool CreatedDateHasBeenSet() const
void SetName(NameT &&value)
void SetCustomerId(CustomerIdT &&value)
ApiKey & WithCustomerId(CustomerIdT &&value)
bool EnabledHasBeenSet() const
bool LastUpdatedDateHasBeenSet() const
const Aws::String & GetValue() const
bool ValueHasBeenSet() const
bool NameHasBeenSet() const
const Aws::Utils::DateTime & GetLastUpdatedDate() const
ApiKey & WithRequestId(RequestIdT &&value)
void SetTags(TagsT &&value)
void SetLastUpdatedDate(LastUpdatedDateT &&value)
ApiKey & WithCreatedDate(CreatedDateT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetRequestId(RequestIdT &&value)
void SetEnabled(bool value)
bool TagsHasBeenSet() const
const Aws::String & GetRequestId() const
void SetCreatedDate(CreatedDateT &&value)
AWS_APIGATEWAY_API ApiKey(Aws::Utils::Json::JsonView jsonValue)
ApiKey & WithEnabled(bool value)
ApiKey & WithDescription(DescriptionT &&value)
bool RequestIdHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedDate() const
ApiKey & WithValue(ValueT &&value)
const Aws::String & GetCustomerId() const
const Aws::String & GetDescription() const
const Aws::String & GetName() const
AWS_APIGATEWAY_API ApiKey()=default
ApiKey & AddStageKeys(StageKeysT &&value)
bool IdHasBeenSet() const
bool CustomerIdHasBeenSet() const
bool DescriptionHasBeenSet() const
void SetDescription(DescriptionT &&value)
ApiKey & AddTags(TagsKeyT &&key, TagsValueT &&value)
ApiKey & WithName(NameT &&value)
const Aws::String & GetId() const
ApiKey & WithTags(TagsT &&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