AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateScheduledActionRequest.h
1
6#pragma once
7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/redshift-serverless/RedshiftServerlessRequest.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/redshift-serverless/model/Schedule.h>
12#include <aws/redshift-serverless/model/TargetAction.h>
13#include <utility>
14
15namespace Aws
16{
17namespace RedshiftServerless
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_REDSHIFTSERVERLESS_API CreateScheduledActionRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateScheduledAction"; }
34
35 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
36
37 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
47 inline bool GetEnabled() const { return m_enabled; }
48 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
49 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
50 inline CreateScheduledActionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
52
54
58 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
59 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
60 template<typename EndTimeT = Aws::Utils::DateTime>
61 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
62 template<typename EndTimeT = Aws::Utils::DateTime>
63 CreateScheduledActionRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
65
67
70 inline const Aws::String& GetNamespaceName() const { return m_namespaceName; }
71 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
72 template<typename NamespaceNameT = Aws::String>
73 void SetNamespaceName(NamespaceNameT&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::forward<NamespaceNameT>(value); }
74 template<typename NamespaceNameT = Aws::String>
75 CreateScheduledActionRequest& WithNamespaceName(NamespaceNameT&& value) { SetNamespaceName(std::forward<NamespaceNameT>(value)); return *this;}
77
79
90 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
91 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
92 template<typename RoleArnT = Aws::String>
93 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
94 template<typename RoleArnT = Aws::String>
95 CreateScheduledActionRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
97
99
111 inline const Schedule& GetSchedule() const { return m_schedule; }
112 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
113 template<typename ScheduleT = Schedule>
114 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
115 template<typename ScheduleT = Schedule>
116 CreateScheduledActionRequest& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
118
120
123 inline const Aws::String& GetScheduledActionDescription() const { return m_scheduledActionDescription; }
124 inline bool ScheduledActionDescriptionHasBeenSet() const { return m_scheduledActionDescriptionHasBeenSet; }
125 template<typename ScheduledActionDescriptionT = Aws::String>
126 void SetScheduledActionDescription(ScheduledActionDescriptionT&& value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription = std::forward<ScheduledActionDescriptionT>(value); }
127 template<typename ScheduledActionDescriptionT = Aws::String>
128 CreateScheduledActionRequest& WithScheduledActionDescription(ScheduledActionDescriptionT&& value) { SetScheduledActionDescription(std::forward<ScheduledActionDescriptionT>(value)); return *this;}
130
132
135 inline const Aws::String& GetScheduledActionName() const { return m_scheduledActionName; }
136 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
137 template<typename ScheduledActionNameT = Aws::String>
138 void SetScheduledActionName(ScheduledActionNameT&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::forward<ScheduledActionNameT>(value); }
139 template<typename ScheduledActionNameT = Aws::String>
140 CreateScheduledActionRequest& WithScheduledActionName(ScheduledActionNameT&& value) { SetScheduledActionName(std::forward<ScheduledActionNameT>(value)); return *this;}
142
144
148 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
149 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
150 template<typename StartTimeT = Aws::Utils::DateTime>
151 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
152 template<typename StartTimeT = Aws::Utils::DateTime>
153 CreateScheduledActionRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
155
157
158 inline const TargetAction& GetTargetAction() const { return m_targetAction; }
159 inline bool TargetActionHasBeenSet() const { return m_targetActionHasBeenSet; }
160 template<typename TargetActionT = TargetAction>
161 void SetTargetAction(TargetActionT&& value) { m_targetActionHasBeenSet = true; m_targetAction = std::forward<TargetActionT>(value); }
162 template<typename TargetActionT = TargetAction>
163 CreateScheduledActionRequest& WithTargetAction(TargetActionT&& value) { SetTargetAction(std::forward<TargetActionT>(value)); return *this;}
165 private:
166
167 bool m_enabled{false};
168 bool m_enabledHasBeenSet = false;
169
170 Aws::Utils::DateTime m_endTime{};
171 bool m_endTimeHasBeenSet = false;
172
173 Aws::String m_namespaceName;
174 bool m_namespaceNameHasBeenSet = false;
175
176 Aws::String m_roleArn;
177 bool m_roleArnHasBeenSet = false;
178
179 Schedule m_schedule;
180 bool m_scheduleHasBeenSet = false;
181
182 Aws::String m_scheduledActionDescription;
183 bool m_scheduledActionDescriptionHasBeenSet = false;
184
185 Aws::String m_scheduledActionName;
186 bool m_scheduledActionNameHasBeenSet = false;
187
188 Aws::Utils::DateTime m_startTime{};
189 bool m_startTimeHasBeenSet = false;
190
191 TargetAction m_targetAction;
192 bool m_targetActionHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace RedshiftServerless
197} // 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)
CreateScheduledActionRequest & WithRoleArn(RoleArnT &&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