AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
WhatsAppCallHours.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/socialmessaging/SocialMessaging_EXPORTS.h>
10#include <aws/socialmessaging/model/WhatsAppHolidayScheduleEntry.h>
11#include <aws/socialmessaging/model/WhatsAppWeeklyOperatingHoursEntry.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SocialMessaging {
23namespace Model {
24
33 public:
34 AWS_SOCIALMESSAGING_API WhatsAppCallHours() = default;
35 AWS_SOCIALMESSAGING_API WhatsAppCallHours(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SOCIALMESSAGING_API WhatsAppCallHours& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SOCIALMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline bool GetEnabled() const { return m_enabled; }
45 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
46 inline void SetEnabled(bool value) {
47 m_enabledHasBeenSet = true;
48 m_enabled = value;
49 }
50 inline WhatsAppCallHours& WithEnabled(bool value) {
51 SetEnabled(value);
52 return *this;
53 }
55
57
61 inline const Aws::String& GetTimezone() const { return m_timezone; }
62 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
63 template <typename TimezoneT = Aws::String>
64 void SetTimezone(TimezoneT&& value) {
65 m_timezoneHasBeenSet = true;
66 m_timezone = std::forward<TimezoneT>(value);
67 }
68 template <typename TimezoneT = Aws::String>
69 WhatsAppCallHours& WithTimezone(TimezoneT&& value) {
70 SetTimezone(std::forward<TimezoneT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<WhatsAppWeeklyOperatingHoursEntry>& GetWeeklyOperatingHours() const { return m_weeklyOperatingHours; }
80 inline bool WeeklyOperatingHoursHasBeenSet() const { return m_weeklyOperatingHoursHasBeenSet; }
81 template <typename WeeklyOperatingHoursT = Aws::Vector<WhatsAppWeeklyOperatingHoursEntry>>
82 void SetWeeklyOperatingHours(WeeklyOperatingHoursT&& value) {
83 m_weeklyOperatingHoursHasBeenSet = true;
84 m_weeklyOperatingHours = std::forward<WeeklyOperatingHoursT>(value);
85 }
86 template <typename WeeklyOperatingHoursT = Aws::Vector<WhatsAppWeeklyOperatingHoursEntry>>
87 WhatsAppCallHours& WithWeeklyOperatingHours(WeeklyOperatingHoursT&& value) {
88 SetWeeklyOperatingHours(std::forward<WeeklyOperatingHoursT>(value));
89 return *this;
90 }
91 template <typename WeeklyOperatingHoursT = WhatsAppWeeklyOperatingHoursEntry>
92 WhatsAppCallHours& AddWeeklyOperatingHours(WeeklyOperatingHoursT&& value) {
93 m_weeklyOperatingHoursHasBeenSet = true;
94 m_weeklyOperatingHours.emplace_back(std::forward<WeeklyOperatingHoursT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Vector<WhatsAppHolidayScheduleEntry>& GetHolidaySchedule() const { return m_holidaySchedule; }
104 inline bool HolidayScheduleHasBeenSet() const { return m_holidayScheduleHasBeenSet; }
105 template <typename HolidayScheduleT = Aws::Vector<WhatsAppHolidayScheduleEntry>>
106 void SetHolidaySchedule(HolidayScheduleT&& value) {
107 m_holidayScheduleHasBeenSet = true;
108 m_holidaySchedule = std::forward<HolidayScheduleT>(value);
109 }
110 template <typename HolidayScheduleT = Aws::Vector<WhatsAppHolidayScheduleEntry>>
111 WhatsAppCallHours& WithHolidaySchedule(HolidayScheduleT&& value) {
112 SetHolidaySchedule(std::forward<HolidayScheduleT>(value));
113 return *this;
114 }
115 template <typename HolidayScheduleT = WhatsAppHolidayScheduleEntry>
116 WhatsAppCallHours& AddHolidaySchedule(HolidayScheduleT&& value) {
117 m_holidayScheduleHasBeenSet = true;
118 m_holidaySchedule.emplace_back(std::forward<HolidayScheduleT>(value));
119 return *this;
120 }
122 private:
123 bool m_enabled{false};
124
125 Aws::String m_timezone;
126
128
130 bool m_enabledHasBeenSet = false;
131 bool m_timezoneHasBeenSet = false;
132 bool m_weeklyOperatingHoursHasBeenSet = false;
133 bool m_holidayScheduleHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace SocialMessaging
138} // namespace Aws
AWS_SOCIALMESSAGING_API WhatsAppCallHours & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SOCIALMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const
WhatsAppCallHours & AddWeeklyOperatingHours(WeeklyOperatingHoursT &&value)
AWS_SOCIALMESSAGING_API WhatsAppCallHours(Aws::Utils::Json::JsonView jsonValue)
void SetWeeklyOperatingHours(WeeklyOperatingHoursT &&value)
WhatsAppCallHours & WithEnabled(bool value)
const Aws::Vector< WhatsAppHolidayScheduleEntry > & GetHolidaySchedule() const
void SetHolidaySchedule(HolidayScheduleT &&value)
WhatsAppCallHours & WithTimezone(TimezoneT &&value)
WhatsAppCallHours & AddHolidaySchedule(HolidayScheduleT &&value)
WhatsAppCallHours & WithWeeklyOperatingHours(WeeklyOperatingHoursT &&value)
const Aws::Vector< WhatsAppWeeklyOperatingHoursEntry > & GetWeeklyOperatingHours() const
AWS_SOCIALMESSAGING_API WhatsAppCallHours()=default
WhatsAppCallHours & WithHolidaySchedule(HolidayScheduleT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue