AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
OpeningHoursComponents.h
1
6#pragma once
7#include <aws/geo-places/GeoPlaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GeoPlaces
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_GEOPLACES_API OpeningHoursComponents() = default;
37 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
45 inline const Aws::String& GetOpenTime() const { return m_openTime; }
46 inline bool OpenTimeHasBeenSet() const { return m_openTimeHasBeenSet; }
47 template<typename OpenTimeT = Aws::String>
48 void SetOpenTime(OpenTimeT&& value) { m_openTimeHasBeenSet = true; m_openTime = std::forward<OpenTimeT>(value); }
49 template<typename OpenTimeT = Aws::String>
50 OpeningHoursComponents& WithOpenTime(OpenTimeT&& value) { SetOpenTime(std::forward<OpenTimeT>(value)); return *this;}
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) { m_openDurationHasBeenSet = true; m_openDuration = std::forward<OpenDurationT>(value); }
62 template<typename OpenDurationT = Aws::String>
63 OpeningHoursComponents& WithOpenDuration(OpenDurationT&& value) { SetOpenDuration(std::forward<OpenDurationT>(value)); return *this;}
65
67
71 inline const Aws::String& GetRecurrence() const { return m_recurrence; }
72 inline bool RecurrenceHasBeenSet() const { return m_recurrenceHasBeenSet; }
73 template<typename RecurrenceT = Aws::String>
74 void SetRecurrence(RecurrenceT&& value) { m_recurrenceHasBeenSet = true; m_recurrence = std::forward<RecurrenceT>(value); }
75 template<typename RecurrenceT = Aws::String>
76 OpeningHoursComponents& WithRecurrence(RecurrenceT&& value) { SetRecurrence(std::forward<RecurrenceT>(value)); return *this;}
78 private:
79
80 Aws::String m_openTime;
81 bool m_openTimeHasBeenSet = false;
82
83 Aws::String m_openDuration;
84 bool m_openDurationHasBeenSet = false;
85
86 Aws::String m_recurrence;
87 bool m_recurrenceHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace GeoPlaces
92} // 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