AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
ModifyScheduledActionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.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/Redshift_EXPORTS.h>
12#include <aws/redshift/model/ResponseMetadata.h>
13#include <aws/redshift/model/ScheduledActionState.h>
14#include <aws/redshift/model/ScheduledActionType.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Xml {
24class XmlDocument;
25} // namespace Xml
26} // namespace Utils
27namespace Redshift {
28namespace Model {
38 public:
39 AWS_REDSHIFT_API ModifyScheduledActionResult() = default;
42
44
47 inline const Aws::String& GetScheduledActionName() const { return m_scheduledActionName; }
48 template <typename ScheduledActionNameT = Aws::String>
49 void SetScheduledActionName(ScheduledActionNameT&& value) {
50 m_scheduledActionNameHasBeenSet = true;
51 m_scheduledActionName = std::forward<ScheduledActionNameT>(value);
52 }
53 template <typename ScheduledActionNameT = Aws::String>
55 SetScheduledActionName(std::forward<ScheduledActionNameT>(value));
56 return *this;
57 }
59
61
67 inline const ScheduledActionType& GetTargetAction() const { return m_targetAction; }
68 template <typename TargetActionT = ScheduledActionType>
69 void SetTargetAction(TargetActionT&& value) {
70 m_targetActionHasBeenSet = true;
71 m_targetAction = std::forward<TargetActionT>(value);
72 }
73 template <typename TargetActionT = ScheduledActionType>
75 SetTargetAction(std::forward<TargetActionT>(value));
76 return *this;
77 }
79
81
92 inline const Aws::String& GetSchedule() const { return m_schedule; }
93 template <typename ScheduleT = Aws::String>
94 void SetSchedule(ScheduleT&& value) {
95 m_scheduleHasBeenSet = true;
96 m_schedule = std::forward<ScheduleT>(value);
97 }
98 template <typename ScheduleT = Aws::String>
100 SetSchedule(std::forward<ScheduleT>(value));
101 return *this;
102 }
104
106
116 inline const Aws::String& GetIamRole() const { return m_iamRole; }
117 template <typename IamRoleT = Aws::String>
118 void SetIamRole(IamRoleT&& value) {
119 m_iamRoleHasBeenSet = true;
120 m_iamRole = std::forward<IamRoleT>(value);
121 }
122 template <typename IamRoleT = Aws::String>
124 SetIamRole(std::forward<IamRoleT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetScheduledActionDescription() const { return m_scheduledActionDescription; }
134 template <typename ScheduledActionDescriptionT = Aws::String>
135 void SetScheduledActionDescription(ScheduledActionDescriptionT&& value) {
136 m_scheduledActionDescriptionHasBeenSet = true;
137 m_scheduledActionDescription = std::forward<ScheduledActionDescriptionT>(value);
138 }
139 template <typename ScheduledActionDescriptionT = Aws::String>
140 ModifyScheduledActionResult& WithScheduledActionDescription(ScheduledActionDescriptionT&& value) {
141 SetScheduledActionDescription(std::forward<ScheduledActionDescriptionT>(value));
142 return *this;
143 }
145
147
150 inline ScheduledActionState GetState() const { return m_state; }
151 inline void SetState(ScheduledActionState value) {
152 m_stateHasBeenSet = true;
153 m_state = value;
154 }
156 SetState(value);
157 return *this;
158 }
160
162
165 inline const Aws::Vector<Aws::Utils::DateTime>& GetNextInvocations() const { return m_nextInvocations; }
166 template <typename NextInvocationsT = Aws::Vector<Aws::Utils::DateTime>>
167 void SetNextInvocations(NextInvocationsT&& value) {
168 m_nextInvocationsHasBeenSet = true;
169 m_nextInvocations = std::forward<NextInvocationsT>(value);
170 }
171 template <typename NextInvocationsT = Aws::Vector<Aws::Utils::DateTime>>
173 SetNextInvocations(std::forward<NextInvocationsT>(value));
174 return *this;
175 }
176 template <typename NextInvocationsT = Aws::Utils::DateTime>
178 m_nextInvocationsHasBeenSet = true;
179 m_nextInvocations.emplace_back(std::forward<NextInvocationsT>(value));
180 return *this;
181 }
183
185
189 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
190 template <typename StartTimeT = Aws::Utils::DateTime>
191 void SetStartTime(StartTimeT&& value) {
192 m_startTimeHasBeenSet = true;
193 m_startTime = std::forward<StartTimeT>(value);
194 }
195 template <typename StartTimeT = Aws::Utils::DateTime>
197 SetStartTime(std::forward<StartTimeT>(value));
198 return *this;
199 }
201
203
207 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
208 template <typename EndTimeT = Aws::Utils::DateTime>
209 void SetEndTime(EndTimeT&& value) {
210 m_endTimeHasBeenSet = true;
211 m_endTime = std::forward<EndTimeT>(value);
212 }
213 template <typename EndTimeT = Aws::Utils::DateTime>
215 SetEndTime(std::forward<EndTimeT>(value));
216 return *this;
217 }
219
221
222 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
223 template <typename ResponseMetadataT = ResponseMetadata>
224 void SetResponseMetadata(ResponseMetadataT&& value) {
225 m_responseMetadataHasBeenSet = true;
226 m_responseMetadata = std::forward<ResponseMetadataT>(value);
227 }
228 template <typename ResponseMetadataT = ResponseMetadata>
230 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
231 return *this;
232 }
234 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
235
236 private:
237 Aws::String m_scheduledActionName;
238
239 ScheduledActionType m_targetAction;
240
241 Aws::String m_schedule;
242
243 Aws::String m_iamRole;
244
245 Aws::String m_scheduledActionDescription;
246
248
249 Aws::Vector<Aws::Utils::DateTime> m_nextInvocations;
250
251 Aws::Utils::DateTime m_startTime{};
252
253 Aws::Utils::DateTime m_endTime{};
254
255 ResponseMetadata m_responseMetadata;
256 Aws::Http::HttpResponseCode m_HttpResponseCode;
257 bool m_scheduledActionNameHasBeenSet = false;
258 bool m_targetActionHasBeenSet = false;
259 bool m_scheduleHasBeenSet = false;
260 bool m_iamRoleHasBeenSet = false;
261 bool m_scheduledActionDescriptionHasBeenSet = false;
262 bool m_stateHasBeenSet = false;
263 bool m_nextInvocationsHasBeenSet = false;
264 bool m_startTimeHasBeenSet = false;
265 bool m_endTimeHasBeenSet = false;
266 bool m_responseMetadataHasBeenSet = false;
267};
268
269} // namespace Model
270} // namespace Redshift
271} // 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