AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
OpeningHours.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/geo-places/GeoPlaces_EXPORTS.h>
10#include <aws/geo-places/model/Category.h>
11#include <aws/geo-places/model/OpeningHoursComponents.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GeoPlaces {
23namespace Model {
24
31 public:
32 AWS_GEOPLACES_API OpeningHours() = default;
33 AWS_GEOPLACES_API OpeningHours(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GEOPLACES_API OpeningHours& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::Vector<Aws::String>& GetDisplay() const { return m_display; }
44 inline bool DisplayHasBeenSet() const { return m_displayHasBeenSet; }
45 template <typename DisplayT = Aws::Vector<Aws::String>>
46 void SetDisplay(DisplayT&& value) {
47 m_displayHasBeenSet = true;
48 m_display = std::forward<DisplayT>(value);
49 }
50 template <typename DisplayT = Aws::Vector<Aws::String>>
51 OpeningHours& WithDisplay(DisplayT&& value) {
52 SetDisplay(std::forward<DisplayT>(value));
53 return *this;
54 }
55 template <typename DisplayT = Aws::String>
56 OpeningHours& AddDisplay(DisplayT&& value) {
57 m_displayHasBeenSet = true;
58 m_display.emplace_back(std::forward<DisplayT>(value));
59 return *this;
60 }
62
64
67 inline bool GetOpenNow() const { return m_openNow; }
68 inline bool OpenNowHasBeenSet() const { return m_openNowHasBeenSet; }
69 inline void SetOpenNow(bool value) {
70 m_openNowHasBeenSet = true;
71 m_openNow = value;
72 }
73 inline OpeningHours& WithOpenNow(bool value) {
74 SetOpenNow(value);
75 return *this;
76 }
78
80
83 inline const Aws::Vector<OpeningHoursComponents>& GetComponents() const { return m_components; }
84 inline bool ComponentsHasBeenSet() const { return m_componentsHasBeenSet; }
85 template <typename ComponentsT = Aws::Vector<OpeningHoursComponents>>
86 void SetComponents(ComponentsT&& value) {
87 m_componentsHasBeenSet = true;
88 m_components = std::forward<ComponentsT>(value);
89 }
90 template <typename ComponentsT = Aws::Vector<OpeningHoursComponents>>
91 OpeningHours& WithComponents(ComponentsT&& value) {
92 SetComponents(std::forward<ComponentsT>(value));
93 return *this;
94 }
95 template <typename ComponentsT = OpeningHoursComponents>
96 OpeningHours& AddComponents(ComponentsT&& value) {
97 m_componentsHasBeenSet = true;
98 m_components.emplace_back(std::forward<ComponentsT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::Vector<Category>& GetCategories() const { return m_categories; }
108 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
109 template <typename CategoriesT = Aws::Vector<Category>>
110 void SetCategories(CategoriesT&& value) {
111 m_categoriesHasBeenSet = true;
112 m_categories = std::forward<CategoriesT>(value);
113 }
114 template <typename CategoriesT = Aws::Vector<Category>>
115 OpeningHours& WithCategories(CategoriesT&& value) {
116 SetCategories(std::forward<CategoriesT>(value));
117 return *this;
118 }
119 template <typename CategoriesT = Category>
120 OpeningHours& AddCategories(CategoriesT&& value) {
121 m_categoriesHasBeenSet = true;
122 m_categories.emplace_back(std::forward<CategoriesT>(value));
123 return *this;
124 }
126 private:
127 Aws::Vector<Aws::String> m_display;
128
129 bool m_openNow{false};
130
132
133 Aws::Vector<Category> m_categories;
134 bool m_displayHasBeenSet = false;
135 bool m_openNowHasBeenSet = false;
136 bool m_componentsHasBeenSet = false;
137 bool m_categoriesHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace GeoPlaces
142} // 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