AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
UpdateScheduleRequest.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 "UpdateSchedule"; }
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 UpdateScheduleRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
81
87 inline UpdateScheduleRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
88
94 inline UpdateScheduleRequest& 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 UpdateScheduleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
126
130 inline UpdateScheduleRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
131
135 inline UpdateScheduleRequest& 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 UpdateScheduleRequest& WithEndDate(const Aws::Utils::DateTime& value) { SetEndDate(value); return *this;}
177
184 inline UpdateScheduleRequest& 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
230 inline const Aws::String& GetGroupName() const{ return m_groupName; }
231
238 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
239
246 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
247
254 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
255
262 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
263
270 inline UpdateScheduleRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
271
278 inline UpdateScheduleRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
279
286 inline UpdateScheduleRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
287
288
293 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
294
299 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
300
305 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
306
311 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
312
317 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
318
323 inline UpdateScheduleRequest& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
324
329 inline UpdateScheduleRequest& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
330
335 inline UpdateScheduleRequest& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
336
337
341 inline const Aws::String& GetName() const{ return m_name; }
342
346 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
347
351 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
352
356 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
357
361 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
362
366 inline UpdateScheduleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
367
371 inline UpdateScheduleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
372
376 inline UpdateScheduleRequest& WithName(const char* value) { SetName(value); return *this;}
377
378
402 inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; }
403
427 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
428
452 inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = value; }
453
477 inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::move(value); }
478
502 inline void SetScheduleExpression(const char* value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression.assign(value); }
503
528
552 inline UpdateScheduleRequest& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(std::move(value)); return *this;}
553
577 inline UpdateScheduleRequest& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;}
578
579
583 inline const Aws::String& GetScheduleExpressionTimezone() const{ return m_scheduleExpressionTimezone; }
584
588 inline bool ScheduleExpressionTimezoneHasBeenSet() const { return m_scheduleExpressionTimezoneHasBeenSet; }
589
593 inline void SetScheduleExpressionTimezone(const Aws::String& value) { m_scheduleExpressionTimezoneHasBeenSet = true; m_scheduleExpressionTimezone = value; }
594
598 inline void SetScheduleExpressionTimezone(Aws::String&& value) { m_scheduleExpressionTimezoneHasBeenSet = true; m_scheduleExpressionTimezone = std::move(value); }
599
603 inline void SetScheduleExpressionTimezone(const char* value) { m_scheduleExpressionTimezoneHasBeenSet = true; m_scheduleExpressionTimezone.assign(value); }
604
609
614
619
620
627 inline const Aws::Utils::DateTime& GetStartDate() const{ return m_startDate; }
628
635 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
636
643 inline void SetStartDate(const Aws::Utils::DateTime& value) { m_startDateHasBeenSet = true; m_startDate = value; }
644
651 inline void SetStartDate(Aws::Utils::DateTime&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); }
652
659 inline UpdateScheduleRequest& WithStartDate(const Aws::Utils::DateTime& value) { SetStartDate(value); return *this;}
660
667 inline UpdateScheduleRequest& WithStartDate(Aws::Utils::DateTime&& value) { SetStartDate(std::move(value)); return *this;}
668
669
673 inline const ScheduleState& GetState() const{ return m_state; }
674
678 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
679
683 inline void SetState(const ScheduleState& value) { m_stateHasBeenSet = true; m_state = value; }
684
688 inline void SetState(ScheduleState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
689
693 inline UpdateScheduleRequest& WithState(const ScheduleState& value) { SetState(value); return *this;}
694
698 inline UpdateScheduleRequest& WithState(ScheduleState&& value) { SetState(std::move(value)); return *this;}
699
700
705 inline const Target& GetTarget() const{ return m_target; }
706
711 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
712
717 inline void SetTarget(const Target& value) { m_targetHasBeenSet = true; m_target = value; }
718
723 inline void SetTarget(Target&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
724
729 inline UpdateScheduleRequest& WithTarget(const Target& value) { SetTarget(value); return *this;}
730
735 inline UpdateScheduleRequest& WithTarget(Target&& value) { SetTarget(std::move(value)); return *this;}
736
737 private:
738
739 Aws::String m_clientToken;
740 bool m_clientTokenHasBeenSet = false;
741
742 Aws::String m_description;
743 bool m_descriptionHasBeenSet = false;
744
745 Aws::Utils::DateTime m_endDate;
746 bool m_endDateHasBeenSet = false;
747
748 FlexibleTimeWindow m_flexibleTimeWindow;
749 bool m_flexibleTimeWindowHasBeenSet = false;
750
751 Aws::String m_groupName;
752 bool m_groupNameHasBeenSet = false;
753
754 Aws::String m_kmsKeyArn;
755 bool m_kmsKeyArnHasBeenSet = false;
756
757 Aws::String m_name;
758 bool m_nameHasBeenSet = false;
759
760 Aws::String m_scheduleExpression;
761 bool m_scheduleExpressionHasBeenSet = false;
762
763 Aws::String m_scheduleExpressionTimezone;
764 bool m_scheduleExpressionTimezoneHasBeenSet = false;
765
766 Aws::Utils::DateTime m_startDate;
767 bool m_startDateHasBeenSet = false;
768
769 ScheduleState m_state;
770 bool m_stateHasBeenSet = false;
771
772 Target m_target;
773 bool m_targetHasBeenSet = false;
774 };
775
776} // namespace Model
777} // namespace Scheduler
778} // namespace Aws
#define AWS_SCHEDULER_API
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)
const Aws::Utils::DateTime & GetStartDate() const
UpdateScheduleRequest & WithKmsKeyArn(Aws::String &&value)
UpdateScheduleRequest & WithScheduleExpressionTimezone(const Aws::String &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
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 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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String