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/core/utils/memory/stl/AWSMap.h>
40 AWS_APIGATEWAY_API
ApiKey() =
default;
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 ValueT = Aws::String>
65 void SetValue(ValueT&& value) { m_valueHasBeenSet =
true; m_value = std::forward<ValueT>(value); }
66 template<
typename ValueT = Aws::String>
76 template<
typename NameT = Aws::String>
77 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
78 template<
typename NameT = Aws::String>
89 template<
typename CustomerIdT = Aws::String>
90 void SetCustomerId(CustomerIdT&& value) { m_customerIdHasBeenSet =
true; m_customerId = std::forward<CustomerIdT>(value); }
91 template<
typename CustomerIdT = Aws::String>
101 template<
typename DescriptionT = Aws::String>
102 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
103 template<
typename DescriptionT = Aws::String>
113 inline void SetEnabled(
bool value) { m_enabledHasBeenSet =
true; m_enabled = value; }
123 template<
typename CreatedDateT = Aws::Utils::DateTime>
124 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet =
true; m_createdDate = std::forward<CreatedDateT>(value); }
125 template<
typename CreatedDateT = Aws::Utils::DateTime>
135 template<
typename LastUpdatedDateT = Aws::Utils::DateTime>
136 void SetLastUpdatedDate(LastUpdatedDateT&& value) { m_lastUpdatedDateHasBeenSet =
true; m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value); }
137 template<
typename LastUpdatedDateT = Aws::Utils::DateTime>
147 template<
typename StageKeysT = Aws::Vector<Aws::String>>
148 void SetStageKeys(StageKeysT&& value) { m_stageKeysHasBeenSet =
true; m_stageKeys = std::forward<StageKeysT>(value); }
149 template<
typename StageKeysT = Aws::Vector<Aws::String>>
151 template<
typename StageKeysT = Aws::String>
152 ApiKey&
AddStageKeys(StageKeysT&& value) { m_stageKeysHasBeenSet =
true; m_stageKeys.emplace_back(std::forward<StageKeysT>(value));
return *
this; }
162 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
163 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
164 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
166 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
168 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
176 template<
typename RequestIdT = Aws::String>
177 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet =
true; m_requestId = std::forward<RequestIdT>(value); }
178 template<
typename RequestIdT = Aws::String>
184 bool m_idHasBeenSet =
false;
187 bool m_valueHasBeenSet =
false;
190 bool m_nameHasBeenSet =
false;
193 bool m_customerIdHasBeenSet =
false;
196 bool m_descriptionHasBeenSet =
false;
198 bool m_enabled{
false};
199 bool m_enabledHasBeenSet =
false;
202 bool m_createdDateHasBeenSet =
false;
205 bool m_lastUpdatedDateHasBeenSet =
false;
208 bool m_stageKeysHasBeenSet =
false;
211 bool m_tagsHasBeenSet =
false;
214 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