AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ScheduledActionResponse.h
1
6#pragma once
7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.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#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace RedshiftServerless
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_REDSHIFTSERVERLESS_API ScheduledActionResponse() = default;
40 AWS_REDSHIFTSERVERLESS_API ScheduledActionResponse(Aws::Utils::Json::JsonView jsonValue);
41 AWS_REDSHIFTSERVERLESS_API ScheduledActionResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
50 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
51 template<typename EndTimeT = Aws::Utils::DateTime>
52 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
53 template<typename EndTimeT = Aws::Utils::DateTime>
54 ScheduledActionResponse& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
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) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::forward<NamespaceNameT>(value); }
66 template<typename NamespaceNameT = Aws::String>
67 ScheduledActionResponse& WithNamespaceName(NamespaceNameT&& value) { SetNamespaceName(std::forward<NamespaceNameT>(value)); return *this;}
69
71
74 inline const Aws::Vector<Aws::Utils::DateTime>& GetNextInvocations() const { return m_nextInvocations; }
75 inline bool NextInvocationsHasBeenSet() const { return m_nextInvocationsHasBeenSet; }
76 template<typename NextInvocationsT = Aws::Vector<Aws::Utils::DateTime>>
77 void SetNextInvocations(NextInvocationsT&& value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations = std::forward<NextInvocationsT>(value); }
78 template<typename NextInvocationsT = Aws::Vector<Aws::Utils::DateTime>>
79 ScheduledActionResponse& WithNextInvocations(NextInvocationsT&& value) { SetNextInvocations(std::forward<NextInvocationsT>(value)); return *this;}
80 template<typename NextInvocationsT = Aws::Utils::DateTime>
81 ScheduledActionResponse& AddNextInvocations(NextInvocationsT&& value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations.emplace_back(std::forward<NextInvocationsT>(value)); return *this; }
83
85
96 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
97 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
98 template<typename RoleArnT = Aws::String>
99 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
100 template<typename RoleArnT = Aws::String>
101 ScheduledActionResponse& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
103
105
117 inline const Schedule& GetSchedule() const { return m_schedule; }
118 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
119 template<typename ScheduleT = Schedule>
120 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
121 template<typename ScheduleT = Schedule>
122 ScheduledActionResponse& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
124
126
129 inline const Aws::String& GetScheduledActionDescription() const { return m_scheduledActionDescription; }
130 inline bool ScheduledActionDescriptionHasBeenSet() const { return m_scheduledActionDescriptionHasBeenSet; }
131 template<typename ScheduledActionDescriptionT = Aws::String>
132 void SetScheduledActionDescription(ScheduledActionDescriptionT&& value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription = std::forward<ScheduledActionDescriptionT>(value); }
133 template<typename ScheduledActionDescriptionT = Aws::String>
134 ScheduledActionResponse& WithScheduledActionDescription(ScheduledActionDescriptionT&& value) { SetScheduledActionDescription(std::forward<ScheduledActionDescriptionT>(value)); return *this;}
136
138
141 inline const Aws::String& GetScheduledActionName() const { return m_scheduledActionName; }
142 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
143 template<typename ScheduledActionNameT = Aws::String>
144 void SetScheduledActionName(ScheduledActionNameT&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::forward<ScheduledActionNameT>(value); }
145 template<typename ScheduledActionNameT = Aws::String>
146 ScheduledActionResponse& WithScheduledActionName(ScheduledActionNameT&& value) { SetScheduledActionName(std::forward<ScheduledActionNameT>(value)); return *this;}
148
150
153 inline const Aws::String& GetScheduledActionUuid() const { return m_scheduledActionUuid; }
154 inline bool ScheduledActionUuidHasBeenSet() const { return m_scheduledActionUuidHasBeenSet; }
155 template<typename ScheduledActionUuidT = Aws::String>
156 void SetScheduledActionUuid(ScheduledActionUuidT&& value) { m_scheduledActionUuidHasBeenSet = true; m_scheduledActionUuid = std::forward<ScheduledActionUuidT>(value); }
157 template<typename ScheduledActionUuidT = Aws::String>
158 ScheduledActionResponse& WithScheduledActionUuid(ScheduledActionUuidT&& value) { SetScheduledActionUuid(std::forward<ScheduledActionUuidT>(value)); return *this;}
160
162
166 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
167 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
168 template<typename StartTimeT = Aws::Utils::DateTime>
169 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
170 template<typename StartTimeT = Aws::Utils::DateTime>
171 ScheduledActionResponse& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
173
175
178 inline State GetState() const { return m_state; }
179 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
180 inline void SetState(State value) { m_stateHasBeenSet = true; m_state = value; }
181 inline ScheduledActionResponse& WithState(State value) { SetState(value); return *this;}
183
185
186 inline const TargetAction& GetTargetAction() const { return m_targetAction; }
187 inline bool TargetActionHasBeenSet() const { return m_targetActionHasBeenSet; }
188 template<typename TargetActionT = TargetAction>
189 void SetTargetAction(TargetActionT&& value) { m_targetActionHasBeenSet = true; m_targetAction = std::forward<TargetActionT>(value); }
190 template<typename TargetActionT = TargetAction>
191 ScheduledActionResponse& WithTargetAction(TargetActionT&& value) { SetTargetAction(std::forward<TargetActionT>(value)); return *this;}
193 private:
194
195 Aws::Utils::DateTime m_endTime{};
196 bool m_endTimeHasBeenSet = false;
197
198 Aws::String m_namespaceName;
199 bool m_namespaceNameHasBeenSet = false;
200
201 Aws::Vector<Aws::Utils::DateTime> m_nextInvocations;
202 bool m_nextInvocationsHasBeenSet = false;
203
204 Aws::String m_roleArn;
205 bool m_roleArnHasBeenSet = false;
206
207 Schedule m_schedule;
208 bool m_scheduleHasBeenSet = false;
209
210 Aws::String m_scheduledActionDescription;
211 bool m_scheduledActionDescriptionHasBeenSet = false;
212
213 Aws::String m_scheduledActionName;
214 bool m_scheduledActionNameHasBeenSet = false;
215
216 Aws::String m_scheduledActionUuid;
217 bool m_scheduledActionUuidHasBeenSet = false;
218
219 Aws::Utils::DateTime m_startTime{};
220 bool m_startTimeHasBeenSet = false;
221
222 State m_state{State::NOT_SET};
223 bool m_stateHasBeenSet = false;
224
225 TargetAction m_targetAction;
226 bool m_targetActionHasBeenSet = false;
227 };
228
229} // namespace Model
230} // namespace RedshiftServerless
231} // 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