AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEndTime(const Aws::String& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
51 inline void SetEndTime(Aws::String&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
52 inline void SetEndTime(const char* value) { m_endTimeHasBeenSet = true; m_endTime.assign(value); }
53 inline Schedule& WithEndTime(const Aws::String& value) { SetEndTime(value); return *this;}
54 inline Schedule& WithEndTime(Aws::String&& value) { SetEndTime(std::move(value)); return *this;}
55 inline Schedule& WithEndTime(const char* value) { SetEndTime(value); return *this;}
57
59
63 inline const CampaignEventFilter& GetEventFilter() const{ return m_eventFilter; }
64 inline bool EventFilterHasBeenSet() const { return m_eventFilterHasBeenSet; }
65 inline void SetEventFilter(const CampaignEventFilter& value) { m_eventFilterHasBeenSet = true; m_eventFilter = value; }
66 inline void SetEventFilter(CampaignEventFilter&& value) { m_eventFilterHasBeenSet = true; m_eventFilter = std::move(value); }
67 inline Schedule& WithEventFilter(const CampaignEventFilter& value) { SetEventFilter(value); return *this;}
68 inline Schedule& WithEventFilter(CampaignEventFilter&& value) { SetEventFilter(std::move(value)); return *this;}
70
72
76 inline const Frequency& GetFrequency() const{ return m_frequency; }
77 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
78 inline void SetFrequency(const Frequency& value) { m_frequencyHasBeenSet = true; m_frequency = value; }
79 inline void SetFrequency(Frequency&& value) { m_frequencyHasBeenSet = true; m_frequency = std::move(value); }
80 inline Schedule& WithFrequency(const Frequency& value) { SetFrequency(value); return *this;}
81 inline Schedule& WithFrequency(Frequency&& value) { SetFrequency(std::move(value)); return *this;}
83
85
90 inline bool GetIsLocalTime() const{ return m_isLocalTime; }
91 inline bool IsLocalTimeHasBeenSet() const { return m_isLocalTimeHasBeenSet; }
92 inline void SetIsLocalTime(bool value) { m_isLocalTimeHasBeenSet = true; m_isLocalTime = value; }
93 inline Schedule& WithIsLocalTime(bool value) { SetIsLocalTime(value); return *this;}
95
97
109 inline const QuietTime& GetQuietTime() const{ return m_quietTime; }
110 inline bool QuietTimeHasBeenSet() const { return m_quietTimeHasBeenSet; }
111 inline void SetQuietTime(const QuietTime& value) { m_quietTimeHasBeenSet = true; m_quietTime = value; }
112 inline void SetQuietTime(QuietTime&& value) { m_quietTimeHasBeenSet = true; m_quietTime = std::move(value); }
113 inline Schedule& WithQuietTime(const QuietTime& value) { SetQuietTime(value); return *this;}
114 inline Schedule& WithQuietTime(QuietTime&& value) { SetQuietTime(std::move(value)); return *this;}
116
118
123 inline const Aws::String& GetStartTime() const{ return m_startTime; }
124 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
125 inline void SetStartTime(const Aws::String& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
126 inline void SetStartTime(Aws::String&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
127 inline void SetStartTime(const char* value) { m_startTimeHasBeenSet = true; m_startTime.assign(value); }
128 inline Schedule& WithStartTime(const Aws::String& value) { SetStartTime(value); return *this;}
129 inline Schedule& WithStartTime(Aws::String&& value) { SetStartTime(std::move(value)); return *this;}
130 inline Schedule& WithStartTime(const char* value) { SetStartTime(value); return *this;}
132
134
145 inline const Aws::String& GetTimezone() const{ return m_timezone; }
146 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
147 inline void SetTimezone(const Aws::String& value) { m_timezoneHasBeenSet = true; m_timezone = value; }
148 inline void SetTimezone(Aws::String&& value) { m_timezoneHasBeenSet = true; m_timezone = std::move(value); }
149 inline void SetTimezone(const char* value) { m_timezoneHasBeenSet = true; m_timezone.assign(value); }
150 inline Schedule& WithTimezone(const Aws::String& value) { SetTimezone(value); return *this;}
151 inline Schedule& WithTimezone(Aws::String&& value) { SetTimezone(std::move(value)); return *this;}
152 inline Schedule& WithTimezone(const char* value) { SetTimezone(value); return *this;}
154 private:
155
156 Aws::String m_endTime;
157 bool m_endTimeHasBeenSet = false;
158
159 CampaignEventFilter m_eventFilter;
160 bool m_eventFilterHasBeenSet = false;
161
162 Frequency m_frequency;
163 bool m_frequencyHasBeenSet = false;
164
165 bool m_isLocalTime;
166 bool m_isLocalTimeHasBeenSet = false;
167
168 QuietTime m_quietTime;
169 bool m_quietTimeHasBeenSet = false;
170
171 Aws::String m_startTime;
172 bool m_startTimeHasBeenSet = false;
173
174 Aws::String m_timezone;
175 bool m_timezoneHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace Pinpoint
180} // namespace Aws
Schedule & WithEventFilter(CampaignEventFilter &&value)
Definition Schedule.h:68
bool IsLocalTimeHasBeenSet() const
Definition Schedule.h:91
Schedule & WithTimezone(const char *value)
Definition Schedule.h:152
void SetEndTime(const Aws::String &value)
Definition Schedule.h:50
bool EventFilterHasBeenSet() const
Definition Schedule.h:64
void SetEndTime(Aws::String &&value)
Definition Schedule.h:51
void SetStartTime(const char *value)
Definition Schedule.h:127
const Aws::String & GetTimezone() const
Definition Schedule.h:145
Schedule & WithIsLocalTime(bool value)
Definition Schedule.h:93
Schedule & WithEndTime(const Aws::String &value)
Definition Schedule.h:53
const QuietTime & GetQuietTime() const
Definition Schedule.h:109
void SetFrequency(const Frequency &value)
Definition Schedule.h:78
void SetEventFilter(CampaignEventFilter &&value)
Definition Schedule.h:66
Schedule & WithStartTime(const char *value)
Definition Schedule.h:130
void SetQuietTime(const QuietTime &value)
Definition Schedule.h:111
Schedule & WithEndTime(const char *value)
Definition Schedule.h:55
Schedule & WithEventFilter(const CampaignEventFilter &value)
Definition Schedule.h:67
bool FrequencyHasBeenSet() const
Definition Schedule.h:77
AWS_PINPOINT_API Schedule(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStartTime(Aws::String &&value)
Definition Schedule.h:126
void SetStartTime(const Aws::String &value)
Definition Schedule.h:125
void SetTimezone(const char *value)
Definition Schedule.h:149
void SetEndTime(const char *value)
Definition Schedule.h:52
Schedule & WithEndTime(Aws::String &&value)
Definition Schedule.h:54
Schedule & WithTimezone(const Aws::String &value)
Definition Schedule.h:150
Schedule & WithQuietTime(QuietTime &&value)
Definition Schedule.h:114
const Aws::String & GetEndTime() const
Definition Schedule.h:48
void SetIsLocalTime(bool value)
Definition Schedule.h:92
void SetTimezone(Aws::String &&value)
Definition Schedule.h:148
Schedule & WithStartTime(const Aws::String &value)
Definition Schedule.h:128
AWS_PINPOINT_API Schedule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTimezone(const Aws::String &value)
Definition Schedule.h:147
Schedule & WithQuietTime(const QuietTime &value)
Definition Schedule.h:113
Schedule & WithTimezone(Aws::String &&value)
Definition Schedule.h:151
Schedule & WithFrequency(Frequency &&value)
Definition Schedule.h:81
const Aws::String & GetStartTime() const
Definition Schedule.h:123
Schedule & WithFrequency(const Frequency &value)
Definition Schedule.h:80
const CampaignEventFilter & GetEventFilter() const
Definition Schedule.h:63
void SetFrequency(Frequency &&value)
Definition Schedule.h:79
Schedule & WithStartTime(Aws::String &&value)
Definition Schedule.h:129
void SetQuietTime(QuietTime &&value)
Definition Schedule.h:112
void SetEventFilter(const CampaignEventFilter &value)
Definition Schedule.h:65
AWS_PINPOINT_API Schedule()
const Frequency & GetFrequency() const
Definition Schedule.h:76
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue