AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ScheduledTriggerProperties.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
10#include <aws/customer-profiles/model/DataPullMode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CustomerProfiles {
22namespace Model {
23
32 public:
33 AWS_CUSTOMERPROFILES_API ScheduledTriggerProperties() = default;
34 AWS_CUSTOMERPROFILES_API ScheduledTriggerProperties(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CUSTOMERPROFILES_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
78 inline const Aws::Utils::DateTime& GetScheduleStartTime() const { return m_scheduleStartTime; }
79 inline bool ScheduleStartTimeHasBeenSet() const { return m_scheduleStartTimeHasBeenSet; }
80 template <typename ScheduleStartTimeT = Aws::Utils::DateTime>
81 void SetScheduleStartTime(ScheduleStartTimeT&& value) {
82 m_scheduleStartTimeHasBeenSet = true;
83 m_scheduleStartTime = std::forward<ScheduleStartTimeT>(value);
84 }
85 template <typename ScheduleStartTimeT = Aws::Utils::DateTime>
87 SetScheduleStartTime(std::forward<ScheduleStartTimeT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetScheduleEndTime() const { return m_scheduleEndTime; }
97 inline bool ScheduleEndTimeHasBeenSet() const { return m_scheduleEndTimeHasBeenSet; }
98 template <typename ScheduleEndTimeT = Aws::Utils::DateTime>
99 void SetScheduleEndTime(ScheduleEndTimeT&& value) {
100 m_scheduleEndTimeHasBeenSet = true;
101 m_scheduleEndTime = std::forward<ScheduleEndTimeT>(value);
102 }
103 template <typename ScheduleEndTimeT = Aws::Utils::DateTime>
105 SetScheduleEndTime(std::forward<ScheduleEndTimeT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetTimezone() const { return m_timezone; }
116 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
117 template <typename TimezoneT = Aws::String>
118 void SetTimezone(TimezoneT&& value) {
119 m_timezoneHasBeenSet = true;
120 m_timezone = std::forward<TimezoneT>(value);
121 }
122 template <typename TimezoneT = Aws::String>
124 SetTimezone(std::forward<TimezoneT>(value));
125 return *this;
126 }
128
130
134 inline long long GetScheduleOffset() const { return m_scheduleOffset; }
135 inline bool ScheduleOffsetHasBeenSet() const { return m_scheduleOffsetHasBeenSet; }
136 inline void SetScheduleOffset(long long value) {
137 m_scheduleOffsetHasBeenSet = true;
138 m_scheduleOffset = value;
139 }
141 SetScheduleOffset(value);
142 return *this;
143 }
145
147
151 inline const Aws::Utils::DateTime& GetFirstExecutionFrom() const { return m_firstExecutionFrom; }
152 inline bool FirstExecutionFromHasBeenSet() const { return m_firstExecutionFromHasBeenSet; }
153 template <typename FirstExecutionFromT = Aws::Utils::DateTime>
154 void SetFirstExecutionFrom(FirstExecutionFromT&& value) {
155 m_firstExecutionFromHasBeenSet = true;
156 m_firstExecutionFrom = std::forward<FirstExecutionFromT>(value);
157 }
158 template <typename FirstExecutionFromT = Aws::Utils::DateTime>
160 SetFirstExecutionFrom(std::forward<FirstExecutionFromT>(value));
161 return *this;
162 }
164 private:
165 Aws::String m_scheduleExpression;
166
167 DataPullMode m_dataPullMode{DataPullMode::NOT_SET};
168
169 Aws::Utils::DateTime m_scheduleStartTime{};
170
171 Aws::Utils::DateTime m_scheduleEndTime{};
172
173 Aws::String m_timezone;
174
175 long long m_scheduleOffset{0};
176
177 Aws::Utils::DateTime m_firstExecutionFrom{};
178 bool m_scheduleExpressionHasBeenSet = false;
179 bool m_dataPullModeHasBeenSet = false;
180 bool m_scheduleStartTimeHasBeenSet = false;
181 bool m_scheduleEndTimeHasBeenSet = false;
182 bool m_timezoneHasBeenSet = false;
183 bool m_scheduleOffsetHasBeenSet = false;
184 bool m_firstExecutionFromHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace CustomerProfiles
189} // namespace Aws
ScheduledTriggerProperties & WithScheduleEndTime(ScheduleEndTimeT &&value)
ScheduledTriggerProperties & WithScheduleExpression(ScheduleExpressionT &&value)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
ScheduledTriggerProperties & WithScheduleOffset(long long value)
AWS_CUSTOMERPROFILES_API ScheduledTriggerProperties()=default
AWS_CUSTOMERPROFILES_API ScheduledTriggerProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API ScheduledTriggerProperties(Aws::Utils::Json::JsonView jsonValue)
ScheduledTriggerProperties & WithScheduleStartTime(ScheduleStartTimeT &&value)
ScheduledTriggerProperties & WithTimezone(TimezoneT &&value)
ScheduledTriggerProperties & WithFirstExecutionFrom(FirstExecutionFromT &&value)
ScheduledTriggerProperties & WithDataPullMode(DataPullMode value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue