AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateScheduledActionRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/redshift-serverless/RedshiftServerlessRequest.h>
10#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
11#include <aws/redshift-serverless/model/Schedule.h>
12#include <aws/redshift-serverless/model/TargetAction.h>
13
14#include <utility>
15
16namespace Aws {
17namespace RedshiftServerless {
18namespace Model {
19
23 public:
24 AWS_REDSHIFTSERVERLESS_API UpdateScheduledActionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateScheduledAction"; }
31
32 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
33
34 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline bool GetEnabled() const { return m_enabled; }
41 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
42 inline void SetEnabled(bool value) {
43 m_enabledHasBeenSet = true;
44 m_enabled = value;
45 }
47 SetEnabled(value);
48 return *this;
49 }
51
53
56 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
57 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
58 template <typename EndTimeT = Aws::Utils::DateTime>
59 void SetEndTime(EndTimeT&& value) {
60 m_endTimeHasBeenSet = true;
61 m_endTime = std::forward<EndTimeT>(value);
62 }
63 template <typename EndTimeT = Aws::Utils::DateTime>
65 SetEndTime(std::forward<EndTimeT>(value));
66 return *this;
67 }
69
71
82 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
83 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
84 template <typename RoleArnT = Aws::String>
85 void SetRoleArn(RoleArnT&& value) {
86 m_roleArnHasBeenSet = true;
87 m_roleArn = std::forward<RoleArnT>(value);
88 }
89 template <typename RoleArnT = Aws::String>
91 SetRoleArn(std::forward<RoleArnT>(value));
92 return *this;
93 }
95
97
109 inline const Schedule& GetSchedule() const { return m_schedule; }
110 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
111 template <typename ScheduleT = Schedule>
112 void SetSchedule(ScheduleT&& value) {
113 m_scheduleHasBeenSet = true;
114 m_schedule = std::forward<ScheduleT>(value);
115 }
116 template <typename ScheduleT = Schedule>
118 SetSchedule(std::forward<ScheduleT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetScheduledActionDescription() const { return m_scheduledActionDescription; }
128 inline bool ScheduledActionDescriptionHasBeenSet() const { return m_scheduledActionDescriptionHasBeenSet; }
129 template <typename ScheduledActionDescriptionT = Aws::String>
130 void SetScheduledActionDescription(ScheduledActionDescriptionT&& value) {
131 m_scheduledActionDescriptionHasBeenSet = true;
132 m_scheduledActionDescription = std::forward<ScheduledActionDescriptionT>(value);
133 }
134 template <typename ScheduledActionDescriptionT = Aws::String>
135 UpdateScheduledActionRequest& WithScheduledActionDescription(ScheduledActionDescriptionT&& value) {
136 SetScheduledActionDescription(std::forward<ScheduledActionDescriptionT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetScheduledActionName() const { return m_scheduledActionName; }
146 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
147 template <typename ScheduledActionNameT = Aws::String>
148 void SetScheduledActionName(ScheduledActionNameT&& value) {
149 m_scheduledActionNameHasBeenSet = true;
150 m_scheduledActionName = std::forward<ScheduledActionNameT>(value);
151 }
152 template <typename ScheduledActionNameT = Aws::String>
154 SetScheduledActionName(std::forward<ScheduledActionNameT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
164 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
165 template <typename StartTimeT = Aws::Utils::DateTime>
166 void SetStartTime(StartTimeT&& value) {
167 m_startTimeHasBeenSet = true;
168 m_startTime = std::forward<StartTimeT>(value);
169 }
170 template <typename StartTimeT = Aws::Utils::DateTime>
172 SetStartTime(std::forward<StartTimeT>(value));
173 return *this;
174 }
176
178
179 inline const TargetAction& GetTargetAction() const { return m_targetAction; }
180 inline bool TargetActionHasBeenSet() const { return m_targetActionHasBeenSet; }
181 template <typename TargetActionT = TargetAction>
182 void SetTargetAction(TargetActionT&& value) {
183 m_targetActionHasBeenSet = true;
184 m_targetAction = std::forward<TargetActionT>(value);
185 }
186 template <typename TargetActionT = TargetAction>
188 SetTargetAction(std::forward<TargetActionT>(value));
189 return *this;
190 }
192 private:
193 bool m_enabled{false};
194
195 Aws::Utils::DateTime m_endTime{};
196
197 Aws::String m_roleArn;
198
199 Schedule m_schedule;
200
201 Aws::String m_scheduledActionDescription;
202
203 Aws::String m_scheduledActionName;
204
205 Aws::Utils::DateTime m_startTime{};
206
207 TargetAction m_targetAction;
208 bool m_enabledHasBeenSet = false;
209 bool m_endTimeHasBeenSet = false;
210 bool m_roleArnHasBeenSet = false;
211 bool m_scheduleHasBeenSet = false;
212 bool m_scheduledActionDescriptionHasBeenSet = false;
213 bool m_scheduledActionNameHasBeenSet = false;
214 bool m_startTimeHasBeenSet = false;
215 bool m_targetActionHasBeenSet = false;
216};
217
218} // namespace Model
219} // namespace RedshiftServerless
220} // namespace Aws
UpdateScheduledActionRequest & WithScheduledActionDescription(ScheduledActionDescriptionT &&value)
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateScheduledActionRequest & WithEndTime(EndTimeT &&value)
UpdateScheduledActionRequest & WithSchedule(ScheduleT &&value)
UpdateScheduledActionRequest & WithScheduledActionName(ScheduledActionNameT &&value)
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
AWS_REDSHIFTSERVERLESS_API UpdateScheduledActionRequest()=default
UpdateScheduledActionRequest & WithTargetAction(TargetActionT &&value)
UpdateScheduledActionRequest & WithRoleArn(RoleArnT &&value)
UpdateScheduledActionRequest & WithStartTime(StartTimeT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String