7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
22namespace LocationService
67 template<
typename AllowActionsT = Aws::Vector<Aws::String>>
68 void SetAllowActions(AllowActionsT&& value) { m_allowActionsHasBeenSet =
true; m_allowActions = std::forward<AllowActionsT>(value); }
69 template<
typename AllowActionsT = Aws::Vector<Aws::String>>
71 template<
typename AllowActionsT = Aws::String>
72 ApiKeyRestrictions&
AddAllowActions(AllowActionsT&& value) { m_allowActionsHasBeenSet =
true; m_allowActions.emplace_back(std::forward<AllowActionsT>(value));
return *
this; }
94 template<
typename AllowResourcesT = Aws::Vector<Aws::String>>
95 void SetAllowResources(AllowResourcesT&& value) { m_allowResourcesHasBeenSet =
true; m_allowResources = std::forward<AllowResourcesT>(value); }
96 template<
typename AllowResourcesT = Aws::Vector<Aws::String>>
98 template<
typename AllowResourcesT = Aws::String>
99 ApiKeyRestrictions&
AddAllowResources(AllowResourcesT&& value) { m_allowResourcesHasBeenSet =
true; m_allowResources.emplace_back(std::forward<AllowResourcesT>(value));
return *
this; }
118 template<
typename AllowReferersT = Aws::Vector<Aws::String>>
119 void SetAllowReferers(AllowReferersT&& value) { m_allowReferersHasBeenSet =
true; m_allowReferers = std::forward<AllowReferersT>(value); }
120 template<
typename AllowReferersT = Aws::Vector<Aws::String>>
122 template<
typename AllowReferersT = Aws::String>
128 bool m_allowActionsHasBeenSet =
false;
131 bool m_allowResourcesHasBeenSet =
false;
134 bool m_allowReferersHasBeenSet =
false;
void SetAllowReferers(AllowReferersT &&value)
bool AllowResourcesHasBeenSet() const
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ApiKeyRestrictions & AddAllowResources(AllowResourcesT &&value)
AWS_LOCATIONSERVICE_API ApiKeyRestrictions(Aws::Utils::Json::JsonView jsonValue)
ApiKeyRestrictions & WithAllowReferers(AllowReferersT &&value)
const Aws::Vector< Aws::String > & GetAllowActions() const
const Aws::Vector< Aws::String > & GetAllowReferers() const
AWS_LOCATIONSERVICE_API ApiKeyRestrictions()=default
ApiKeyRestrictions & AddAllowReferers(AllowReferersT &&value)
ApiKeyRestrictions & WithAllowActions(AllowActionsT &&value)
void SetAllowResources(AllowResourcesT &&value)
void SetAllowActions(AllowActionsT &&value)
const Aws::Vector< Aws::String > & GetAllowResources() const
AWS_LOCATIONSERVICE_API ApiKeyRestrictions & operator=(Aws::Utils::Json::JsonView jsonValue)
bool AllowReferersHasBeenSet() const
ApiKeyRestrictions & AddAllowActions(AllowActionsT &&value)
ApiKeyRestrictions & WithAllowResources(AllowResourcesT &&value)
bool AllowActionsHasBeenSet() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue