AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetScheduledActionName(const Aws::String& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = value; }
57 inline void SetScheduledActionName(Aws::String&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::move(value); }
58 inline void SetScheduledActionName(const char* value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName.assign(value); }
59 inline ScheduledAction& WithScheduledActionName(const Aws::String& value) { SetScheduledActionName(value); return *this;}
60 inline ScheduledAction& WithScheduledActionName(Aws::String&& value) { SetScheduledActionName(std::move(value)); return *this;}
61 inline ScheduledAction& WithScheduledActionName(const char* value) { SetScheduledActionName(value); return *this;}
63
65
71 inline const ScheduledActionType& GetTargetAction() const{ return m_targetAction; }
72 inline bool TargetActionHasBeenSet() const { return m_targetActionHasBeenSet; }
73 inline void SetTargetAction(const ScheduledActionType& value) { m_targetActionHasBeenSet = true; m_targetAction = value; }
74 inline void SetTargetAction(ScheduledActionType&& value) { m_targetActionHasBeenSet = true; m_targetAction = std::move(value); }
75 inline ScheduledAction& WithTargetAction(const ScheduledActionType& value) { SetTargetAction(value); return *this;}
76 inline ScheduledAction& WithTargetAction(ScheduledActionType&& value) { SetTargetAction(std::move(value)); return *this;}
78
80
91 inline const Aws::String& GetSchedule() const{ return m_schedule; }
92 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
93 inline void SetSchedule(const Aws::String& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
94 inline void SetSchedule(Aws::String&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
95 inline void SetSchedule(const char* value) { m_scheduleHasBeenSet = true; m_schedule.assign(value); }
96 inline ScheduledAction& WithSchedule(const Aws::String& value) { SetSchedule(value); return *this;}
97 inline ScheduledAction& WithSchedule(Aws::String&& value) { SetSchedule(std::move(value)); return *this;}
98 inline ScheduledAction& WithSchedule(const char* value) { SetSchedule(value); return *this;}
100
102
112 inline const Aws::String& GetIamRole() const{ return m_iamRole; }
113 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
114 inline void SetIamRole(const Aws::String& value) { m_iamRoleHasBeenSet = true; m_iamRole = value; }
115 inline void SetIamRole(Aws::String&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::move(value); }
116 inline void SetIamRole(const char* value) { m_iamRoleHasBeenSet = true; m_iamRole.assign(value); }
117 inline ScheduledAction& WithIamRole(const Aws::String& value) { SetIamRole(value); return *this;}
118 inline ScheduledAction& WithIamRole(Aws::String&& value) { SetIamRole(std::move(value)); return *this;}
119 inline ScheduledAction& WithIamRole(const char* value) { SetIamRole(value); return *this;}
121
123
126 inline const Aws::String& GetScheduledActionDescription() const{ return m_scheduledActionDescription; }
127 inline bool ScheduledActionDescriptionHasBeenSet() const { return m_scheduledActionDescriptionHasBeenSet; }
128 inline void SetScheduledActionDescription(const Aws::String& value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription = value; }
129 inline void SetScheduledActionDescription(Aws::String&& value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription = std::move(value); }
130 inline void SetScheduledActionDescription(const char* value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription.assign(value); }
133 inline ScheduledAction& WithScheduledActionDescription(const char* value) { SetScheduledActionDescription(value); return *this;}
135
137
140 inline const ScheduledActionState& GetState() const{ return m_state; }
141 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
142 inline void SetState(const ScheduledActionState& value) { m_stateHasBeenSet = true; m_state = value; }
143 inline void SetState(ScheduledActionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
144 inline ScheduledAction& WithState(const ScheduledActionState& value) { SetState(value); return *this;}
145 inline ScheduledAction& WithState(ScheduledActionState&& value) { SetState(std::move(value)); return *this;}
147
149
152 inline const Aws::Vector<Aws::Utils::DateTime>& GetNextInvocations() const{ return m_nextInvocations; }
153 inline bool NextInvocationsHasBeenSet() const { return m_nextInvocationsHasBeenSet; }
154 inline void SetNextInvocations(const Aws::Vector<Aws::Utils::DateTime>& value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations = value; }
155 inline void SetNextInvocations(Aws::Vector<Aws::Utils::DateTime>&& value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations = std::move(value); }
158 inline ScheduledAction& AddNextInvocations(const Aws::Utils::DateTime& value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations.push_back(value); return *this; }
159 inline ScheduledAction& AddNextInvocations(Aws::Utils::DateTime&& value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations.push_back(std::move(value)); return *this; }
161
163
167 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
168 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
169 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
170 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
171 inline ScheduledAction& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
172 inline ScheduledAction& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
174
176
180 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
181 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
182 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
183 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
184 inline ScheduledAction& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
185 inline ScheduledAction& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
187
189
190 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
191 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
192 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
193 inline ScheduledAction& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
194 inline ScheduledAction& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
196 private:
197
198 Aws::String m_scheduledActionName;
199 bool m_scheduledActionNameHasBeenSet = false;
200
201 ScheduledActionType m_targetAction;
202 bool m_targetActionHasBeenSet = false;
203
204 Aws::String m_schedule;
205 bool m_scheduleHasBeenSet = false;
206
207 Aws::String m_iamRole;
208 bool m_iamRoleHasBeenSet = false;
209
210 Aws::String m_scheduledActionDescription;
211 bool m_scheduledActionDescriptionHasBeenSet = false;
212
213 ScheduledActionState m_state;
214 bool m_stateHasBeenSet = false;
215
216 Aws::Vector<Aws::Utils::DateTime> m_nextInvocations;
217 bool m_nextInvocationsHasBeenSet = false;
218
219 Aws::Utils::DateTime m_startTime;
220 bool m_startTimeHasBeenSet = false;
221
222 Aws::Utils::DateTime m_endTime;
223 bool m_endTimeHasBeenSet = false;
224
225 ResponseMetadata m_responseMetadata;
226 };
227
228} // namespace Model
229} // namespace Redshift
230} // namespace Aws
void SetIamRole(const Aws::String &value)
void SetSchedule(Aws::String &&value)
ScheduledAction & WithIamRole(const char *value)
void SetStartTime(Aws::Utils::DateTime &&value)
ScheduledAction & WithEndTime(const Aws::Utils::DateTime &value)
void SetTargetAction(const ScheduledActionType &value)
void SetResponseMetadata(ResponseMetadata &&value)
ScheduledAction & WithSchedule(Aws::String &&value)
const ScheduledActionState & GetState() const
ScheduledAction & WithIamRole(const Aws::String &value)
ScheduledAction & WithResponseMetadata(ResponseMetadata &&value)
ScheduledAction & WithResponseMetadata(const ResponseMetadata &value)
void SetNextInvocations(Aws::Vector< Aws::Utils::DateTime > &&value)
void SetScheduledActionName(const char *value)
ScheduledAction & WithNextInvocations(Aws::Vector< Aws::Utils::DateTime > &&value)
ScheduledAction & WithIamRole(Aws::String &&value)
ScheduledAction & WithScheduledActionName(const char *value)
const Aws::Utils::DateTime & GetStartTime() const
void SetIamRole(Aws::String &&value)
void SetEndTime(const Aws::Utils::DateTime &value)
ScheduledAction & AddNextInvocations(Aws::Utils::DateTime &&value)
ScheduledAction & WithScheduledActionName(const Aws::String &value)
void SetStartTime(const Aws::Utils::DateTime &value)
void SetScheduledActionDescription(const Aws::String &value)
void SetScheduledActionName(Aws::String &&value)
void SetSchedule(const Aws::String &value)
const Aws::String & GetSchedule() const
void SetTargetAction(ScheduledActionType &&value)
void SetState(const ScheduledActionState &value)
ScheduledAction & WithTargetAction(ScheduledActionType &&value)
void SetScheduledActionName(const Aws::String &value)
ScheduledAction & WithState(ScheduledActionState &&value)
ScheduledAction & AddNextInvocations(const Aws::Utils::DateTime &value)
void SetState(ScheduledActionState &&value)
ScheduledAction & WithScheduledActionDescription(const Aws::String &value)
ScheduledAction & WithTargetAction(const ScheduledActionType &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
void SetEndTime(Aws::Utils::DateTime &&value)
ScheduledAction & WithStartTime(const Aws::Utils::DateTime &value)
ScheduledAction & WithSchedule(const Aws::String &value)
void SetScheduledActionDescription(const char *value)
ScheduledAction & WithStartTime(Aws::Utils::DateTime &&value)
const Aws::String & GetIamRole() const
void SetScheduledActionDescription(Aws::String &&value)
ScheduledAction & WithScheduledActionDescription(Aws::String &&value)
ScheduledAction & WithState(const ScheduledActionState &value)
void SetResponseMetadata(const ResponseMetadata &value)
AWS_REDSHIFT_API ScheduledAction(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetScheduledActionDescription() const
const Aws::String & GetScheduledActionName() const
ScheduledAction & WithNextInvocations(const Aws::Vector< Aws::Utils::DateTime > &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const ResponseMetadata & GetResponseMetadata() const
const Aws::Utils::DateTime & GetEndTime() const
void SetNextInvocations(const Aws::Vector< Aws::Utils::DateTime > &value)
ScheduledAction & WithEndTime(Aws::Utils::DateTime &&value)
ScheduledAction & WithScheduledActionDescription(const char *value)
const Aws::Vector< Aws::Utils::DateTime > & GetNextInvocations() const
ScheduledAction & WithSchedule(const char *value)
ScheduledAction & WithScheduledActionName(Aws::String &&value)
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