7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/location/LocationServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/location/model/ApiKeyRestrictions.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
17namespace LocationService
48 template<
typename KeyNameT = Aws::String>
49 void SetKeyName(KeyNameT&& value) { m_keyNameHasBeenSet =
true; m_keyName = std::forward<KeyNameT>(value); }
50 template<
typename KeyNameT = Aws::String>
60 template<
typename RestrictionsT = ApiKeyRestrictions>
61 void SetRestrictions(RestrictionsT&& value) { m_restrictionsHasBeenSet =
true; m_restrictions = std::forward<RestrictionsT>(value); }
62 template<
typename RestrictionsT = ApiKeyRestrictions>
72 template<
typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
74 template<
typename DescriptionT = Aws::String>
87 template<
typename ExpireTimeT = Aws::Utils::DateTime>
88 void SetExpireTime(ExpireTimeT&& value) { m_expireTimeHasBeenSet =
true; m_expireTime = std::forward<ExpireTimeT>(value); }
89 template<
typename ExpireTimeT = Aws::Utils::DateTime>
100 inline void SetNoExpiry(
bool value) { m_noExpiryHasBeenSet =
true; m_noExpiry = value; }
118 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
119 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
120 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
122 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
124 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
130 bool m_keyNameHasBeenSet =
false;
133 bool m_restrictionsHasBeenSet =
false;
136 bool m_descriptionHasBeenSet =
false;
139 bool m_expireTimeHasBeenSet =
false;
141 bool m_noExpiry{
false};
142 bool m_noExpiryHasBeenSet =
false;
145 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