AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
OpeningHoursComponents.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/geo-places/GeoPlaces_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GeoPlaces {
20namespace Model {
21
28 public:
29 AWS_GEOPLACES_API OpeningHoursComponents() = default;
32 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
39 inline const Aws::String& GetOpenTime() const { return m_openTime; }
40 inline bool OpenTimeHasBeenSet() const { return m_openTimeHasBeenSet; }
41 template <typename OpenTimeT = Aws::String>
42 void SetOpenTime(OpenTimeT&& value) {
43 m_openTimeHasBeenSet = true;
44 m_openTime = std::forward<OpenTimeT>(value);
45 }
46 template <typename OpenTimeT = Aws::String>
48 SetOpenTime(std::forward<OpenTimeT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetOpenDuration() const { return m_openDuration; }
59 inline bool OpenDurationHasBeenSet() const { return m_openDurationHasBeenSet; }
60 template <typename OpenDurationT = Aws::String>
61 void SetOpenDuration(OpenDurationT&& value) {
62 m_openDurationHasBeenSet = true;
63 m_openDuration = std::forward<OpenDurationT>(value);
64 }
65 template <typename OpenDurationT = Aws::String>
66 OpeningHoursComponents& WithOpenDuration(OpenDurationT&& value) {
67 SetOpenDuration(std::forward<OpenDurationT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetRecurrence() const { return m_recurrence; }
78 inline bool RecurrenceHasBeenSet() const { return m_recurrenceHasBeenSet; }
79 template <typename RecurrenceT = Aws::String>
80 void SetRecurrence(RecurrenceT&& value) {
81 m_recurrenceHasBeenSet = true;
82 m_recurrence = std::forward<RecurrenceT>(value);
83 }
84 template <typename RecurrenceT = Aws::String>
85 OpeningHoursComponents& WithRecurrence(RecurrenceT&& value) {
86 SetRecurrence(std::forward<RecurrenceT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_openTime;
92
93 Aws::String m_openDuration;
94
95 Aws::String m_recurrence;
96 bool m_openTimeHasBeenSet = false;
97 bool m_openDurationHasBeenSet = false;
98 bool m_recurrenceHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace GeoPlaces
103} // namespace Aws
OpeningHoursComponents & WithRecurrence(RecurrenceT &&value)
AWS_GEOPLACES_API OpeningHoursComponents(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API OpeningHoursComponents()=default
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
OpeningHoursComponents & WithOpenTime(OpenTimeT &&value)
OpeningHoursComponents & WithOpenDuration(OpenDurationT &&value)
AWS_GEOPLACES_API OpeningHoursComponents & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue