AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = 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 "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 template<typename ScheduledActionNameT = Aws::String>
48 void SetScheduledActionName(ScheduledActionNameT&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::forward<ScheduledActionNameT>(value); }
49 template<typename ScheduledActionNameT = Aws::String>
50 ModifyScheduledActionRequest& WithScheduledActionName(ScheduledActionNameT&& value) { SetScheduledActionName(std::forward<ScheduledActionNameT>(value)); return *this;}
52
54
58 inline const ScheduledActionType& GetTargetAction() const { return m_targetAction; }
59 inline bool TargetActionHasBeenSet() const { return m_targetActionHasBeenSet; }
60 template<typename TargetActionT = ScheduledActionType>
61 void SetTargetAction(TargetActionT&& value) { m_targetActionHasBeenSet = true; m_targetAction = std::forward<TargetActionT>(value); }
62 template<typename TargetActionT = ScheduledActionType>
63 ModifyScheduledActionRequest& WithTargetAction(TargetActionT&& value) { SetTargetAction(std::forward<TargetActionT>(value)); return *this;}
65
67
72 inline const Aws::String& GetSchedule() const { return m_schedule; }
73 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
74 template<typename ScheduleT = Aws::String>
75 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
76 template<typename ScheduleT = Aws::String>
77 ModifyScheduledActionRequest& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
79
81
85 inline const Aws::String& GetIamRole() const { return m_iamRole; }
86 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
87 template<typename IamRoleT = Aws::String>
88 void SetIamRole(IamRoleT&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::forward<IamRoleT>(value); }
89 template<typename IamRoleT = Aws::String>
90 ModifyScheduledActionRequest& WithIamRole(IamRoleT&& value) { SetIamRole(std::forward<IamRoleT>(value)); return *this;}
92
94
97 inline const Aws::String& GetScheduledActionDescription() const { return m_scheduledActionDescription; }
98 inline bool ScheduledActionDescriptionHasBeenSet() const { return m_scheduledActionDescriptionHasBeenSet; }
99 template<typename ScheduledActionDescriptionT = Aws::String>
100 void SetScheduledActionDescription(ScheduledActionDescriptionT&& value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription = std::forward<ScheduledActionDescriptionT>(value); }
101 template<typename ScheduledActionDescriptionT = Aws::String>
102 ModifyScheduledActionRequest& WithScheduledActionDescription(ScheduledActionDescriptionT&& value) { SetScheduledActionDescription(std::forward<ScheduledActionDescriptionT>(value)); return *this;}
104
106
110 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
111 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
112 template<typename StartTimeT = Aws::Utils::DateTime>
113 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
114 template<typename StartTimeT = Aws::Utils::DateTime>
115 ModifyScheduledActionRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
117
119
123 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
124 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
125 template<typename EndTimeT = Aws::Utils::DateTime>
126 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
127 template<typename EndTimeT = Aws::Utils::DateTime>
128 ModifyScheduledActionRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
130
132
136 inline bool GetEnable() const { return m_enable; }
137 inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; }
138 inline void SetEnable(bool value) { m_enableHasBeenSet = true; m_enable = value; }
139 inline ModifyScheduledActionRequest& WithEnable(bool value) { SetEnable(value); return *this;}
141 private:
142
143 Aws::String m_scheduledActionName;
144 bool m_scheduledActionNameHasBeenSet = false;
145
146 ScheduledActionType m_targetAction;
147 bool m_targetActionHasBeenSet = false;
148
149 Aws::String m_schedule;
150 bool m_scheduleHasBeenSet = false;
151
152 Aws::String m_iamRole;
153 bool m_iamRoleHasBeenSet = false;
154
155 Aws::String m_scheduledActionDescription;
156 bool m_scheduledActionDescriptionHasBeenSet = false;
157
158 Aws::Utils::DateTime m_startTime{};
159 bool m_startTimeHasBeenSet = false;
160
161 Aws::Utils::DateTime m_endTime{};
162 bool m_endTimeHasBeenSet = false;
163
164 bool m_enable{false};
165 bool m_enableHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace Redshift
170} // namespace Aws
AWS_REDSHIFT_API Aws::String SerializePayload() const override
ModifyScheduledActionRequest & WithScheduledActionDescription(ScheduledActionDescriptionT &&value)
ModifyScheduledActionRequest & WithIamRole(IamRoleT &&value)
ModifyScheduledActionRequest & WithEnable(bool value)
ModifyScheduledActionRequest & WithEndTime(EndTimeT &&value)
ModifyScheduledActionRequest & WithStartTime(StartTimeT &&value)
void SetScheduledActionDescription(ScheduledActionDescriptionT &&value)
AWS_REDSHIFT_API ModifyScheduledActionRequest()=default
ModifyScheduledActionRequest & WithScheduledActionName(ScheduledActionNameT &&value)
ModifyScheduledActionRequest & WithSchedule(ScheduleT &&value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyScheduledActionRequest & WithTargetAction(TargetActionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String