AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Schedule.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pinpoint/model/CampaignEventFilter.h>
10#include <aws/pinpoint/model/Frequency.h>
11#include <aws/pinpoint/model/QuietTime.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
35 {
36 public:
37 AWS_PINPOINT_API Schedule() = default;
38 AWS_PINPOINT_API Schedule(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINT_API Schedule& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetEndTime() const { return m_endTime; }
49 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
50 template<typename EndTimeT = Aws::String>
51 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
52 template<typename EndTimeT = Aws::String>
53 Schedule& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
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) { m_eventFilterHasBeenSet = true; m_eventFilter = std::forward<EventFilterT>(value); }
65 template<typename EventFilterT = CampaignEventFilter>
66 Schedule& WithEventFilter(EventFilterT&& value) { SetEventFilter(std::forward<EventFilterT>(value)); return *this;}
68
70
74 inline Frequency GetFrequency() const { return m_frequency; }
75 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
76 inline void SetFrequency(Frequency value) { m_frequencyHasBeenSet = true; m_frequency = value; }
77 inline Schedule& WithFrequency(Frequency value) { SetFrequency(value); return *this;}
79
81
86 inline bool GetIsLocalTime() const { return m_isLocalTime; }
87 inline bool IsLocalTimeHasBeenSet() const { return m_isLocalTimeHasBeenSet; }
88 inline void SetIsLocalTime(bool value) { m_isLocalTimeHasBeenSet = true; m_isLocalTime = value; }
89 inline Schedule& WithIsLocalTime(bool value) { SetIsLocalTime(value); return *this;}
91
93
105 inline const QuietTime& GetQuietTime() const { return m_quietTime; }
106 inline bool QuietTimeHasBeenSet() const { return m_quietTimeHasBeenSet; }
107 template<typename QuietTimeT = QuietTime>
108 void SetQuietTime(QuietTimeT&& value) { m_quietTimeHasBeenSet = true; m_quietTime = std::forward<QuietTimeT>(value); }
109 template<typename QuietTimeT = QuietTime>
110 Schedule& WithQuietTime(QuietTimeT&& value) { SetQuietTime(std::forward<QuietTimeT>(value)); return *this;}
112
114
119 inline const Aws::String& GetStartTime() const { return m_startTime; }
120 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
121 template<typename StartTimeT = Aws::String>
122 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
123 template<typename StartTimeT = Aws::String>
124 Schedule& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
126
128
139 inline const Aws::String& GetTimezone() const { return m_timezone; }
140 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
141 template<typename TimezoneT = Aws::String>
142 void SetTimezone(TimezoneT&& value) { m_timezoneHasBeenSet = true; m_timezone = std::forward<TimezoneT>(value); }
143 template<typename TimezoneT = Aws::String>
144 Schedule& WithTimezone(TimezoneT&& value) { SetTimezone(std::forward<TimezoneT>(value)); return *this;}
146 private:
147
148 Aws::String m_endTime;
149 bool m_endTimeHasBeenSet = false;
150
151 CampaignEventFilter m_eventFilter;
152 bool m_eventFilterHasBeenSet = false;
153
154 Frequency m_frequency{Frequency::NOT_SET};
155 bool m_frequencyHasBeenSet = false;
156
157 bool m_isLocalTime{false};
158 bool m_isLocalTimeHasBeenSet = false;
159
160 QuietTime m_quietTime;
161 bool m_quietTimeHasBeenSet = false;
162
163 Aws::String m_startTime;
164 bool m_startTimeHasBeenSet = false;
165
166 Aws::String m_timezone;
167 bool m_timezoneHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace Pinpoint
172} // namespace Aws
bool IsLocalTimeHasBeenSet() const
Definition Schedule.h:87
AWS_PINPOINT_API Schedule()=default
bool EventFilterHasBeenSet() const
Definition Schedule.h:62
const Aws::String & GetTimezone() const
Definition Schedule.h:139
Schedule & WithIsLocalTime(bool value)
Definition Schedule.h:89
Schedule & WithTimezone(TimezoneT &&value)
Definition Schedule.h:144
const QuietTime & GetQuietTime() const
Definition Schedule.h:105
Schedule & WithEndTime(EndTimeT &&value)
Definition Schedule.h:53
void SetFrequency(Frequency value)
Definition Schedule.h:76
bool FrequencyHasBeenSet() const
Definition Schedule.h:75
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:142
Frequency GetFrequency() const
Definition Schedule.h:74
void SetEndTime(EndTimeT &&value)
Definition Schedule.h:51
void SetStartTime(StartTimeT &&value)
Definition Schedule.h:122
const Aws::String & GetEndTime() const
Definition Schedule.h:48
void SetIsLocalTime(bool value)
Definition Schedule.h:88
void SetEventFilter(EventFilterT &&value)
Definition Schedule.h:64
Schedule & WithQuietTime(QuietTimeT &&value)
Definition Schedule.h:110
AWS_PINPOINT_API Schedule & operator=(Aws::Utils::Json::JsonView jsonValue)
Schedule & WithFrequency(Frequency value)
Definition Schedule.h:77
const Aws::String & GetStartTime() const
Definition Schedule.h:119
Schedule & WithStartTime(StartTimeT &&value)
Definition Schedule.h:124
const CampaignEventFilter & GetEventFilter() const
Definition Schedule.h:61
Schedule & WithEventFilter(EventFilterT &&value)
Definition Schedule.h:66
void SetQuietTime(QuietTimeT &&value)
Definition Schedule.h:108
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue