AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateScheduledActionRequest.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/redshift/model/ScheduledActionType.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Redshift
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_REDSHIFT_API CreateScheduledActionRequest();
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_REDSHIFT_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
46 inline const Aws::String& GetScheduledActionName() const{ return m_scheduledActionName; }
47 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
48 inline void SetScheduledActionName(const Aws::String& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = value; }
49 inline void SetScheduledActionName(Aws::String&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::move(value); }
50 inline void SetScheduledActionName(const char* value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName.assign(value); }
53 inline CreateScheduledActionRequest& WithScheduledActionName(const char* value) { SetScheduledActionName(value); return *this;}
55
57
62 inline const ScheduledActionType& GetTargetAction() const{ return m_targetAction; }
63 inline bool TargetActionHasBeenSet() const { return m_targetActionHasBeenSet; }
64 inline void SetTargetAction(const ScheduledActionType& value) { m_targetActionHasBeenSet = true; m_targetAction = value; }
65 inline void SetTargetAction(ScheduledActionType&& value) { m_targetActionHasBeenSet = true; m_targetAction = std::move(value); }
67 inline CreateScheduledActionRequest& WithTargetAction(ScheduledActionType&& value) { SetTargetAction(std::move(value)); return *this;}
69
71
75 inline const Aws::String& GetSchedule() const{ return m_schedule; }
76 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
77 inline void SetSchedule(const Aws::String& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
78 inline void SetSchedule(Aws::String&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
79 inline void SetSchedule(const char* value) { m_scheduleHasBeenSet = true; m_schedule.assign(value); }
80 inline CreateScheduledActionRequest& WithSchedule(const Aws::String& value) { SetSchedule(value); return *this;}
81 inline CreateScheduledActionRequest& WithSchedule(Aws::String&& value) { SetSchedule(std::move(value)); return *this;}
82 inline CreateScheduledActionRequest& WithSchedule(const char* value) { SetSchedule(value); return *this;}
84
86
90 inline const Aws::String& GetIamRole() const{ return m_iamRole; }
91 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
92 inline void SetIamRole(const Aws::String& value) { m_iamRoleHasBeenSet = true; m_iamRole = value; }
93 inline void SetIamRole(Aws::String&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::move(value); }
94 inline void SetIamRole(const char* value) { m_iamRoleHasBeenSet = true; m_iamRole.assign(value); }
95 inline CreateScheduledActionRequest& WithIamRole(const Aws::String& value) { SetIamRole(value); return *this;}
96 inline CreateScheduledActionRequest& WithIamRole(Aws::String&& value) { SetIamRole(std::move(value)); return *this;}
97 inline CreateScheduledActionRequest& WithIamRole(const char* value) { SetIamRole(value); return *this;}
99
101
104 inline const Aws::String& GetScheduledActionDescription() const{ return m_scheduledActionDescription; }
105 inline bool ScheduledActionDescriptionHasBeenSet() const { return m_scheduledActionDescriptionHasBeenSet; }
106 inline void SetScheduledActionDescription(const Aws::String& value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription = value; }
107 inline void SetScheduledActionDescription(Aws::String&& value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription = std::move(value); }
108 inline void SetScheduledActionDescription(const char* value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription.assign(value); }
113
115
120 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
121 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
122 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
123 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
125 inline CreateScheduledActionRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
127
129
134 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
135 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
136 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
137 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
138 inline CreateScheduledActionRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
139 inline CreateScheduledActionRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
141
143
148 inline bool GetEnable() const{ return m_enable; }
149 inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; }
150 inline void SetEnable(bool value) { m_enableHasBeenSet = true; m_enable = value; }
151 inline CreateScheduledActionRequest& WithEnable(bool value) { SetEnable(value); return *this;}
153 private:
154
155 Aws::String m_scheduledActionName;
156 bool m_scheduledActionNameHasBeenSet = false;
157
158 ScheduledActionType m_targetAction;
159 bool m_targetActionHasBeenSet = false;
160
161 Aws::String m_schedule;
162 bool m_scheduleHasBeenSet = false;
163
164 Aws::String m_iamRole;
165 bool m_iamRoleHasBeenSet = false;
166
167 Aws::String m_scheduledActionDescription;
168 bool m_scheduledActionDescriptionHasBeenSet = false;
169
170 Aws::Utils::DateTime m_startTime;
171 bool m_startTimeHasBeenSet = false;
172
173 Aws::Utils::DateTime m_endTime;
174 bool m_endTimeHasBeenSet = false;
175
176 bool m_enable;
177 bool m_enableHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace Redshift
182} // namespace Aws
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)
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