AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
Schedule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pinpoint/Pinpoint_EXPORTS.h>
9#include <aws/pinpoint/model/CampaignEventFilter.h>
10#include <aws/pinpoint/model/Frequency.h>
11#include <aws/pinpoint/model/QuietTime.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
30class Schedule {
31 public:
32 AWS_PINPOINT_API Schedule() = default;
33 AWS_PINPOINT_API Schedule(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PINPOINT_API Schedule& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetEndTime() const { return m_endTime; }
43 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
44 template <typename EndTimeT = Aws::String>
45 void SetEndTime(EndTimeT&& value) {
46 m_endTimeHasBeenSet = true;
47 m_endTime = std::forward<EndTimeT>(value);
48 }
49 template <typename EndTimeT = Aws::String>
50 Schedule& WithEndTime(EndTimeT&& value) {
51 SetEndTime(std::forward<EndTimeT>(value));
52 return *this;
53 }
55
57
61 inline const CampaignEventFilter& GetEventFilter() const { return m_eventFilter; }
62 inline bool EventFilterHasBeenSet() const { return m_eventFilterHasBeenSet; }
63 template <typename EventFilterT = CampaignEventFilter>
64 void SetEventFilter(EventFilterT&& value) {
65 m_eventFilterHasBeenSet = true;
66 m_eventFilter = std::forward<EventFilterT>(value);
67 }
68 template <typename EventFilterT = CampaignEventFilter>
69 Schedule& WithEventFilter(EventFilterT&& value) {
70 SetEventFilter(std::forward<EventFilterT>(value));
71 return *this;
72 }
74
76
80 inline Frequency GetFrequency() const { return m_frequency; }
81 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
82 inline void SetFrequency(Frequency value) {
83 m_frequencyHasBeenSet = true;
84 m_frequency = value;
85 }
87 SetFrequency(value);
88 return *this;
89 }
91
93
98 inline bool GetIsLocalTime() const { return m_isLocalTime; }
99 inline bool IsLocalTimeHasBeenSet() const { return m_isLocalTimeHasBeenSet; }
100 inline void SetIsLocalTime(bool value) {
101 m_isLocalTimeHasBeenSet = true;
102 m_isLocalTime = value;
103 }
104 inline Schedule& WithIsLocalTime(bool value) {
105 SetIsLocalTime(value);
106 return *this;
107 }
109
111
123 inline const QuietTime& GetQuietTime() const { return m_quietTime; }
124 inline bool QuietTimeHasBeenSet() const { return m_quietTimeHasBeenSet; }
125 template <typename QuietTimeT = QuietTime>
126 void SetQuietTime(QuietTimeT&& value) {
127 m_quietTimeHasBeenSet = true;
128 m_quietTime = std::forward<QuietTimeT>(value);
129 }
130 template <typename QuietTimeT = QuietTime>
131 Schedule& WithQuietTime(QuietTimeT&& value) {
132 SetQuietTime(std::forward<QuietTimeT>(value));
133 return *this;
134 }
136
138
143 inline const Aws::String& GetStartTime() const { return m_startTime; }
144 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
145 template <typename StartTimeT = Aws::String>
146 void SetStartTime(StartTimeT&& value) {
147 m_startTimeHasBeenSet = true;
148 m_startTime = std::forward<StartTimeT>(value);
149 }
150 template <typename StartTimeT = Aws::String>
151 Schedule& WithStartTime(StartTimeT&& value) {
152 SetStartTime(std::forward<StartTimeT>(value));
153 return *this;
154 }
156
158
169 inline const Aws::String& GetTimezone() const { return m_timezone; }
170 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
171 template <typename TimezoneT = Aws::String>
172 void SetTimezone(TimezoneT&& value) {
173 m_timezoneHasBeenSet = true;
174 m_timezone = std::forward<TimezoneT>(value);
175 }
176 template <typename TimezoneT = Aws::String>
177 Schedule& WithTimezone(TimezoneT&& value) {
178 SetTimezone(std::forward<TimezoneT>(value));
179 return *this;
180 }
182 private:
183 Aws::String m_endTime;
184
185 CampaignEventFilter m_eventFilter;
186
187 Frequency m_frequency{Frequency::NOT_SET};
188
189 bool m_isLocalTime{false};
190
191 QuietTime m_quietTime;
192
193 Aws::String m_startTime;
194
195 Aws::String m_timezone;
196 bool m_endTimeHasBeenSet = false;
197 bool m_eventFilterHasBeenSet = false;
198 bool m_frequencyHasBeenSet = false;
199 bool m_isLocalTimeHasBeenSet = false;
200 bool m_quietTimeHasBeenSet = false;
201 bool m_startTimeHasBeenSet = false;
202 bool m_timezoneHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace Pinpoint
207} // namespace Aws
bool IsLocalTimeHasBeenSet() const
Definition Schedule.h:99
AWS_PINPOINT_API Schedule()=default
bool EventFilterHasBeenSet() const
Definition Schedule.h:62
const Aws::String & GetTimezone() const
Definition Schedule.h:169
Schedule & WithIsLocalTime(bool value)
Definition Schedule.h:104
Schedule & WithTimezone(TimezoneT &&value)
Definition Schedule.h:177
const QuietTime & GetQuietTime() const
Definition Schedule.h:123
Schedule & WithEndTime(EndTimeT &&value)
Definition Schedule.h:50
void SetFrequency(Frequency value)
Definition Schedule.h:82
bool FrequencyHasBeenSet() const
Definition Schedule.h:81
AWS_PINPOINT_API Schedule(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTimezone(TimezoneT &&value)
Definition Schedule.h:172
Frequency GetFrequency() const
Definition Schedule.h:80
void SetEndTime(EndTimeT &&value)
Definition Schedule.h:45
void SetStartTime(StartTimeT &&value)
Definition Schedule.h:146
const Aws::String & GetEndTime() const
Definition Schedule.h:42
void SetIsLocalTime(bool value)
Definition Schedule.h:100
void SetEventFilter(EventFilterT &&value)
Definition Schedule.h:64
Schedule & WithQuietTime(QuietTimeT &&value)
Definition Schedule.h:131
AWS_PINPOINT_API Schedule & operator=(Aws::Utils::Json::JsonView jsonValue)
Schedule & WithFrequency(Frequency value)
Definition Schedule.h:86
const Aws::String & GetStartTime() const
Definition Schedule.h:143
Schedule & WithStartTime(StartTimeT &&value)
Definition Schedule.h:151
const CampaignEventFilter & GetEventFilter() const
Definition Schedule.h:61
Schedule & WithEventFilter(EventFilterT &&value)
Definition Schedule.h:69
void SetQuietTime(QuietTimeT &&value)
Definition Schedule.h:126
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue