AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ClosedDays.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/pinpoint/model/ClosedDaysRule.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pinpoint
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_PINPOINT_API ClosedDays();
38 AWS_PINPOINT_API ClosedDays(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINT_API ClosedDays& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<ClosedDaysRule>& GetEMAIL() const{ return m_eMAIL; }
48 inline bool EMAILHasBeenSet() const { return m_eMAILHasBeenSet; }
49 inline void SetEMAIL(const Aws::Vector<ClosedDaysRule>& value) { m_eMAILHasBeenSet = true; m_eMAIL = value; }
50 inline void SetEMAIL(Aws::Vector<ClosedDaysRule>&& value) { m_eMAILHasBeenSet = true; m_eMAIL = std::move(value); }
51 inline ClosedDays& WithEMAIL(const Aws::Vector<ClosedDaysRule>& value) { SetEMAIL(value); return *this;}
52 inline ClosedDays& WithEMAIL(Aws::Vector<ClosedDaysRule>&& value) { SetEMAIL(std::move(value)); return *this;}
53 inline ClosedDays& AddEMAIL(const ClosedDaysRule& value) { m_eMAILHasBeenSet = true; m_eMAIL.push_back(value); return *this; }
54 inline ClosedDays& AddEMAIL(ClosedDaysRule&& value) { m_eMAILHasBeenSet = true; m_eMAIL.push_back(std::move(value)); return *this; }
56
58
61 inline const Aws::Vector<ClosedDaysRule>& GetSMS() const{ return m_sMS; }
62 inline bool SMSHasBeenSet() const { return m_sMSHasBeenSet; }
63 inline void SetSMS(const Aws::Vector<ClosedDaysRule>& value) { m_sMSHasBeenSet = true; m_sMS = value; }
64 inline void SetSMS(Aws::Vector<ClosedDaysRule>&& value) { m_sMSHasBeenSet = true; m_sMS = std::move(value); }
65 inline ClosedDays& WithSMS(const Aws::Vector<ClosedDaysRule>& value) { SetSMS(value); return *this;}
66 inline ClosedDays& WithSMS(Aws::Vector<ClosedDaysRule>&& value) { SetSMS(std::move(value)); return *this;}
67 inline ClosedDays& AddSMS(const ClosedDaysRule& value) { m_sMSHasBeenSet = true; m_sMS.push_back(value); return *this; }
68 inline ClosedDays& AddSMS(ClosedDaysRule&& value) { m_sMSHasBeenSet = true; m_sMS.push_back(std::move(value)); return *this; }
70
72
75 inline const Aws::Vector<ClosedDaysRule>& GetPUSH() const{ return m_pUSH; }
76 inline bool PUSHHasBeenSet() const { return m_pUSHHasBeenSet; }
77 inline void SetPUSH(const Aws::Vector<ClosedDaysRule>& value) { m_pUSHHasBeenSet = true; m_pUSH = value; }
78 inline void SetPUSH(Aws::Vector<ClosedDaysRule>&& value) { m_pUSHHasBeenSet = true; m_pUSH = std::move(value); }
79 inline ClosedDays& WithPUSH(const Aws::Vector<ClosedDaysRule>& value) { SetPUSH(value); return *this;}
80 inline ClosedDays& WithPUSH(Aws::Vector<ClosedDaysRule>&& value) { SetPUSH(std::move(value)); return *this;}
81 inline ClosedDays& AddPUSH(const ClosedDaysRule& value) { m_pUSHHasBeenSet = true; m_pUSH.push_back(value); return *this; }
82 inline ClosedDays& AddPUSH(ClosedDaysRule&& value) { m_pUSHHasBeenSet = true; m_pUSH.push_back(std::move(value)); return *this; }
84
86
89 inline const Aws::Vector<ClosedDaysRule>& GetVOICE() const{ return m_vOICE; }
90 inline bool VOICEHasBeenSet() const { return m_vOICEHasBeenSet; }
91 inline void SetVOICE(const Aws::Vector<ClosedDaysRule>& value) { m_vOICEHasBeenSet = true; m_vOICE = value; }
92 inline void SetVOICE(Aws::Vector<ClosedDaysRule>&& value) { m_vOICEHasBeenSet = true; m_vOICE = std::move(value); }
93 inline ClosedDays& WithVOICE(const Aws::Vector<ClosedDaysRule>& value) { SetVOICE(value); return *this;}
94 inline ClosedDays& WithVOICE(Aws::Vector<ClosedDaysRule>&& value) { SetVOICE(std::move(value)); return *this;}
95 inline ClosedDays& AddVOICE(const ClosedDaysRule& value) { m_vOICEHasBeenSet = true; m_vOICE.push_back(value); return *this; }
96 inline ClosedDays& AddVOICE(ClosedDaysRule&& value) { m_vOICEHasBeenSet = true; m_vOICE.push_back(std::move(value)); return *this; }
98
100
103 inline const Aws::Vector<ClosedDaysRule>& GetCUSTOM() const{ return m_cUSTOM; }
104 inline bool CUSTOMHasBeenSet() const { return m_cUSTOMHasBeenSet; }
105 inline void SetCUSTOM(const Aws::Vector<ClosedDaysRule>& value) { m_cUSTOMHasBeenSet = true; m_cUSTOM = value; }
106 inline void SetCUSTOM(Aws::Vector<ClosedDaysRule>&& value) { m_cUSTOMHasBeenSet = true; m_cUSTOM = std::move(value); }
107 inline ClosedDays& WithCUSTOM(const Aws::Vector<ClosedDaysRule>& value) { SetCUSTOM(value); return *this;}
108 inline ClosedDays& WithCUSTOM(Aws::Vector<ClosedDaysRule>&& value) { SetCUSTOM(std::move(value)); return *this;}
109 inline ClosedDays& AddCUSTOM(const ClosedDaysRule& value) { m_cUSTOMHasBeenSet = true; m_cUSTOM.push_back(value); return *this; }
110 inline ClosedDays& AddCUSTOM(ClosedDaysRule&& value) { m_cUSTOMHasBeenSet = true; m_cUSTOM.push_back(std::move(value)); return *this; }
112 private:
113
115 bool m_eMAILHasBeenSet = false;
116
118 bool m_sMSHasBeenSet = false;
119
121 bool m_pUSHHasBeenSet = false;
122
124 bool m_vOICEHasBeenSet = false;
125
127 bool m_cUSTOMHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace Pinpoint
132} // namespace Aws
const Aws::Vector< ClosedDaysRule > & GetPUSH() const
Definition ClosedDays.h:75
ClosedDays & WithPUSH(const Aws::Vector< ClosedDaysRule > &value)
Definition ClosedDays.h:79
ClosedDays & WithPUSH(Aws::Vector< ClosedDaysRule > &&value)
Definition ClosedDays.h:80
void SetCUSTOM(const Aws::Vector< ClosedDaysRule > &value)
Definition ClosedDays.h:105
const Aws::Vector< ClosedDaysRule > & GetVOICE() const
Definition ClosedDays.h:89
ClosedDays & WithVOICE(Aws::Vector< ClosedDaysRule > &&value)
Definition ClosedDays.h:94
ClosedDays & AddVOICE(ClosedDaysRule &&value)
Definition ClosedDays.h:96
ClosedDays & WithEMAIL(const Aws::Vector< ClosedDaysRule > &value)
Definition ClosedDays.h:51
ClosedDays & AddPUSH(const ClosedDaysRule &value)
Definition ClosedDays.h:81
ClosedDays & WithEMAIL(Aws::Vector< ClosedDaysRule > &&value)
Definition ClosedDays.h:52
void SetCUSTOM(Aws::Vector< ClosedDaysRule > &&value)
Definition ClosedDays.h:106
void SetVOICE(Aws::Vector< ClosedDaysRule > &&value)
Definition ClosedDays.h:92
ClosedDays & AddEMAIL(ClosedDaysRule &&value)
Definition ClosedDays.h:54
ClosedDays & WithCUSTOM(const Aws::Vector< ClosedDaysRule > &value)
Definition ClosedDays.h:107
ClosedDays & AddEMAIL(const ClosedDaysRule &value)
Definition ClosedDays.h:53
void SetPUSH(Aws::Vector< ClosedDaysRule > &&value)
Definition ClosedDays.h:78
void SetEMAIL(Aws::Vector< ClosedDaysRule > &&value)
Definition ClosedDays.h:50
AWS_PINPOINT_API ClosedDays & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
ClosedDays & AddCUSTOM(ClosedDaysRule &&value)
Definition ClosedDays.h:110
ClosedDays & WithSMS(const Aws::Vector< ClosedDaysRule > &value)
Definition ClosedDays.h:65
void SetVOICE(const Aws::Vector< ClosedDaysRule > &value)
Definition ClosedDays.h:91
ClosedDays & AddPUSH(ClosedDaysRule &&value)
Definition ClosedDays.h:82
void SetPUSH(const Aws::Vector< ClosedDaysRule > &value)
Definition ClosedDays.h:77
const Aws::Vector< ClosedDaysRule > & GetCUSTOM() const
Definition ClosedDays.h:103
ClosedDays & AddSMS(ClosedDaysRule &&value)
Definition ClosedDays.h:68
ClosedDays & AddVOICE(const ClosedDaysRule &value)
Definition ClosedDays.h:95
void SetSMS(Aws::Vector< ClosedDaysRule > &&value)
Definition ClosedDays.h:64
void SetEMAIL(const Aws::Vector< ClosedDaysRule > &value)
Definition ClosedDays.h:49
AWS_PINPOINT_API ClosedDays(Aws::Utils::Json::JsonView jsonValue)
ClosedDays & AddCUSTOM(const ClosedDaysRule &value)
Definition ClosedDays.h:109
void SetSMS(const Aws::Vector< ClosedDaysRule > &value)
Definition ClosedDays.h:63
const Aws::Vector< ClosedDaysRule > & GetEMAIL() const
Definition ClosedDays.h:47
ClosedDays & WithSMS(Aws::Vector< ClosedDaysRule > &&value)
Definition ClosedDays.h:66
ClosedDays & WithCUSTOM(Aws::Vector< ClosedDaysRule > &&value)
Definition ClosedDays.h:108
const Aws::Vector< ClosedDaysRule > & GetSMS() const
Definition ClosedDays.h:61
ClosedDays & AddSMS(const ClosedDaysRule &value)
Definition ClosedDays.h:67
ClosedDays & WithVOICE(const Aws::Vector< ClosedDaysRule > &value)
Definition ClosedDays.h:93
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue