AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyScheduledActionRequest.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/redshift/model/ScheduledActionType.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Redshift
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_REDSHIFT_API ModifyScheduledActionRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ModifyScheduledAction"; }
33
34 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::String& GetScheduledActionName() const{ return m_scheduledActionName; }
46 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
47 inline void SetScheduledActionName(const Aws::String& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = value; }
48 inline void SetScheduledActionName(Aws::String&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::move(value); }
49 inline void SetScheduledActionName(const char* value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName.assign(value); }
52 inline ModifyScheduledActionRequest& WithScheduledActionName(const char* value) { SetScheduledActionName(value); return *this;}
54
56
60 inline const ScheduledActionType& GetTargetAction() const{ return m_targetAction; }
61 inline bool TargetActionHasBeenSet() const { return m_targetActionHasBeenSet; }
62 inline void SetTargetAction(const ScheduledActionType& value) { m_targetActionHasBeenSet = true; m_targetAction = value; }
63 inline void SetTargetAction(ScheduledActionType&& value) { m_targetActionHasBeenSet = true; m_targetAction = std::move(value); }
65 inline ModifyScheduledActionRequest& WithTargetAction(ScheduledActionType&& value) { SetTargetAction(std::move(value)); return *this;}
67
69
74 inline const Aws::String& GetSchedule() const{ return m_schedule; }
75 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
76 inline void SetSchedule(const Aws::String& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
77 inline void SetSchedule(Aws::String&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
78 inline void SetSchedule(const char* value) { m_scheduleHasBeenSet = true; m_schedule.assign(value); }
79 inline ModifyScheduledActionRequest& WithSchedule(const Aws::String& value) { SetSchedule(value); return *this;}
80 inline ModifyScheduledActionRequest& WithSchedule(Aws::String&& value) { SetSchedule(std::move(value)); return *this;}
81 inline ModifyScheduledActionRequest& WithSchedule(const char* value) { SetSchedule(value); return *this;}
83
85
89 inline const Aws::String& GetIamRole() const{ return m_iamRole; }
90 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
91 inline void SetIamRole(const Aws::String& value) { m_iamRoleHasBeenSet = true; m_iamRole = value; }
92 inline void SetIamRole(Aws::String&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::move(value); }
93 inline void SetIamRole(const char* value) { m_iamRoleHasBeenSet = true; m_iamRole.assign(value); }
94 inline ModifyScheduledActionRequest& WithIamRole(const Aws::String& value) { SetIamRole(value); return *this;}
95 inline ModifyScheduledActionRequest& WithIamRole(Aws::String&& value) { SetIamRole(std::move(value)); return *this;}
96 inline ModifyScheduledActionRequest& WithIamRole(const char* value) { SetIamRole(value); return *this;}
98
100
103 inline const Aws::String& GetScheduledActionDescription() const{ return m_scheduledActionDescription; }
104 inline bool ScheduledActionDescriptionHasBeenSet() const { return m_scheduledActionDescriptionHasBeenSet; }
105 inline void SetScheduledActionDescription(const Aws::String& value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription = value; }
106 inline void SetScheduledActionDescription(Aws::String&& value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription = std::move(value); }
107 inline void SetScheduledActionDescription(const char* value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription.assign(value); }
112
114
118 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
119 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
120 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
121 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
123 inline ModifyScheduledActionRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
125
127
131 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
132 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
133 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
134 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
135 inline ModifyScheduledActionRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
136 inline ModifyScheduledActionRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
138
140
144 inline bool GetEnable() const{ return m_enable; }
145 inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; }
146 inline void SetEnable(bool value) { m_enableHasBeenSet = true; m_enable = value; }
147 inline ModifyScheduledActionRequest& WithEnable(bool value) { SetEnable(value); return *this;}
149 private:
150
151 Aws::String m_scheduledActionName;
152 bool m_scheduledActionNameHasBeenSet = false;
153
154 ScheduledActionType m_targetAction;
155 bool m_targetActionHasBeenSet = false;
156
157 Aws::String m_schedule;
158 bool m_scheduleHasBeenSet = false;
159
160 Aws::String m_iamRole;
161 bool m_iamRoleHasBeenSet = false;
162
163 Aws::String m_scheduledActionDescription;
164 bool m_scheduledActionDescriptionHasBeenSet = false;
165
166 Aws::Utils::DateTime m_startTime;
167 bool m_startTimeHasBeenSet = false;
168
169 Aws::Utils::DateTime m_endTime;
170 bool m_endTimeHasBeenSet = false;
171
172 bool m_enable;
173 bool m_enableHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace Redshift
178} // namespace Aws
AWS_REDSHIFT_API Aws::String SerializePayload() const override
ModifyScheduledActionRequest & WithIamRole(Aws::String &&value)
ModifyScheduledActionRequest & WithIamRole(const Aws::String &value)
ModifyScheduledActionRequest & WithScheduledActionName(const Aws::String &value)
ModifyScheduledActionRequest & WithScheduledActionName(Aws::String &&value)
ModifyScheduledActionRequest & WithEnable(bool value)
ModifyScheduledActionRequest & WithStartTime(const Aws::Utils::DateTime &value)
ModifyScheduledActionRequest & WithEndTime(const Aws::Utils::DateTime &value)
ModifyScheduledActionRequest & WithTargetAction(ScheduledActionType &&value)
ModifyScheduledActionRequest & WithScheduledActionDescription(const char *value)
ModifyScheduledActionRequest & WithEndTime(Aws::Utils::DateTime &&value)
ModifyScheduledActionRequest & WithScheduledActionDescription(const Aws::String &value)
ModifyScheduledActionRequest & WithScheduledActionDescription(Aws::String &&value)
ModifyScheduledActionRequest & WithSchedule(Aws::String &&value)
ModifyScheduledActionRequest & WithSchedule(const Aws::String &value)
ModifyScheduledActionRequest & WithScheduledActionName(const char *value)
ModifyScheduledActionRequest & WithSchedule(const char *value)
ModifyScheduledActionRequest & WithIamRole(const char *value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyScheduledActionRequest & WithTargetAction(const ScheduledActionType &value)
ModifyScheduledActionRequest & WithStartTime(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String