7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/location/LocationService_EXPORTS.h>
10#include <aws/location/model/AndroidApp.h>
11#include <aws/location/model/AppleApp.h>
22namespace LocationService {
87 template <
typename AllowActionsT = Aws::Vector<Aws::String>>
89 m_allowActionsHasBeenSet =
true;
90 m_allowActions = std::forward<AllowActionsT>(value);
92 template <
typename AllowActionsT = Aws::Vector<Aws::String>>
97 template <
typename AllowActionsT = Aws::String>
99 m_allowActionsHasBeenSet =
true;
100 m_allowActions.emplace_back(std::forward<AllowActionsT>(value));
124 template <
typename AllowResourcesT = Aws::Vector<Aws::String>>
126 m_allowResourcesHasBeenSet =
true;
127 m_allowResources = std::forward<AllowResourcesT>(value);
129 template <
typename AllowResourcesT = Aws::Vector<Aws::String>>
134 template <
typename AllowResourcesT = Aws::String>
136 m_allowResourcesHasBeenSet =
true;
137 m_allowResources.emplace_back(std::forward<AllowResourcesT>(value));
158 template <
typename AllowReferersT = Aws::Vector<Aws::String>>
160 m_allowReferersHasBeenSet =
true;
161 m_allowReferers = std::forward<AllowReferersT>(value);
163 template <
typename AllowReferersT = Aws::Vector<Aws::String>>
168 template <
typename AllowReferersT = Aws::String>
170 m_allowReferersHasBeenSet =
true;
171 m_allowReferers.emplace_back(std::forward<AllowReferersT>(value));
184 template <
typename AllowAndro
idAppsT = Aws::Vector<Andro
idApp>>
186 m_allowAndroidAppsHasBeenSet =
true;
187 m_allowAndroidApps = std::forward<AllowAndroidAppsT>(value);
189 template <
typename AllowAndro
idAppsT = Aws::Vector<Andro
idApp>>
194 template <
typename AllowAndro
idAppsT = Andro
idApp>
196 m_allowAndroidAppsHasBeenSet =
true;
197 m_allowAndroidApps.emplace_back(std::forward<AllowAndroidAppsT>(value));
210 template <
typename AllowAppleAppsT = Aws::Vector<AppleApp>>
212 m_allowAppleAppsHasBeenSet =
true;
213 m_allowAppleApps = std::forward<AllowAppleAppsT>(value);
215 template <
typename AllowAppleAppsT = Aws::Vector<AppleApp>>
220 template <
typename AllowAppleAppsT = AppleApp>
222 m_allowAppleAppsHasBeenSet =
true;
223 m_allowAppleApps.emplace_back(std::forward<AllowAppleAppsT>(value));
237 bool m_allowActionsHasBeenSet =
false;
238 bool m_allowResourcesHasBeenSet =
false;
239 bool m_allowReferersHasBeenSet =
false;
240 bool m_allowAndroidAppsHasBeenSet =
false;
241 bool m_allowAppleAppsHasBeenSet =
false;
const Aws::Vector< AppleApp > & GetAllowAppleApps() const
ApiKeyRestrictions & AddAllowAndroidApps(AllowAndroidAppsT &&value)
void SetAllowReferers(AllowReferersT &&value)
const Aws::Vector< AndroidApp > & GetAllowAndroidApps() const
bool AllowResourcesHasBeenSet() const
ApiKeyRestrictions & WithAllowAppleApps(AllowAppleAppsT &&value)
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAllowAndroidApps(AllowAndroidAppsT &&value)
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)
void SetAllowAppleApps(AllowAppleAppsT &&value)
const Aws::Vector< Aws::String > & GetAllowResources() const
AWS_LOCATIONSERVICE_API ApiKeyRestrictions & operator=(Aws::Utils::Json::JsonView jsonValue)
ApiKeyRestrictions & WithAllowAndroidApps(AllowAndroidAppsT &&value)
bool AllowReferersHasBeenSet() const
bool AllowAndroidAppsHasBeenSet() const
ApiKeyRestrictions & AddAllowActions(AllowActionsT &&value)
ApiKeyRestrictions & AddAllowAppleApps(AllowAppleAppsT &&value)
ApiKeyRestrictions & WithAllowResources(AllowResourcesT &&value)
bool AllowAppleAppsHasBeenSet() const
bool AllowActionsHasBeenSet() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue