AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AccessRestriction.h
1
6#pragma once
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>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GeoPlaces
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_GEOPLACES_API AccessRestriction();
38 AWS_GEOPLACES_API AccessRestriction(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline bool GetRestricted() const{ return m_restricted; }
48 inline bool RestrictedHasBeenSet() const { return m_restrictedHasBeenSet; }
49 inline void SetRestricted(bool value) { m_restrictedHasBeenSet = true; m_restricted = value; }
50 inline AccessRestriction& WithRestricted(bool value) { SetRestricted(value); return *this;}
52
54
57 inline const Aws::Vector<Category>& GetCategories() const{ return m_categories; }
58 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
59 inline void SetCategories(const Aws::Vector<Category>& value) { m_categoriesHasBeenSet = true; m_categories = value; }
60 inline void SetCategories(Aws::Vector<Category>&& value) { m_categoriesHasBeenSet = true; m_categories = std::move(value); }
61 inline AccessRestriction& WithCategories(const Aws::Vector<Category>& value) { SetCategories(value); return *this;}
62 inline AccessRestriction& WithCategories(Aws::Vector<Category>&& value) { SetCategories(std::move(value)); return *this;}
63 inline AccessRestriction& AddCategories(const Category& value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; }
64 inline AccessRestriction& AddCategories(Category&& value) { m_categoriesHasBeenSet = true; m_categories.push_back(std::move(value)); return *this; }
66 private:
67
68 bool m_restricted;
69 bool m_restrictedHasBeenSet = false;
70
71 Aws::Vector<Category> m_categories;
72 bool m_categoriesHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace GeoPlaces
77} // namespace Aws
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
AccessRestriction & WithCategories(const Aws::Vector< Category > &value)
AccessRestriction & WithRestricted(bool value)
AccessRestriction & AddCategories(const Category &value)
void SetCategories(Aws::Vector< Category > &&value)
AccessRestriction & AddCategories(Category &&value)
AWS_GEOPLACES_API AccessRestriction & operator=(Aws::Utils::Json::JsonView jsonValue)
AccessRestriction & WithCategories(Aws::Vector< Category > &&value)
void SetCategories(const Aws::Vector< Category > &value)
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