AWS SDK for C++  1.9.110
AWS SDK for C++
ModifyScheduledActionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Redshift
17 {
18 namespace 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 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  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 
69  inline ModifyScheduledActionRequest& WithScheduledActionName(const Aws::String& value) { SetScheduledActionName(value); return *this;}
70 
74  inline ModifyScheduledActionRequest& WithScheduledActionName(Aws::String&& value) { SetScheduledActionName(std::move(value)); return *this;}
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 
110  inline ModifyScheduledActionRequest& WithTargetAction(const ScheduledActionType& value) { SetTargetAction(value); return *this;}
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 
253  inline ModifyScheduledActionRequest& WithScheduledActionDescription(const Aws::String& value) { SetScheduledActionDescription(value); return *this;}
254 
258  inline ModifyScheduledActionRequest& WithScheduledActionDescription(Aws::String&& value) { SetScheduledActionDescription(std::move(value)); return *this;}
259 
263  inline ModifyScheduledActionRequest& WithScheduledActionDescription(const char* value) { SetScheduledActionDescription(value); return *this;}
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 
294  inline ModifyScheduledActionRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
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;
368 
369  ScheduledActionType m_targetAction;
370  bool m_targetActionHasBeenSet;
371 
372  Aws::String m_schedule;
373  bool m_scheduleHasBeenSet;
374 
375  Aws::String m_iamRole;
376  bool m_iamRoleHasBeenSet;
377 
378  Aws::String m_scheduledActionDescription;
379  bool m_scheduledActionDescriptionHasBeenSet;
380 
381  Aws::Utils::DateTime m_startTime;
382  bool m_startTimeHasBeenSet;
383 
384  Aws::Utils::DateTime m_endTime;
385  bool m_endTimeHasBeenSet;
386 
387  bool m_enable;
388  bool m_enableHasBeenSet;
389  };
390 
391 } // namespace Model
392 } // namespace Redshift
393 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Redshift::Model::ModifyScheduledActionRequest::SetScheduledActionName
void SetScheduledActionName(Aws::String &&value)
Definition: ModifyScheduledActionRequest.h:59
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::ModifyScheduledActionRequest::WithScheduledActionDescription
ModifyScheduledActionRequest & WithScheduledActionDescription(Aws::String &&value)
Definition: ModifyScheduledActionRequest.h:258
Aws::Redshift::Model::ModifyScheduledActionRequest::WithScheduledActionName
ModifyScheduledActionRequest & WithScheduledActionName(const char *value)
Definition: ModifyScheduledActionRequest.h:79
Aws::Redshift::Model::ModifyScheduledActionRequest::WithScheduledActionName
ModifyScheduledActionRequest & WithScheduledActionName(const Aws::String &value)
Definition: ModifyScheduledActionRequest.h:69
DateTime.h
Aws::Redshift::Model::ModifyScheduledActionRequest::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: ModifyScheduledActionRequest.h:282
Aws::Redshift::Model::ModifyScheduledActionRequest::SetSchedule
void SetSchedule(const char *value)
Definition: ModifyScheduledActionRequest.h:152
Aws::Redshift::Model::ModifyScheduledActionRequest::GetSchedule
const Aws::String & GetSchedule() const
Definition: ModifyScheduledActionRequest.h:124
Aws::Redshift::Model::ModifyScheduledActionRequest::SetEnable
void SetEnable(bool value)
Definition: ModifyScheduledActionRequest.h:356
Aws::Redshift::Model::ModifyScheduledActionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyScheduledActionRequest.h:32
Aws::Redshift::Model::ModifyScheduledActionRequest::SetTargetAction
void SetTargetAction(const ScheduledActionType &value)
Definition: ModifyScheduledActionRequest.h:98
Aws::Redshift::Model::ModifyScheduledActionRequest::TargetActionHasBeenSet
bool TargetActionHasBeenSet() const
Definition: ModifyScheduledActionRequest.h:92
Aws::Redshift::Model::ModifyScheduledActionRequest::EnableHasBeenSet
bool EnableHasBeenSet() const
Definition: ModifyScheduledActionRequest.h:350
Aws::Redshift::Model::ModifyScheduledActionRequest::WithSchedule
ModifyScheduledActionRequest & WithSchedule(const char *value)
Definition: ModifyScheduledActionRequest.h:173
Aws::Redshift::Model::ModifyScheduledActionRequest::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: ModifyScheduledActionRequest.h:276
Aws::Redshift::Model::ModifyScheduledActionRequest::GetIamRole
const Aws::String & GetIamRole() const
Definition: ModifyScheduledActionRequest.h:180
Aws::Redshift::Model::ModifyScheduledActionRequest::SetScheduledActionDescription
void SetScheduledActionDescription(Aws::String &&value)
Definition: ModifyScheduledActionRequest.h:243
RedshiftRequest.h
Aws::Redshift::Model::ModifyScheduledActionRequest::SetEndTime
void SetEndTime(Aws::Utils::DateTime &&value)
Definition: ModifyScheduledActionRequest.h:325
Aws::Redshift::Model::ModifyScheduledActionRequest::ScheduledActionDescriptionHasBeenSet
bool ScheduledActionDescriptionHasBeenSet() const
Definition: ModifyScheduledActionRequest.h:233
Aws::Redshift::Model::ModifyScheduledActionRequest::SetScheduledActionName
void SetScheduledActionName(const Aws::String &value)
Definition: ModifyScheduledActionRequest.h:54
Aws::Redshift::Model::ModifyScheduledActionRequest::ModifyScheduledActionRequest
ModifyScheduledActionRequest()
Aws::Redshift::Model::ModifyScheduledActionRequest::GetEndTime
const Aws::Utils::DateTime & GetEndTime() const
Definition: ModifyScheduledActionRequest.h:307
Aws::Redshift::Model::ModifyScheduledActionRequest::WithIamRole
ModifyScheduledActionRequest & WithIamRole(Aws::String &&value)
Definition: ModifyScheduledActionRequest.h:216
Aws::Redshift::Model::ModifyScheduledActionRequest::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: ModifyScheduledActionRequest.h:288
Aws::Redshift::Model::ModifyScheduledActionRequest::GetTargetAction
const ScheduledActionType & GetTargetAction() const
Definition: ModifyScheduledActionRequest.h:86
ScheduledActionType.h
Aws::Redshift::Model::ModifyScheduledActionRequest::WithEndTime
ModifyScheduledActionRequest & WithEndTime(const Aws::Utils::DateTime &value)
Definition: ModifyScheduledActionRequest.h:331
Aws::Redshift::Model::ModifyScheduledActionRequest::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: ModifyScheduledActionRequest.h:313
Aws::Redshift::Model::ModifyScheduledActionRequest::SetSchedule
void SetSchedule(Aws::String &&value)
Definition: ModifyScheduledActionRequest.h:145
Aws::Redshift::Model::ModifyScheduledActionRequest::SetTargetAction
void SetTargetAction(ScheduledActionType &&value)
Definition: ModifyScheduledActionRequest.h:104
Aws::Redshift::Model::ModifyScheduledActionRequest::SetScheduledActionDescription
void SetScheduledActionDescription(const Aws::String &value)
Definition: ModifyScheduledActionRequest.h:238
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::ModifyScheduledActionRequest::SetEndTime
void SetEndTime(const Aws::Utils::DateTime &value)
Definition: ModifyScheduledActionRequest.h:319
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
Aws::Redshift::Model::ModifyScheduledActionRequest::WithTargetAction
ModifyScheduledActionRequest & WithTargetAction(const ScheduledActionType &value)
Definition: ModifyScheduledActionRequest.h:110
AWSString.h
Aws::Redshift::Model::ModifyScheduledActionRequest::WithSchedule
ModifyScheduledActionRequest & WithSchedule(const Aws::String &value)
Definition: ModifyScheduledActionRequest.h:159
Aws::Redshift::Model::ModifyScheduledActionRequest::WithStartTime
ModifyScheduledActionRequest & WithStartTime(Aws::Utils::DateTime &&value)
Definition: ModifyScheduledActionRequest.h:300
Aws::Redshift::Model::ModifyScheduledActionRequest::WithSchedule
ModifyScheduledActionRequest & WithSchedule(Aws::String &&value)
Definition: ModifyScheduledActionRequest.h:166
Aws::Redshift::Model::ModifyScheduledActionRequest::SetScheduledActionName
void SetScheduledActionName(const char *value)
Definition: ModifyScheduledActionRequest.h:64
Aws::Redshift::Model::ModifyScheduledActionRequest::SetIamRole
void SetIamRole(Aws::String &&value)
Definition: ModifyScheduledActionRequest.h:198
Aws::Redshift::Model::ModifyScheduledActionRequest::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: ModifyScheduledActionRequest.h:270
Aws::Redshift::Model::ModifyScheduledActionRequest::WithIamRole
ModifyScheduledActionRequest & WithIamRole(const Aws::String &value)
Definition: ModifyScheduledActionRequest.h:210
Aws::Redshift::Model::ModifyScheduledActionRequest::SetIamRole
void SetIamRole(const Aws::String &value)
Definition: ModifyScheduledActionRequest.h:192
Aws::Redshift::Model::ModifyScheduledActionRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::ModifyScheduledActionRequest::WithStartTime
ModifyScheduledActionRequest & WithStartTime(const Aws::Utils::DateTime &value)
Definition: ModifyScheduledActionRequest.h:294
Aws::Redshift::Model::ModifyScheduledActionRequest::WithEnable
ModifyScheduledActionRequest & WithEnable(bool value)
Definition: ModifyScheduledActionRequest.h:362
Aws::Redshift::Model::ModifyScheduledActionRequest::WithScheduledActionDescription
ModifyScheduledActionRequest & WithScheduledActionDescription(const char *value)
Definition: ModifyScheduledActionRequest.h:263
Aws::Redshift::Model::ModifyScheduledActionRequest::SetSchedule
void SetSchedule(const Aws::String &value)
Definition: ModifyScheduledActionRequest.h:138
Aws::Redshift::Model::ModifyScheduledActionRequest::SetScheduledActionDescription
void SetScheduledActionDescription(const char *value)
Definition: ModifyScheduledActionRequest.h:248
Aws::Redshift::Model::ModifyScheduledActionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::ModifyScheduledActionRequest::IamRoleHasBeenSet
bool IamRoleHasBeenSet() const
Definition: ModifyScheduledActionRequest.h:186
Aws::Redshift::Model::ModifyScheduledActionRequest::WithIamRole
ModifyScheduledActionRequest & WithIamRole(const char *value)
Definition: ModifyScheduledActionRequest.h:222
Redshift_EXPORTS.h
Aws::Redshift::Model::ModifyScheduledActionRequest
Definition: ModifyScheduledActionRequest.h:24
Aws::Redshift::Model::ModifyScheduledActionRequest::ScheduleHasBeenSet
bool ScheduleHasBeenSet() const
Definition: ModifyScheduledActionRequest.h:131
Aws::Redshift::Model::ModifyScheduledActionRequest::WithScheduledActionName
ModifyScheduledActionRequest & WithScheduledActionName(Aws::String &&value)
Definition: ModifyScheduledActionRequest.h:74
Aws::Redshift::Model::ModifyScheduledActionRequest::GetEnable
bool GetEnable() const
Definition: ModifyScheduledActionRequest.h:344
Aws::Redshift::Model::ModifyScheduledActionRequest::ScheduledActionNameHasBeenSet
bool ScheduledActionNameHasBeenSet() const
Definition: ModifyScheduledActionRequest.h:49
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::ModifyScheduledActionRequest::WithEndTime
ModifyScheduledActionRequest & WithEndTime(Aws::Utils::DateTime &&value)
Definition: ModifyScheduledActionRequest.h:337
Aws::Redshift::Model::ScheduledActionType
Definition: ScheduledActionType.h:35
Aws::Redshift::Model::ModifyScheduledActionRequest::WithScheduledActionDescription
ModifyScheduledActionRequest & WithScheduledActionDescription(const Aws::String &value)
Definition: ModifyScheduledActionRequest.h:253
Aws::Redshift::Model::ModifyScheduledActionRequest::WithTargetAction
ModifyScheduledActionRequest & WithTargetAction(ScheduledActionType &&value)
Definition: ModifyScheduledActionRequest.h:116
Aws::Redshift::Model::ModifyScheduledActionRequest::SetIamRole
void SetIamRole(const char *value)
Definition: ModifyScheduledActionRequest.h:204
Aws::Redshift::Model::ModifyScheduledActionRequest::GetScheduledActionName
const Aws::String & GetScheduledActionName() const
Definition: ModifyScheduledActionRequest.h:44
Aws::Redshift::Model::ModifyScheduledActionRequest::GetScheduledActionDescription
const Aws::String & GetScheduledActionDescription() const
Definition: ModifyScheduledActionRequest.h:228