AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDisplay(const Aws::Vector<Aws::String>& value) { m_displayHasBeenSet = true; m_display = value; }
52 inline void SetDisplay(Aws::Vector<Aws::String>&& value) { m_displayHasBeenSet = true; m_display = std::move(value); }
53 inline OpeningHours& WithDisplay(const Aws::Vector<Aws::String>& value) { SetDisplay(value); return *this;}
54 inline OpeningHours& WithDisplay(Aws::Vector<Aws::String>&& value) { SetDisplay(std::move(value)); return *this;}
55 inline OpeningHours& AddDisplay(const Aws::String& value) { m_displayHasBeenSet = true; m_display.push_back(value); return *this; }
56 inline OpeningHours& AddDisplay(Aws::String&& value) { m_displayHasBeenSet = true; m_display.push_back(std::move(value)); return *this; }
57 inline OpeningHours& AddDisplay(const char* value) { m_displayHasBeenSet = true; m_display.push_back(value); return *this; }
59
61
64 inline bool GetOpenNow() const{ return m_openNow; }
65 inline bool OpenNowHasBeenSet() const { return m_openNowHasBeenSet; }
66 inline void SetOpenNow(bool value) { m_openNowHasBeenSet = true; m_openNow = value; }
67 inline OpeningHours& WithOpenNow(bool value) { SetOpenNow(value); return *this;}
69
71
74 inline const Aws::Vector<OpeningHoursComponents>& GetComponents() const{ return m_components; }
75 inline bool ComponentsHasBeenSet() const { return m_componentsHasBeenSet; }
76 inline void SetComponents(const Aws::Vector<OpeningHoursComponents>& value) { m_componentsHasBeenSet = true; m_components = value; }
77 inline void SetComponents(Aws::Vector<OpeningHoursComponents>&& value) { m_componentsHasBeenSet = true; m_components = std::move(value); }
79 inline OpeningHours& WithComponents(Aws::Vector<OpeningHoursComponents>&& value) { SetComponents(std::move(value)); return *this;}
80 inline OpeningHours& AddComponents(const OpeningHoursComponents& value) { m_componentsHasBeenSet = true; m_components.push_back(value); return *this; }
81 inline OpeningHours& AddComponents(OpeningHoursComponents&& value) { m_componentsHasBeenSet = true; m_components.push_back(std::move(value)); return *this; }
83
85
88 inline const Aws::Vector<Category>& GetCategories() const{ return m_categories; }
89 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
90 inline void SetCategories(const Aws::Vector<Category>& value) { m_categoriesHasBeenSet = true; m_categories = value; }
91 inline void SetCategories(Aws::Vector<Category>&& value) { m_categoriesHasBeenSet = true; m_categories = std::move(value); }
92 inline OpeningHours& WithCategories(const Aws::Vector<Category>& value) { SetCategories(value); return *this;}
93 inline OpeningHours& WithCategories(Aws::Vector<Category>&& value) { SetCategories(std::move(value)); return *this;}
94 inline OpeningHours& AddCategories(const Category& value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; }
95 inline OpeningHours& AddCategories(Category&& value) { m_categoriesHasBeenSet = true; m_categories.push_back(std::move(value)); return *this; }
97 private:
98
100 bool m_displayHasBeenSet = false;
101
102 bool m_openNow;
103 bool m_openNowHasBeenSet = false;
104
106 bool m_componentsHasBeenSet = false;
107
108 Aws::Vector<Category> m_categories;
109 bool m_categoriesHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace GeoPlaces
114} // namespace Aws
OpeningHours & AddCategories(Category &&value)
OpeningHours & WithOpenNow(bool value)
AWS_GEOPLACES_API OpeningHours(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
OpeningHours & AddDisplay(const char *value)
const Aws::Vector< Category > & GetCategories() const
OpeningHours & WithDisplay(const Aws::Vector< Aws::String > &value)
void SetComponents(const Aws::Vector< OpeningHoursComponents > &value)
OpeningHours & WithCategories(Aws::Vector< Category > &&value)
const Aws::Vector< OpeningHoursComponents > & GetComponents() const
OpeningHours & AddComponents(const OpeningHoursComponents &value)
OpeningHours & AddDisplay(Aws::String &&value)
void SetDisplay(const Aws::Vector< Aws::String > &value)
OpeningHours & WithComponents(Aws::Vector< OpeningHoursComponents > &&value)
OpeningHours & WithCategories(const Aws::Vector< Category > &value)
AWS_GEOPLACES_API OpeningHours & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCategories(Aws::Vector< Category > &&value)
OpeningHours & WithDisplay(Aws::Vector< Aws::String > &&value)
OpeningHours & AddCategories(const Category &value)
void SetDisplay(Aws::Vector< Aws::String > &&value)
OpeningHours & AddComponents(OpeningHoursComponents &&value)
void SetCategories(const Aws::Vector< Category > &value)
OpeningHours & WithComponents(const Aws::Vector< OpeningHoursComponents > &value)
void SetComponents(Aws::Vector< OpeningHoursComponents > &&value)
OpeningHours & AddDisplay(const Aws::String &value)
const Aws::Vector< Aws::String > & GetDisplay() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue