AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
OpeningHours.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/core/utils/memory/stl/AWSString.h>
10#include <aws/geo-places/model/OpeningHoursComponents.h>
11#include <aws/geo-places/model/Category.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GeoPlaces
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_GEOPLACES_API OpeningHours() = default;
38 AWS_GEOPLACES_API OpeningHours(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GEOPLACES_API OpeningHours& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::Vector<Aws::String>& GetDisplay() const { return m_display; }
50 inline bool DisplayHasBeenSet() const { return m_displayHasBeenSet; }
51 template<typename DisplayT = Aws::Vector<Aws::String>>
52 void SetDisplay(DisplayT&& value) { m_displayHasBeenSet = true; m_display = std::forward<DisplayT>(value); }
53 template<typename DisplayT = Aws::Vector<Aws::String>>
54 OpeningHours& WithDisplay(DisplayT&& value) { SetDisplay(std::forward<DisplayT>(value)); return *this;}
55 template<typename DisplayT = Aws::String>
56 OpeningHours& AddDisplay(DisplayT&& value) { m_displayHasBeenSet = true; m_display.emplace_back(std::forward<DisplayT>(value)); return *this; }
58
60
63 inline bool GetOpenNow() const { return m_openNow; }
64 inline bool OpenNowHasBeenSet() const { return m_openNowHasBeenSet; }
65 inline void SetOpenNow(bool value) { m_openNowHasBeenSet = true; m_openNow = value; }
66 inline OpeningHours& WithOpenNow(bool value) { SetOpenNow(value); return *this;}
68
70
73 inline const Aws::Vector<OpeningHoursComponents>& GetComponents() const { return m_components; }
74 inline bool ComponentsHasBeenSet() const { return m_componentsHasBeenSet; }
75 template<typename ComponentsT = Aws::Vector<OpeningHoursComponents>>
76 void SetComponents(ComponentsT&& value) { m_componentsHasBeenSet = true; m_components = std::forward<ComponentsT>(value); }
77 template<typename ComponentsT = Aws::Vector<OpeningHoursComponents>>
78 OpeningHours& WithComponents(ComponentsT&& value) { SetComponents(std::forward<ComponentsT>(value)); return *this;}
79 template<typename ComponentsT = OpeningHoursComponents>
80 OpeningHours& AddComponents(ComponentsT&& value) { m_componentsHasBeenSet = true; m_components.emplace_back(std::forward<ComponentsT>(value)); return *this; }
82
84
87 inline const Aws::Vector<Category>& GetCategories() const { return m_categories; }
88 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
89 template<typename CategoriesT = Aws::Vector<Category>>
90 void SetCategories(CategoriesT&& value) { m_categoriesHasBeenSet = true; m_categories = std::forward<CategoriesT>(value); }
91 template<typename CategoriesT = Aws::Vector<Category>>
92 OpeningHours& WithCategories(CategoriesT&& value) { SetCategories(std::forward<CategoriesT>(value)); return *this;}
93 template<typename CategoriesT = Category>
94 OpeningHours& AddCategories(CategoriesT&& value) { m_categoriesHasBeenSet = true; m_categories.emplace_back(std::forward<CategoriesT>(value)); return *this; }
96 private:
97
99 bool m_displayHasBeenSet = false;
100
101 bool m_openNow{false};
102 bool m_openNowHasBeenSet = false;
103
105 bool m_componentsHasBeenSet = false;
106
107 Aws::Vector<Category> m_categories;
108 bool m_categoriesHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace GeoPlaces
113} // namespace Aws
OpeningHours & WithOpenNow(bool value)
AWS_GEOPLACES_API OpeningHours(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Category > & GetCategories() const
OpeningHours & AddDisplay(DisplayT &&value)
const Aws::Vector< OpeningHoursComponents > & GetComponents() const
void SetDisplay(DisplayT &&value)
AWS_GEOPLACES_API OpeningHours & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API OpeningHours()=default
OpeningHours & AddComponents(ComponentsT &&value)
OpeningHours & WithDisplay(DisplayT &&value)
void SetComponents(ComponentsT &&value)
OpeningHours & WithComponents(ComponentsT &&value)
void SetCategories(CategoriesT &&value)
OpeningHours & WithCategories(CategoriesT &&value)
const Aws::Vector< Aws::String > & GetDisplay() const
OpeningHours & AddCategories(CategoriesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue