AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ScheduledTriggerProperties.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/appflow/model/DataPullMode.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Appflow {
22namespace Model {
23
32 public:
33 AWS_APPFLOW_API ScheduledTriggerProperties() = default;
36 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
44 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
45 template <typename ScheduleExpressionT = Aws::String>
46 void SetScheduleExpression(ScheduleExpressionT&& value) {
47 m_scheduleExpressionHasBeenSet = true;
48 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
49 }
50 template <typename ScheduleExpressionT = Aws::String>
51 ScheduledTriggerProperties& WithScheduleExpression(ScheduleExpressionT&& value) {
52 SetScheduleExpression(std::forward<ScheduleExpressionT>(value));
53 return *this;
54 }
56
58
62 inline DataPullMode GetDataPullMode() const { return m_dataPullMode; }
63 inline bool DataPullModeHasBeenSet() const { return m_dataPullModeHasBeenSet; }
64 inline void SetDataPullMode(DataPullMode value) {
65 m_dataPullModeHasBeenSet = true;
66 m_dataPullMode = value;
67 }
69 SetDataPullMode(value);
70 return *this;
71 }
73
75
80 inline const Aws::Utils::DateTime& GetScheduleStartTime() const { return m_scheduleStartTime; }
81 inline bool ScheduleStartTimeHasBeenSet() const { return m_scheduleStartTimeHasBeenSet; }
82 template <typename ScheduleStartTimeT = Aws::Utils::DateTime>
83 void SetScheduleStartTime(ScheduleStartTimeT&& value) {
84 m_scheduleStartTimeHasBeenSet = true;
85 m_scheduleStartTime = std::forward<ScheduleStartTimeT>(value);
86 }
87 template <typename ScheduleStartTimeT = Aws::Utils::DateTime>
89 SetScheduleStartTime(std::forward<ScheduleStartTimeT>(value));
90 return *this;
91 }
93
95
100 inline const Aws::Utils::DateTime& GetScheduleEndTime() const { return m_scheduleEndTime; }
101 inline bool ScheduleEndTimeHasBeenSet() const { return m_scheduleEndTimeHasBeenSet; }
102 template <typename ScheduleEndTimeT = Aws::Utils::DateTime>
103 void SetScheduleEndTime(ScheduleEndTimeT&& value) {
104 m_scheduleEndTimeHasBeenSet = true;
105 m_scheduleEndTime = std::forward<ScheduleEndTimeT>(value);
106 }
107 template <typename ScheduleEndTimeT = Aws::Utils::DateTime>
109 SetScheduleEndTime(std::forward<ScheduleEndTimeT>(value));
110 return *this;
111 }
113
115
125 inline const Aws::String& GetTimezone() const { return m_timezone; }
126 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
127 template <typename TimezoneT = Aws::String>
128 void SetTimezone(TimezoneT&& value) {
129 m_timezoneHasBeenSet = true;
130 m_timezone = std::forward<TimezoneT>(value);
131 }
132 template <typename TimezoneT = Aws::String>
134 SetTimezone(std::forward<TimezoneT>(value));
135 return *this;
136 }
138
140
144 inline long long GetScheduleOffset() const { return m_scheduleOffset; }
145 inline bool ScheduleOffsetHasBeenSet() const { return m_scheduleOffsetHasBeenSet; }
146 inline void SetScheduleOffset(long long value) {
147 m_scheduleOffsetHasBeenSet = true;
148 m_scheduleOffset = value;
149 }
151 SetScheduleOffset(value);
152 return *this;
153 }
155
157
161 inline const Aws::Utils::DateTime& GetFirstExecutionFrom() const { return m_firstExecutionFrom; }
162 inline bool FirstExecutionFromHasBeenSet() const { return m_firstExecutionFromHasBeenSet; }
163 template <typename FirstExecutionFromT = Aws::Utils::DateTime>
164 void SetFirstExecutionFrom(FirstExecutionFromT&& value) {
165 m_firstExecutionFromHasBeenSet = true;
166 m_firstExecutionFrom = std::forward<FirstExecutionFromT>(value);
167 }
168 template <typename FirstExecutionFromT = Aws::Utils::DateTime>
170 SetFirstExecutionFrom(std::forward<FirstExecutionFromT>(value));
171 return *this;
172 }
174
176
180 inline int GetFlowErrorDeactivationThreshold() const { return m_flowErrorDeactivationThreshold; }
181 inline bool FlowErrorDeactivationThresholdHasBeenSet() const { return m_flowErrorDeactivationThresholdHasBeenSet; }
182 inline void SetFlowErrorDeactivationThreshold(int value) {
183 m_flowErrorDeactivationThresholdHasBeenSet = true;
184 m_flowErrorDeactivationThreshold = value;
185 }
188 return *this;
189 }
191 private:
192 Aws::String m_scheduleExpression;
193
194 DataPullMode m_dataPullMode{DataPullMode::NOT_SET};
195
196 Aws::Utils::DateTime m_scheduleStartTime{};
197
198 Aws::Utils::DateTime m_scheduleEndTime{};
199
200 Aws::String m_timezone;
201
202 long long m_scheduleOffset{0};
203
204 Aws::Utils::DateTime m_firstExecutionFrom{};
205
206 int m_flowErrorDeactivationThreshold{0};
207 bool m_scheduleExpressionHasBeenSet = false;
208 bool m_dataPullModeHasBeenSet = false;
209 bool m_scheduleStartTimeHasBeenSet = false;
210 bool m_scheduleEndTimeHasBeenSet = false;
211 bool m_timezoneHasBeenSet = false;
212 bool m_scheduleOffsetHasBeenSet = false;
213 bool m_firstExecutionFromHasBeenSet = false;
214 bool m_flowErrorDeactivationThresholdHasBeenSet = false;
215};
216
217} // namespace Model
218} // namespace Appflow
219} // namespace Aws
ScheduledTriggerProperties & WithFlowErrorDeactivationThreshold(int value)
const Aws::Utils::DateTime & GetScheduleEndTime() const
AWS_APPFLOW_API ScheduledTriggerProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPFLOW_API ScheduledTriggerProperties(Aws::Utils::Json::JsonView jsonValue)
ScheduledTriggerProperties & WithScheduleOffset(long long value)
ScheduledTriggerProperties & WithScheduleStartTime(ScheduleStartTimeT &&value)
ScheduledTriggerProperties & WithFirstExecutionFrom(FirstExecutionFromT &&value)
const Aws::Utils::DateTime & GetScheduleStartTime() const
AWS_APPFLOW_API ScheduledTriggerProperties()=default
ScheduledTriggerProperties & WithScheduleEndTime(ScheduleEndTimeT &&value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
ScheduledTriggerProperties & WithScheduleExpression(ScheduleExpressionT &&value)
ScheduledTriggerProperties & WithTimezone(TimezoneT &&value)
const Aws::Utils::DateTime & GetFirstExecutionFrom() const
ScheduledTriggerProperties & WithDataPullMode(DataPullMode value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue