AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEMAIL(const Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>& value) { m_eMAILHasBeenSet = true; m_eMAIL = value; }
51 inline void SetEMAIL(Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>&& value) { m_eMAILHasBeenSet = true; m_eMAIL = std::move(value); }
52 inline OpenHours& WithEMAIL(const Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>& value) { SetEMAIL(value); return *this;}
53 inline OpenHours& WithEMAIL(Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>&& value) { SetEMAIL(std::move(value)); return *this;}
54 inline OpenHours& AddEMAIL(const DayOfWeek& key, const Aws::Vector<OpenHoursRule>& value) { m_eMAILHasBeenSet = true; m_eMAIL.emplace(key, value); return *this; }
55 inline OpenHours& AddEMAIL(DayOfWeek&& key, const Aws::Vector<OpenHoursRule>& value) { m_eMAILHasBeenSet = true; m_eMAIL.emplace(std::move(key), value); return *this; }
56 inline OpenHours& AddEMAIL(const DayOfWeek& key, Aws::Vector<OpenHoursRule>&& value) { m_eMAILHasBeenSet = true; m_eMAIL.emplace(key, std::move(value)); return *this; }
57 inline OpenHours& AddEMAIL(DayOfWeek&& key, Aws::Vector<OpenHoursRule>&& value) { m_eMAILHasBeenSet = true; m_eMAIL.emplace(std::move(key), std::move(value)); return *this; }
59
61
64 inline const Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>& GetSMS() const{ return m_sMS; }
65 inline bool SMSHasBeenSet() const { return m_sMSHasBeenSet; }
66 inline void SetSMS(const Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>& value) { m_sMSHasBeenSet = true; m_sMS = value; }
67 inline void SetSMS(Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>&& value) { m_sMSHasBeenSet = true; m_sMS = std::move(value); }
68 inline OpenHours& WithSMS(const Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>& value) { SetSMS(value); return *this;}
69 inline OpenHours& WithSMS(Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>&& value) { SetSMS(std::move(value)); return *this;}
70 inline OpenHours& AddSMS(const DayOfWeek& key, const Aws::Vector<OpenHoursRule>& value) { m_sMSHasBeenSet = true; m_sMS.emplace(key, value); return *this; }
71 inline OpenHours& AddSMS(DayOfWeek&& key, const Aws::Vector<OpenHoursRule>& value) { m_sMSHasBeenSet = true; m_sMS.emplace(std::move(key), value); return *this; }
72 inline OpenHours& AddSMS(const DayOfWeek& key, Aws::Vector<OpenHoursRule>&& value) { m_sMSHasBeenSet = true; m_sMS.emplace(key, std::move(value)); return *this; }
73 inline OpenHours& AddSMS(DayOfWeek&& key, Aws::Vector<OpenHoursRule>&& value) { m_sMSHasBeenSet = true; m_sMS.emplace(std::move(key), std::move(value)); return *this; }
75
77
80 inline const Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>& GetPUSH() const{ return m_pUSH; }
81 inline bool PUSHHasBeenSet() const { return m_pUSHHasBeenSet; }
82 inline void SetPUSH(const Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>& value) { m_pUSHHasBeenSet = true; m_pUSH = value; }
83 inline void SetPUSH(Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>&& value) { m_pUSHHasBeenSet = true; m_pUSH = std::move(value); }
84 inline OpenHours& WithPUSH(const Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>& value) { SetPUSH(value); return *this;}
85 inline OpenHours& WithPUSH(Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>&& value) { SetPUSH(std::move(value)); return *this;}
86 inline OpenHours& AddPUSH(const DayOfWeek& key, const Aws::Vector<OpenHoursRule>& value) { m_pUSHHasBeenSet = true; m_pUSH.emplace(key, value); return *this; }
87 inline OpenHours& AddPUSH(DayOfWeek&& key, const Aws::Vector<OpenHoursRule>& value) { m_pUSHHasBeenSet = true; m_pUSH.emplace(std::move(key), value); return *this; }
88 inline OpenHours& AddPUSH(const DayOfWeek& key, Aws::Vector<OpenHoursRule>&& value) { m_pUSHHasBeenSet = true; m_pUSH.emplace(key, std::move(value)); return *this; }
89 inline OpenHours& AddPUSH(DayOfWeek&& key, Aws::Vector<OpenHoursRule>&& value) { m_pUSHHasBeenSet = true; m_pUSH.emplace(std::move(key), std::move(value)); return *this; }
91
93
96 inline const Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>& GetVOICE() const{ return m_vOICE; }
97 inline bool VOICEHasBeenSet() const { return m_vOICEHasBeenSet; }
98 inline void SetVOICE(const Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>& value) { m_vOICEHasBeenSet = true; m_vOICE = value; }
99 inline void SetVOICE(Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>&& value) { m_vOICEHasBeenSet = true; m_vOICE = std::move(value); }
100 inline OpenHours& WithVOICE(const Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>& value) { SetVOICE(value); return *this;}
101 inline OpenHours& WithVOICE(Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>&& value) { SetVOICE(std::move(value)); return *this;}
102 inline OpenHours& AddVOICE(const DayOfWeek& key, const Aws::Vector<OpenHoursRule>& value) { m_vOICEHasBeenSet = true; m_vOICE.emplace(key, value); return *this; }
103 inline OpenHours& AddVOICE(DayOfWeek&& key, const Aws::Vector<OpenHoursRule>& value) { m_vOICEHasBeenSet = true; m_vOICE.emplace(std::move(key), value); return *this; }
104 inline OpenHours& AddVOICE(const DayOfWeek& key, Aws::Vector<OpenHoursRule>&& value) { m_vOICEHasBeenSet = true; m_vOICE.emplace(key, std::move(value)); return *this; }
105 inline OpenHours& AddVOICE(DayOfWeek&& key, Aws::Vector<OpenHoursRule>&& value) { m_vOICEHasBeenSet = true; m_vOICE.emplace(std::move(key), std::move(value)); return *this; }
107
109
112 inline const Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>& GetCUSTOM() const{ return m_cUSTOM; }
113 inline bool CUSTOMHasBeenSet() const { return m_cUSTOMHasBeenSet; }
114 inline void SetCUSTOM(const Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>& value) { m_cUSTOMHasBeenSet = true; m_cUSTOM = value; }
115 inline void SetCUSTOM(Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>&& value) { m_cUSTOMHasBeenSet = true; m_cUSTOM = std::move(value); }
116 inline OpenHours& WithCUSTOM(const Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>& value) { SetCUSTOM(value); return *this;}
117 inline OpenHours& WithCUSTOM(Aws::Map<DayOfWeek, Aws::Vector<OpenHoursRule>>&& value) { SetCUSTOM(std::move(value)); return *this;}
118 inline OpenHours& AddCUSTOM(const DayOfWeek& key, const Aws::Vector<OpenHoursRule>& value) { m_cUSTOMHasBeenSet = true; m_cUSTOM.emplace(key, value); return *this; }
119 inline OpenHours& AddCUSTOM(DayOfWeek&& key, const Aws::Vector<OpenHoursRule>& value) { m_cUSTOMHasBeenSet = true; m_cUSTOM.emplace(std::move(key), value); return *this; }
120 inline OpenHours& AddCUSTOM(const DayOfWeek& key, Aws::Vector<OpenHoursRule>&& value) { m_cUSTOMHasBeenSet = true; m_cUSTOM.emplace(key, std::move(value)); return *this; }
121 inline OpenHours& AddCUSTOM(DayOfWeek&& key, Aws::Vector<OpenHoursRule>&& value) { m_cUSTOMHasBeenSet = true; m_cUSTOM.emplace(std::move(key), std::move(value)); return *this; }
123 private:
124
126 bool m_eMAILHasBeenSet = false;
127
129 bool m_sMSHasBeenSet = false;
130
132 bool m_pUSHHasBeenSet = false;
133
135 bool m_vOICEHasBeenSet = false;
136
138 bool m_cUSTOMHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace Pinpoint
143} // namespace Aws
OpenHours & AddCUSTOM(DayOfWeek &&key, const Aws::Vector< OpenHoursRule > &value)
Definition OpenHours.h:119
OpenHours & AddVOICE(DayOfWeek &&key, const Aws::Vector< OpenHoursRule > &value)
Definition OpenHours.h:103
OpenHours & WithPUSH(const Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > &value)
Definition OpenHours.h:84
void SetEMAIL(const Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > &value)
Definition OpenHours.h:50
OpenHours & WithVOICE(const Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > &value)
Definition OpenHours.h:100
OpenHours & AddSMS(const DayOfWeek &key, const Aws::Vector< OpenHoursRule > &value)
Definition OpenHours.h:70
const Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > & GetSMS() const
Definition OpenHours.h:64
const Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > & GetVOICE() const
Definition OpenHours.h:96
OpenHours & AddCUSTOM(DayOfWeek &&key, Aws::Vector< OpenHoursRule > &&value)
Definition OpenHours.h:121
OpenHours & AddEMAIL(const DayOfWeek &key, Aws::Vector< OpenHoursRule > &&value)
Definition OpenHours.h:56
AWS_PINPOINT_API OpenHours()
const Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > & GetEMAIL() const
Definition OpenHours.h:48
void SetSMS(Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > &&value)
Definition OpenHours.h:67
void SetCUSTOM(const Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > &value)
Definition OpenHours.h:114
OpenHours & AddPUSH(const DayOfWeek &key, Aws::Vector< OpenHoursRule > &&value)
Definition OpenHours.h:88
OpenHours & AddVOICE(const DayOfWeek &key, const Aws::Vector< OpenHoursRule > &value)
Definition OpenHours.h:102
OpenHours & AddVOICE(const DayOfWeek &key, Aws::Vector< OpenHoursRule > &&value)
Definition OpenHours.h:104
OpenHours & AddEMAIL(DayOfWeek &&key, const Aws::Vector< OpenHoursRule > &value)
Definition OpenHours.h:55
void SetPUSH(Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > &&value)
Definition OpenHours.h:83
OpenHours & AddSMS(const DayOfWeek &key, Aws::Vector< OpenHoursRule > &&value)
Definition OpenHours.h:72
OpenHours & AddEMAIL(DayOfWeek &&key, Aws::Vector< OpenHoursRule > &&value)
Definition OpenHours.h:57
void SetSMS(const Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > &value)
Definition OpenHours.h:66
void SetPUSH(const Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > &value)
Definition OpenHours.h:82
OpenHours & WithVOICE(Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > &&value)
Definition OpenHours.h:101
const Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > & GetPUSH() const
Definition OpenHours.h:80
OpenHours & AddPUSH(const DayOfWeek &key, const Aws::Vector< OpenHoursRule > &value)
Definition OpenHours.h:86
OpenHours & WithPUSH(Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > &&value)
Definition OpenHours.h:85
AWS_PINPOINT_API OpenHours(Aws::Utils::Json::JsonView jsonValue)
OpenHours & AddEMAIL(const DayOfWeek &key, const Aws::Vector< OpenHoursRule > &value)
Definition OpenHours.h:54
OpenHours & AddVOICE(DayOfWeek &&key, Aws::Vector< OpenHoursRule > &&value)
Definition OpenHours.h:105
OpenHours & WithSMS(Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > &&value)
Definition OpenHours.h:69
OpenHours & AddCUSTOM(const DayOfWeek &key, const Aws::Vector< OpenHoursRule > &value)
Definition OpenHours.h:118
OpenHours & AddPUSH(DayOfWeek &&key, Aws::Vector< OpenHoursRule > &&value)
Definition OpenHours.h:89
OpenHours & AddPUSH(DayOfWeek &&key, const Aws::Vector< OpenHoursRule > &value)
Definition OpenHours.h:87
const Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > & GetCUSTOM() const
Definition OpenHours.h:112
OpenHours & WithCUSTOM(Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > &&value)
Definition OpenHours.h:117
OpenHours & WithEMAIL(const Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > &value)
Definition OpenHours.h:52
void SetEMAIL(Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > &&value)
Definition OpenHours.h:51
OpenHours & AddSMS(DayOfWeek &&key, Aws::Vector< OpenHoursRule > &&value)
Definition OpenHours.h:73
OpenHours & WithEMAIL(Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > &&value)
Definition OpenHours.h:53
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVOICE(Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > &&value)
Definition OpenHours.h:99
OpenHours & AddSMS(DayOfWeek &&key, const Aws::Vector< OpenHoursRule > &value)
Definition OpenHours.h:71
AWS_PINPOINT_API OpenHours & operator=(Aws::Utils::Json::JsonView jsonValue)
OpenHours & WithSMS(const Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > &value)
Definition OpenHours.h:68
OpenHours & WithCUSTOM(const Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > &value)
Definition OpenHours.h:116
OpenHours & AddCUSTOM(const DayOfWeek &key, Aws::Vector< OpenHoursRule > &&value)
Definition OpenHours.h:120
void SetVOICE(const Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > &value)
Definition OpenHours.h:98
void SetCUSTOM(Aws::Map< DayOfWeek, Aws::Vector< OpenHoursRule > > &&value)
Definition OpenHours.h:115
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