AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
ScheduledAction.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift/Redshift_EXPORTS.h>
12#include <aws/redshift/model/ResponseMetadata.h>
13#include <aws/redshift/model/ScheduledActionState.h>
14#include <aws/redshift/model/ScheduledActionType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace Redshift {
25namespace Model {
26
36 public:
37 AWS_REDSHIFT_API ScheduledAction() = default;
38 AWS_REDSHIFT_API ScheduledAction(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_REDSHIFT_API ScheduledAction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
45
48 inline const Aws::String& GetScheduledActionName() const { return m_scheduledActionName; }
49 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
50 template <typename ScheduledActionNameT = Aws::String>
51 void SetScheduledActionName(ScheduledActionNameT&& value) {
52 m_scheduledActionNameHasBeenSet = true;
53 m_scheduledActionName = std::forward<ScheduledActionNameT>(value);
54 }
55 template <typename ScheduledActionNameT = Aws::String>
56 ScheduledAction& WithScheduledActionName(ScheduledActionNameT&& value) {
57 SetScheduledActionName(std::forward<ScheduledActionNameT>(value));
58 return *this;
59 }
61
63
69 inline const ScheduledActionType& GetTargetAction() const { return m_targetAction; }
70 inline bool TargetActionHasBeenSet() const { return m_targetActionHasBeenSet; }
71 template <typename TargetActionT = ScheduledActionType>
72 void SetTargetAction(TargetActionT&& value) {
73 m_targetActionHasBeenSet = true;
74 m_targetAction = std::forward<TargetActionT>(value);
75 }
76 template <typename TargetActionT = ScheduledActionType>
77 ScheduledAction& WithTargetAction(TargetActionT&& value) {
78 SetTargetAction(std::forward<TargetActionT>(value));
79 return *this;
80 }
82
84
95 inline const Aws::String& GetSchedule() const { return m_schedule; }
96 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
97 template <typename ScheduleT = Aws::String>
98 void SetSchedule(ScheduleT&& value) {
99 m_scheduleHasBeenSet = true;
100 m_schedule = std::forward<ScheduleT>(value);
101 }
102 template <typename ScheduleT = Aws::String>
103 ScheduledAction& WithSchedule(ScheduleT&& value) {
104 SetSchedule(std::forward<ScheduleT>(value));
105 return *this;
106 }
108
110
120 inline const Aws::String& GetIamRole() const { return m_iamRole; }
121 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
122 template <typename IamRoleT = Aws::String>
123 void SetIamRole(IamRoleT&& value) {
124 m_iamRoleHasBeenSet = true;
125 m_iamRole = std::forward<IamRoleT>(value);
126 }
127 template <typename IamRoleT = Aws::String>
128 ScheduledAction& WithIamRole(IamRoleT&& value) {
129 SetIamRole(std::forward<IamRoleT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetScheduledActionDescription() const { return m_scheduledActionDescription; }
139 inline bool ScheduledActionDescriptionHasBeenSet() const { return m_scheduledActionDescriptionHasBeenSet; }
140 template <typename ScheduledActionDescriptionT = Aws::String>
141 void SetScheduledActionDescription(ScheduledActionDescriptionT&& value) {
142 m_scheduledActionDescriptionHasBeenSet = true;
143 m_scheduledActionDescription = std::forward<ScheduledActionDescriptionT>(value);
144 }
145 template <typename ScheduledActionDescriptionT = Aws::String>
146 ScheduledAction& WithScheduledActionDescription(ScheduledActionDescriptionT&& value) {
147 SetScheduledActionDescription(std::forward<ScheduledActionDescriptionT>(value));
148 return *this;
149 }
151
153
156 inline ScheduledActionState GetState() const { return m_state; }
157 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
158 inline void SetState(ScheduledActionState value) {
159 m_stateHasBeenSet = true;
160 m_state = value;
161 }
163 SetState(value);
164 return *this;
165 }
167
169
172 inline const Aws::Vector<Aws::Utils::DateTime>& GetNextInvocations() const { return m_nextInvocations; }
173 inline bool NextInvocationsHasBeenSet() const { return m_nextInvocationsHasBeenSet; }
174 template <typename NextInvocationsT = Aws::Vector<Aws::Utils::DateTime>>
175 void SetNextInvocations(NextInvocationsT&& value) {
176 m_nextInvocationsHasBeenSet = true;
177 m_nextInvocations = std::forward<NextInvocationsT>(value);
178 }
179 template <typename NextInvocationsT = Aws::Vector<Aws::Utils::DateTime>>
180 ScheduledAction& WithNextInvocations(NextInvocationsT&& value) {
181 SetNextInvocations(std::forward<NextInvocationsT>(value));
182 return *this;
183 }
184 template <typename NextInvocationsT = Aws::Utils::DateTime>
185 ScheduledAction& AddNextInvocations(NextInvocationsT&& value) {
186 m_nextInvocationsHasBeenSet = true;
187 m_nextInvocations.emplace_back(std::forward<NextInvocationsT>(value));
188 return *this;
189 }
191
193
197 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
198 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
199 template <typename StartTimeT = Aws::Utils::DateTime>
200 void SetStartTime(StartTimeT&& value) {
201 m_startTimeHasBeenSet = true;
202 m_startTime = std::forward<StartTimeT>(value);
203 }
204 template <typename StartTimeT = Aws::Utils::DateTime>
205 ScheduledAction& WithStartTime(StartTimeT&& value) {
206 SetStartTime(std::forward<StartTimeT>(value));
207 return *this;
208 }
210
212
216 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
217 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
218 template <typename EndTimeT = Aws::Utils::DateTime>
219 void SetEndTime(EndTimeT&& value) {
220 m_endTimeHasBeenSet = true;
221 m_endTime = std::forward<EndTimeT>(value);
222 }
223 template <typename EndTimeT = Aws::Utils::DateTime>
224 ScheduledAction& WithEndTime(EndTimeT&& value) {
225 SetEndTime(std::forward<EndTimeT>(value));
226 return *this;
227 }
229
231
232 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
233 template <typename ResponseMetadataT = ResponseMetadata>
234 void SetResponseMetadata(ResponseMetadataT&& value) {
235 m_responseMetadataHasBeenSet = true;
236 m_responseMetadata = std::forward<ResponseMetadataT>(value);
237 }
238 template <typename ResponseMetadataT = ResponseMetadata>
239 ScheduledAction& WithResponseMetadata(ResponseMetadataT&& value) {
240 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
241 return *this;
242 }
244 private:
245 Aws::String m_scheduledActionName;
246
247 ScheduledActionType m_targetAction;
248
249 Aws::String m_schedule;
250
251 Aws::String m_iamRole;
252
253 Aws::String m_scheduledActionDescription;
254
256
257 Aws::Vector<Aws::Utils::DateTime> m_nextInvocations;
258
259 Aws::Utils::DateTime m_startTime{};
260
261 Aws::Utils::DateTime m_endTime{};
262
263 ResponseMetadata m_responseMetadata;
264 bool m_scheduledActionNameHasBeenSet = false;
265 bool m_targetActionHasBeenSet = false;
266 bool m_scheduleHasBeenSet = false;
267 bool m_iamRoleHasBeenSet = false;
268 bool m_scheduledActionDescriptionHasBeenSet = false;
269 bool m_stateHasBeenSet = false;
270 bool m_nextInvocationsHasBeenSet = false;
271 bool m_startTimeHasBeenSet = false;
272 bool m_endTimeHasBeenSet = false;
273 bool m_responseMetadataHasBeenSet = true;
274};
275
276} // namespace Model
277} // namespace Redshift
278} // namespace Aws
void SetResponseMetadata(ResponseMetadataT &&value)
AWS_REDSHIFT_API ScheduledAction()=default
const Aws::Utils::DateTime & GetStartTime() const
ScheduledAction & WithStartTime(StartTimeT &&value)
const Aws::String & GetSchedule() const
ScheduledAction & WithScheduledActionDescription(ScheduledActionDescriptionT &&value)
ScheduledAction & WithEndTime(EndTimeT &&value)
ScheduledAction & AddNextInvocations(NextInvocationsT &&value)
AWS_REDSHIFT_API ScheduledAction & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const ScheduledActionType & GetTargetAction() const
ScheduledAction & WithIamRole(IamRoleT &&value)
void SetState(ScheduledActionState value)
void SetScheduledActionName(ScheduledActionNameT &&value)
void SetStartTime(StartTimeT &&value)
ScheduledAction & WithState(ScheduledActionState value)
const Aws::String & GetIamRole() const
void SetScheduledActionDescription(ScheduledActionDescriptionT &&value)
void SetTargetAction(TargetActionT &&value)
ScheduledAction & WithResponseMetadata(ResponseMetadataT &&value)
void SetNextInvocations(NextInvocationsT &&value)
ScheduledAction & WithSchedule(ScheduleT &&value)
AWS_REDSHIFT_API ScheduledAction(const Aws::Utils::Xml::XmlNode &xmlNode)
ScheduledAction & WithTargetAction(TargetActionT &&value)
const Aws::String & GetScheduledActionDescription() const
const Aws::String & GetScheduledActionName() const
ScheduledActionState GetState() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const ResponseMetadata & GetResponseMetadata() const
ScheduledAction & WithNextInvocations(NextInvocationsT &&value)
const Aws::Utils::DateTime & GetEndTime() const
ScheduledAction & WithScheduledActionName(ScheduledActionNameT &&value)
const Aws::Vector< Aws::Utils::DateTime > & GetNextInvocations() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream