AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateScheduledActionRequest.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 CreateScheduledActionRequest() = default;
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 "CreateScheduledAction"; }
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
46 inline const Aws::String& GetScheduledActionName() const { return m_scheduledActionName; }
47 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
48 template<typename ScheduledActionNameT = Aws::String>
49 void SetScheduledActionName(ScheduledActionNameT&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::forward<ScheduledActionNameT>(value); }
50 template<typename ScheduledActionNameT = Aws::String>
51 CreateScheduledActionRequest& WithScheduledActionName(ScheduledActionNameT&& value) { SetScheduledActionName(std::forward<ScheduledActionNameT>(value)); return *this;}
53
55
60 inline const ScheduledActionType& GetTargetAction() const { return m_targetAction; }
61 inline bool TargetActionHasBeenSet() const { return m_targetActionHasBeenSet; }
62 template<typename TargetActionT = ScheduledActionType>
63 void SetTargetAction(TargetActionT&& value) { m_targetActionHasBeenSet = true; m_targetAction = std::forward<TargetActionT>(value); }
64 template<typename TargetActionT = ScheduledActionType>
65 CreateScheduledActionRequest& WithTargetAction(TargetActionT&& value) { SetTargetAction(std::forward<TargetActionT>(value)); return *this;}
67
69
73 inline const Aws::String& GetSchedule() const { return m_schedule; }
74 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
75 template<typename ScheduleT = Aws::String>
76 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
77 template<typename ScheduleT = Aws::String>
78 CreateScheduledActionRequest& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
80
82
86 inline const Aws::String& GetIamRole() const { return m_iamRole; }
87 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
88 template<typename IamRoleT = Aws::String>
89 void SetIamRole(IamRoleT&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::forward<IamRoleT>(value); }
90 template<typename IamRoleT = Aws::String>
91 CreateScheduledActionRequest& WithIamRole(IamRoleT&& value) { SetIamRole(std::forward<IamRoleT>(value)); return *this;}
93
95
98 inline const Aws::String& GetScheduledActionDescription() const { return m_scheduledActionDescription; }
99 inline bool ScheduledActionDescriptionHasBeenSet() const { return m_scheduledActionDescriptionHasBeenSet; }
100 template<typename ScheduledActionDescriptionT = Aws::String>
101 void SetScheduledActionDescription(ScheduledActionDescriptionT&& value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription = std::forward<ScheduledActionDescriptionT>(value); }
102 template<typename ScheduledActionDescriptionT = Aws::String>
103 CreateScheduledActionRequest& WithScheduledActionDescription(ScheduledActionDescriptionT&& value) { SetScheduledActionDescription(std::forward<ScheduledActionDescriptionT>(value)); return *this;}
105
107
112 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
113 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
114 template<typename StartTimeT = Aws::Utils::DateTime>
115 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
116 template<typename StartTimeT = Aws::Utils::DateTime>
117 CreateScheduledActionRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
119
121
126 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
127 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
128 template<typename EndTimeT = Aws::Utils::DateTime>
129 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
130 template<typename EndTimeT = Aws::Utils::DateTime>
131 CreateScheduledActionRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
133
135
140 inline bool GetEnable() const { return m_enable; }
141 inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; }
142 inline void SetEnable(bool value) { m_enableHasBeenSet = true; m_enable = value; }
143 inline CreateScheduledActionRequest& WithEnable(bool value) { SetEnable(value); return *this;}
145 private:
146
147 Aws::String m_scheduledActionName;
148 bool m_scheduledActionNameHasBeenSet = false;
149
150 ScheduledActionType m_targetAction;
151 bool m_targetActionHasBeenSet = false;
152
153 Aws::String m_schedule;
154 bool m_scheduleHasBeenSet = false;
155
156 Aws::String m_iamRole;
157 bool m_iamRoleHasBeenSet = false;
158
159 Aws::String m_scheduledActionDescription;
160 bool m_scheduledActionDescriptionHasBeenSet = false;
161
162 Aws::Utils::DateTime m_startTime{};
163 bool m_startTimeHasBeenSet = false;
164
165 Aws::Utils::DateTime m_endTime{};
166 bool m_endTimeHasBeenSet = false;
167
168 bool m_enable{false};
169 bool m_enableHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace Redshift
174} // namespace Aws
CreateScheduledActionRequest & WithScheduledActionName(ScheduledActionNameT &&value)
CreateScheduledActionRequest & WithEndTime(EndTimeT &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
CreateScheduledActionRequest & WithSchedule(ScheduleT &&value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateScheduledActionRequest & WithScheduledActionDescription(ScheduledActionDescriptionT &&value)
CreateScheduledActionRequest & WithTargetAction(TargetActionT &&value)
CreateScheduledActionRequest & WithIamRole(IamRoleT &&value)
void SetScheduledActionDescription(ScheduledActionDescriptionT &&value)
CreateScheduledActionRequest & WithStartTime(StartTimeT &&value)
CreateScheduledActionRequest & WithEnable(bool value)
AWS_REDSHIFT_API CreateScheduledActionRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String