7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/location/LocationServiceRequest.h>
11#include <aws/location/LocationService_EXPORTS.h>
12#include <aws/location/model/ApiKeyRestrictions.h>
17namespace LocationService {
44 template <
typename KeyNameT = Aws::String>
46 m_keyNameHasBeenSet =
true;
47 m_keyName = std::forward<KeyNameT>(value);
49 template <
typename KeyNameT = Aws::String>
62 template <
typename RestrictionsT = ApiKeyRestrictions>
64 m_restrictionsHasBeenSet =
true;
65 m_restrictions = std::forward<RestrictionsT>(value);
67 template <
typename RestrictionsT = ApiKeyRestrictions>
80 template <
typename DescriptionT = Aws::String>
82 m_descriptionHasBeenSet =
true;
83 m_description = std::forward<DescriptionT>(value);
85 template <
typename DescriptionT = Aws::String>
101 template <
typename ExpireTimeT = Aws::Utils::DateTime>
103 m_expireTimeHasBeenSet =
true;
104 m_expireTime = std::forward<ExpireTimeT>(value);
106 template <
typename ExpireTimeT = Aws::Utils::DateTime>
121 m_noExpiryHasBeenSet =
true;
144 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
146 m_tagsHasBeenSet =
true;
147 m_tags = std::forward<TagsT>(value);
149 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
151 SetTags(std::forward<TagsT>(value));
154 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
156 m_tagsHasBeenSet =
true;
157 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
170 bool m_noExpiry{
false};
173 bool m_keyNameHasBeenSet =
false;
174 bool m_restrictionsHasBeenSet =
false;
175 bool m_descriptionHasBeenSet =
false;
176 bool m_expireTimeHasBeenSet =
false;
177 bool m_noExpiryHasBeenSet =
false;
178 bool m_tagsHasBeenSet =
false;
bool DescriptionHasBeenSet() const
bool ExpireTimeHasBeenSet() const
CreateKeyRequest & WithTags(TagsT &&value)
const Aws::String & GetDescription() const
AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override
void SetTags(TagsT &&value)
CreateKeyRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateKeyRequest & WithExpireTime(ExpireTimeT &&value)
CreateKeyRequest & WithKeyName(KeyNameT &&value)
bool NoExpiryHasBeenSet() const
CreateKeyRequest & WithRestrictions(RestrictionsT &&value)
CreateKeyRequest & WithDescription(DescriptionT &&value)
const ApiKeyRestrictions & GetRestrictions() const
void SetExpireTime(ExpireTimeT &&value)
const Aws::String & GetKeyName() const
void SetDescription(DescriptionT &&value)
void SetRestrictions(RestrictionsT &&value)
void SetNoExpiry(bool value)
bool KeyNameHasBeenSet() const
bool TagsHasBeenSet() const
const Aws::Utils::DateTime & GetExpireTime() const
void SetKeyName(KeyNameT &&value)
CreateKeyRequest & WithNoExpiry(bool value)
bool RestrictionsHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_LOCATIONSERVICE_API CreateKeyRequest()=default
virtual const char * GetServiceRequestName() const override
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