AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateScheduleRequest.h
1
6#pragma once
7#include <aws/scheduler/Scheduler_EXPORTS.h>
8#include <aws/scheduler/SchedulerRequest.h>
9#include <aws/scheduler/model/ActionAfterCompletion.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/scheduler/model/FlexibleTimeWindow.h>
13#include <aws/scheduler/model/ScheduleState.h>
14#include <aws/scheduler/model/Target.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace Scheduler
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_SCHEDULER_API CreateScheduleRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateSchedule"; }
37
38 AWS_SCHEDULER_API Aws::String SerializePayload() const override;
39
40
42
46 inline ActionAfterCompletion GetActionAfterCompletion() const { return m_actionAfterCompletion; }
47 inline bool ActionAfterCompletionHasBeenSet() const { return m_actionAfterCompletionHasBeenSet; }
48 inline void SetActionAfterCompletion(ActionAfterCompletion value) { m_actionAfterCompletionHasBeenSet = true; m_actionAfterCompletion = value; }
51
53
58 inline const Aws::String& GetClientToken() const { return m_clientToken; }
59 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
60 template<typename ClientTokenT = Aws::String>
61 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
62 template<typename ClientTokenT = Aws::String>
63 CreateScheduleRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
65
67
70 inline const Aws::String& GetDescription() const { return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 template<typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
74 template<typename DescriptionT = Aws::String>
75 CreateScheduleRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
77
79
85 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
86 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
87 template<typename EndDateT = Aws::Utils::DateTime>
88 void SetEndDate(EndDateT&& value) { m_endDateHasBeenSet = true; m_endDate = std::forward<EndDateT>(value); }
89 template<typename EndDateT = Aws::Utils::DateTime>
90 CreateScheduleRequest& WithEndDate(EndDateT&& value) { SetEndDate(std::forward<EndDateT>(value)); return *this;}
92
94
98 inline const FlexibleTimeWindow& GetFlexibleTimeWindow() const { return m_flexibleTimeWindow; }
99 inline bool FlexibleTimeWindowHasBeenSet() const { return m_flexibleTimeWindowHasBeenSet; }
100 template<typename FlexibleTimeWindowT = FlexibleTimeWindow>
101 void SetFlexibleTimeWindow(FlexibleTimeWindowT&& value) { m_flexibleTimeWindowHasBeenSet = true; m_flexibleTimeWindow = std::forward<FlexibleTimeWindowT>(value); }
102 template<typename FlexibleTimeWindowT = FlexibleTimeWindow>
103 CreateScheduleRequest& WithFlexibleTimeWindow(FlexibleTimeWindowT&& value) { SetFlexibleTimeWindow(std::forward<FlexibleTimeWindowT>(value)); return *this;}
105
107
111 inline const Aws::String& GetGroupName() const { return m_groupName; }
112 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
113 template<typename GroupNameT = Aws::String>
114 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet = true; m_groupName = std::forward<GroupNameT>(value); }
115 template<typename GroupNameT = Aws::String>
116 CreateScheduleRequest& WithGroupName(GroupNameT&& value) { SetGroupName(std::forward<GroupNameT>(value)); return *this;}
118
120
124 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
125 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
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 CreateScheduleRequest& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
131
133
136 inline const Aws::String& GetName() const { return m_name; }
137 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
138 template<typename NameT = Aws::String>
139 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
140 template<typename NameT = Aws::String>
141 CreateScheduleRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
143
145
168 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
169 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
170 template<typename ScheduleExpressionT = Aws::String>
171 void SetScheduleExpression(ScheduleExpressionT&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::forward<ScheduleExpressionT>(value); }
172 template<typename ScheduleExpressionT = Aws::String>
173 CreateScheduleRequest& WithScheduleExpression(ScheduleExpressionT&& value) { SetScheduleExpression(std::forward<ScheduleExpressionT>(value)); return *this;}
175
177
180 inline const Aws::String& GetScheduleExpressionTimezone() const { return m_scheduleExpressionTimezone; }
181 inline bool ScheduleExpressionTimezoneHasBeenSet() const { return m_scheduleExpressionTimezoneHasBeenSet; }
182 template<typename ScheduleExpressionTimezoneT = Aws::String>
183 void SetScheduleExpressionTimezone(ScheduleExpressionTimezoneT&& value) { m_scheduleExpressionTimezoneHasBeenSet = true; m_scheduleExpressionTimezone = std::forward<ScheduleExpressionTimezoneT>(value); }
184 template<typename ScheduleExpressionTimezoneT = Aws::String>
185 CreateScheduleRequest& WithScheduleExpressionTimezone(ScheduleExpressionTimezoneT&& value) { SetScheduleExpressionTimezone(std::forward<ScheduleExpressionTimezoneT>(value)); return *this;}
187
189
195 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
196 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
197 template<typename StartDateT = Aws::Utils::DateTime>
198 void SetStartDate(StartDateT&& value) { m_startDateHasBeenSet = true; m_startDate = std::forward<StartDateT>(value); }
199 template<typename StartDateT = Aws::Utils::DateTime>
200 CreateScheduleRequest& WithStartDate(StartDateT&& value) { SetStartDate(std::forward<StartDateT>(value)); return *this;}
202
204
207 inline ScheduleState GetState() const { return m_state; }
208 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
209 inline void SetState(ScheduleState value) { m_stateHasBeenSet = true; m_state = value; }
210 inline CreateScheduleRequest& WithState(ScheduleState value) { SetState(value); return *this;}
212
214
217 inline const Target& GetTarget() const { return m_target; }
218 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
219 template<typename TargetT = Target>
220 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
221 template<typename TargetT = Target>
222 CreateScheduleRequest& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
224 private:
225
227 bool m_actionAfterCompletionHasBeenSet = false;
228
230 bool m_clientTokenHasBeenSet = true;
231
232 Aws::String m_description;
233 bool m_descriptionHasBeenSet = false;
234
235 Aws::Utils::DateTime m_endDate{};
236 bool m_endDateHasBeenSet = false;
237
238 FlexibleTimeWindow m_flexibleTimeWindow;
239 bool m_flexibleTimeWindowHasBeenSet = false;
240
241 Aws::String m_groupName;
242 bool m_groupNameHasBeenSet = false;
243
244 Aws::String m_kmsKeyArn;
245 bool m_kmsKeyArnHasBeenSet = false;
246
247 Aws::String m_name;
248 bool m_nameHasBeenSet = false;
249
250 Aws::String m_scheduleExpression;
251 bool m_scheduleExpressionHasBeenSet = false;
252
253 Aws::String m_scheduleExpressionTimezone;
254 bool m_scheduleExpressionTimezoneHasBeenSet = false;
255
256 Aws::Utils::DateTime m_startDate{};
257 bool m_startDateHasBeenSet = false;
258
260 bool m_stateHasBeenSet = false;
261
262 Target m_target;
263 bool m_targetHasBeenSet = false;
264 };
265
266} // namespace Model
267} // namespace Scheduler
268} // namespace Aws
AWS_SCHEDULER_API Aws::String SerializePayload() const override
void SetScheduleExpression(ScheduleExpressionT &&value)
void SetScheduleExpressionTimezone(ScheduleExpressionTimezoneT &&value)
CreateScheduleRequest & WithClientToken(ClientTokenT &&value)
CreateScheduleRequest & WithEndDate(EndDateT &&value)
void SetFlexibleTimeWindow(FlexibleTimeWindowT &&value)
CreateScheduleRequest & WithStartDate(StartDateT &&value)
const Aws::String & GetScheduleExpressionTimezone() const
CreateScheduleRequest & WithTarget(TargetT &&value)
ActionAfterCompletion GetActionAfterCompletion() const
CreateScheduleRequest & WithActionAfterCompletion(ActionAfterCompletion value)
void SetActionAfterCompletion(ActionAfterCompletion value)
const FlexibleTimeWindow & GetFlexibleTimeWindow() const
virtual const char * GetServiceRequestName() const override
CreateScheduleRequest & WithState(ScheduleState value)
CreateScheduleRequest & WithGroupName(GroupNameT &&value)
CreateScheduleRequest & WithScheduleExpressionTimezone(ScheduleExpressionTimezoneT &&value)
AWS_SCHEDULER_API CreateScheduleRequest()=default
const Aws::Utils::DateTime & GetEndDate() const
CreateScheduleRequest & WithName(NameT &&value)
const Aws::Utils::DateTime & GetStartDate() const
CreateScheduleRequest & WithDescription(DescriptionT &&value)
CreateScheduleRequest & WithScheduleExpression(ScheduleExpressionT &&value)
CreateScheduleRequest & WithKmsKeyArn(KmsKeyArnT &&value)
CreateScheduleRequest & WithFlexibleTimeWindow(FlexibleTimeWindowT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String