AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateScheduledActionRequest.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 CreateScheduledActionRequest() = 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 "CreateScheduledAction"; }
31
32 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
33
34 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
43 inline bool GetEnabled() const { return m_enabled; }
44 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
45 inline void SetEnabled(bool value) {
46 m_enabledHasBeenSet = true;
47 m_enabled = value;
48 }
50 SetEnabled(value);
51 return *this;
52 }
54
56
60 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
61 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
62 template <typename EndTimeT = Aws::Utils::DateTime>
63 void SetEndTime(EndTimeT&& value) {
64 m_endTimeHasBeenSet = true;
65 m_endTime = std::forward<EndTimeT>(value);
66 }
67 template <typename EndTimeT = Aws::Utils::DateTime>
69 SetEndTime(std::forward<EndTimeT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetNamespaceName() const { return m_namespaceName; }
79 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
80 template <typename NamespaceNameT = Aws::String>
81 void SetNamespaceName(NamespaceNameT&& value) {
82 m_namespaceNameHasBeenSet = true;
83 m_namespaceName = std::forward<NamespaceNameT>(value);
84 }
85 template <typename NamespaceNameT = Aws::String>
87 SetNamespaceName(std::forward<NamespaceNameT>(value));
88 return *this;
89 }
91
93
104 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
105 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
106 template <typename RoleArnT = Aws::String>
107 void SetRoleArn(RoleArnT&& value) {
108 m_roleArnHasBeenSet = true;
109 m_roleArn = std::forward<RoleArnT>(value);
110 }
111 template <typename RoleArnT = Aws::String>
113 SetRoleArn(std::forward<RoleArnT>(value));
114 return *this;
115 }
117
119
131 inline const Schedule& GetSchedule() const { return m_schedule; }
132 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
133 template <typename ScheduleT = Schedule>
134 void SetSchedule(ScheduleT&& value) {
135 m_scheduleHasBeenSet = true;
136 m_schedule = std::forward<ScheduleT>(value);
137 }
138 template <typename ScheduleT = Schedule>
140 SetSchedule(std::forward<ScheduleT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetScheduledActionDescription() const { return m_scheduledActionDescription; }
150 inline bool ScheduledActionDescriptionHasBeenSet() const { return m_scheduledActionDescriptionHasBeenSet; }
151 template <typename ScheduledActionDescriptionT = Aws::String>
152 void SetScheduledActionDescription(ScheduledActionDescriptionT&& value) {
153 m_scheduledActionDescriptionHasBeenSet = true;
154 m_scheduledActionDescription = std::forward<ScheduledActionDescriptionT>(value);
155 }
156 template <typename ScheduledActionDescriptionT = Aws::String>
157 CreateScheduledActionRequest& WithScheduledActionDescription(ScheduledActionDescriptionT&& value) {
158 SetScheduledActionDescription(std::forward<ScheduledActionDescriptionT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::String& GetScheduledActionName() const { return m_scheduledActionName; }
168 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
169 template <typename ScheduledActionNameT = Aws::String>
170 void SetScheduledActionName(ScheduledActionNameT&& value) {
171 m_scheduledActionNameHasBeenSet = true;
172 m_scheduledActionName = std::forward<ScheduledActionNameT>(value);
173 }
174 template <typename ScheduledActionNameT = Aws::String>
176 SetScheduledActionName(std::forward<ScheduledActionNameT>(value));
177 return *this;
178 }
180
182
186 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
187 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
188 template <typename StartTimeT = Aws::Utils::DateTime>
189 void SetStartTime(StartTimeT&& value) {
190 m_startTimeHasBeenSet = true;
191 m_startTime = std::forward<StartTimeT>(value);
192 }
193 template <typename StartTimeT = Aws::Utils::DateTime>
195 SetStartTime(std::forward<StartTimeT>(value));
196 return *this;
197 }
199
201
202 inline const TargetAction& GetTargetAction() const { return m_targetAction; }
203 inline bool TargetActionHasBeenSet() const { return m_targetActionHasBeenSet; }
204 template <typename TargetActionT = TargetAction>
205 void SetTargetAction(TargetActionT&& value) {
206 m_targetActionHasBeenSet = true;
207 m_targetAction = std::forward<TargetActionT>(value);
208 }
209 template <typename TargetActionT = TargetAction>
211 SetTargetAction(std::forward<TargetActionT>(value));
212 return *this;
213 }
215 private:
216 bool m_enabled{false};
217
218 Aws::Utils::DateTime m_endTime{};
219
220 Aws::String m_namespaceName;
221
222 Aws::String m_roleArn;
223
224 Schedule m_schedule;
225
226 Aws::String m_scheduledActionDescription;
227
228 Aws::String m_scheduledActionName;
229
230 Aws::Utils::DateTime m_startTime{};
231
232 TargetAction m_targetAction;
233 bool m_enabledHasBeenSet = false;
234 bool m_endTimeHasBeenSet = false;
235 bool m_namespaceNameHasBeenSet = false;
236 bool m_roleArnHasBeenSet = false;
237 bool m_scheduleHasBeenSet = false;
238 bool m_scheduledActionDescriptionHasBeenSet = false;
239 bool m_scheduledActionNameHasBeenSet = false;
240 bool m_startTimeHasBeenSet = false;
241 bool m_targetActionHasBeenSet = false;
242};
243
244} // namespace Model
245} // namespace RedshiftServerless
246} // namespace Aws
CreateScheduledActionRequest & WithStartTime(StartTimeT &&value)
CreateScheduledActionRequest & WithSchedule(ScheduleT &&value)
CreateScheduledActionRequest & WithNamespaceName(NamespaceNameT &&value)
CreateScheduledActionRequest & WithScheduledActionDescription(ScheduledActionDescriptionT &&value)
AWS_REDSHIFTSERVERLESS_API CreateScheduledActionRequest()=default
CreateScheduledActionRequest & WithEndTime(EndTimeT &&value)
CreateScheduledActionRequest & WithScheduledActionName(ScheduledActionNameT &&value)
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateScheduledActionRequest & WithTargetAction(TargetActionT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String