AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ScheduledTriggerProperties.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appflow/model/DataPullMode.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Appflow
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_APPFLOW_API ScheduledTriggerProperties() = default;
41 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
50 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
51 template<typename ScheduleExpressionT = Aws::String>
52 void SetScheduleExpression(ScheduleExpressionT&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::forward<ScheduleExpressionT>(value); }
53 template<typename ScheduleExpressionT = Aws::String>
54 ScheduledTriggerProperties& WithScheduleExpression(ScheduleExpressionT&& value) { SetScheduleExpression(std::forward<ScheduleExpressionT>(value)); return *this;}
56
58
62 inline DataPullMode GetDataPullMode() const { return m_dataPullMode; }
63 inline bool DataPullModeHasBeenSet() const { return m_dataPullModeHasBeenSet; }
64 inline void SetDataPullMode(DataPullMode value) { m_dataPullModeHasBeenSet = true; m_dataPullMode = value; }
67
69
74 inline const Aws::Utils::DateTime& GetScheduleStartTime() const { return m_scheduleStartTime; }
75 inline bool ScheduleStartTimeHasBeenSet() const { return m_scheduleStartTimeHasBeenSet; }
76 template<typename ScheduleStartTimeT = Aws::Utils::DateTime>
77 void SetScheduleStartTime(ScheduleStartTimeT&& value) { m_scheduleStartTimeHasBeenSet = true; m_scheduleStartTime = std::forward<ScheduleStartTimeT>(value); }
78 template<typename ScheduleStartTimeT = Aws::Utils::DateTime>
79 ScheduledTriggerProperties& WithScheduleStartTime(ScheduleStartTimeT&& value) { SetScheduleStartTime(std::forward<ScheduleStartTimeT>(value)); return *this;}
81
83
88 inline const Aws::Utils::DateTime& GetScheduleEndTime() const { return m_scheduleEndTime; }
89 inline bool ScheduleEndTimeHasBeenSet() const { return m_scheduleEndTimeHasBeenSet; }
90 template<typename ScheduleEndTimeT = Aws::Utils::DateTime>
91 void SetScheduleEndTime(ScheduleEndTimeT&& value) { m_scheduleEndTimeHasBeenSet = true; m_scheduleEndTime = std::forward<ScheduleEndTimeT>(value); }
92 template<typename ScheduleEndTimeT = Aws::Utils::DateTime>
93 ScheduledTriggerProperties& WithScheduleEndTime(ScheduleEndTimeT&& value) { SetScheduleEndTime(std::forward<ScheduleEndTimeT>(value)); return *this;}
95
97
107 inline const Aws::String& GetTimezone() const { return m_timezone; }
108 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
109 template<typename TimezoneT = Aws::String>
110 void SetTimezone(TimezoneT&& value) { m_timezoneHasBeenSet = true; m_timezone = std::forward<TimezoneT>(value); }
111 template<typename TimezoneT = Aws::String>
112 ScheduledTriggerProperties& WithTimezone(TimezoneT&& value) { SetTimezone(std::forward<TimezoneT>(value)); return *this;}
114
116
120 inline long long GetScheduleOffset() const { return m_scheduleOffset; }
121 inline bool ScheduleOffsetHasBeenSet() const { return m_scheduleOffsetHasBeenSet; }
122 inline void SetScheduleOffset(long long value) { m_scheduleOffsetHasBeenSet = true; m_scheduleOffset = value; }
123 inline ScheduledTriggerProperties& WithScheduleOffset(long long value) { SetScheduleOffset(value); return *this;}
125
127
131 inline const Aws::Utils::DateTime& GetFirstExecutionFrom() const { return m_firstExecutionFrom; }
132 inline bool FirstExecutionFromHasBeenSet() const { return m_firstExecutionFromHasBeenSet; }
133 template<typename FirstExecutionFromT = Aws::Utils::DateTime>
134 void SetFirstExecutionFrom(FirstExecutionFromT&& value) { m_firstExecutionFromHasBeenSet = true; m_firstExecutionFrom = std::forward<FirstExecutionFromT>(value); }
135 template<typename FirstExecutionFromT = Aws::Utils::DateTime>
136 ScheduledTriggerProperties& WithFirstExecutionFrom(FirstExecutionFromT&& value) { SetFirstExecutionFrom(std::forward<FirstExecutionFromT>(value)); return *this;}
138
140
144 inline int GetFlowErrorDeactivationThreshold() const { return m_flowErrorDeactivationThreshold; }
145 inline bool FlowErrorDeactivationThresholdHasBeenSet() const { return m_flowErrorDeactivationThresholdHasBeenSet; }
146 inline void SetFlowErrorDeactivationThreshold(int value) { m_flowErrorDeactivationThresholdHasBeenSet = true; m_flowErrorDeactivationThreshold = value; }
149 private:
150
151 Aws::String m_scheduleExpression;
152 bool m_scheduleExpressionHasBeenSet = false;
153
154 DataPullMode m_dataPullMode{DataPullMode::NOT_SET};
155 bool m_dataPullModeHasBeenSet = false;
156
157 Aws::Utils::DateTime m_scheduleStartTime{};
158 bool m_scheduleStartTimeHasBeenSet = false;
159
160 Aws::Utils::DateTime m_scheduleEndTime{};
161 bool m_scheduleEndTimeHasBeenSet = false;
162
163 Aws::String m_timezone;
164 bool m_timezoneHasBeenSet = false;
165
166 long long m_scheduleOffset{0};
167 bool m_scheduleOffsetHasBeenSet = false;
168
169 Aws::Utils::DateTime m_firstExecutionFrom{};
170 bool m_firstExecutionFromHasBeenSet = false;
171
172 int m_flowErrorDeactivationThreshold{0};
173 bool m_flowErrorDeactivationThresholdHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace Appflow
178} // 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