AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ModifyScheduledActionResult.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/Redshift_EXPORTS.h>
11#include <aws/redshift/model/ResponseMetadata.h>
12#include <aws/redshift/model/ScheduledActionState.h>
13#include <aws/redshift/model/ScheduledActionType.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Xml {
23class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace Redshift {
27namespace Model {
37 public:
38 AWS_REDSHIFT_API ModifyScheduledActionResult() = default;
41
43
46 inline const Aws::String& GetScheduledActionName() const { return m_scheduledActionName; }
47 template <typename ScheduledActionNameT = Aws::String>
48 void SetScheduledActionName(ScheduledActionNameT&& value) {
49 m_scheduledActionNameHasBeenSet = true;
50 m_scheduledActionName = std::forward<ScheduledActionNameT>(value);
51 }
52 template <typename ScheduledActionNameT = Aws::String>
54 SetScheduledActionName(std::forward<ScheduledActionNameT>(value));
55 return *this;
56 }
58
60
66 inline const ScheduledActionType& GetTargetAction() const { return m_targetAction; }
67 template <typename TargetActionT = ScheduledActionType>
68 void SetTargetAction(TargetActionT&& value) {
69 m_targetActionHasBeenSet = true;
70 m_targetAction = std::forward<TargetActionT>(value);
71 }
72 template <typename TargetActionT = ScheduledActionType>
74 SetTargetAction(std::forward<TargetActionT>(value));
75 return *this;
76 }
78
80
91 inline const Aws::String& GetSchedule() const { return m_schedule; }
92 template <typename ScheduleT = Aws::String>
93 void SetSchedule(ScheduleT&& value) {
94 m_scheduleHasBeenSet = true;
95 m_schedule = std::forward<ScheduleT>(value);
96 }
97 template <typename ScheduleT = Aws::String>
99 SetSchedule(std::forward<ScheduleT>(value));
100 return *this;
101 }
103
105
115 inline const Aws::String& GetIamRole() const { return m_iamRole; }
116 template <typename IamRoleT = Aws::String>
117 void SetIamRole(IamRoleT&& value) {
118 m_iamRoleHasBeenSet = true;
119 m_iamRole = std::forward<IamRoleT>(value);
120 }
121 template <typename IamRoleT = Aws::String>
123 SetIamRole(std::forward<IamRoleT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetScheduledActionDescription() const { return m_scheduledActionDescription; }
133 template <typename ScheduledActionDescriptionT = Aws::String>
134 void SetScheduledActionDescription(ScheduledActionDescriptionT&& value) {
135 m_scheduledActionDescriptionHasBeenSet = true;
136 m_scheduledActionDescription = std::forward<ScheduledActionDescriptionT>(value);
137 }
138 template <typename ScheduledActionDescriptionT = Aws::String>
139 ModifyScheduledActionResult& WithScheduledActionDescription(ScheduledActionDescriptionT&& value) {
140 SetScheduledActionDescription(std::forward<ScheduledActionDescriptionT>(value));
141 return *this;
142 }
144
146
149 inline ScheduledActionState GetState() const { return m_state; }
150 inline void SetState(ScheduledActionState value) {
151 m_stateHasBeenSet = true;
152 m_state = value;
153 }
155 SetState(value);
156 return *this;
157 }
159
161
164 inline const Aws::Vector<Aws::Utils::DateTime>& GetNextInvocations() const { return m_nextInvocations; }
165 template <typename NextInvocationsT = Aws::Vector<Aws::Utils::DateTime>>
166 void SetNextInvocations(NextInvocationsT&& value) {
167 m_nextInvocationsHasBeenSet = true;
168 m_nextInvocations = std::forward<NextInvocationsT>(value);
169 }
170 template <typename NextInvocationsT = Aws::Vector<Aws::Utils::DateTime>>
172 SetNextInvocations(std::forward<NextInvocationsT>(value));
173 return *this;
174 }
175 template <typename NextInvocationsT = Aws::Utils::DateTime>
177 m_nextInvocationsHasBeenSet = true;
178 m_nextInvocations.emplace_back(std::forward<NextInvocationsT>(value));
179 return *this;
180 }
182
184
188 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
189 template <typename StartTimeT = Aws::Utils::DateTime>
190 void SetStartTime(StartTimeT&& value) {
191 m_startTimeHasBeenSet = true;
192 m_startTime = std::forward<StartTimeT>(value);
193 }
194 template <typename StartTimeT = Aws::Utils::DateTime>
196 SetStartTime(std::forward<StartTimeT>(value));
197 return *this;
198 }
200
202
206 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
207 template <typename EndTimeT = Aws::Utils::DateTime>
208 void SetEndTime(EndTimeT&& value) {
209 m_endTimeHasBeenSet = true;
210 m_endTime = std::forward<EndTimeT>(value);
211 }
212 template <typename EndTimeT = Aws::Utils::DateTime>
214 SetEndTime(std::forward<EndTimeT>(value));
215 return *this;
216 }
218
220
221 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
222 template <typename ResponseMetadataT = ResponseMetadata>
223 void SetResponseMetadata(ResponseMetadataT&& value) {
224 m_responseMetadataHasBeenSet = true;
225 m_responseMetadata = std::forward<ResponseMetadataT>(value);
226 }
227 template <typename ResponseMetadataT = ResponseMetadata>
229 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
230 return *this;
231 }
233 private:
234 Aws::String m_scheduledActionName;
235
236 ScheduledActionType m_targetAction;
237
238 Aws::String m_schedule;
239
240 Aws::String m_iamRole;
241
242 Aws::String m_scheduledActionDescription;
243
245
246 Aws::Vector<Aws::Utils::DateTime> m_nextInvocations;
247
248 Aws::Utils::DateTime m_startTime{};
249
250 Aws::Utils::DateTime m_endTime{};
251
252 ResponseMetadata m_responseMetadata;
253 bool m_scheduledActionNameHasBeenSet = false;
254 bool m_targetActionHasBeenSet = false;
255 bool m_scheduleHasBeenSet = false;
256 bool m_iamRoleHasBeenSet = false;
257 bool m_scheduledActionDescriptionHasBeenSet = false;
258 bool m_stateHasBeenSet = false;
259 bool m_nextInvocationsHasBeenSet = false;
260 bool m_startTimeHasBeenSet = false;
261 bool m_endTimeHasBeenSet = false;
262 bool m_responseMetadataHasBeenSet = false;
263};
264
265} // namespace Model
266} // namespace Redshift
267} // namespace Aws
ModifyScheduledActionResult & WithStartTime(StartTimeT &&value)
ModifyScheduledActionResult & AddNextInvocations(NextInvocationsT &&value)
void SetScheduledActionDescription(ScheduledActionDescriptionT &&value)
AWS_REDSHIFT_API ModifyScheduledActionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::Vector< Aws::Utils::DateTime > & GetNextInvocations() const
ModifyScheduledActionResult & WithEndTime(EndTimeT &&value)
ModifyScheduledActionResult & WithState(ScheduledActionState value)
ModifyScheduledActionResult & WithScheduledActionName(ScheduledActionNameT &&value)
ModifyScheduledActionResult & WithScheduledActionDescription(ScheduledActionDescriptionT &&value)
ModifyScheduledActionResult & WithTargetAction(TargetActionT &&value)
ModifyScheduledActionResult & WithResponseMetadata(ResponseMetadataT &&value)
AWS_REDSHIFT_API ModifyScheduledActionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ModifyScheduledActionResult & WithNextInvocations(NextInvocationsT &&value)
ModifyScheduledActionResult & WithIamRole(IamRoleT &&value)
ModifyScheduledActionResult & WithSchedule(ScheduleT &&value)
AWS_REDSHIFT_API ModifyScheduledActionResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument