AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetScheduleResult.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/scheduler/Scheduler_EXPORTS.h>
11#include <aws/scheduler/model/ActionAfterCompletion.h>
12#include <aws/scheduler/model/FlexibleTimeWindow.h>
13#include <aws/scheduler/model/ScheduleState.h>
14#include <aws/scheduler/model/Target.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace Scheduler {
28namespace Model {
30 public:
31 AWS_SCHEDULER_API GetScheduleResult() = default;
34
36
40 inline ActionAfterCompletion GetActionAfterCompletion() const { return m_actionAfterCompletion; }
42 m_actionAfterCompletionHasBeenSet = true;
43 m_actionAfterCompletion = value;
44 }
47 return *this;
48 }
50
52
55 inline const Aws::String& GetArn() const { return m_arn; }
56 template <typename ArnT = Aws::String>
57 void SetArn(ArnT&& value) {
58 m_arnHasBeenSet = true;
59 m_arn = std::forward<ArnT>(value);
60 }
61 template <typename ArnT = Aws::String>
62 GetScheduleResult& WithArn(ArnT&& value) {
63 SetArn(std::forward<ArnT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
73 template <typename CreationDateT = Aws::Utils::DateTime>
74 void SetCreationDate(CreationDateT&& value) {
75 m_creationDateHasBeenSet = true;
76 m_creationDate = std::forward<CreationDateT>(value);
77 }
78 template <typename CreationDateT = Aws::Utils::DateTime>
79 GetScheduleResult& WithCreationDate(CreationDateT&& value) {
80 SetCreationDate(std::forward<CreationDateT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetDescription() const { return m_description; }
90 template <typename DescriptionT = Aws::String>
91 void SetDescription(DescriptionT&& value) {
92 m_descriptionHasBeenSet = true;
93 m_description = std::forward<DescriptionT>(value);
94 }
95 template <typename DescriptionT = Aws::String>
96 GetScheduleResult& WithDescription(DescriptionT&& value) {
97 SetDescription(std::forward<DescriptionT>(value));
98 return *this;
99 }
101
103
109 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
110 template <typename EndDateT = Aws::Utils::DateTime>
111 void SetEndDate(EndDateT&& value) {
112 m_endDateHasBeenSet = true;
113 m_endDate = std::forward<EndDateT>(value);
114 }
115 template <typename EndDateT = Aws::Utils::DateTime>
116 GetScheduleResult& WithEndDate(EndDateT&& value) {
117 SetEndDate(std::forward<EndDateT>(value));
118 return *this;
119 }
121
123
127 inline const FlexibleTimeWindow& GetFlexibleTimeWindow() const { return m_flexibleTimeWindow; }
128 template <typename FlexibleTimeWindowT = FlexibleTimeWindow>
129 void SetFlexibleTimeWindow(FlexibleTimeWindowT&& value) {
130 m_flexibleTimeWindowHasBeenSet = true;
131 m_flexibleTimeWindow = std::forward<FlexibleTimeWindowT>(value);
132 }
133 template <typename FlexibleTimeWindowT = FlexibleTimeWindow>
134 GetScheduleResult& WithFlexibleTimeWindow(FlexibleTimeWindowT&& value) {
135 SetFlexibleTimeWindow(std::forward<FlexibleTimeWindowT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::String& GetGroupName() const { return m_groupName; }
145 template <typename GroupNameT = Aws::String>
146 void SetGroupName(GroupNameT&& value) {
147 m_groupNameHasBeenSet = true;
148 m_groupName = std::forward<GroupNameT>(value);
149 }
150 template <typename GroupNameT = Aws::String>
151 GetScheduleResult& WithGroupName(GroupNameT&& value) {
152 SetGroupName(std::forward<GroupNameT>(value));
153 return *this;
154 }
156
158
162 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
163 template <typename KmsKeyArnT = Aws::String>
164 void SetKmsKeyArn(KmsKeyArnT&& value) {
165 m_kmsKeyArnHasBeenSet = true;
166 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
167 }
168 template <typename KmsKeyArnT = Aws::String>
169 GetScheduleResult& WithKmsKeyArn(KmsKeyArnT&& value) {
170 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
171 return *this;
172 }
174
176
179 inline const Aws::Utils::DateTime& GetLastModificationDate() const { return m_lastModificationDate; }
180 template <typename LastModificationDateT = Aws::Utils::DateTime>
181 void SetLastModificationDate(LastModificationDateT&& value) {
182 m_lastModificationDateHasBeenSet = true;
183 m_lastModificationDate = std::forward<LastModificationDateT>(value);
184 }
185 template <typename LastModificationDateT = Aws::Utils::DateTime>
186 GetScheduleResult& WithLastModificationDate(LastModificationDateT&& value) {
187 SetLastModificationDate(std::forward<LastModificationDateT>(value));
188 return *this;
189 }
191
193
196 inline const Aws::String& GetName() const { return m_name; }
197 template <typename NameT = Aws::String>
198 void SetName(NameT&& value) {
199 m_nameHasBeenSet = true;
200 m_name = std::forward<NameT>(value);
201 }
202 template <typename NameT = Aws::String>
203 GetScheduleResult& WithName(NameT&& value) {
204 SetName(std::forward<NameT>(value));
205 return *this;
206 }
208
210
233 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
234 template <typename ScheduleExpressionT = Aws::String>
235 void SetScheduleExpression(ScheduleExpressionT&& value) {
236 m_scheduleExpressionHasBeenSet = true;
237 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
238 }
239 template <typename ScheduleExpressionT = Aws::String>
240 GetScheduleResult& WithScheduleExpression(ScheduleExpressionT&& value) {
241 SetScheduleExpression(std::forward<ScheduleExpressionT>(value));
242 return *this;
243 }
245
247
250 inline const Aws::String& GetScheduleExpressionTimezone() const { return m_scheduleExpressionTimezone; }
251 template <typename ScheduleExpressionTimezoneT = Aws::String>
252 void SetScheduleExpressionTimezone(ScheduleExpressionTimezoneT&& value) {
253 m_scheduleExpressionTimezoneHasBeenSet = true;
254 m_scheduleExpressionTimezone = std::forward<ScheduleExpressionTimezoneT>(value);
255 }
256 template <typename ScheduleExpressionTimezoneT = Aws::String>
257 GetScheduleResult& WithScheduleExpressionTimezone(ScheduleExpressionTimezoneT&& value) {
258 SetScheduleExpressionTimezone(std::forward<ScheduleExpressionTimezoneT>(value));
259 return *this;
260 }
262
264
270 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
271 template <typename StartDateT = Aws::Utils::DateTime>
272 void SetStartDate(StartDateT&& value) {
273 m_startDateHasBeenSet = true;
274 m_startDate = std::forward<StartDateT>(value);
275 }
276 template <typename StartDateT = Aws::Utils::DateTime>
277 GetScheduleResult& WithStartDate(StartDateT&& value) {
278 SetStartDate(std::forward<StartDateT>(value));
279 return *this;
280 }
282
284
287 inline ScheduleState GetState() const { return m_state; }
288 inline void SetState(ScheduleState value) {
289 m_stateHasBeenSet = true;
290 m_state = value;
291 }
293 SetState(value);
294 return *this;
295 }
297
299
302 inline const Target& GetTarget() const { return m_target; }
303 template <typename TargetT = Target>
304 void SetTarget(TargetT&& value) {
305 m_targetHasBeenSet = true;
306 m_target = std::forward<TargetT>(value);
307 }
308 template <typename TargetT = Target>
309 GetScheduleResult& WithTarget(TargetT&& value) {
310 SetTarget(std::forward<TargetT>(value));
311 return *this;
312 }
314
316
317 inline const Aws::String& GetRequestId() const { return m_requestId; }
318 template <typename RequestIdT = Aws::String>
319 void SetRequestId(RequestIdT&& value) {
320 m_requestIdHasBeenSet = true;
321 m_requestId = std::forward<RequestIdT>(value);
322 }
323 template <typename RequestIdT = Aws::String>
324 GetScheduleResult& WithRequestId(RequestIdT&& value) {
325 SetRequestId(std::forward<RequestIdT>(value));
326 return *this;
327 }
329 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
330
331 private:
333
334 Aws::String m_arn;
335
336 Aws::Utils::DateTime m_creationDate{};
337
338 Aws::String m_description;
339
340 Aws::Utils::DateTime m_endDate{};
341
342 FlexibleTimeWindow m_flexibleTimeWindow;
343
344 Aws::String m_groupName;
345
346 Aws::String m_kmsKeyArn;
347
348 Aws::Utils::DateTime m_lastModificationDate{};
349
350 Aws::String m_name;
351
352 Aws::String m_scheduleExpression;
353
354 Aws::String m_scheduleExpressionTimezone;
355
356 Aws::Utils::DateTime m_startDate{};
357
359
360 Target m_target;
361
362 Aws::String m_requestId;
363 Aws::Http::HttpResponseCode m_HttpResponseCode;
364 bool m_actionAfterCompletionHasBeenSet = false;
365 bool m_arnHasBeenSet = false;
366 bool m_creationDateHasBeenSet = false;
367 bool m_descriptionHasBeenSet = false;
368 bool m_endDateHasBeenSet = false;
369 bool m_flexibleTimeWindowHasBeenSet = false;
370 bool m_groupNameHasBeenSet = false;
371 bool m_kmsKeyArnHasBeenSet = false;
372 bool m_lastModificationDateHasBeenSet = false;
373 bool m_nameHasBeenSet = false;
374 bool m_scheduleExpressionHasBeenSet = false;
375 bool m_scheduleExpressionTimezoneHasBeenSet = false;
376 bool m_startDateHasBeenSet = false;
377 bool m_stateHasBeenSet = false;
378 bool m_targetHasBeenSet = false;
379 bool m_requestIdHasBeenSet = false;
380};
381
382} // namespace Model
383} // namespace Scheduler
384} // 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
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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