AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
OpenHours.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/pinpoint/model/DayOfWeek.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/pinpoint/model/OpenHoursRule.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 Pinpoint
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_PINPOINT_API OpenHours() = default;
39 AWS_PINPOINT_API OpenHours(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PINPOINT_API OpenHours& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>& GetEMAIL() const { return m_eMAIL; }
49 inline bool EMAILHasBeenSet() const { return m_eMAILHasBeenSet; }
50 template<typename EMAILT = Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>>
51 void SetEMAIL(EMAILT&& value) { m_eMAILHasBeenSet = true; m_eMAIL = std::forward<EMAILT>(value); }
52 template<typename EMAILT = Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>>
53 OpenHours& WithEMAIL(EMAILT&& value) { SetEMAIL(std::forward<EMAILT>(value)); return *this;}
55 m_eMAILHasBeenSet = true; m_eMAIL.emplace(key, value); return *this;
56 }
58
60
63 inline const Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>& GetSMS() const { return m_sMS; }
64 inline bool SMSHasBeenSet() const { return m_sMSHasBeenSet; }
65 template<typename SMST = Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>>
66 void SetSMS(SMST&& value) { m_sMSHasBeenSet = true; m_sMS = std::forward<SMST>(value); }
67 template<typename SMST = Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>>
68 OpenHours& WithSMS(SMST&& value) { SetSMS(std::forward<SMST>(value)); return *this;}
70 m_sMSHasBeenSet = true; m_sMS.emplace(key, value); return *this;
71 }
73
75
78 inline const Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>& GetPUSH() const { return m_pUSH; }
79 inline bool PUSHHasBeenSet() const { return m_pUSHHasBeenSet; }
80 template<typename PUSHT = Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>>
81 void SetPUSH(PUSHT&& value) { m_pUSHHasBeenSet = true; m_pUSH = std::forward<PUSHT>(value); }
82 template<typename PUSHT = Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>>
83 OpenHours& WithPUSH(PUSHT&& value) { SetPUSH(std::forward<PUSHT>(value)); return *this;}
85 m_pUSHHasBeenSet = true; m_pUSH.emplace(key, value); return *this;
86 }
88
90
93 inline const Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>& GetVOICE() const { return m_vOICE; }
94 inline bool VOICEHasBeenSet() const { return m_vOICEHasBeenSet; }
95 template<typename VOICET = Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>>
96 void SetVOICE(VOICET&& value) { m_vOICEHasBeenSet = true; m_vOICE = std::forward<VOICET>(value); }
97 template<typename VOICET = Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>>
98 OpenHours& WithVOICE(VOICET&& value) { SetVOICE(std::forward<VOICET>(value)); return *this;}
100 m_vOICEHasBeenSet = true; m_vOICE.emplace(key, value); return *this;
101 }
103
105
108 inline const Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>& GetCUSTOM() const { return m_cUSTOM; }
109 inline bool CUSTOMHasBeenSet() const { return m_cUSTOMHasBeenSet; }
110 template<typename CUSTOMT = Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>>
111 void SetCUSTOM(CUSTOMT&& value) { m_cUSTOMHasBeenSet = true; m_cUSTOM = std::forward<CUSTOMT>(value); }
112 template<typename CUSTOMT = Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>>
113 OpenHours& WithCUSTOM(CUSTOMT&& value) { SetCUSTOM(std::forward<CUSTOMT>(value)); return *this;}
115 m_cUSTOMHasBeenSet = true; m_cUSTOM.emplace(key, value); return *this;
116 }
118 private:
119
121 bool m_eMAILHasBeenSet = false;
122
124 bool m_sMSHasBeenSet = false;
125
127 bool m_pUSHHasBeenSet = false;
128
130 bool m_vOICEHasBeenSet = false;
131
133 bool m_cUSTOMHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace Pinpoint
138} // namespace Aws
OpenHours & AddVOICE(DayOfWeek key, Aws::Vector< OpenHoursRule > value)
Definition OpenHours.h:99
AWS_PINPOINT_API OpenHours()=default
const Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > & GetSMS() const
Definition OpenHours.h:63
const Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > & GetVOICE() const
Definition OpenHours.h:93
OpenHours & AddPUSH(DayOfWeek key, Aws::Vector< OpenHoursRule > value)
Definition OpenHours.h:84
OpenHours & WithSMS(SMST &&value)
Definition OpenHours.h:68
const Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > & GetEMAIL() const
Definition OpenHours.h:48
OpenHours & WithCUSTOM(CUSTOMT &&value)
Definition OpenHours.h:113
OpenHours & WithVOICE(VOICET &&value)
Definition OpenHours.h:98
OpenHours & WithEMAIL(EMAILT &&value)
Definition OpenHours.h:53
OpenHours & AddEMAIL(DayOfWeek key, Aws::Vector< OpenHoursRule > value)
Definition OpenHours.h:54
const Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > & GetPUSH() const
Definition OpenHours.h:78
AWS_PINPOINT_API OpenHours(Aws::Utils::Json::JsonView jsonValue)
void SetVOICE(VOICET &&value)
Definition OpenHours.h:96
OpenHours & AddSMS(DayOfWeek key, Aws::Vector< OpenHoursRule > value)
Definition OpenHours.h:69
const Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > & GetCUSTOM() const
Definition OpenHours.h:108
OpenHours & AddCUSTOM(DayOfWeek key, Aws::Vector< OpenHoursRule > value)
Definition OpenHours.h:114
OpenHours & WithPUSH(PUSHT &&value)
Definition OpenHours.h:83
void SetPUSH(PUSHT &&value)
Definition OpenHours.h:81
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:51
void SetCUSTOM(CUSTOMT &&value)
Definition OpenHours.h:111
void SetSMS(SMST &&value)
Definition OpenHours.h:66
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