7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/location/LocationServiceRequest.h>
10#include <aws/location/LocationService_EXPORTS.h>
11#include <aws/location/model/ApiKeyRestrictions.h>
16namespace LocationService {
39 template <
typename KeyNameT = Aws::String>
41 m_keyNameHasBeenSet =
true;
42 m_keyName = std::forward<KeyNameT>(value);
44 template <
typename KeyNameT = Aws::String>
57 template <
typename DescriptionT = Aws::String>
59 m_descriptionHasBeenSet =
true;
60 m_description = std::forward<DescriptionT>(value);
62 template <
typename DescriptionT = Aws::String>
77 template <
typename ExpireTimeT = Aws::Utils::DateTime>
79 m_expireTimeHasBeenSet =
true;
80 m_expireTime = std::forward<ExpireTimeT>(value);
82 template <
typename ExpireTimeT = Aws::Utils::DateTime>
97 m_noExpiryHasBeenSet =
true;
117 m_forceUpdateHasBeenSet =
true;
118 m_forceUpdate = value;
132 template <
typename RestrictionsT = ApiKeyRestrictions>
134 m_restrictionsHasBeenSet =
true;
135 m_restrictions = std::forward<RestrictionsT>(value);
137 template <
typename RestrictionsT = ApiKeyRestrictions>
150 bool m_noExpiry{
false};
152 bool m_forceUpdate{
false};
154 ApiKeyRestrictions m_restrictions;
155 bool m_keyNameHasBeenSet =
false;
156 bool m_descriptionHasBeenSet =
false;
157 bool m_expireTimeHasBeenSet =
false;
158 bool m_noExpiryHasBeenSet =
false;
159 bool m_forceUpdateHasBeenSet =
false;
160 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