AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
CreateScheduledActionRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/redshift/RedshiftRequest.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11#include <aws/redshift/model/ScheduledActionType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Redshift {
17namespace Model {
18
22 public:
23 AWS_REDSHIFT_API CreateScheduledActionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateScheduledAction"; }
30
31 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
42 inline const Aws::String& GetScheduledActionName() const { return m_scheduledActionName; }
43 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
44 template <typename ScheduledActionNameT = Aws::String>
45 void SetScheduledActionName(ScheduledActionNameT&& value) {
46 m_scheduledActionNameHasBeenSet = true;
47 m_scheduledActionName = std::forward<ScheduledActionNameT>(value);
48 }
49 template <typename ScheduledActionNameT = Aws::String>
51 SetScheduledActionName(std::forward<ScheduledActionNameT>(value));
52 return *this;
53 }
55
57
62 inline const ScheduledActionType& GetTargetAction() const { return m_targetAction; }
63 inline bool TargetActionHasBeenSet() const { return m_targetActionHasBeenSet; }
64 template <typename TargetActionT = ScheduledActionType>
65 void SetTargetAction(TargetActionT&& value) {
66 m_targetActionHasBeenSet = true;
67 m_targetAction = std::forward<TargetActionT>(value);
68 }
69 template <typename TargetActionT = ScheduledActionType>
71 SetTargetAction(std::forward<TargetActionT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetSchedule() const { return m_schedule; }
82 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
83 template <typename ScheduleT = Aws::String>
84 void SetSchedule(ScheduleT&& value) {
85 m_scheduleHasBeenSet = true;
86 m_schedule = std::forward<ScheduleT>(value);
87 }
88 template <typename ScheduleT = Aws::String>
90 SetSchedule(std::forward<ScheduleT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetIamRole() const { return m_iamRole; }
101 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
102 template <typename IamRoleT = Aws::String>
103 void SetIamRole(IamRoleT&& value) {
104 m_iamRoleHasBeenSet = true;
105 m_iamRole = std::forward<IamRoleT>(value);
106 }
107 template <typename IamRoleT = Aws::String>
109 SetIamRole(std::forward<IamRoleT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetScheduledActionDescription() const { return m_scheduledActionDescription; }
119 inline bool ScheduledActionDescriptionHasBeenSet() const { return m_scheduledActionDescriptionHasBeenSet; }
120 template <typename ScheduledActionDescriptionT = Aws::String>
121 void SetScheduledActionDescription(ScheduledActionDescriptionT&& value) {
122 m_scheduledActionDescriptionHasBeenSet = true;
123 m_scheduledActionDescription = std::forward<ScheduledActionDescriptionT>(value);
124 }
125 template <typename ScheduledActionDescriptionT = Aws::String>
126 CreateScheduledActionRequest& WithScheduledActionDescription(ScheduledActionDescriptionT&& value) {
127 SetScheduledActionDescription(std::forward<ScheduledActionDescriptionT>(value));
128 return *this;
129 }
131
133
138 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
139 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
140 template <typename StartTimeT = Aws::Utils::DateTime>
141 void SetStartTime(StartTimeT&& value) {
142 m_startTimeHasBeenSet = true;
143 m_startTime = std::forward<StartTimeT>(value);
144 }
145 template <typename StartTimeT = Aws::Utils::DateTime>
147 SetStartTime(std::forward<StartTimeT>(value));
148 return *this;
149 }
151
153
158 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
159 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
160 template <typename EndTimeT = Aws::Utils::DateTime>
161 void SetEndTime(EndTimeT&& value) {
162 m_endTimeHasBeenSet = true;
163 m_endTime = std::forward<EndTimeT>(value);
164 }
165 template <typename EndTimeT = Aws::Utils::DateTime>
167 SetEndTime(std::forward<EndTimeT>(value));
168 return *this;
169 }
171
173
178 inline bool GetEnable() const { return m_enable; }
179 inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; }
180 inline void SetEnable(bool value) {
181 m_enableHasBeenSet = true;
182 m_enable = value;
183 }
185 SetEnable(value);
186 return *this;
187 }
189 private:
190 Aws::String m_scheduledActionName;
191
192 ScheduledActionType m_targetAction;
193
194 Aws::String m_schedule;
195
196 Aws::String m_iamRole;
197
198 Aws::String m_scheduledActionDescription;
199
200 Aws::Utils::DateTime m_startTime{};
201
202 Aws::Utils::DateTime m_endTime{};
203
204 bool m_enable{false};
205 bool m_scheduledActionNameHasBeenSet = false;
206 bool m_targetActionHasBeenSet = false;
207 bool m_scheduleHasBeenSet = false;
208 bool m_iamRoleHasBeenSet = false;
209 bool m_scheduledActionDescriptionHasBeenSet = false;
210 bool m_startTimeHasBeenSet = false;
211 bool m_endTimeHasBeenSet = false;
212 bool m_enableHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace Redshift
217} // namespace Aws
CreateScheduledActionRequest & WithScheduledActionName(ScheduledActionNameT &&value)
CreateScheduledActionRequest & WithEndTime(EndTimeT &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
CreateScheduledActionRequest & WithSchedule(ScheduleT &&value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateScheduledActionRequest & WithScheduledActionDescription(ScheduledActionDescriptionT &&value)
CreateScheduledActionRequest & WithTargetAction(TargetActionT &&value)
CreateScheduledActionRequest & WithIamRole(IamRoleT &&value)
void SetScheduledActionDescription(ScheduledActionDescriptionT &&value)
CreateScheduledActionRequest & WithStartTime(StartTimeT &&value)
CreateScheduledActionRequest & WithEnable(bool value)
AWS_REDSHIFT_API CreateScheduledActionRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String