AWS SDK for C++

AWS SDK for C++ Version 1.11.938

Loading...
Searching...
No Matches
CreateScheduleRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/UUID.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/scheduler/SchedulerRequest.h>
11#include <aws/scheduler/Scheduler_EXPORTS.h>
12#include <aws/scheduler/model/ActionAfterCompletion.h>
13#include <aws/scheduler/model/FlexibleTimeWindow.h>
14#include <aws/scheduler/model/ScheduleState.h>
15#include <aws/scheduler/model/Target.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Scheduler {
21namespace Model {
22
26 public:
27 AWS_SCHEDULER_API CreateScheduleRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateSchedule"; }
34
35 AWS_SCHEDULER_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetGroupName() const { return m_groupName; }
61 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
62 template <typename GroupNameT = Aws::String>
63 void SetGroupName(GroupNameT&& value) {
64 m_groupNameHasBeenSet = true;
65 m_groupName = std::forward<GroupNameT>(value);
66 }
67 template <typename GroupNameT = Aws::String>
68 CreateScheduleRequest& WithGroupName(GroupNameT&& value) {
69 SetGroupName(std::forward<GroupNameT>(value));
70 return *this;
71 }
73
75
98 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
99 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
100 template <typename ScheduleExpressionT = Aws::String>
101 void SetScheduleExpression(ScheduleExpressionT&& value) {
102 m_scheduleExpressionHasBeenSet = true;
103 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
104 }
105 template <typename ScheduleExpressionT = Aws::String>
106 CreateScheduleRequest& WithScheduleExpression(ScheduleExpressionT&& value) {
107 SetScheduleExpression(std::forward<ScheduleExpressionT>(value));
108 return *this;
109 }
111
113
119 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
120 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
121 template <typename StartDateT = Aws::Utils::DateTime>
122 void SetStartDate(StartDateT&& value) {
123 m_startDateHasBeenSet = true;
124 m_startDate = std::forward<StartDateT>(value);
125 }
126 template <typename StartDateT = Aws::Utils::DateTime>
128 SetStartDate(std::forward<StartDateT>(value));
129 return *this;
130 }
132
134
140 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
141 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
142 template <typename EndDateT = Aws::Utils::DateTime>
143 void SetEndDate(EndDateT&& value) {
144 m_endDateHasBeenSet = true;
145 m_endDate = std::forward<EndDateT>(value);
146 }
147 template <typename EndDateT = Aws::Utils::DateTime>
149 SetEndDate(std::forward<EndDateT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::String& GetDescription() const { return m_description; }
159 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
160 template <typename DescriptionT = Aws::String>
161 void SetDescription(DescriptionT&& value) {
162 m_descriptionHasBeenSet = true;
163 m_description = std::forward<DescriptionT>(value);
164 }
165 template <typename DescriptionT = Aws::String>
166 CreateScheduleRequest& WithDescription(DescriptionT&& value) {
167 SetDescription(std::forward<DescriptionT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::String& GetScheduleExpressionTimezone() const { return m_scheduleExpressionTimezone; }
177 inline bool ScheduleExpressionTimezoneHasBeenSet() const { return m_scheduleExpressionTimezoneHasBeenSet; }
178 template <typename ScheduleExpressionTimezoneT = Aws::String>
179 void SetScheduleExpressionTimezone(ScheduleExpressionTimezoneT&& value) {
180 m_scheduleExpressionTimezoneHasBeenSet = true;
181 m_scheduleExpressionTimezone = std::forward<ScheduleExpressionTimezoneT>(value);
182 }
183 template <typename ScheduleExpressionTimezoneT = Aws::String>
184 CreateScheduleRequest& WithScheduleExpressionTimezone(ScheduleExpressionTimezoneT&& value) {
185 SetScheduleExpressionTimezone(std::forward<ScheduleExpressionTimezoneT>(value));
186 return *this;
187 }
189
191
194 inline ScheduleState GetState() const { return m_state; }
195 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
196 inline void SetState(ScheduleState value) {
197 m_stateHasBeenSet = true;
198 m_state = value;
199 }
201 SetState(value);
202 return *this;
203 }
205
207
211 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
212 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
213 template <typename KmsKeyArnT = Aws::String>
214 void SetKmsKeyArn(KmsKeyArnT&& value) {
215 m_kmsKeyArnHasBeenSet = true;
216 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
217 }
218 template <typename KmsKeyArnT = Aws::String>
220 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
221 return *this;
222 }
224
226
229 inline const Target& GetTarget() const { return m_target; }
230 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
231 template <typename TargetT = Target>
232 void SetTarget(TargetT&& value) {
233 m_targetHasBeenSet = true;
234 m_target = std::forward<TargetT>(value);
235 }
236 template <typename TargetT = Target>
238 SetTarget(std::forward<TargetT>(value));
239 return *this;
240 }
242
244
248 inline const FlexibleTimeWindow& GetFlexibleTimeWindow() const { return m_flexibleTimeWindow; }
249 inline bool FlexibleTimeWindowHasBeenSet() const { return m_flexibleTimeWindowHasBeenSet; }
250 template <typename FlexibleTimeWindowT = FlexibleTimeWindow>
251 void SetFlexibleTimeWindow(FlexibleTimeWindowT&& value) {
252 m_flexibleTimeWindowHasBeenSet = true;
253 m_flexibleTimeWindow = std::forward<FlexibleTimeWindowT>(value);
254 }
255 template <typename FlexibleTimeWindowT = FlexibleTimeWindow>
256 CreateScheduleRequest& WithFlexibleTimeWindow(FlexibleTimeWindowT&& value) {
257 SetFlexibleTimeWindow(std::forward<FlexibleTimeWindowT>(value));
258 return *this;
259 }
261
263
268 inline const Aws::String& GetClientToken() const { return m_clientToken; }
269 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
270 template <typename ClientTokenT = Aws::String>
271 void SetClientToken(ClientTokenT&& value) {
272 m_clientTokenHasBeenSet = true;
273 m_clientToken = std::forward<ClientTokenT>(value);
274 }
275 template <typename ClientTokenT = Aws::String>
276 CreateScheduleRequest& WithClientToken(ClientTokenT&& value) {
277 SetClientToken(std::forward<ClientTokenT>(value));
278 return *this;
279 }
281
283
287 inline ActionAfterCompletion GetActionAfterCompletion() const { return m_actionAfterCompletion; }
288 inline bool ActionAfterCompletionHasBeenSet() const { return m_actionAfterCompletionHasBeenSet; }
290 m_actionAfterCompletionHasBeenSet = true;
291 m_actionAfterCompletion = value;
292 }
298 private:
299 Aws::String m_name;
300
301 Aws::String m_groupName;
302
303 Aws::String m_scheduleExpression;
304
305 Aws::Utils::DateTime m_startDate{};
306
307 Aws::Utils::DateTime m_endDate{};
308
309 Aws::String m_description;
310
311 Aws::String m_scheduleExpressionTimezone;
312
314
315 Aws::String m_kmsKeyArn;
316
317 Target m_target;
318
319 FlexibleTimeWindow m_flexibleTimeWindow;
320
322
324 bool m_nameHasBeenSet = false;
325 bool m_groupNameHasBeenSet = false;
326 bool m_scheduleExpressionHasBeenSet = false;
327 bool m_startDateHasBeenSet = false;
328 bool m_endDateHasBeenSet = false;
329 bool m_descriptionHasBeenSet = false;
330 bool m_scheduleExpressionTimezoneHasBeenSet = false;
331 bool m_stateHasBeenSet = false;
332 bool m_kmsKeyArnHasBeenSet = false;
333 bool m_targetHasBeenSet = false;
334 bool m_flexibleTimeWindowHasBeenSet = false;
335 bool m_clientTokenHasBeenSet = true;
336 bool m_actionAfterCompletionHasBeenSet = false;
337};
338
339} // namespace Model
340} // namespace Scheduler
341} // namespace Aws
AWS_SCHEDULER_API Aws::String SerializePayload() const override
void SetScheduleExpression(ScheduleExpressionT &&value)
void SetScheduleExpressionTimezone(ScheduleExpressionTimezoneT &&value)
CreateScheduleRequest & WithClientToken(ClientTokenT &&value)
CreateScheduleRequest & WithEndDate(EndDateT &&value)
void SetFlexibleTimeWindow(FlexibleTimeWindowT &&value)
CreateScheduleRequest & WithStartDate(StartDateT &&value)
const Aws::String & GetScheduleExpressionTimezone() const
CreateScheduleRequest & WithTarget(TargetT &&value)
ActionAfterCompletion GetActionAfterCompletion() const
CreateScheduleRequest & WithActionAfterCompletion(ActionAfterCompletion value)
void SetActionAfterCompletion(ActionAfterCompletion value)
const FlexibleTimeWindow & GetFlexibleTimeWindow() const
virtual const char * GetServiceRequestName() const override
CreateScheduleRequest & WithState(ScheduleState value)
CreateScheduleRequest & WithGroupName(GroupNameT &&value)
CreateScheduleRequest & WithScheduleExpressionTimezone(ScheduleExpressionTimezoneT &&value)
AWS_SCHEDULER_API CreateScheduleRequest()=default
const Aws::Utils::DateTime & GetEndDate() const
CreateScheduleRequest & WithName(NameT &&value)
const Aws::Utils::DateTime & GetStartDate() const
CreateScheduleRequest & WithDescription(DescriptionT &&value)
CreateScheduleRequest & WithScheduleExpression(ScheduleExpressionT &&value)
CreateScheduleRequest & WithKmsKeyArn(KmsKeyArnT &&value)
CreateScheduleRequest & WithFlexibleTimeWindow(FlexibleTimeWindowT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String