AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ScheduledActionResponse.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
11#include <aws/redshift-serverless/model/Schedule.h>
12#include <aws/redshift-serverless/model/State.h>
13#include <aws/redshift-serverless/model/TargetAction.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace RedshiftServerless {
25namespace Model {
26
33 public:
34 AWS_REDSHIFTSERVERLESS_API ScheduledActionResponse() = default;
35 AWS_REDSHIFTSERVERLESS_API ScheduledActionResponse(Aws::Utils::Json::JsonView jsonValue);
36 AWS_REDSHIFTSERVERLESS_API ScheduledActionResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
44 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
45 template <typename EndTimeT = Aws::Utils::DateTime>
46 void SetEndTime(EndTimeT&& value) {
47 m_endTimeHasBeenSet = true;
48 m_endTime = std::forward<EndTimeT>(value);
49 }
50 template <typename EndTimeT = Aws::Utils::DateTime>
52 SetEndTime(std::forward<EndTimeT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetNamespaceName() const { return m_namespaceName; }
63 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
64 template <typename NamespaceNameT = Aws::String>
65 void SetNamespaceName(NamespaceNameT&& value) {
66 m_namespaceNameHasBeenSet = true;
67 m_namespaceName = std::forward<NamespaceNameT>(value);
68 }
69 template <typename NamespaceNameT = Aws::String>
70 ScheduledActionResponse& WithNamespaceName(NamespaceNameT&& value) {
71 SetNamespaceName(std::forward<NamespaceNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Vector<Aws::Utils::DateTime>& GetNextInvocations() const { return m_nextInvocations; }
81 inline bool NextInvocationsHasBeenSet() const { return m_nextInvocationsHasBeenSet; }
82 template <typename NextInvocationsT = Aws::Vector<Aws::Utils::DateTime>>
83 void SetNextInvocations(NextInvocationsT&& value) {
84 m_nextInvocationsHasBeenSet = true;
85 m_nextInvocations = std::forward<NextInvocationsT>(value);
86 }
87 template <typename NextInvocationsT = Aws::Vector<Aws::Utils::DateTime>>
88 ScheduledActionResponse& WithNextInvocations(NextInvocationsT&& value) {
89 SetNextInvocations(std::forward<NextInvocationsT>(value));
90 return *this;
91 }
92 template <typename NextInvocationsT = Aws::Utils::DateTime>
93 ScheduledActionResponse& AddNextInvocations(NextInvocationsT&& value) {
94 m_nextInvocationsHasBeenSet = true;
95 m_nextInvocations.emplace_back(std::forward<NextInvocationsT>(value));
96 return *this;
97 }
99
101
112 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
113 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
114 template <typename RoleArnT = Aws::String>
115 void SetRoleArn(RoleArnT&& value) {
116 m_roleArnHasBeenSet = true;
117 m_roleArn = std::forward<RoleArnT>(value);
118 }
119 template <typename RoleArnT = Aws::String>
121 SetRoleArn(std::forward<RoleArnT>(value));
122 return *this;
123 }
125
127
139 inline const Schedule& GetSchedule() const { return m_schedule; }
140 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
141 template <typename ScheduleT = Schedule>
142 void SetSchedule(ScheduleT&& value) {
143 m_scheduleHasBeenSet = true;
144 m_schedule = std::forward<ScheduleT>(value);
145 }
146 template <typename ScheduleT = Schedule>
148 SetSchedule(std::forward<ScheduleT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetScheduledActionDescription() const { return m_scheduledActionDescription; }
158 inline bool ScheduledActionDescriptionHasBeenSet() const { return m_scheduledActionDescriptionHasBeenSet; }
159 template <typename ScheduledActionDescriptionT = Aws::String>
160 void SetScheduledActionDescription(ScheduledActionDescriptionT&& value) {
161 m_scheduledActionDescriptionHasBeenSet = true;
162 m_scheduledActionDescription = std::forward<ScheduledActionDescriptionT>(value);
163 }
164 template <typename ScheduledActionDescriptionT = Aws::String>
165 ScheduledActionResponse& WithScheduledActionDescription(ScheduledActionDescriptionT&& value) {
166 SetScheduledActionDescription(std::forward<ScheduledActionDescriptionT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::String& GetScheduledActionName() const { return m_scheduledActionName; }
176 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
177 template <typename ScheduledActionNameT = Aws::String>
178 void SetScheduledActionName(ScheduledActionNameT&& value) {
179 m_scheduledActionNameHasBeenSet = true;
180 m_scheduledActionName = std::forward<ScheduledActionNameT>(value);
181 }
182 template <typename ScheduledActionNameT = Aws::String>
183 ScheduledActionResponse& WithScheduledActionName(ScheduledActionNameT&& value) {
184 SetScheduledActionName(std::forward<ScheduledActionNameT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::String& GetScheduledActionUuid() const { return m_scheduledActionUuid; }
194 inline bool ScheduledActionUuidHasBeenSet() const { return m_scheduledActionUuidHasBeenSet; }
195 template <typename ScheduledActionUuidT = Aws::String>
196 void SetScheduledActionUuid(ScheduledActionUuidT&& value) {
197 m_scheduledActionUuidHasBeenSet = true;
198 m_scheduledActionUuid = std::forward<ScheduledActionUuidT>(value);
199 }
200 template <typename ScheduledActionUuidT = Aws::String>
201 ScheduledActionResponse& WithScheduledActionUuid(ScheduledActionUuidT&& value) {
202 SetScheduledActionUuid(std::forward<ScheduledActionUuidT>(value));
203 return *this;
204 }
206
208
212 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
213 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
214 template <typename StartTimeT = Aws::Utils::DateTime>
215 void SetStartTime(StartTimeT&& value) {
216 m_startTimeHasBeenSet = true;
217 m_startTime = std::forward<StartTimeT>(value);
218 }
219 template <typename StartTimeT = Aws::Utils::DateTime>
221 SetStartTime(std::forward<StartTimeT>(value));
222 return *this;
223 }
225
227
230 inline State GetState() const { return m_state; }
231 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
232 inline void SetState(State value) {
233 m_stateHasBeenSet = true;
234 m_state = value;
235 }
237 SetState(value);
238 return *this;
239 }
241
243
244 inline const TargetAction& GetTargetAction() const { return m_targetAction; }
245 inline bool TargetActionHasBeenSet() const { return m_targetActionHasBeenSet; }
246 template <typename TargetActionT = TargetAction>
247 void SetTargetAction(TargetActionT&& value) {
248 m_targetActionHasBeenSet = true;
249 m_targetAction = std::forward<TargetActionT>(value);
250 }
251 template <typename TargetActionT = TargetAction>
253 SetTargetAction(std::forward<TargetActionT>(value));
254 return *this;
255 }
257 private:
258 Aws::Utils::DateTime m_endTime{};
259
260 Aws::String m_namespaceName;
261
262 Aws::Vector<Aws::Utils::DateTime> m_nextInvocations;
263
264 Aws::String m_roleArn;
265
266 Schedule m_schedule;
267
268 Aws::String m_scheduledActionDescription;
269
270 Aws::String m_scheduledActionName;
271
272 Aws::String m_scheduledActionUuid;
273
274 Aws::Utils::DateTime m_startTime{};
275
276 State m_state{State::NOT_SET};
277
278 TargetAction m_targetAction;
279 bool m_endTimeHasBeenSet = false;
280 bool m_namespaceNameHasBeenSet = false;
281 bool m_nextInvocationsHasBeenSet = false;
282 bool m_roleArnHasBeenSet = false;
283 bool m_scheduleHasBeenSet = false;
284 bool m_scheduledActionDescriptionHasBeenSet = false;
285 bool m_scheduledActionNameHasBeenSet = false;
286 bool m_scheduledActionUuidHasBeenSet = false;
287 bool m_startTimeHasBeenSet = false;
288 bool m_stateHasBeenSet = false;
289 bool m_targetActionHasBeenSet = false;
290};
291
292} // namespace Model
293} // namespace RedshiftServerless
294} // namespace Aws
AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
ScheduledActionResponse & WithStartTime(StartTimeT &&value)
ScheduledActionResponse & WithRoleArn(RoleArnT &&value)
AWS_REDSHIFTSERVERLESS_API ScheduledActionResponse()=default
ScheduledActionResponse & WithScheduledActionName(ScheduledActionNameT &&value)
ScheduledActionResponse & WithScheduledActionDescription(ScheduledActionDescriptionT &&value)
ScheduledActionResponse & WithTargetAction(TargetActionT &&value)
const Aws::Vector< Aws::Utils::DateTime > & GetNextInvocations() const
ScheduledActionResponse & WithScheduledActionUuid(ScheduledActionUuidT &&value)
ScheduledActionResponse & WithNextInvocations(NextInvocationsT &&value)
AWS_REDSHIFTSERVERLESS_API ScheduledActionResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
ScheduledActionResponse & WithNamespaceName(NamespaceNameT &&value)
void SetScheduledActionDescription(ScheduledActionDescriptionT &&value)
ScheduledActionResponse & WithSchedule(ScheduleT &&value)
AWS_REDSHIFTSERVERLESS_API ScheduledActionResponse(Aws::Utils::Json::JsonView jsonValue)
ScheduledActionResponse & WithEndTime(EndTimeT &&value)
ScheduledActionResponse & AddNextInvocations(NextInvocationsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue