AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ModifyScheduledActionRequest.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 "ModifyScheduledAction"; }
33
35
36 protected:
37 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
44 inline const Aws::String& GetScheduledActionName() const{ return m_scheduledActionName; }
45
49 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
50
54 inline void SetScheduledActionName(const Aws::String& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = value; }
55
59 inline void SetScheduledActionName(Aws::String&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::move(value); }
60
64 inline void SetScheduledActionName(const char* value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName.assign(value); }
65
70
75
79 inline ModifyScheduledActionRequest& WithScheduledActionName(const char* value) { SetScheduledActionName(value); return *this;}
80
81
86 inline const ScheduledActionType& GetTargetAction() const{ return m_targetAction; }
87
92 inline bool TargetActionHasBeenSet() const { return m_targetActionHasBeenSet; }
93
98 inline void SetTargetAction(const ScheduledActionType& value) { m_targetActionHasBeenSet = true; m_targetAction = value; }
99
104 inline void SetTargetAction(ScheduledActionType&& value) { m_targetActionHasBeenSet = true; m_targetAction = std::move(value); }
105
111
116 inline ModifyScheduledActionRequest& WithTargetAction(ScheduledActionType&& value) { SetTargetAction(std::move(value)); return *this;}
117
118
124 inline const Aws::String& GetSchedule() const{ return m_schedule; }
125
131 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
132
138 inline void SetSchedule(const Aws::String& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
139
145 inline void SetSchedule(Aws::String&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
146
152 inline void SetSchedule(const char* value) { m_scheduleHasBeenSet = true; m_schedule.assign(value); }
153
159 inline ModifyScheduledActionRequest& WithSchedule(const Aws::String& value) { SetSchedule(value); return *this;}
160
166 inline ModifyScheduledActionRequest& WithSchedule(Aws::String&& value) { SetSchedule(std::move(value)); return *this;}
167
173 inline ModifyScheduledActionRequest& WithSchedule(const char* value) { SetSchedule(value); return *this;}
174
175
180 inline const Aws::String& GetIamRole() const{ return m_iamRole; }
181
186 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
187
192 inline void SetIamRole(const Aws::String& value) { m_iamRoleHasBeenSet = true; m_iamRole = value; }
193
198 inline void SetIamRole(Aws::String&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::move(value); }
199
204 inline void SetIamRole(const char* value) { m_iamRoleHasBeenSet = true; m_iamRole.assign(value); }
205
210 inline ModifyScheduledActionRequest& WithIamRole(const Aws::String& value) { SetIamRole(value); return *this;}
211
216 inline ModifyScheduledActionRequest& WithIamRole(Aws::String&& value) { SetIamRole(std::move(value)); return *this;}
217
222 inline ModifyScheduledActionRequest& WithIamRole(const char* value) { SetIamRole(value); return *this;}
223
224
228 inline const Aws::String& GetScheduledActionDescription() const{ return m_scheduledActionDescription; }
229
233 inline bool ScheduledActionDescriptionHasBeenSet() const { return m_scheduledActionDescriptionHasBeenSet; }
234
238 inline void SetScheduledActionDescription(const Aws::String& value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription = value; }
239
243 inline void SetScheduledActionDescription(Aws::String&& value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription = std::move(value); }
244
248 inline void SetScheduledActionDescription(const char* value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription.assign(value); }
249
254
259
264
265
270 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
271
276 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
277
282 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
283
288 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
289
295
300 inline ModifyScheduledActionRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
301
302
307 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
308
313 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
314
319 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
320
325 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
326
331 inline ModifyScheduledActionRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
332
337 inline ModifyScheduledActionRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
338
339
344 inline bool GetEnable() const{ return m_enable; }
345
350 inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; }
351
356 inline void SetEnable(bool value) { m_enableHasBeenSet = true; m_enable = value; }
357
362 inline ModifyScheduledActionRequest& WithEnable(bool value) { SetEnable(value); return *this;}
363
364 private:
365
366 Aws::String m_scheduledActionName;
367 bool m_scheduledActionNameHasBeenSet = false;
368
369 ScheduledActionType m_targetAction;
370 bool m_targetActionHasBeenSet = false;
371
372 Aws::String m_schedule;
373 bool m_scheduleHasBeenSet = false;
374
375 Aws::String m_iamRole;
376 bool m_iamRoleHasBeenSet = false;
377
378 Aws::String m_scheduledActionDescription;
379 bool m_scheduledActionDescriptionHasBeenSet = false;
380
381 Aws::Utils::DateTime m_startTime;
382 bool m_startTimeHasBeenSet = false;
383
384 Aws::Utils::DateTime m_endTime;
385 bool m_endTimeHasBeenSet = false;
386
387 bool m_enable;
388 bool m_enableHasBeenSet = false;
389 };
390
391} // namespace Model
392} // namespace Redshift
393} // namespace Aws
#define AWS_REDSHIFT_API
AWS_REDSHIFT_API Aws::String SerializePayload() const override
ModifyScheduledActionRequest & WithIamRole(Aws::String &&value)
ModifyScheduledActionRequest & WithIamRole(const Aws::String &value)
ModifyScheduledActionRequest & WithScheduledActionName(const Aws::String &value)
ModifyScheduledActionRequest & WithScheduledActionName(Aws::String &&value)
ModifyScheduledActionRequest & WithEnable(bool value)
ModifyScheduledActionRequest & WithStartTime(const Aws::Utils::DateTime &value)
ModifyScheduledActionRequest & WithEndTime(const Aws::Utils::DateTime &value)
ModifyScheduledActionRequest & WithTargetAction(ScheduledActionType &&value)
ModifyScheduledActionRequest & WithScheduledActionDescription(const char *value)
ModifyScheduledActionRequest & WithEndTime(Aws::Utils::DateTime &&value)
ModifyScheduledActionRequest & WithScheduledActionDescription(const Aws::String &value)
ModifyScheduledActionRequest & WithScheduledActionDescription(Aws::String &&value)
ModifyScheduledActionRequest & WithSchedule(Aws::String &&value)
ModifyScheduledActionRequest & WithSchedule(const Aws::String &value)
ModifyScheduledActionRequest & WithScheduledActionName(const char *value)
ModifyScheduledActionRequest & WithSchedule(const char *value)
ModifyScheduledActionRequest & WithIamRole(const char *value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyScheduledActionRequest & WithTargetAction(const ScheduledActionType &value)
virtual const char * GetServiceRequestName() const override
ModifyScheduledActionRequest & WithStartTime(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String