AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CreateScheduleRequest.h
Go to the documentation of this file.
1
6#pragma once
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace Scheduler
20{
21namespace Model
22{
23
27 {
28 public:
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateSchedule"; }
36
38
39
45 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
46
52 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
53
59 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
60
66 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
67
73 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
74
80 inline CreateScheduleRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
81
87 inline CreateScheduleRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
88
94 inline CreateScheduleRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
95
96
100 inline const Aws::String& GetDescription() const{ return m_description; }
101
105 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
106
110 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
111
115 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
116
120 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
121
125 inline CreateScheduleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
126
130 inline CreateScheduleRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
131
135 inline CreateScheduleRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
136
137
144 inline const Aws::Utils::DateTime& GetEndDate() const{ return m_endDate; }
145
152 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
153
160 inline void SetEndDate(const Aws::Utils::DateTime& value) { m_endDateHasBeenSet = true; m_endDate = value; }
161
168 inline void SetEndDate(Aws::Utils::DateTime&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); }
169
176 inline CreateScheduleRequest& WithEndDate(const Aws::Utils::DateTime& value) { SetEndDate(value); return *this;}
177
184 inline CreateScheduleRequest& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(std::move(value)); return *this;}
185
186
191 inline const FlexibleTimeWindow& GetFlexibleTimeWindow() const{ return m_flexibleTimeWindow; }
192
197 inline bool FlexibleTimeWindowHasBeenSet() const { return m_flexibleTimeWindowHasBeenSet; }
198
203 inline void SetFlexibleTimeWindow(const FlexibleTimeWindow& value) { m_flexibleTimeWindowHasBeenSet = true; m_flexibleTimeWindow = value; }
204
209 inline void SetFlexibleTimeWindow(FlexibleTimeWindow&& value) { m_flexibleTimeWindowHasBeenSet = true; m_flexibleTimeWindow = std::move(value); }
210
216
222
223
228 inline const Aws::String& GetGroupName() const{ return m_groupName; }
229
234 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
235
240 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
241
246 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
247
252 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
253
258 inline CreateScheduleRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
259
264 inline CreateScheduleRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
265
270 inline CreateScheduleRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
271
272
277 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
278
283 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
284
289 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
290
295 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
296
301 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
302
307 inline CreateScheduleRequest& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
308
313 inline CreateScheduleRequest& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
314
319 inline CreateScheduleRequest& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
320
321
325 inline const Aws::String& GetName() const{ return m_name; }
326
330 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
331
335 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
336
340 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
341
345 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
346
350 inline CreateScheduleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
351
355 inline CreateScheduleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
356
360 inline CreateScheduleRequest& WithName(const char* value) { SetName(value); return *this;}
361
362
386 inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; }
387
411 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
412
436 inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = value; }
437
461 inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::move(value); }
462
486 inline void SetScheduleExpression(const char* value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression.assign(value); }
487
512
536 inline CreateScheduleRequest& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(std::move(value)); return *this;}
537
561 inline CreateScheduleRequest& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;}
562
563
567 inline const Aws::String& GetScheduleExpressionTimezone() const{ return m_scheduleExpressionTimezone; }
568
572 inline bool ScheduleExpressionTimezoneHasBeenSet() const { return m_scheduleExpressionTimezoneHasBeenSet; }
573
577 inline void SetScheduleExpressionTimezone(const Aws::String& value) { m_scheduleExpressionTimezoneHasBeenSet = true; m_scheduleExpressionTimezone = value; }
578
582 inline void SetScheduleExpressionTimezone(Aws::String&& value) { m_scheduleExpressionTimezoneHasBeenSet = true; m_scheduleExpressionTimezone = std::move(value); }
583
587 inline void SetScheduleExpressionTimezone(const char* value) { m_scheduleExpressionTimezoneHasBeenSet = true; m_scheduleExpressionTimezone.assign(value); }
588
593
598
603
604
611 inline const Aws::Utils::DateTime& GetStartDate() const{ return m_startDate; }
612
619 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
620
627 inline void SetStartDate(const Aws::Utils::DateTime& value) { m_startDateHasBeenSet = true; m_startDate = value; }
628
635 inline void SetStartDate(Aws::Utils::DateTime&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); }
636
643 inline CreateScheduleRequest& WithStartDate(const Aws::Utils::DateTime& value) { SetStartDate(value); return *this;}
644
651 inline CreateScheduleRequest& WithStartDate(Aws::Utils::DateTime&& value) { SetStartDate(std::move(value)); return *this;}
652
653
657 inline const ScheduleState& GetState() const{ return m_state; }
658
662 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
663
667 inline void SetState(const ScheduleState& value) { m_stateHasBeenSet = true; m_state = value; }
668
672 inline void SetState(ScheduleState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
673
677 inline CreateScheduleRequest& WithState(const ScheduleState& value) { SetState(value); return *this;}
678
682 inline CreateScheduleRequest& WithState(ScheduleState&& value) { SetState(std::move(value)); return *this;}
683
684
688 inline const Target& GetTarget() const{ return m_target; }
689
693 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
694
698 inline void SetTarget(const Target& value) { m_targetHasBeenSet = true; m_target = value; }
699
703 inline void SetTarget(Target&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
704
708 inline CreateScheduleRequest& WithTarget(const Target& value) { SetTarget(value); return *this;}
709
713 inline CreateScheduleRequest& WithTarget(Target&& value) { SetTarget(std::move(value)); return *this;}
714
715 private:
716
717 Aws::String m_clientToken;
718 bool m_clientTokenHasBeenSet = false;
719
720 Aws::String m_description;
721 bool m_descriptionHasBeenSet = false;
722
723 Aws::Utils::DateTime m_endDate;
724 bool m_endDateHasBeenSet = false;
725
726 FlexibleTimeWindow m_flexibleTimeWindow;
727 bool m_flexibleTimeWindowHasBeenSet = false;
728
729 Aws::String m_groupName;
730 bool m_groupNameHasBeenSet = false;
731
732 Aws::String m_kmsKeyArn;
733 bool m_kmsKeyArnHasBeenSet = false;
734
735 Aws::String m_name;
736 bool m_nameHasBeenSet = false;
737
738 Aws::String m_scheduleExpression;
739 bool m_scheduleExpressionHasBeenSet = false;
740
741 Aws::String m_scheduleExpressionTimezone;
742 bool m_scheduleExpressionTimezoneHasBeenSet = false;
743
744 Aws::Utils::DateTime m_startDate;
745 bool m_startDateHasBeenSet = false;
746
747 ScheduleState m_state;
748 bool m_stateHasBeenSet = false;
749
750 Target m_target;
751 bool m_targetHasBeenSet = false;
752 };
753
754} // namespace Model
755} // namespace Scheduler
756} // namespace Aws
#define AWS_SCHEDULER_API
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)
CreateScheduleRequest & WithEndDate(const Aws::Utils::DateTime &value)
void SetEndDate(Aws::Utils::DateTime &&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)
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)
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 SetFlexibleTimeWindow(const FlexibleTimeWindow &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String