AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetScheduleResult.h
1
6#pragma once
7#include <aws/scheduler/Scheduler_EXPORTS.h>
8#include <aws/scheduler/model/ActionAfterCompletion.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/scheduler/model/FlexibleTimeWindow.h>
12#include <aws/scheduler/model/ScheduleState.h>
13#include <aws/scheduler/model/Target.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace Scheduler
29{
30namespace Model
31{
33 {
34 public:
35 AWS_SCHEDULER_API GetScheduleResult() = default;
38
39
41
45 inline ActionAfterCompletion GetActionAfterCompletion() const { return m_actionAfterCompletion; }
46 inline void SetActionAfterCompletion(ActionAfterCompletion value) { m_actionAfterCompletionHasBeenSet = true; m_actionAfterCompletion = value; }
49
51
54 inline const Aws::String& GetArn() const { return m_arn; }
55 template<typename ArnT = Aws::String>
56 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
57 template<typename ArnT = Aws::String>
58 GetScheduleResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
60
62
65 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
66 template<typename CreationDateT = Aws::Utils::DateTime>
67 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
68 template<typename CreationDateT = Aws::Utils::DateTime>
69 GetScheduleResult& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 template<typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
79 template<typename DescriptionT = Aws::String>
80 GetScheduleResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
82
84
90 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
91 template<typename EndDateT = Aws::Utils::DateTime>
92 void SetEndDate(EndDateT&& value) { m_endDateHasBeenSet = true; m_endDate = std::forward<EndDateT>(value); }
93 template<typename EndDateT = Aws::Utils::DateTime>
94 GetScheduleResult& WithEndDate(EndDateT&& value) { SetEndDate(std::forward<EndDateT>(value)); return *this;}
96
98
102 inline const FlexibleTimeWindow& GetFlexibleTimeWindow() const { return m_flexibleTimeWindow; }
103 template<typename FlexibleTimeWindowT = FlexibleTimeWindow>
104 void SetFlexibleTimeWindow(FlexibleTimeWindowT&& value) { m_flexibleTimeWindowHasBeenSet = true; m_flexibleTimeWindow = std::forward<FlexibleTimeWindowT>(value); }
105 template<typename FlexibleTimeWindowT = FlexibleTimeWindow>
106 GetScheduleResult& WithFlexibleTimeWindow(FlexibleTimeWindowT&& value) { SetFlexibleTimeWindow(std::forward<FlexibleTimeWindowT>(value)); return *this;}
108
110
113 inline const Aws::String& GetGroupName() const { return m_groupName; }
114 template<typename GroupNameT = Aws::String>
115 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet = true; m_groupName = std::forward<GroupNameT>(value); }
116 template<typename GroupNameT = Aws::String>
117 GetScheduleResult& WithGroupName(GroupNameT&& value) { SetGroupName(std::forward<GroupNameT>(value)); return *this;}
119
121
125 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
126 template<typename KmsKeyArnT = Aws::String>
127 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
128 template<typename KmsKeyArnT = Aws::String>
129 GetScheduleResult& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
131
133
136 inline const Aws::Utils::DateTime& GetLastModificationDate() const { return m_lastModificationDate; }
137 template<typename LastModificationDateT = Aws::Utils::DateTime>
138 void SetLastModificationDate(LastModificationDateT&& value) { m_lastModificationDateHasBeenSet = true; m_lastModificationDate = std::forward<LastModificationDateT>(value); }
139 template<typename LastModificationDateT = Aws::Utils::DateTime>
140 GetScheduleResult& WithLastModificationDate(LastModificationDateT&& value) { SetLastModificationDate(std::forward<LastModificationDateT>(value)); return *this;}
142
144
147 inline const Aws::String& GetName() const { return m_name; }
148 template<typename NameT = Aws::String>
149 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
150 template<typename NameT = Aws::String>
151 GetScheduleResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
153
155
178 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
179 template<typename ScheduleExpressionT = Aws::String>
180 void SetScheduleExpression(ScheduleExpressionT&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::forward<ScheduleExpressionT>(value); }
181 template<typename ScheduleExpressionT = Aws::String>
182 GetScheduleResult& WithScheduleExpression(ScheduleExpressionT&& value) { SetScheduleExpression(std::forward<ScheduleExpressionT>(value)); return *this;}
184
186
189 inline const Aws::String& GetScheduleExpressionTimezone() const { return m_scheduleExpressionTimezone; }
190 template<typename ScheduleExpressionTimezoneT = Aws::String>
191 void SetScheduleExpressionTimezone(ScheduleExpressionTimezoneT&& value) { m_scheduleExpressionTimezoneHasBeenSet = true; m_scheduleExpressionTimezone = std::forward<ScheduleExpressionTimezoneT>(value); }
192 template<typename ScheduleExpressionTimezoneT = Aws::String>
193 GetScheduleResult& WithScheduleExpressionTimezone(ScheduleExpressionTimezoneT&& value) { SetScheduleExpressionTimezone(std::forward<ScheduleExpressionTimezoneT>(value)); return *this;}
195
197
203 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
204 template<typename StartDateT = Aws::Utils::DateTime>
205 void SetStartDate(StartDateT&& value) { m_startDateHasBeenSet = true; m_startDate = std::forward<StartDateT>(value); }
206 template<typename StartDateT = Aws::Utils::DateTime>
207 GetScheduleResult& WithStartDate(StartDateT&& value) { SetStartDate(std::forward<StartDateT>(value)); return *this;}
209
211
214 inline ScheduleState GetState() const { return m_state; }
215 inline void SetState(ScheduleState value) { m_stateHasBeenSet = true; m_state = value; }
216 inline GetScheduleResult& WithState(ScheduleState value) { SetState(value); return *this;}
218
220
223 inline const Target& GetTarget() const { return m_target; }
224 template<typename TargetT = Target>
225 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
226 template<typename TargetT = Target>
227 GetScheduleResult& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
229
231
232 inline const Aws::String& GetRequestId() const { return m_requestId; }
233 template<typename RequestIdT = Aws::String>
234 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
235 template<typename RequestIdT = Aws::String>
236 GetScheduleResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
238 private:
239
241 bool m_actionAfterCompletionHasBeenSet = false;
242
243 Aws::String m_arn;
244 bool m_arnHasBeenSet = false;
245
246 Aws::Utils::DateTime m_creationDate{};
247 bool m_creationDateHasBeenSet = false;
248
249 Aws::String m_description;
250 bool m_descriptionHasBeenSet = false;
251
252 Aws::Utils::DateTime m_endDate{};
253 bool m_endDateHasBeenSet = false;
254
255 FlexibleTimeWindow m_flexibleTimeWindow;
256 bool m_flexibleTimeWindowHasBeenSet = false;
257
258 Aws::String m_groupName;
259 bool m_groupNameHasBeenSet = false;
260
261 Aws::String m_kmsKeyArn;
262 bool m_kmsKeyArnHasBeenSet = false;
263
264 Aws::Utils::DateTime m_lastModificationDate{};
265 bool m_lastModificationDateHasBeenSet = false;
266
267 Aws::String m_name;
268 bool m_nameHasBeenSet = false;
269
270 Aws::String m_scheduleExpression;
271 bool m_scheduleExpressionHasBeenSet = false;
272
273 Aws::String m_scheduleExpressionTimezone;
274 bool m_scheduleExpressionTimezoneHasBeenSet = false;
275
276 Aws::Utils::DateTime m_startDate{};
277 bool m_startDateHasBeenSet = false;
278
280 bool m_stateHasBeenSet = false;
281
282 Target m_target;
283 bool m_targetHasBeenSet = false;
284
285 Aws::String m_requestId;
286 bool m_requestIdHasBeenSet = false;
287 };
288
289} // namespace Model
290} // namespace Scheduler
291} // 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