AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
ModifyScheduledActionRequest.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 ModifyScheduledActionRequest() = 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 "ModifyScheduledAction"; }
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
41 inline const Aws::String& GetScheduledActionName() const { return m_scheduledActionName; }
42 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
43 template <typename ScheduledActionNameT = Aws::String>
44 void SetScheduledActionName(ScheduledActionNameT&& value) {
45 m_scheduledActionNameHasBeenSet = true;
46 m_scheduledActionName = std::forward<ScheduledActionNameT>(value);
47 }
48 template <typename ScheduledActionNameT = Aws::String>
50 SetScheduledActionName(std::forward<ScheduledActionNameT>(value));
51 return *this;
52 }
54
56
60 inline const ScheduledActionType& GetTargetAction() const { return m_targetAction; }
61 inline bool TargetActionHasBeenSet() const { return m_targetActionHasBeenSet; }
62 template <typename TargetActionT = ScheduledActionType>
63 void SetTargetAction(TargetActionT&& value) {
64 m_targetActionHasBeenSet = true;
65 m_targetAction = std::forward<TargetActionT>(value);
66 }
67 template <typename TargetActionT = ScheduledActionType>
69 SetTargetAction(std::forward<TargetActionT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetSchedule() const { return m_schedule; }
81 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
82 template <typename ScheduleT = Aws::String>
83 void SetSchedule(ScheduleT&& value) {
84 m_scheduleHasBeenSet = true;
85 m_schedule = std::forward<ScheduleT>(value);
86 }
87 template <typename ScheduleT = Aws::String>
89 SetSchedule(std::forward<ScheduleT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetIamRole() const { return m_iamRole; }
100 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
101 template <typename IamRoleT = Aws::String>
102 void SetIamRole(IamRoleT&& value) {
103 m_iamRoleHasBeenSet = true;
104 m_iamRole = std::forward<IamRoleT>(value);
105 }
106 template <typename IamRoleT = Aws::String>
108 SetIamRole(std::forward<IamRoleT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetScheduledActionDescription() const { return m_scheduledActionDescription; }
118 inline bool ScheduledActionDescriptionHasBeenSet() const { return m_scheduledActionDescriptionHasBeenSet; }
119 template <typename ScheduledActionDescriptionT = Aws::String>
120 void SetScheduledActionDescription(ScheduledActionDescriptionT&& value) {
121 m_scheduledActionDescriptionHasBeenSet = true;
122 m_scheduledActionDescription = std::forward<ScheduledActionDescriptionT>(value);
123 }
124 template <typename ScheduledActionDescriptionT = Aws::String>
125 ModifyScheduledActionRequest& WithScheduledActionDescription(ScheduledActionDescriptionT&& value) {
126 SetScheduledActionDescription(std::forward<ScheduledActionDescriptionT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
137 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
138 template <typename StartTimeT = Aws::Utils::DateTime>
139 void SetStartTime(StartTimeT&& value) {
140 m_startTimeHasBeenSet = true;
141 m_startTime = std::forward<StartTimeT>(value);
142 }
143 template <typename StartTimeT = Aws::Utils::DateTime>
145 SetStartTime(std::forward<StartTimeT>(value));
146 return *this;
147 }
149
151
155 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
156 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
157 template <typename EndTimeT = Aws::Utils::DateTime>
158 void SetEndTime(EndTimeT&& value) {
159 m_endTimeHasBeenSet = true;
160 m_endTime = std::forward<EndTimeT>(value);
161 }
162 template <typename EndTimeT = Aws::Utils::DateTime>
164 SetEndTime(std::forward<EndTimeT>(value));
165 return *this;
166 }
168
170
174 inline bool GetEnable() const { return m_enable; }
175 inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; }
176 inline void SetEnable(bool value) {
177 m_enableHasBeenSet = true;
178 m_enable = value;
179 }
181 SetEnable(value);
182 return *this;
183 }
185 private:
186 Aws::String m_scheduledActionName;
187
188 ScheduledActionType m_targetAction;
189
190 Aws::String m_schedule;
191
192 Aws::String m_iamRole;
193
194 Aws::String m_scheduledActionDescription;
195
196 Aws::Utils::DateTime m_startTime{};
197
198 Aws::Utils::DateTime m_endTime{};
199
200 bool m_enable{false};
201 bool m_scheduledActionNameHasBeenSet = false;
202 bool m_targetActionHasBeenSet = false;
203 bool m_scheduleHasBeenSet = false;
204 bool m_iamRoleHasBeenSet = false;
205 bool m_scheduledActionDescriptionHasBeenSet = false;
206 bool m_startTimeHasBeenSet = false;
207 bool m_endTimeHasBeenSet = false;
208 bool m_enableHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace Redshift
213} // namespace Aws
AWS_REDSHIFT_API Aws::String SerializePayload() const override
ModifyScheduledActionRequest & WithScheduledActionDescription(ScheduledActionDescriptionT &&value)
ModifyScheduledActionRequest & WithIamRole(IamRoleT &&value)
ModifyScheduledActionRequest & WithEnable(bool value)
ModifyScheduledActionRequest & WithEndTime(EndTimeT &&value)
ModifyScheduledActionRequest & WithStartTime(StartTimeT &&value)
void SetScheduledActionDescription(ScheduledActionDescriptionT &&value)
AWS_REDSHIFT_API ModifyScheduledActionRequest()=default
ModifyScheduledActionRequest & WithScheduledActionName(ScheduledActionNameT &&value)
ModifyScheduledActionRequest & WithSchedule(ScheduleT &&value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyScheduledActionRequest & WithTargetAction(TargetActionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String