AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ScheduledUpdateGroupAction.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace AutoScaling {
21namespace Model {
22
29 public:
30 AWS_AUTOSCALING_API ScheduledUpdateGroupAction() = default;
31 AWS_AUTOSCALING_API ScheduledUpdateGroupAction(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetAutoScalingGroupName() const { return m_autoScalingGroupName; }
42 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
43 template <typename AutoScalingGroupNameT = Aws::String>
44 void SetAutoScalingGroupName(AutoScalingGroupNameT&& value) {
45 m_autoScalingGroupNameHasBeenSet = true;
46 m_autoScalingGroupName = std::forward<AutoScalingGroupNameT>(value);
47 }
48 template <typename AutoScalingGroupNameT = Aws::String>
49 ScheduledUpdateGroupAction& WithAutoScalingGroupName(AutoScalingGroupNameT&& value) {
50 SetAutoScalingGroupName(std::forward<AutoScalingGroupNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetScheduledActionName() const { return m_scheduledActionName; }
60 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
61 template <typename ScheduledActionNameT = Aws::String>
62 void SetScheduledActionName(ScheduledActionNameT&& value) {
63 m_scheduledActionNameHasBeenSet = true;
64 m_scheduledActionName = std::forward<ScheduledActionNameT>(value);
65 }
66 template <typename ScheduledActionNameT = Aws::String>
67 ScheduledUpdateGroupAction& WithScheduledActionName(ScheduledActionNameT&& value) {
68 SetScheduledActionName(std::forward<ScheduledActionNameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetScheduledActionARN() const { return m_scheduledActionARN; }
78 inline bool ScheduledActionARNHasBeenSet() const { return m_scheduledActionARNHasBeenSet; }
79 template <typename ScheduledActionARNT = Aws::String>
80 void SetScheduledActionARN(ScheduledActionARNT&& value) {
81 m_scheduledActionARNHasBeenSet = true;
82 m_scheduledActionARN = std::forward<ScheduledActionARNT>(value);
83 }
84 template <typename ScheduledActionARNT = Aws::String>
85 ScheduledUpdateGroupAction& WithScheduledActionARN(ScheduledActionARNT&& value) {
86 SetScheduledActionARN(std::forward<ScheduledActionARNT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetTime() const { return m_time; }
96 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
97 template <typename TimeT = Aws::Utils::DateTime>
98 void SetTime(TimeT&& value) {
99 m_timeHasBeenSet = true;
100 m_time = std::forward<TimeT>(value);
101 }
102 template <typename TimeT = Aws::Utils::DateTime>
104 SetTime(std::forward<TimeT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
115 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
116 template <typename StartTimeT = Aws::Utils::DateTime>
117 void SetStartTime(StartTimeT&& value) {
118 m_startTimeHasBeenSet = true;
119 m_startTime = std::forward<StartTimeT>(value);
120 }
121 template <typename StartTimeT = Aws::Utils::DateTime>
123 SetStartTime(std::forward<StartTimeT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
134 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
135 template <typename EndTimeT = Aws::Utils::DateTime>
136 void SetEndTime(EndTimeT&& value) {
137 m_endTimeHasBeenSet = true;
138 m_endTime = std::forward<EndTimeT>(value);
139 }
140 template <typename EndTimeT = Aws::Utils::DateTime>
142 SetEndTime(std::forward<EndTimeT>(value));
143 return *this;
144 }
146
148
154 inline const Aws::String& GetRecurrence() const { return m_recurrence; }
155 inline bool RecurrenceHasBeenSet() const { return m_recurrenceHasBeenSet; }
156 template <typename RecurrenceT = Aws::String>
157 void SetRecurrence(RecurrenceT&& value) {
158 m_recurrenceHasBeenSet = true;
159 m_recurrence = std::forward<RecurrenceT>(value);
160 }
161 template <typename RecurrenceT = Aws::String>
163 SetRecurrence(std::forward<RecurrenceT>(value));
164 return *this;
165 }
167
169
172 inline int GetMinSize() const { return m_minSize; }
173 inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
174 inline void SetMinSize(int value) {
175 m_minSizeHasBeenSet = true;
176 m_minSize = value;
177 }
179 SetMinSize(value);
180 return *this;
181 }
183
185
188 inline int GetMaxSize() const { return m_maxSize; }
189 inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
190 inline void SetMaxSize(int value) {
191 m_maxSizeHasBeenSet = true;
192 m_maxSize = value;
193 }
195 SetMaxSize(value);
196 return *this;
197 }
199
201
205 inline int GetDesiredCapacity() const { return m_desiredCapacity; }
206 inline bool DesiredCapacityHasBeenSet() const { return m_desiredCapacityHasBeenSet; }
207 inline void SetDesiredCapacity(int value) {
208 m_desiredCapacityHasBeenSet = true;
209 m_desiredCapacity = value;
210 }
212 SetDesiredCapacity(value);
213 return *this;
214 }
216
218
221 inline const Aws::String& GetTimeZone() const { return m_timeZone; }
222 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
223 template <typename TimeZoneT = Aws::String>
224 void SetTimeZone(TimeZoneT&& value) {
225 m_timeZoneHasBeenSet = true;
226 m_timeZone = std::forward<TimeZoneT>(value);
227 }
228 template <typename TimeZoneT = Aws::String>
230 SetTimeZone(std::forward<TimeZoneT>(value));
231 return *this;
232 }
234 private:
235 Aws::String m_autoScalingGroupName;
236
237 Aws::String m_scheduledActionName;
238
239 Aws::String m_scheduledActionARN;
240
241 Aws::Utils::DateTime m_time{};
242
243 Aws::Utils::DateTime m_startTime{};
244
245 Aws::Utils::DateTime m_endTime{};
246
247 Aws::String m_recurrence;
248
249 int m_minSize{0};
250
251 int m_maxSize{0};
252
253 int m_desiredCapacity{0};
254
255 Aws::String m_timeZone;
256 bool m_autoScalingGroupNameHasBeenSet = false;
257 bool m_scheduledActionNameHasBeenSet = false;
258 bool m_scheduledActionARNHasBeenSet = false;
259 bool m_timeHasBeenSet = false;
260 bool m_startTimeHasBeenSet = false;
261 bool m_endTimeHasBeenSet = false;
262 bool m_recurrenceHasBeenSet = false;
263 bool m_minSizeHasBeenSet = false;
264 bool m_maxSizeHasBeenSet = false;
265 bool m_desiredCapacityHasBeenSet = false;
266 bool m_timeZoneHasBeenSet = false;
267};
268
269} // namespace Model
270} // namespace AutoScaling
271} // namespace Aws
ScheduledUpdateGroupAction & WithScheduledActionARN(ScheduledActionARNT &&value)
AWS_AUTOSCALING_API ScheduledUpdateGroupAction()=default
ScheduledUpdateGroupAction & WithEndTime(EndTimeT &&value)
ScheduledUpdateGroupAction & WithAutoScalingGroupName(AutoScalingGroupNameT &&value)
AWS_AUTOSCALING_API ScheduledUpdateGroupAction(const Aws::Utils::Xml::XmlNode &xmlNode)
ScheduledUpdateGroupAction & WithDesiredCapacity(int value)
ScheduledUpdateGroupAction & WithStartTime(StartTimeT &&value)
AWS_AUTOSCALING_API ScheduledUpdateGroupAction & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ScheduledUpdateGroupAction & WithRecurrence(RecurrenceT &&value)
ScheduledUpdateGroupAction & WithScheduledActionName(ScheduledActionNameT &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ScheduledUpdateGroupAction & WithTimeZone(TimeZoneT &&value)
ScheduledUpdateGroupAction & WithTime(TimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream