7#include <aws/geo-places/GeoPlaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/geo-places/model/Category.h>
49 inline void SetRestricted(
bool value) { m_restrictedHasBeenSet =
true; m_restricted = value; }
59 template<
typename CategoriesT = Aws::Vector<Category>>
60 void SetCategories(CategoriesT&& value) { m_categoriesHasBeenSet =
true; m_categories = std::forward<CategoriesT>(value); }
61 template<
typename CategoriesT = Aws::Vector<Category>>
63 template<
typename CategoriesT = Category>
64 AccessRestriction&
AddCategories(CategoriesT&& value) { m_categoriesHasBeenSet =
true; m_categories.emplace_back(std::forward<CategoriesT>(value));
return *
this; }
68 bool m_restricted{
false};
69 bool m_restrictedHasBeenSet =
false;
72 bool m_categoriesHasBeenSet =
false;
void SetCategories(CategoriesT &&value)
AWS_GEOPLACES_API AccessRestriction()=default
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
AccessRestriction & WithRestricted(bool value)
AccessRestriction & WithCategories(CategoriesT &&value)
bool CategoriesHasBeenSet() const
bool GetRestricted() const
AccessRestriction & AddCategories(CategoriesT &&value)
AWS_GEOPLACES_API AccessRestriction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRestricted(bool value)
bool RestrictedHasBeenSet() const
AWS_GEOPLACES_API AccessRestriction(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Category > & GetCategories() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue