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/core/utils/DateTime.h>
11#include <aws/location/model/ApiKeyRestrictions.h>
16namespace LocationService
43 template<
typename KeyNameT = Aws::String>
44 void SetKeyName(KeyNameT&& value) { m_keyNameHasBeenSet =
true; m_keyName = std::forward<KeyNameT>(value); }
45 template<
typename KeyNameT = Aws::String>
55 template<
typename DescriptionT = Aws::String>
56 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
57 template<
typename DescriptionT = Aws::String>
69 template<
typename ExpireTimeT = Aws::Utils::DateTime>
70 void SetExpireTime(ExpireTimeT&& value) { m_expireTimeHasBeenSet =
true; m_expireTime = std::forward<ExpireTimeT>(value); }
71 template<
typename ExpireTimeT = Aws::Utils::DateTime>
82 inline void SetNoExpiry(
bool value) { m_noExpiryHasBeenSet =
true; m_noExpiry = value; }
96 inline void SetForceUpdate(
bool value) { m_forceUpdateHasBeenSet =
true; m_forceUpdate = value; }
106 template<
typename RestrictionsT = ApiKeyRestrictions>
107 void SetRestrictions(RestrictionsT&& value) { m_restrictionsHasBeenSet =
true; m_restrictions = std::forward<RestrictionsT>(value); }
108 template<
typename RestrictionsT = ApiKeyRestrictions>
114 bool m_keyNameHasBeenSet =
false;
117 bool m_descriptionHasBeenSet =
false;
120 bool m_expireTimeHasBeenSet =
false;
122 bool m_noExpiry{
false};
123 bool m_noExpiryHasBeenSet =
false;
125 bool m_forceUpdate{
false};
126 bool m_forceUpdateHasBeenSet =
false;
128 ApiKeyRestrictions m_restrictions;
129 bool m_restrictionsHasBeenSet =
false;
bool KeyNameHasBeenSet() const
const Aws::Utils::DateTime & GetExpireTime() const
UpdateKeyRequest & WithNoExpiry(bool value)
UpdateKeyRequest & WithKeyName(KeyNameT &&value)
bool RestrictionsHasBeenSet() const
void SetExpireTime(ExpireTimeT &&value)
bool ForceUpdateHasBeenSet() const
const Aws::String & GetDescription() const
bool GetForceUpdate() const
UpdateKeyRequest & WithExpireTime(ExpireTimeT &&value)
bool NoExpiryHasBeenSet() const
UpdateKeyRequest & WithForceUpdate(bool value)
AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override
void SetRestrictions(RestrictionsT &&value)
UpdateKeyRequest & WithRestrictions(RestrictionsT &&value)
const ApiKeyRestrictions & GetRestrictions() const
AWS_LOCATIONSERVICE_API UpdateKeyRequest()=default
void SetKeyName(KeyNameT &&value)
void SetDescription(DescriptionT &&value)
UpdateKeyRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
bool DescriptionHasBeenSet() const
const Aws::String & GetKeyName() const
void SetNoExpiry(bool value)
void SetForceUpdate(bool value)
bool ExpireTimeHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String