AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
GetScheduleResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/scheduler/Scheduler_EXPORTS.h>
10#include <aws/scheduler/model/ActionAfterCompletion.h>
11#include <aws/scheduler/model/FlexibleTimeWindow.h>
12#include <aws/scheduler/model/ScheduleState.h>
13#include <aws/scheduler/model/Target.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Scheduler {
27namespace Model {
29 public:
30 AWS_SCHEDULER_API GetScheduleResult() = default;
33
35
39 inline ActionAfterCompletion GetActionAfterCompletion() const { return m_actionAfterCompletion; }
41 m_actionAfterCompletionHasBeenSet = true;
42 m_actionAfterCompletion = value;
43 }
46 return *this;
47 }
49
51
54 inline const Aws::String& GetArn() const { return m_arn; }
55 template <typename ArnT = Aws::String>
56 void SetArn(ArnT&& value) {
57 m_arnHasBeenSet = true;
58 m_arn = std::forward<ArnT>(value);
59 }
60 template <typename ArnT = Aws::String>
61 GetScheduleResult& WithArn(ArnT&& value) {
62 SetArn(std::forward<ArnT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
72 template <typename CreationDateT = Aws::Utils::DateTime>
73 void SetCreationDate(CreationDateT&& value) {
74 m_creationDateHasBeenSet = true;
75 m_creationDate = std::forward<CreationDateT>(value);
76 }
77 template <typename CreationDateT = Aws::Utils::DateTime>
78 GetScheduleResult& WithCreationDate(CreationDateT&& value) {
79 SetCreationDate(std::forward<CreationDateT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetDescription() const { return m_description; }
89 template <typename DescriptionT = Aws::String>
90 void SetDescription(DescriptionT&& value) {
91 m_descriptionHasBeenSet = true;
92 m_description = std::forward<DescriptionT>(value);
93 }
94 template <typename DescriptionT = Aws::String>
95 GetScheduleResult& WithDescription(DescriptionT&& value) {
96 SetDescription(std::forward<DescriptionT>(value));
97 return *this;
98 }
100
102
108 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
109 template <typename EndDateT = Aws::Utils::DateTime>
110 void SetEndDate(EndDateT&& value) {
111 m_endDateHasBeenSet = true;
112 m_endDate = std::forward<EndDateT>(value);
113 }
114 template <typename EndDateT = Aws::Utils::DateTime>
115 GetScheduleResult& WithEndDate(EndDateT&& value) {
116 SetEndDate(std::forward<EndDateT>(value));
117 return *this;
118 }
120
122
126 inline const FlexibleTimeWindow& GetFlexibleTimeWindow() const { return m_flexibleTimeWindow; }
127 template <typename FlexibleTimeWindowT = FlexibleTimeWindow>
128 void SetFlexibleTimeWindow(FlexibleTimeWindowT&& value) {
129 m_flexibleTimeWindowHasBeenSet = true;
130 m_flexibleTimeWindow = std::forward<FlexibleTimeWindowT>(value);
131 }
132 template <typename FlexibleTimeWindowT = FlexibleTimeWindow>
133 GetScheduleResult& WithFlexibleTimeWindow(FlexibleTimeWindowT&& value) {
134 SetFlexibleTimeWindow(std::forward<FlexibleTimeWindowT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetGroupName() const { return m_groupName; }
144 template <typename GroupNameT = Aws::String>
145 void SetGroupName(GroupNameT&& value) {
146 m_groupNameHasBeenSet = true;
147 m_groupName = std::forward<GroupNameT>(value);
148 }
149 template <typename GroupNameT = Aws::String>
150 GetScheduleResult& WithGroupName(GroupNameT&& value) {
151 SetGroupName(std::forward<GroupNameT>(value));
152 return *this;
153 }
155
157
161 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
162 template <typename KmsKeyArnT = Aws::String>
163 void SetKmsKeyArn(KmsKeyArnT&& value) {
164 m_kmsKeyArnHasBeenSet = true;
165 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
166 }
167 template <typename KmsKeyArnT = Aws::String>
168 GetScheduleResult& WithKmsKeyArn(KmsKeyArnT&& value) {
169 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::Utils::DateTime& GetLastModificationDate() const { return m_lastModificationDate; }
179 template <typename LastModificationDateT = Aws::Utils::DateTime>
180 void SetLastModificationDate(LastModificationDateT&& value) {
181 m_lastModificationDateHasBeenSet = true;
182 m_lastModificationDate = std::forward<LastModificationDateT>(value);
183 }
184 template <typename LastModificationDateT = Aws::Utils::DateTime>
185 GetScheduleResult& WithLastModificationDate(LastModificationDateT&& value) {
186 SetLastModificationDate(std::forward<LastModificationDateT>(value));
187 return *this;
188 }
190
192
195 inline const Aws::String& GetName() const { return m_name; }
196 template <typename NameT = Aws::String>
197 void SetName(NameT&& value) {
198 m_nameHasBeenSet = true;
199 m_name = std::forward<NameT>(value);
200 }
201 template <typename NameT = Aws::String>
202 GetScheduleResult& WithName(NameT&& value) {
203 SetName(std::forward<NameT>(value));
204 return *this;
205 }
207
209
232 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
233 template <typename ScheduleExpressionT = Aws::String>
234 void SetScheduleExpression(ScheduleExpressionT&& value) {
235 m_scheduleExpressionHasBeenSet = true;
236 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
237 }
238 template <typename ScheduleExpressionT = Aws::String>
239 GetScheduleResult& WithScheduleExpression(ScheduleExpressionT&& value) {
240 SetScheduleExpression(std::forward<ScheduleExpressionT>(value));
241 return *this;
242 }
244
246
249 inline const Aws::String& GetScheduleExpressionTimezone() const { return m_scheduleExpressionTimezone; }
250 template <typename ScheduleExpressionTimezoneT = Aws::String>
251 void SetScheduleExpressionTimezone(ScheduleExpressionTimezoneT&& value) {
252 m_scheduleExpressionTimezoneHasBeenSet = true;
253 m_scheduleExpressionTimezone = std::forward<ScheduleExpressionTimezoneT>(value);
254 }
255 template <typename ScheduleExpressionTimezoneT = Aws::String>
256 GetScheduleResult& WithScheduleExpressionTimezone(ScheduleExpressionTimezoneT&& value) {
257 SetScheduleExpressionTimezone(std::forward<ScheduleExpressionTimezoneT>(value));
258 return *this;
259 }
261
263
269 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
270 template <typename StartDateT = Aws::Utils::DateTime>
271 void SetStartDate(StartDateT&& value) {
272 m_startDateHasBeenSet = true;
273 m_startDate = std::forward<StartDateT>(value);
274 }
275 template <typename StartDateT = Aws::Utils::DateTime>
276 GetScheduleResult& WithStartDate(StartDateT&& value) {
277 SetStartDate(std::forward<StartDateT>(value));
278 return *this;
279 }
281
283
286 inline ScheduleState GetState() const { return m_state; }
287 inline void SetState(ScheduleState value) {
288 m_stateHasBeenSet = true;
289 m_state = value;
290 }
292 SetState(value);
293 return *this;
294 }
296
298
301 inline const Target& GetTarget() const { return m_target; }
302 template <typename TargetT = Target>
303 void SetTarget(TargetT&& value) {
304 m_targetHasBeenSet = true;
305 m_target = std::forward<TargetT>(value);
306 }
307 template <typename TargetT = Target>
308 GetScheduleResult& WithTarget(TargetT&& value) {
309 SetTarget(std::forward<TargetT>(value));
310 return *this;
311 }
313
315
316 inline const Aws::String& GetRequestId() const { return m_requestId; }
317 template <typename RequestIdT = Aws::String>
318 void SetRequestId(RequestIdT&& value) {
319 m_requestIdHasBeenSet = true;
320 m_requestId = std::forward<RequestIdT>(value);
321 }
322 template <typename RequestIdT = Aws::String>
323 GetScheduleResult& WithRequestId(RequestIdT&& value) {
324 SetRequestId(std::forward<RequestIdT>(value));
325 return *this;
326 }
328 private:
330
331 Aws::String m_arn;
332
333 Aws::Utils::DateTime m_creationDate{};
334
335 Aws::String m_description;
336
337 Aws::Utils::DateTime m_endDate{};
338
339 FlexibleTimeWindow m_flexibleTimeWindow;
340
341 Aws::String m_groupName;
342
343 Aws::String m_kmsKeyArn;
344
345 Aws::Utils::DateTime m_lastModificationDate{};
346
347 Aws::String m_name;
348
349 Aws::String m_scheduleExpression;
350
351 Aws::String m_scheduleExpressionTimezone;
352
353 Aws::Utils::DateTime m_startDate{};
354
356
357 Target m_target;
358
359 Aws::String m_requestId;
360 bool m_actionAfterCompletionHasBeenSet = false;
361 bool m_arnHasBeenSet = false;
362 bool m_creationDateHasBeenSet = false;
363 bool m_descriptionHasBeenSet = false;
364 bool m_endDateHasBeenSet = false;
365 bool m_flexibleTimeWindowHasBeenSet = false;
366 bool m_groupNameHasBeenSet = false;
367 bool m_kmsKeyArnHasBeenSet = false;
368 bool m_lastModificationDateHasBeenSet = false;
369 bool m_nameHasBeenSet = false;
370 bool m_scheduleExpressionHasBeenSet = false;
371 bool m_scheduleExpressionTimezoneHasBeenSet = false;
372 bool m_startDateHasBeenSet = false;
373 bool m_stateHasBeenSet = false;
374 bool m_targetHasBeenSet = false;
375 bool m_requestIdHasBeenSet = false;
376};
377
378} // namespace Model
379} // namespace Scheduler
380} // namespace Aws
GetScheduleResult & WithState(ScheduleState value)
const Aws::Utils::DateTime & GetLastModificationDate() const
GetScheduleResult & WithGroupName(GroupNameT &&value)
const Aws::String & GetScheduleExpressionTimezone() const
ActionAfterCompletion GetActionAfterCompletion() const
AWS_SCHEDULER_API GetScheduleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetScheduleResult & WithLastModificationDate(LastModificationDateT &&value)
void SetLastModificationDate(LastModificationDateT &&value)
GetScheduleResult & WithTarget(TargetT &&value)
GetScheduleResult & WithCreationDate(CreationDateT &&value)
GetScheduleResult & WithStartDate(StartDateT &&value)
GetScheduleResult & WithActionAfterCompletion(ActionAfterCompletion value)
void SetCreationDate(CreationDateT &&value)
void SetActionAfterCompletion(ActionAfterCompletion value)
void SetFlexibleTimeWindow(FlexibleTimeWindowT &&value)
const Aws::String & GetScheduleExpression() const
const Aws::Utils::DateTime & GetCreationDate() const
void SetScheduleExpression(ScheduleExpressionT &&value)
AWS_SCHEDULER_API GetScheduleResult()=default
GetScheduleResult & WithArn(ArnT &&value)
const Aws::String & GetDescription() const
AWS_SCHEDULER_API GetScheduleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetScheduleResult & WithName(NameT &&value)
GetScheduleResult & WithFlexibleTimeWindow(FlexibleTimeWindowT &&value)
const Aws::Utils::DateTime & GetEndDate() const
void SetScheduleExpressionTimezone(ScheduleExpressionTimezoneT &&value)
GetScheduleResult & WithRequestId(RequestIdT &&value)
GetScheduleResult & WithScheduleExpressionTimezone(ScheduleExpressionTimezoneT &&value)
const FlexibleTimeWindow & GetFlexibleTimeWindow() const
void SetDescription(DescriptionT &&value)
GetScheduleResult & WithScheduleExpression(ScheduleExpressionT &&value)
const Aws::Utils::DateTime & GetStartDate() const
GetScheduleResult & WithKmsKeyArn(KmsKeyArnT &&value)
GetScheduleResult & WithEndDate(EndDateT &&value)
GetScheduleResult & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue