AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CreateScheduledActionRequest.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace Redshift
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateScheduledAction"; }
33
35
36 protected:
37 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
45 inline const Aws::String& GetScheduledActionName() const{ return m_scheduledActionName; }
46
51 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
52
57 inline void SetScheduledActionName(const Aws::String& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = value; }
58
63 inline void SetScheduledActionName(Aws::String&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::move(value); }
64
69 inline void SetScheduledActionName(const char* value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName.assign(value); }
70
76
82
87 inline CreateScheduledActionRequest& WithScheduledActionName(const char* value) { SetScheduledActionName(value); return *this;}
88
89
95 inline const ScheduledActionType& GetTargetAction() const{ return m_targetAction; }
96
102 inline bool TargetActionHasBeenSet() const { return m_targetActionHasBeenSet; }
103
109 inline void SetTargetAction(const ScheduledActionType& value) { m_targetActionHasBeenSet = true; m_targetAction = value; }
110
116 inline void SetTargetAction(ScheduledActionType&& value) { m_targetActionHasBeenSet = true; m_targetAction = std::move(value); }
117
124
130 inline CreateScheduledActionRequest& WithTargetAction(ScheduledActionType&& value) { SetTargetAction(std::move(value)); return *this;}
131
132
137 inline const Aws::String& GetSchedule() const{ return m_schedule; }
138
143 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
144
149 inline void SetSchedule(const Aws::String& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
150
155 inline void SetSchedule(Aws::String&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
156
161 inline void SetSchedule(const char* value) { m_scheduleHasBeenSet = true; m_schedule.assign(value); }
162
167 inline CreateScheduledActionRequest& WithSchedule(const Aws::String& value) { SetSchedule(value); return *this;}
168
173 inline CreateScheduledActionRequest& WithSchedule(Aws::String&& value) { SetSchedule(std::move(value)); return *this;}
174
179 inline CreateScheduledActionRequest& WithSchedule(const char* value) { SetSchedule(value); return *this;}
180
181
186 inline const Aws::String& GetIamRole() const{ return m_iamRole; }
187
192 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
193
198 inline void SetIamRole(const Aws::String& value) { m_iamRoleHasBeenSet = true; m_iamRole = value; }
199
204 inline void SetIamRole(Aws::String&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::move(value); }
205
210 inline void SetIamRole(const char* value) { m_iamRoleHasBeenSet = true; m_iamRole.assign(value); }
211
216 inline CreateScheduledActionRequest& WithIamRole(const Aws::String& value) { SetIamRole(value); return *this;}
217
222 inline CreateScheduledActionRequest& WithIamRole(Aws::String&& value) { SetIamRole(std::move(value)); return *this;}
223
228 inline CreateScheduledActionRequest& WithIamRole(const char* value) { SetIamRole(value); return *this;}
229
230
234 inline const Aws::String& GetScheduledActionDescription() const{ return m_scheduledActionDescription; }
235
239 inline bool ScheduledActionDescriptionHasBeenSet() const { return m_scheduledActionDescriptionHasBeenSet; }
240
244 inline void SetScheduledActionDescription(const Aws::String& value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription = value; }
245
249 inline void SetScheduledActionDescription(Aws::String&& value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription = std::move(value); }
250
254 inline void SetScheduledActionDescription(const char* value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription.assign(value); }
255
260
265
270
271
277 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
278
284 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
285
291 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
292
298 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
299
306
312 inline CreateScheduledActionRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
313
314
320 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
321
327 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
328
334 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
335
341 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
342
348 inline CreateScheduledActionRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
349
355 inline CreateScheduledActionRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
356
357
363 inline bool GetEnable() const{ return m_enable; }
364
370 inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; }
371
377 inline void SetEnable(bool value) { m_enableHasBeenSet = true; m_enable = value; }
378
384 inline CreateScheduledActionRequest& WithEnable(bool value) { SetEnable(value); return *this;}
385
386 private:
387
388 Aws::String m_scheduledActionName;
389 bool m_scheduledActionNameHasBeenSet = false;
390
391 ScheduledActionType m_targetAction;
392 bool m_targetActionHasBeenSet = false;
393
394 Aws::String m_schedule;
395 bool m_scheduleHasBeenSet = false;
396
397 Aws::String m_iamRole;
398 bool m_iamRoleHasBeenSet = false;
399
400 Aws::String m_scheduledActionDescription;
401 bool m_scheduledActionDescriptionHasBeenSet = false;
402
403 Aws::Utils::DateTime m_startTime;
404 bool m_startTimeHasBeenSet = false;
405
406 Aws::Utils::DateTime m_endTime;
407 bool m_endTimeHasBeenSet = false;
408
409 bool m_enable;
410 bool m_enableHasBeenSet = false;
411 };
412
413} // namespace Model
414} // namespace Redshift
415} // namespace Aws
#define AWS_REDSHIFT_API
CreateScheduledActionRequest & WithSchedule(const char *value)
CreateScheduledActionRequest & WithScheduledActionDescription(Aws::String &&value)
CreateScheduledActionRequest & WithScheduledActionName(const Aws::String &value)
CreateScheduledActionRequest & WithScheduledActionName(Aws::String &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
CreateScheduledActionRequest & WithEndTime(Aws::Utils::DateTime &&value)
CreateScheduledActionRequest & WithTargetAction(ScheduledActionType &&value)
CreateScheduledActionRequest & WithIamRole(const Aws::String &value)
CreateScheduledActionRequest & WithStartTime(Aws::Utils::DateTime &&value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateScheduledActionRequest & WithIamRole(const char *value)
CreateScheduledActionRequest & WithStartTime(const Aws::Utils::DateTime &value)
virtual const char * GetServiceRequestName() const override
CreateScheduledActionRequest & WithIamRole(Aws::String &&value)
CreateScheduledActionRequest & WithScheduledActionDescription(const char *value)
CreateScheduledActionRequest & WithSchedule(const Aws::String &value)
CreateScheduledActionRequest & WithScheduledActionDescription(const Aws::String &value)
CreateScheduledActionRequest & WithTargetAction(const ScheduledActionType &value)
CreateScheduledActionRequest & WithSchedule(Aws::String &&value)
CreateScheduledActionRequest & WithEnable(bool value)
CreateScheduledActionRequest & WithEndTime(const Aws::Utils::DateTime &value)
CreateScheduledActionRequest & WithScheduledActionName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String