AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ScheduledAction.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/redshift/model/ScheduledActionType.h>
11#include <aws/redshift/model/ScheduledActionState.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/redshift/model/ResponseMetadata.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace Redshift
27{
28namespace Model
29{
30
40 {
41 public:
42 AWS_REDSHIFT_API ScheduledAction() = default;
43 AWS_REDSHIFT_API ScheduledAction(const Aws::Utils::Xml::XmlNode& xmlNode);
44 AWS_REDSHIFT_API ScheduledAction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45
46 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
48
49
51
54 inline const Aws::String& GetScheduledActionName() const { return m_scheduledActionName; }
55 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
56 template<typename ScheduledActionNameT = Aws::String>
57 void SetScheduledActionName(ScheduledActionNameT&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::forward<ScheduledActionNameT>(value); }
58 template<typename ScheduledActionNameT = Aws::String>
59 ScheduledAction& WithScheduledActionName(ScheduledActionNameT&& value) { SetScheduledActionName(std::forward<ScheduledActionNameT>(value)); return *this;}
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) { m_targetActionHasBeenSet = true; m_targetAction = std::forward<TargetActionT>(value); }
73 template<typename TargetActionT = ScheduledActionType>
74 ScheduledAction& WithTargetAction(TargetActionT&& value) { SetTargetAction(std::forward<TargetActionT>(value)); return *this;}
76
78
89 inline const Aws::String& GetSchedule() const { return m_schedule; }
90 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
91 template<typename ScheduleT = Aws::String>
92 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
93 template<typename ScheduleT = Aws::String>
94 ScheduledAction& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
96
98
108 inline const Aws::String& GetIamRole() const { return m_iamRole; }
109 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
110 template<typename IamRoleT = Aws::String>
111 void SetIamRole(IamRoleT&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::forward<IamRoleT>(value); }
112 template<typename IamRoleT = Aws::String>
113 ScheduledAction& WithIamRole(IamRoleT&& value) { SetIamRole(std::forward<IamRoleT>(value)); return *this;}
115
117
120 inline const Aws::String& GetScheduledActionDescription() const { return m_scheduledActionDescription; }
121 inline bool ScheduledActionDescriptionHasBeenSet() const { return m_scheduledActionDescriptionHasBeenSet; }
122 template<typename ScheduledActionDescriptionT = Aws::String>
123 void SetScheduledActionDescription(ScheduledActionDescriptionT&& value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription = std::forward<ScheduledActionDescriptionT>(value); }
124 template<typename ScheduledActionDescriptionT = Aws::String>
125 ScheduledAction& WithScheduledActionDescription(ScheduledActionDescriptionT&& value) { SetScheduledActionDescription(std::forward<ScheduledActionDescriptionT>(value)); return *this;}
127
129
132 inline ScheduledActionState GetState() const { return m_state; }
133 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
134 inline void SetState(ScheduledActionState value) { m_stateHasBeenSet = true; m_state = value; }
135 inline ScheduledAction& WithState(ScheduledActionState value) { SetState(value); return *this;}
137
139
142 inline const Aws::Vector<Aws::Utils::DateTime>& GetNextInvocations() const { return m_nextInvocations; }
143 inline bool NextInvocationsHasBeenSet() const { return m_nextInvocationsHasBeenSet; }
144 template<typename NextInvocationsT = Aws::Vector<Aws::Utils::DateTime>>
145 void SetNextInvocations(NextInvocationsT&& value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations = std::forward<NextInvocationsT>(value); }
146 template<typename NextInvocationsT = Aws::Vector<Aws::Utils::DateTime>>
147 ScheduledAction& WithNextInvocations(NextInvocationsT&& value) { SetNextInvocations(std::forward<NextInvocationsT>(value)); return *this;}
148 template<typename NextInvocationsT = Aws::Utils::DateTime>
149 ScheduledAction& AddNextInvocations(NextInvocationsT&& value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations.emplace_back(std::forward<NextInvocationsT>(value)); return *this; }
151
153
157 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
158 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
159 template<typename StartTimeT = Aws::Utils::DateTime>
160 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
161 template<typename StartTimeT = Aws::Utils::DateTime>
162 ScheduledAction& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
164
166
170 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
171 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
172 template<typename EndTimeT = Aws::Utils::DateTime>
173 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
174 template<typename EndTimeT = Aws::Utils::DateTime>
175 ScheduledAction& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
177
179
180 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
181 template<typename ResponseMetadataT = ResponseMetadata>
182 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
183 template<typename ResponseMetadataT = ResponseMetadata>
184 ScheduledAction& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
186 private:
187
188 Aws::String m_scheduledActionName;
189 bool m_scheduledActionNameHasBeenSet = false;
190
191 ScheduledActionType m_targetAction;
192 bool m_targetActionHasBeenSet = false;
193
194 Aws::String m_schedule;
195 bool m_scheduleHasBeenSet = false;
196
197 Aws::String m_iamRole;
198 bool m_iamRoleHasBeenSet = false;
199
200 Aws::String m_scheduledActionDescription;
201 bool m_scheduledActionDescriptionHasBeenSet = false;
202
204 bool m_stateHasBeenSet = false;
205
206 Aws::Vector<Aws::Utils::DateTime> m_nextInvocations;
207 bool m_nextInvocationsHasBeenSet = false;
208
209 Aws::Utils::DateTime m_startTime{};
210 bool m_startTimeHasBeenSet = false;
211
212 Aws::Utils::DateTime m_endTime{};
213 bool m_endTimeHasBeenSet = false;
214
215 ResponseMetadata m_responseMetadata;
216 bool m_responseMetadataHasBeenSet = true;
217 };
218
219} // namespace Model
220} // namespace Redshift
221} // 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