AWS SDK for C++  1.9.104
AWS SDK for C++
CreateScheduledActionRequest.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 "CreateScheduledAction"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  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 
75  inline CreateScheduledActionRequest& WithScheduledActionName(const Aws::String& value) { SetScheduledActionName(value); return *this;}
76 
81  inline CreateScheduledActionRequest& WithScheduledActionName(Aws::String&& value) { SetScheduledActionName(std::move(value)); return *this;}
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 
123  inline CreateScheduledActionRequest& WithTargetAction(const ScheduledActionType& value) { SetTargetAction(value); return *this;}
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 
259  inline CreateScheduledActionRequest& WithScheduledActionDescription(const Aws::String& value) { SetScheduledActionDescription(value); return *this;}
260 
264  inline CreateScheduledActionRequest& WithScheduledActionDescription(Aws::String&& value) { SetScheduledActionDescription(std::move(value)); return *this;}
265 
269  inline CreateScheduledActionRequest& WithScheduledActionDescription(const char* value) { SetScheduledActionDescription(value); return *this;}
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 
305  inline CreateScheduledActionRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
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;
390 
391  ScheduledActionType m_targetAction;
392  bool m_targetActionHasBeenSet;
393 
394  Aws::String m_schedule;
395  bool m_scheduleHasBeenSet;
396 
397  Aws::String m_iamRole;
398  bool m_iamRoleHasBeenSet;
399 
400  Aws::String m_scheduledActionDescription;
401  bool m_scheduledActionDescriptionHasBeenSet;
402 
403  Aws::Utils::DateTime m_startTime;
404  bool m_startTimeHasBeenSet;
405 
406  Aws::Utils::DateTime m_endTime;
407  bool m_endTimeHasBeenSet;
408 
409  bool m_enable;
410  bool m_enableHasBeenSet;
411  };
412 
413 } // namespace Model
414 } // namespace Redshift
415 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Redshift::Model::CreateScheduledActionRequest::WithScheduledActionDescription
CreateScheduledActionRequest & WithScheduledActionDescription(const char *value)
Definition: CreateScheduledActionRequest.h:269
Aws::Redshift::Model::CreateScheduledActionRequest::GetTargetAction
const ScheduledActionType & GetTargetAction() const
Definition: CreateScheduledActionRequest.h:95
Aws::Redshift::Model::CreateScheduledActionRequest::WithScheduledActionDescription
CreateScheduledActionRequest & WithScheduledActionDescription(const Aws::String &value)
Definition: CreateScheduledActionRequest.h:259
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::CreateScheduledActionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::CreateScheduledActionRequest::WithSchedule
CreateScheduledActionRequest & WithSchedule(const Aws::String &value)
Definition: CreateScheduledActionRequest.h:167
Aws::Redshift::Model::CreateScheduledActionRequest::WithIamRole
CreateScheduledActionRequest & WithIamRole(const char *value)
Definition: CreateScheduledActionRequest.h:228
Aws::Redshift::Model::CreateScheduledActionRequest::GetScheduledActionName
const Aws::String & GetScheduledActionName() const
Definition: CreateScheduledActionRequest.h:45
Aws::Redshift::Model::CreateScheduledActionRequest::WithTargetAction
CreateScheduledActionRequest & WithTargetAction(ScheduledActionType &&value)
Definition: CreateScheduledActionRequest.h:130
Aws::Redshift::Model::CreateScheduledActionRequest::SetSchedule
void SetSchedule(Aws::String &&value)
Definition: CreateScheduledActionRequest.h:155
Aws::Redshift::Model::CreateScheduledActionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateScheduledActionRequest.h:32
Aws::Redshift::Model::CreateScheduledActionRequest::GetIamRole
const Aws::String & GetIamRole() const
Definition: CreateScheduledActionRequest.h:186
Aws::Redshift::Model::CreateScheduledActionRequest::GetEndTime
const Aws::Utils::DateTime & GetEndTime() const
Definition: CreateScheduledActionRequest.h:320
Aws::Redshift::Model::CreateScheduledActionRequest::SetIamRole
void SetIamRole(Aws::String &&value)
Definition: CreateScheduledActionRequest.h:204
DateTime.h
Aws::Redshift::Model::CreateScheduledActionRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::CreateScheduledActionRequest::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: CreateScheduledActionRequest.h:291
RedshiftRequest.h
Aws::Redshift::Model::CreateScheduledActionRequest::CreateScheduledActionRequest
CreateScheduledActionRequest()
Aws::Redshift::Model::CreateScheduledActionRequest::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: CreateScheduledActionRequest.h:277
Aws::Redshift::Model::CreateScheduledActionRequest::SetTargetAction
void SetTargetAction(ScheduledActionType &&value)
Definition: CreateScheduledActionRequest.h:116
Aws::Redshift::Model::CreateScheduledActionRequest::ScheduledActionNameHasBeenSet
bool ScheduledActionNameHasBeenSet() const
Definition: CreateScheduledActionRequest.h:51
Aws::Redshift::Model::CreateScheduledActionRequest::WithIamRole
CreateScheduledActionRequest & WithIamRole(const Aws::String &value)
Definition: CreateScheduledActionRequest.h:216
Aws::Redshift::Model::CreateScheduledActionRequest::WithStartTime
CreateScheduledActionRequest & WithStartTime(Aws::Utils::DateTime &&value)
Definition: CreateScheduledActionRequest.h:312
Aws::Redshift::Model::CreateScheduledActionRequest::EnableHasBeenSet
bool EnableHasBeenSet() const
Definition: CreateScheduledActionRequest.h:370
ScheduledActionType.h
Aws::Redshift::Model::CreateScheduledActionRequest::SetEndTime
void SetEndTime(const Aws::Utils::DateTime &value)
Definition: CreateScheduledActionRequest.h:334
Aws::Redshift::Model::CreateScheduledActionRequest::WithScheduledActionName
CreateScheduledActionRequest & WithScheduledActionName(const char *value)
Definition: CreateScheduledActionRequest.h:87
Aws::Redshift::Model::CreateScheduledActionRequest::SetScheduledActionName
void SetScheduledActionName(Aws::String &&value)
Definition: CreateScheduledActionRequest.h:63
Aws::Redshift::Model::CreateScheduledActionRequest::ScheduledActionDescriptionHasBeenSet
bool ScheduledActionDescriptionHasBeenSet() const
Definition: CreateScheduledActionRequest.h:239
Aws::Redshift::Model::CreateScheduledActionRequest::TargetActionHasBeenSet
bool TargetActionHasBeenSet() const
Definition: CreateScheduledActionRequest.h:102
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::CreateScheduledActionRequest::WithEnable
CreateScheduledActionRequest & WithEnable(bool value)
Definition: CreateScheduledActionRequest.h:384
Aws::Redshift::Model::CreateScheduledActionRequest::WithTargetAction
CreateScheduledActionRequest & WithTargetAction(const ScheduledActionType &value)
Definition: CreateScheduledActionRequest.h:123
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
AWSString.h
Aws::Redshift::Model::CreateScheduledActionRequest::WithEndTime
CreateScheduledActionRequest & WithEndTime(Aws::Utils::DateTime &&value)
Definition: CreateScheduledActionRequest.h:355
Aws::Redshift::Model::CreateScheduledActionRequest::WithScheduledActionDescription
CreateScheduledActionRequest & WithScheduledActionDescription(Aws::String &&value)
Definition: CreateScheduledActionRequest.h:264
Aws::Redshift::Model::CreateScheduledActionRequest::SetScheduledActionDescription
void SetScheduledActionDescription(const Aws::String &value)
Definition: CreateScheduledActionRequest.h:244
Aws::Redshift::Model::CreateScheduledActionRequest::SetScheduledActionDescription
void SetScheduledActionDescription(const char *value)
Definition: CreateScheduledActionRequest.h:254
Aws::Redshift::Model::CreateScheduledActionRequest::GetEnable
bool GetEnable() const
Definition: CreateScheduledActionRequest.h:363
Aws::Redshift::Model::CreateScheduledActionRequest::SetIamRole
void SetIamRole(const char *value)
Definition: CreateScheduledActionRequest.h:210
Aws::Redshift::Model::CreateScheduledActionRequest::WithScheduledActionName
CreateScheduledActionRequest & WithScheduledActionName(const Aws::String &value)
Definition: CreateScheduledActionRequest.h:75
Aws::Redshift::Model::CreateScheduledActionRequest::SetIamRole
void SetIamRole(const Aws::String &value)
Definition: CreateScheduledActionRequest.h:198
Aws::Redshift::Model::CreateScheduledActionRequest::WithStartTime
CreateScheduledActionRequest & WithStartTime(const Aws::Utils::DateTime &value)
Definition: CreateScheduledActionRequest.h:305
Aws::Redshift::Model::CreateScheduledActionRequest::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: CreateScheduledActionRequest.h:298
Aws::Redshift::Model::CreateScheduledActionRequest::WithSchedule
CreateScheduledActionRequest & WithSchedule(const char *value)
Definition: CreateScheduledActionRequest.h:179
Aws::Redshift::Model::CreateScheduledActionRequest
Definition: CreateScheduledActionRequest.h:24
Aws::Redshift::Model::CreateScheduledActionRequest::WithScheduledActionName
CreateScheduledActionRequest & WithScheduledActionName(Aws::String &&value)
Definition: CreateScheduledActionRequest.h:81
Aws::Redshift::Model::CreateScheduledActionRequest::WithEndTime
CreateScheduledActionRequest & WithEndTime(const Aws::Utils::DateTime &value)
Definition: CreateScheduledActionRequest.h:348
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::CreateScheduledActionRequest::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: CreateScheduledActionRequest.h:284
Aws::Redshift::Model::CreateScheduledActionRequest::SetScheduledActionDescription
void SetScheduledActionDescription(Aws::String &&value)
Definition: CreateScheduledActionRequest.h:249
Redshift_EXPORTS.h
Aws::Redshift::Model::CreateScheduledActionRequest::WithSchedule
CreateScheduledActionRequest & WithSchedule(Aws::String &&value)
Definition: CreateScheduledActionRequest.h:173
Aws::Redshift::Model::CreateScheduledActionRequest::SetTargetAction
void SetTargetAction(const ScheduledActionType &value)
Definition: CreateScheduledActionRequest.h:109
Aws::Redshift::Model::CreateScheduledActionRequest::SetScheduledActionName
void SetScheduledActionName(const char *value)
Definition: CreateScheduledActionRequest.h:69
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::CreateScheduledActionRequest::IamRoleHasBeenSet
bool IamRoleHasBeenSet() const
Definition: CreateScheduledActionRequest.h:192
Aws::Redshift::Model::CreateScheduledActionRequest::ScheduleHasBeenSet
bool ScheduleHasBeenSet() const
Definition: CreateScheduledActionRequest.h:143
Aws::Redshift::Model::CreateScheduledActionRequest::SetEndTime
void SetEndTime(Aws::Utils::DateTime &&value)
Definition: CreateScheduledActionRequest.h:341
Aws::Redshift::Model::ScheduledActionType
Definition: ScheduledActionType.h:35
Aws::Redshift::Model::CreateScheduledActionRequest::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: CreateScheduledActionRequest.h:327
Aws::Redshift::Model::CreateScheduledActionRequest::GetScheduledActionDescription
const Aws::String & GetScheduledActionDescription() const
Definition: CreateScheduledActionRequest.h:234
Aws::Redshift::Model::CreateScheduledActionRequest::WithIamRole
CreateScheduledActionRequest & WithIamRole(Aws::String &&value)
Definition: CreateScheduledActionRequest.h:222
Aws::Redshift::Model::CreateScheduledActionRequest::SetScheduledActionName
void SetScheduledActionName(const Aws::String &value)
Definition: CreateScheduledActionRequest.h:57
Aws::Redshift::Model::CreateScheduledActionRequest::SetSchedule
void SetSchedule(const char *value)
Definition: CreateScheduledActionRequest.h:161
Aws::Redshift::Model::CreateScheduledActionRequest::SetEnable
void SetEnable(bool value)
Definition: CreateScheduledActionRequest.h:377
Aws::Redshift::Model::CreateScheduledActionRequest::SetSchedule
void SetSchedule(const Aws::String &value)
Definition: CreateScheduledActionRequest.h:149
Aws::Redshift::Model::CreateScheduledActionRequest::GetSchedule
const Aws::String & GetSchedule() const
Definition: CreateScheduledActionRequest.h:137