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
50 inline void SetKeyName(
const char* value) { m_keyNameHasBeenSet =
true; m_keyName.assign(value); }
76 inline void SetDescription(
const char* value) { m_descriptionHasBeenSet =
true; m_description.assign(value); }
104 inline void SetNoExpiry(
bool value) { m_noExpiryHasBeenSet =
true; m_noExpiry = value; }
132 inline CreateKeyRequest&
AddTags(
const char* key,
const char* value) { m_tagsHasBeenSet =
true; m_tags.emplace(key, value);
return *
this; }
137 bool m_keyNameHasBeenSet =
false;
140 bool m_restrictionsHasBeenSet =
false;
143 bool m_descriptionHasBeenSet =
false;
146 bool m_expireTimeHasBeenSet =
false;
149 bool m_noExpiryHasBeenSet =
false;
152 bool m_tagsHasBeenSet =
false;
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
bool DescriptionHasBeenSet() const
void SetRestrictions(const ApiKeyRestrictions &value)
CreateKeyRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateKeyRequest & WithKeyName(Aws::String &&value)
bool ExpireTimeHasBeenSet() const
AWS_LOCATIONSERVICE_API CreateKeyRequest()
CreateKeyRequest & WithRestrictions(ApiKeyRestrictions &&value)
CreateKeyRequest & AddTags(const char *key, Aws::String &&value)
const Aws::String & GetDescription() const
CreateKeyRequest & WithRestrictions(const ApiKeyRestrictions &value)
AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override
CreateKeyRequest & WithKeyName(const char *value)
CreateKeyRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateKeyRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateKeyRequest & WithDescription(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateKeyRequest & WithKeyName(const Aws::String &value)
CreateKeyRequest & AddTags(Aws::String &&key, const char *value)
void SetKeyName(Aws::String &&value)
bool NoExpiryHasBeenSet() const
const ApiKeyRestrictions & GetRestrictions() const
void SetDescription(const Aws::String &value)
CreateKeyRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateKeyRequest & WithDescription(Aws::String &&value)
const Aws::String & GetKeyName() const
void SetExpireTime(Aws::Utils::DateTime &&value)
void SetDescription(Aws::String &&value)
void SetExpireTime(const Aws::Utils::DateTime &value)
CreateKeyRequest & WithExpireTime(Aws::Utils::DateTime &&value)
void SetNoExpiry(bool value)
bool KeyNameHasBeenSet() const
CreateKeyRequest & WithDescription(const char *value)
bool TagsHasBeenSet() const
void SetRestrictions(ApiKeyRestrictions &&value)
void SetKeyName(const char *value)
CreateKeyRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateKeyRequest & AddTags(const char *key, const char *value)
const Aws::Utils::DateTime & GetExpireTime() const
CreateKeyRequest & WithNoExpiry(bool value)
bool RestrictionsHasBeenSet() const
void SetKeyName(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateKeyRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetDescription(const char *value)
virtual const char * GetServiceRequestName() const override
CreateKeyRequest & WithExpireTime(const Aws::Utils::DateTime &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