AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 CreateScheduleRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
66 inline CreateScheduleRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
67 inline CreateScheduleRequest& 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 CreateScheduleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
80 inline CreateScheduleRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
81 inline CreateScheduleRequest& 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 CreateScheduleRequest& WithEndDate(const Aws::Utils::DateTime& value) { SetEndDate(value); return *this;}
96 inline CreateScheduleRequest& 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
117 inline const Aws::String& GetGroupName() const{ return m_groupName; }
118 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
119 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
120 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
121 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
122 inline CreateScheduleRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
123 inline CreateScheduleRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
124 inline CreateScheduleRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
126
128
132 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
133 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
134 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
135 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
136 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
137 inline CreateScheduleRequest& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
138 inline CreateScheduleRequest& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
139 inline CreateScheduleRequest& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
141
143
146 inline const Aws::String& GetName() const{ return m_name; }
147 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
148 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
149 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
150 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
151 inline CreateScheduleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
152 inline CreateScheduleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
153 inline CreateScheduleRequest& WithName(const char* value) { SetName(value); return *this;}
155
157
180 inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; }
181 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
182 inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = value; }
183 inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::move(value); }
184 inline void SetScheduleExpression(const char* value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression.assign(value); }
186 inline CreateScheduleRequest& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(std::move(value)); return *this;}
187 inline CreateScheduleRequest& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;}
189
191
194 inline const Aws::String& GetScheduleExpressionTimezone() const{ return m_scheduleExpressionTimezone; }
195 inline bool ScheduleExpressionTimezoneHasBeenSet() const { return m_scheduleExpressionTimezoneHasBeenSet; }
196 inline void SetScheduleExpressionTimezone(const Aws::String& value) { m_scheduleExpressionTimezoneHasBeenSet = true; m_scheduleExpressionTimezone = value; }
197 inline void SetScheduleExpressionTimezone(Aws::String&& value) { m_scheduleExpressionTimezoneHasBeenSet = true; m_scheduleExpressionTimezone = std::move(value); }
198 inline void SetScheduleExpressionTimezone(const char* value) { m_scheduleExpressionTimezoneHasBeenSet = true; m_scheduleExpressionTimezone.assign(value); }
203
205
211 inline const Aws::Utils::DateTime& GetStartDate() const{ return m_startDate; }
212 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
213 inline void SetStartDate(const Aws::Utils::DateTime& value) { m_startDateHasBeenSet = true; m_startDate = value; }
214 inline void SetStartDate(Aws::Utils::DateTime&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); }
215 inline CreateScheduleRequest& WithStartDate(const Aws::Utils::DateTime& value) { SetStartDate(value); return *this;}
216 inline CreateScheduleRequest& WithStartDate(Aws::Utils::DateTime&& value) { SetStartDate(std::move(value)); return *this;}
218
220
223 inline const ScheduleState& GetState() const{ return m_state; }
224 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
225 inline void SetState(const ScheduleState& value) { m_stateHasBeenSet = true; m_state = value; }
226 inline void SetState(ScheduleState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
227 inline CreateScheduleRequest& WithState(const ScheduleState& value) { SetState(value); return *this;}
228 inline CreateScheduleRequest& WithState(ScheduleState&& value) { SetState(std::move(value)); return *this;}
230
232
235 inline const Target& GetTarget() const{ return m_target; }
236 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
237 inline void SetTarget(const Target& value) { m_targetHasBeenSet = true; m_target = value; }
238 inline void SetTarget(Target&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
239 inline CreateScheduleRequest& WithTarget(const Target& value) { SetTarget(value); return *this;}
240 inline CreateScheduleRequest& WithTarget(Target&& value) { SetTarget(std::move(value)); return *this;}
242 private:
243
244 ActionAfterCompletion m_actionAfterCompletion;
245 bool m_actionAfterCompletionHasBeenSet = false;
246
247 Aws::String m_clientToken;
248 bool m_clientTokenHasBeenSet = false;
249
250 Aws::String m_description;
251 bool m_descriptionHasBeenSet = false;
252
253 Aws::Utils::DateTime m_endDate;
254 bool m_endDateHasBeenSet = false;
255
256 FlexibleTimeWindow m_flexibleTimeWindow;
257 bool m_flexibleTimeWindowHasBeenSet = false;
258
259 Aws::String m_groupName;
260 bool m_groupNameHasBeenSet = false;
261
262 Aws::String m_kmsKeyArn;
263 bool m_kmsKeyArnHasBeenSet = false;
264
265 Aws::String m_name;
266 bool m_nameHasBeenSet = false;
267
268 Aws::String m_scheduleExpression;
269 bool m_scheduleExpressionHasBeenSet = false;
270
271 Aws::String m_scheduleExpressionTimezone;
272 bool m_scheduleExpressionTimezoneHasBeenSet = false;
273
274 Aws::Utils::DateTime m_startDate;
275 bool m_startDateHasBeenSet = false;
276
277 ScheduleState m_state;
278 bool m_stateHasBeenSet = false;
279
280 Target m_target;
281 bool m_targetHasBeenSet = false;
282 };
283
284} // namespace Model
285} // namespace Scheduler
286} // namespace Aws
CreateScheduleRequest & WithScheduleExpression(const Aws::String &value)
AWS_SCHEDULER_API Aws::String SerializePayload() const override
CreateScheduleRequest & WithKmsKeyArn(const Aws::String &value)
CreateScheduleRequest & WithDescription(const char *value)
const ActionAfterCompletion & GetActionAfterCompletion() const
CreateScheduleRequest & WithEndDate(const Aws::Utils::DateTime &value)
void SetEndDate(Aws::Utils::DateTime &&value)
CreateScheduleRequest & WithActionAfterCompletion(const ActionAfterCompletion &value)
CreateScheduleRequest & WithClientToken(const char *value)
CreateScheduleRequest & WithDescription(const Aws::String &value)
void SetStartDate(const Aws::Utils::DateTime &value)
CreateScheduleRequest & WithGroupName(const Aws::String &value)
void SetEndDate(const Aws::Utils::DateTime &value)
CreateScheduleRequest & WithActionAfterCompletion(ActionAfterCompletion &&value)
void SetFlexibleTimeWindow(FlexibleTimeWindow &&value)
CreateScheduleRequest & WithScheduleExpressionTimezone(const Aws::String &value)
const Aws::String & GetScheduleExpressionTimezone() const
CreateScheduleRequest & WithGroupName(Aws::String &&value)
CreateScheduleRequest & WithStartDate(Aws::Utils::DateTime &&value)
void SetActionAfterCompletion(const ActionAfterCompletion &value)
CreateScheduleRequest & WithScheduleExpression(Aws::String &&value)
CreateScheduleRequest & WithFlexibleTimeWindow(const FlexibleTimeWindow &value)
CreateScheduleRequest & WithTarget(const Target &value)
CreateScheduleRequest & WithClientToken(Aws::String &&value)
CreateScheduleRequest & WithName(const char *value)
CreateScheduleRequest & WithTarget(Target &&value)
const FlexibleTimeWindow & GetFlexibleTimeWindow() const
CreateScheduleRequest & WithScheduleExpressionTimezone(Aws::String &&value)
CreateScheduleRequest & WithStartDate(const Aws::Utils::DateTime &value)
CreateScheduleRequest & WithDescription(Aws::String &&value)
CreateScheduleRequest & WithName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateScheduleRequest & WithScheduleExpression(const char *value)
CreateScheduleRequest & WithFlexibleTimeWindow(FlexibleTimeWindow &&value)
CreateScheduleRequest & WithState(ScheduleState &&value)
CreateScheduleRequest & WithName(Aws::String &&value)
const Aws::Utils::DateTime & GetEndDate() const
void SetScheduleExpressionTimezone(const Aws::String &value)
CreateScheduleRequest & WithKmsKeyArn(const char *value)
void SetScheduleExpression(const Aws::String &value)
CreateScheduleRequest & WithGroupName(const char *value)
CreateScheduleRequest & WithClientToken(const Aws::String &value)
const Aws::Utils::DateTime & GetStartDate() const
void SetStartDate(Aws::Utils::DateTime &&value)
CreateScheduleRequest & WithScheduleExpressionTimezone(const char *value)
CreateScheduleRequest & WithState(const ScheduleState &value)
CreateScheduleRequest & WithKmsKeyArn(Aws::String &&value)
CreateScheduleRequest & WithEndDate(Aws::Utils::DateTime &&value)
void SetActionAfterCompletion(ActionAfterCompletion &&value)
void SetFlexibleTimeWindow(const FlexibleTimeWindow &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String