AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
OpenHours.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/pinpoint/Pinpoint_EXPORTS.h>
10#include <aws/pinpoint/model/DayOfWeek.h>
11#include <aws/pinpoint/model/OpenHoursRule.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pinpoint {
23namespace Model {
24
31class OpenHours {
32 public:
33 AWS_PINPOINT_API OpenHours() = default;
34 AWS_PINPOINT_API OpenHours(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PINPOINT_API OpenHours& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>& GetEMAIL() const { return m_eMAIL; }
43 inline bool EMAILHasBeenSet() const { return m_eMAILHasBeenSet; }
44 template <typename EMAILT = Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>>
45 void SetEMAIL(EMAILT&& value) {
46 m_eMAILHasBeenSet = true;
47 m_eMAIL = std::forward<EMAILT>(value);
48 }
49 template <typename EMAILT = Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>>
50 OpenHours& WithEMAIL(EMAILT&& value) {
51 SetEMAIL(std::forward<EMAILT>(value));
52 return *this;
53 }
55 m_eMAILHasBeenSet = true;
56 m_eMAIL.emplace(key, value);
57 return *this;
58 }
60
62
65 inline const Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>& GetSMS() const { return m_sMS; }
66 inline bool SMSHasBeenSet() const { return m_sMSHasBeenSet; }
67 template <typename SMST = Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>>
68 void SetSMS(SMST&& value) {
69 m_sMSHasBeenSet = true;
70 m_sMS = std::forward<SMST>(value);
71 }
72 template <typename SMST = Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>>
73 OpenHours& WithSMS(SMST&& value) {
74 SetSMS(std::forward<SMST>(value));
75 return *this;
76 }
78 m_sMSHasBeenSet = true;
79 m_sMS.emplace(key, value);
80 return *this;
81 }
83
85
88 inline const Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>& GetPUSH() const { return m_pUSH; }
89 inline bool PUSHHasBeenSet() const { return m_pUSHHasBeenSet; }
90 template <typename PUSHT = Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>>
91 void SetPUSH(PUSHT&& value) {
92 m_pUSHHasBeenSet = true;
93 m_pUSH = std::forward<PUSHT>(value);
94 }
95 template <typename PUSHT = Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>>
96 OpenHours& WithPUSH(PUSHT&& value) {
97 SetPUSH(std::forward<PUSHT>(value));
98 return *this;
99 }
101 m_pUSHHasBeenSet = true;
102 m_pUSH.emplace(key, value);
103 return *this;
104 }
106
108
111 inline const Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>& GetVOICE() const { return m_vOICE; }
112 inline bool VOICEHasBeenSet() const { return m_vOICEHasBeenSet; }
113 template <typename VOICET = Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>>
114 void SetVOICE(VOICET&& value) {
115 m_vOICEHasBeenSet = true;
116 m_vOICE = std::forward<VOICET>(value);
117 }
118 template <typename VOICET = Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>>
119 OpenHours& WithVOICE(VOICET&& value) {
120 SetVOICE(std::forward<VOICET>(value));
121 return *this;
122 }
124 m_vOICEHasBeenSet = true;
125 m_vOICE.emplace(key, value);
126 return *this;
127 }
129
131
134 inline const Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>& GetCUSTOM() const { return m_cUSTOM; }
135 inline bool CUSTOMHasBeenSet() const { return m_cUSTOMHasBeenSet; }
136 template <typename CUSTOMT = Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>>
137 void SetCUSTOM(CUSTOMT&& value) {
138 m_cUSTOMHasBeenSet = true;
139 m_cUSTOM = std::forward<CUSTOMT>(value);
140 }
141 template <typename CUSTOMT = Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>>
142 OpenHours& WithCUSTOM(CUSTOMT&& value) {
143 SetCUSTOM(std::forward<CUSTOMT>(value));
144 return *this;
145 }
147 m_cUSTOMHasBeenSet = true;
148 m_cUSTOM.emplace(key, value);
149 return *this;
150 }
152 private:
154 bool m_eMAILHasBeenSet = false;
155
157 bool m_sMSHasBeenSet = false;
158
160 bool m_pUSHHasBeenSet = false;
161
163 bool m_vOICEHasBeenSet = false;
164
166 bool m_cUSTOMHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace Pinpoint
171} // namespace Aws
OpenHours & AddVOICE(DayOfWeek key, Aws::Vector< OpenHoursRule > value)
Definition OpenHours.h:123
AWS_PINPOINT_API OpenHours()=default
const Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > & GetSMS() const
Definition OpenHours.h:65
const Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > & GetVOICE() const
Definition OpenHours.h:111
OpenHours & AddPUSH(DayOfWeek key, Aws::Vector< OpenHoursRule > value)
Definition OpenHours.h:100
OpenHours & WithSMS(SMST &&value)
Definition OpenHours.h:73
const Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > & GetEMAIL() const
Definition OpenHours.h:42
OpenHours & WithCUSTOM(CUSTOMT &&value)
Definition OpenHours.h:142
OpenHours & WithVOICE(VOICET &&value)
Definition OpenHours.h:119
OpenHours & WithEMAIL(EMAILT &&value)
Definition OpenHours.h:50
OpenHours & AddEMAIL(DayOfWeek key, Aws::Vector< OpenHoursRule > value)
Definition OpenHours.h:54
const Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > & GetPUSH() const
Definition OpenHours.h:88
AWS_PINPOINT_API OpenHours(Aws::Utils::Json::JsonView jsonValue)
void SetVOICE(VOICET &&value)
Definition OpenHours.h:114
OpenHours & AddSMS(DayOfWeek key, Aws::Vector< OpenHoursRule > value)
Definition OpenHours.h:77
const Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > & GetCUSTOM() const
Definition OpenHours.h:134
OpenHours & AddCUSTOM(DayOfWeek key, Aws::Vector< OpenHoursRule > value)
Definition OpenHours.h:146
OpenHours & WithPUSH(PUSHT &&value)
Definition OpenHours.h:96
void SetPUSH(PUSHT &&value)
Definition OpenHours.h:91
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API OpenHours & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEMAIL(EMAILT &&value)
Definition OpenHours.h:45
void SetCUSTOM(CUSTOMT &&value)
Definition OpenHours.h:137
void SetSMS(SMST &&value)
Definition OpenHours.h:68
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue