AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ActionAfterCompletion& GetActionAfterCompletion() const{ return m_actionAfterCompletion; }
47 inline bool ActionAfterCompletionHasBeenSet() const { return m_actionAfterCompletionHasBeenSet; }
48 inline void SetActionAfterCompletion(const ActionAfterCompletion& value) { m_actionAfterCompletionHasBeenSet = true; m_actionAfterCompletion = value; }
49 inline void SetActionAfterCompletion(ActionAfterCompletion&& value) { m_actionAfterCompletionHasBeenSet = true; m_actionAfterCompletion = std::move(value); }
53
55
60 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
61 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
62 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
63 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
64 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
65 inline UpdateScheduleRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
66 inline UpdateScheduleRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
67 inline UpdateScheduleRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
69
71
74 inline const Aws::String& GetDescription() const{ return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
77 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
78 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
79 inline UpdateScheduleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
80 inline UpdateScheduleRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
81 inline UpdateScheduleRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
83
85
91 inline const Aws::Utils::DateTime& GetEndDate() const{ return m_endDate; }
92 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
93 inline void SetEndDate(const Aws::Utils::DateTime& value) { m_endDateHasBeenSet = true; m_endDate = value; }
94 inline void SetEndDate(Aws::Utils::DateTime&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); }
95 inline UpdateScheduleRequest& WithEndDate(const Aws::Utils::DateTime& value) { SetEndDate(value); return *this;}
96 inline UpdateScheduleRequest& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(std::move(value)); return *this;}
98
100
104 inline const FlexibleTimeWindow& GetFlexibleTimeWindow() const{ return m_flexibleTimeWindow; }
105 inline bool FlexibleTimeWindowHasBeenSet() const { return m_flexibleTimeWindowHasBeenSet; }
106 inline void SetFlexibleTimeWindow(const FlexibleTimeWindow& value) { m_flexibleTimeWindowHasBeenSet = true; m_flexibleTimeWindow = value; }
107 inline void SetFlexibleTimeWindow(FlexibleTimeWindow&& value) { m_flexibleTimeWindowHasBeenSet = true; m_flexibleTimeWindow = std::move(value); }
111
113
119 inline const Aws::String& GetGroupName() const{ return m_groupName; }
120 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
121 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
122 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
123 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
124 inline UpdateScheduleRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
125 inline UpdateScheduleRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
126 inline UpdateScheduleRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
128
130
134 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
135 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
136 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
137 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
138 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
139 inline UpdateScheduleRequest& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
140 inline UpdateScheduleRequest& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
141 inline UpdateScheduleRequest& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
143
145
148 inline const Aws::String& GetName() const{ return m_name; }
149 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
150 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
151 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
152 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
153 inline UpdateScheduleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
154 inline UpdateScheduleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
155 inline UpdateScheduleRequest& WithName(const char* value) { SetName(value); return *this;}
157
159
182 inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; }
183 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
184 inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = value; }
185 inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::move(value); }
186 inline void SetScheduleExpression(const char* value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression.assign(value); }
188 inline UpdateScheduleRequest& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(std::move(value)); return *this;}
189 inline UpdateScheduleRequest& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;}
191
193
196 inline const Aws::String& GetScheduleExpressionTimezone() const{ return m_scheduleExpressionTimezone; }
197 inline bool ScheduleExpressionTimezoneHasBeenSet() const { return m_scheduleExpressionTimezoneHasBeenSet; }
198 inline void SetScheduleExpressionTimezone(const Aws::String& value) { m_scheduleExpressionTimezoneHasBeenSet = true; m_scheduleExpressionTimezone = value; }
199 inline void SetScheduleExpressionTimezone(Aws::String&& value) { m_scheduleExpressionTimezoneHasBeenSet = true; m_scheduleExpressionTimezone = std::move(value); }
200 inline void SetScheduleExpressionTimezone(const char* value) { m_scheduleExpressionTimezoneHasBeenSet = true; m_scheduleExpressionTimezone.assign(value); }
205
207
213 inline const Aws::Utils::DateTime& GetStartDate() const{ return m_startDate; }
214 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
215 inline void SetStartDate(const Aws::Utils::DateTime& value) { m_startDateHasBeenSet = true; m_startDate = value; }
216 inline void SetStartDate(Aws::Utils::DateTime&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); }
217 inline UpdateScheduleRequest& WithStartDate(const Aws::Utils::DateTime& value) { SetStartDate(value); return *this;}
218 inline UpdateScheduleRequest& WithStartDate(Aws::Utils::DateTime&& value) { SetStartDate(std::move(value)); return *this;}
220
222
225 inline const ScheduleState& GetState() const{ return m_state; }
226 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
227 inline void SetState(const ScheduleState& value) { m_stateHasBeenSet = true; m_state = value; }
228 inline void SetState(ScheduleState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
229 inline UpdateScheduleRequest& WithState(const ScheduleState& value) { SetState(value); return *this;}
230 inline UpdateScheduleRequest& WithState(ScheduleState&& value) { SetState(std::move(value)); return *this;}
232
234
238 inline const Target& GetTarget() const{ return m_target; }
239 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
240 inline void SetTarget(const Target& value) { m_targetHasBeenSet = true; m_target = value; }
241 inline void SetTarget(Target&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
242 inline UpdateScheduleRequest& WithTarget(const Target& value) { SetTarget(value); return *this;}
243 inline UpdateScheduleRequest& WithTarget(Target&& value) { SetTarget(std::move(value)); return *this;}
245 private:
246
247 ActionAfterCompletion m_actionAfterCompletion;
248 bool m_actionAfterCompletionHasBeenSet = false;
249
250 Aws::String m_clientToken;
251 bool m_clientTokenHasBeenSet = false;
252
253 Aws::String m_description;
254 bool m_descriptionHasBeenSet = false;
255
256 Aws::Utils::DateTime m_endDate;
257 bool m_endDateHasBeenSet = false;
258
259 FlexibleTimeWindow m_flexibleTimeWindow;
260 bool m_flexibleTimeWindowHasBeenSet = false;
261
262 Aws::String m_groupName;
263 bool m_groupNameHasBeenSet = false;
264
265 Aws::String m_kmsKeyArn;
266 bool m_kmsKeyArnHasBeenSet = false;
267
268 Aws::String m_name;
269 bool m_nameHasBeenSet = false;
270
271 Aws::String m_scheduleExpression;
272 bool m_scheduleExpressionHasBeenSet = false;
273
274 Aws::String m_scheduleExpressionTimezone;
275 bool m_scheduleExpressionTimezoneHasBeenSet = false;
276
277 Aws::Utils::DateTime m_startDate;
278 bool m_startDateHasBeenSet = false;
279
280 ScheduleState m_state;
281 bool m_stateHasBeenSet = false;
282
283 Target m_target;
284 bool m_targetHasBeenSet = false;
285 };
286
287} // namespace Model
288} // namespace Scheduler
289} // namespace Aws
void SetStartDate(const Aws::Utils::DateTime &value)
void SetEndDate(const Aws::Utils::DateTime &value)
UpdateScheduleRequest & WithState(const ScheduleState &value)
UpdateScheduleRequest & WithGroupName(Aws::String &&value)
UpdateScheduleRequest & WithDescription(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateScheduleRequest & WithFlexibleTimeWindow(const FlexibleTimeWindow &value)
UpdateScheduleRequest & WithActionAfterCompletion(ActionAfterCompletion &&value)
const Aws::Utils::DateTime & GetStartDate() const
UpdateScheduleRequest & WithKmsKeyArn(Aws::String &&value)
UpdateScheduleRequest & WithScheduleExpressionTimezone(const Aws::String &value)
UpdateScheduleRequest & WithActionAfterCompletion(const ActionAfterCompletion &value)
void SetScheduleExpression(const Aws::String &value)
UpdateScheduleRequest & WithName(const char *value)
UpdateScheduleRequest & WithState(ScheduleState &&value)
UpdateScheduleRequest & WithScheduleExpressionTimezone(Aws::String &&value)
UpdateScheduleRequest & WithGroupName(const Aws::String &value)
UpdateScheduleRequest & WithName(const Aws::String &value)
UpdateScheduleRequest & WithGroupName(const char *value)
UpdateScheduleRequest & WithClientToken(const char *value)
UpdateScheduleRequest & WithName(Aws::String &&value)
UpdateScheduleRequest & WithKmsKeyArn(const Aws::String &value)
UpdateScheduleRequest & WithTarget(Target &&value)
UpdateScheduleRequest & WithEndDate(Aws::Utils::DateTime &&value)
AWS_SCHEDULER_API Aws::String SerializePayload() const override
void SetStartDate(Aws::Utils::DateTime &&value)
void SetFlexibleTimeWindow(const FlexibleTimeWindow &value)
const Aws::Utils::DateTime & GetEndDate() const
void SetActionAfterCompletion(const ActionAfterCompletion &value)
const FlexibleTimeWindow & GetFlexibleTimeWindow() const
UpdateScheduleRequest & WithFlexibleTimeWindow(FlexibleTimeWindow &&value)
UpdateScheduleRequest & WithDescription(const char *value)
UpdateScheduleRequest & WithClientToken(Aws::String &&value)
UpdateScheduleRequest & WithScheduleExpression(const Aws::String &value)
UpdateScheduleRequest & WithDescription(const Aws::String &value)
void SetActionAfterCompletion(ActionAfterCompletion &&value)
void SetFlexibleTimeWindow(FlexibleTimeWindow &&value)
UpdateScheduleRequest & WithScheduleExpression(const char *value)
UpdateScheduleRequest & WithStartDate(const Aws::Utils::DateTime &value)
void SetScheduleExpressionTimezone(const Aws::String &value)
UpdateScheduleRequest & WithTarget(const Target &value)
void SetEndDate(Aws::Utils::DateTime &&value)
const Aws::String & GetScheduleExpressionTimezone() const
UpdateScheduleRequest & WithKmsKeyArn(const char *value)
UpdateScheduleRequest & WithScheduleExpression(Aws::String &&value)
UpdateScheduleRequest & WithClientToken(const Aws::String &value)
UpdateScheduleRequest & WithStartDate(Aws::Utils::DateTime &&value)
UpdateScheduleRequest & WithScheduleExpressionTimezone(const char *value)
UpdateScheduleRequest & WithEndDate(const Aws::Utils::DateTime &value)
const ActionAfterCompletion & GetActionAfterCompletion() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String