AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateScheduleRequest.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 UpdateScheduleRequest() = 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 "UpdateSchedule"; }
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 UpdateScheduleRequest& 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 UpdateScheduleRequest& 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 UpdateScheduleRequest& 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 UpdateScheduleRequest& WithFlexibleTimeWindow(FlexibleTimeWindowT&& value) { SetFlexibleTimeWindow(std::forward<FlexibleTimeWindowT>(value)); return *this;}
105
107
113 inline const Aws::String& GetGroupName() const { return m_groupName; }
114 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
115 template<typename GroupNameT = Aws::String>
116 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet = true; m_groupName = std::forward<GroupNameT>(value); }
117 template<typename GroupNameT = Aws::String>
118 UpdateScheduleRequest& WithGroupName(GroupNameT&& value) { SetGroupName(std::forward<GroupNameT>(value)); return *this;}
120
122
126 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
127 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
128 template<typename KmsKeyArnT = Aws::String>
129 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
130 template<typename KmsKeyArnT = Aws::String>
131 UpdateScheduleRequest& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
133
135
138 inline const Aws::String& GetName() const { return m_name; }
139 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
140 template<typename NameT = Aws::String>
141 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
142 template<typename NameT = Aws::String>
143 UpdateScheduleRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
145
147
170 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
171 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
172 template<typename ScheduleExpressionT = Aws::String>
173 void SetScheduleExpression(ScheduleExpressionT&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::forward<ScheduleExpressionT>(value); }
174 template<typename ScheduleExpressionT = Aws::String>
175 UpdateScheduleRequest& WithScheduleExpression(ScheduleExpressionT&& value) { SetScheduleExpression(std::forward<ScheduleExpressionT>(value)); return *this;}
177
179
182 inline const Aws::String& GetScheduleExpressionTimezone() const { return m_scheduleExpressionTimezone; }
183 inline bool ScheduleExpressionTimezoneHasBeenSet() const { return m_scheduleExpressionTimezoneHasBeenSet; }
184 template<typename ScheduleExpressionTimezoneT = Aws::String>
185 void SetScheduleExpressionTimezone(ScheduleExpressionTimezoneT&& value) { m_scheduleExpressionTimezoneHasBeenSet = true; m_scheduleExpressionTimezone = std::forward<ScheduleExpressionTimezoneT>(value); }
186 template<typename ScheduleExpressionTimezoneT = Aws::String>
187 UpdateScheduleRequest& WithScheduleExpressionTimezone(ScheduleExpressionTimezoneT&& value) { SetScheduleExpressionTimezone(std::forward<ScheduleExpressionTimezoneT>(value)); return *this;}
189
191
197 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
198 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
199 template<typename StartDateT = Aws::Utils::DateTime>
200 void SetStartDate(StartDateT&& value) { m_startDateHasBeenSet = true; m_startDate = std::forward<StartDateT>(value); }
201 template<typename StartDateT = Aws::Utils::DateTime>
202 UpdateScheduleRequest& WithStartDate(StartDateT&& value) { SetStartDate(std::forward<StartDateT>(value)); return *this;}
204
206
209 inline ScheduleState GetState() const { return m_state; }
210 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
211 inline void SetState(ScheduleState value) { m_stateHasBeenSet = true; m_state = value; }
212 inline UpdateScheduleRequest& WithState(ScheduleState value) { SetState(value); return *this;}
214
216
220 inline const Target& GetTarget() const { return m_target; }
221 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
222 template<typename TargetT = Target>
223 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
224 template<typename TargetT = Target>
225 UpdateScheduleRequest& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
227 private:
228
230 bool m_actionAfterCompletionHasBeenSet = false;
231
233 bool m_clientTokenHasBeenSet = true;
234
235 Aws::String m_description;
236 bool m_descriptionHasBeenSet = false;
237
238 Aws::Utils::DateTime m_endDate{};
239 bool m_endDateHasBeenSet = false;
240
241 FlexibleTimeWindow m_flexibleTimeWindow;
242 bool m_flexibleTimeWindowHasBeenSet = false;
243
244 Aws::String m_groupName;
245 bool m_groupNameHasBeenSet = false;
246
247 Aws::String m_kmsKeyArn;
248 bool m_kmsKeyArnHasBeenSet = false;
249
250 Aws::String m_name;
251 bool m_nameHasBeenSet = false;
252
253 Aws::String m_scheduleExpression;
254 bool m_scheduleExpressionHasBeenSet = false;
255
256 Aws::String m_scheduleExpressionTimezone;
257 bool m_scheduleExpressionTimezoneHasBeenSet = false;
258
259 Aws::Utils::DateTime m_startDate{};
260 bool m_startDateHasBeenSet = false;
261
263 bool m_stateHasBeenSet = false;
264
265 Target m_target;
266 bool m_targetHasBeenSet = false;
267 };
268
269} // namespace Model
270} // namespace Scheduler
271} // namespace Aws
void SetScheduleExpressionTimezone(ScheduleExpressionTimezoneT &&value)
UpdateScheduleRequest & WithState(ScheduleState value)
UpdateScheduleRequest & WithScheduleExpressionTimezone(ScheduleExpressionTimezoneT &&value)
void SetScheduleExpression(ScheduleExpressionT &&value)
virtual const char * GetServiceRequestName() const override
UpdateScheduleRequest & WithDescription(DescriptionT &&value)
AWS_SCHEDULER_API UpdateScheduleRequest()=default
UpdateScheduleRequest & WithStartDate(StartDateT &&value)
const Aws::Utils::DateTime & GetStartDate() const
ActionAfterCompletion GetActionAfterCompletion() const
UpdateScheduleRequest & WithKmsKeyArn(KmsKeyArnT &&value)
UpdateScheduleRequest & WithFlexibleTimeWindow(FlexibleTimeWindowT &&value)
UpdateScheduleRequest & WithName(NameT &&value)
UpdateScheduleRequest & WithEndDate(EndDateT &&value)
void SetActionAfterCompletion(ActionAfterCompletion value)
UpdateScheduleRequest & WithActionAfterCompletion(ActionAfterCompletion value)
AWS_SCHEDULER_API Aws::String SerializePayload() const override
void SetFlexibleTimeWindow(FlexibleTimeWindowT &&value)
const Aws::Utils::DateTime & GetEndDate() const
UpdateScheduleRequest & WithScheduleExpression(ScheduleExpressionT &&value)
const FlexibleTimeWindow & GetFlexibleTimeWindow() const
UpdateScheduleRequest & WithTarget(TargetT &&value)
UpdateScheduleRequest & WithClientToken(ClientTokenT &&value)
const Aws::String & GetScheduleExpressionTimezone() const
UpdateScheduleRequest & WithGroupName(GroupNameT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String