AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ScheduledUpdateGroupAction.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace AutoScaling
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_AUTOSCALING_API ScheduledUpdateGroupAction() = default;
36 AWS_AUTOSCALING_API ScheduledUpdateGroupAction(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetAutoScalingGroupName() const { return m_autoScalingGroupName; }
48 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
49 template<typename AutoScalingGroupNameT = Aws::String>
50 void SetAutoScalingGroupName(AutoScalingGroupNameT&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::forward<AutoScalingGroupNameT>(value); }
51 template<typename AutoScalingGroupNameT = Aws::String>
52 ScheduledUpdateGroupAction& WithAutoScalingGroupName(AutoScalingGroupNameT&& value) { SetAutoScalingGroupName(std::forward<AutoScalingGroupNameT>(value)); return *this;}
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) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::forward<ScheduledActionNameT>(value); }
63 template<typename ScheduledActionNameT = Aws::String>
64 ScheduledUpdateGroupAction& WithScheduledActionName(ScheduledActionNameT&& value) { SetScheduledActionName(std::forward<ScheduledActionNameT>(value)); return *this;}
66
68
71 inline const Aws::String& GetScheduledActionARN() const { return m_scheduledActionARN; }
72 inline bool ScheduledActionARNHasBeenSet() const { return m_scheduledActionARNHasBeenSet; }
73 template<typename ScheduledActionARNT = Aws::String>
74 void SetScheduledActionARN(ScheduledActionARNT&& value) { m_scheduledActionARNHasBeenSet = true; m_scheduledActionARN = std::forward<ScheduledActionARNT>(value); }
75 template<typename ScheduledActionARNT = Aws::String>
76 ScheduledUpdateGroupAction& WithScheduledActionARN(ScheduledActionARNT&& value) { SetScheduledActionARN(std::forward<ScheduledActionARNT>(value)); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetTime() const { return m_time; }
84 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
85 template<typename TimeT = Aws::Utils::DateTime>
86 void SetTime(TimeT&& value) { m_timeHasBeenSet = true; m_time = std::forward<TimeT>(value); }
87 template<typename TimeT = Aws::Utils::DateTime>
88 ScheduledUpdateGroupAction& WithTime(TimeT&& value) { SetTime(std::forward<TimeT>(value)); return *this;}
90
92
96 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
97 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
98 template<typename StartTimeT = Aws::Utils::DateTime>
99 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
100 template<typename StartTimeT = Aws::Utils::DateTime>
101 ScheduledUpdateGroupAction& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
103
105
109 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
110 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
111 template<typename EndTimeT = Aws::Utils::DateTime>
112 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
113 template<typename EndTimeT = Aws::Utils::DateTime>
114 ScheduledUpdateGroupAction& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
116
118
124 inline const Aws::String& GetRecurrence() const { return m_recurrence; }
125 inline bool RecurrenceHasBeenSet() const { return m_recurrenceHasBeenSet; }
126 template<typename RecurrenceT = Aws::String>
127 void SetRecurrence(RecurrenceT&& value) { m_recurrenceHasBeenSet = true; m_recurrence = std::forward<RecurrenceT>(value); }
128 template<typename RecurrenceT = Aws::String>
129 ScheduledUpdateGroupAction& WithRecurrence(RecurrenceT&& value) { SetRecurrence(std::forward<RecurrenceT>(value)); return *this;}
131
133
136 inline int GetMinSize() const { return m_minSize; }
137 inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
138 inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; }
139 inline ScheduledUpdateGroupAction& WithMinSize(int value) { SetMinSize(value); return *this;}
141
143
146 inline int GetMaxSize() const { return m_maxSize; }
147 inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
148 inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; }
149 inline ScheduledUpdateGroupAction& WithMaxSize(int value) { SetMaxSize(value); return *this;}
151
153
157 inline int GetDesiredCapacity() const { return m_desiredCapacity; }
158 inline bool DesiredCapacityHasBeenSet() const { return m_desiredCapacityHasBeenSet; }
159 inline void SetDesiredCapacity(int value) { m_desiredCapacityHasBeenSet = true; m_desiredCapacity = value; }
160 inline ScheduledUpdateGroupAction& WithDesiredCapacity(int value) { SetDesiredCapacity(value); return *this;}
162
164
167 inline const Aws::String& GetTimeZone() const { return m_timeZone; }
168 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
169 template<typename TimeZoneT = Aws::String>
170 void SetTimeZone(TimeZoneT&& value) { m_timeZoneHasBeenSet = true; m_timeZone = std::forward<TimeZoneT>(value); }
171 template<typename TimeZoneT = Aws::String>
172 ScheduledUpdateGroupAction& WithTimeZone(TimeZoneT&& value) { SetTimeZone(std::forward<TimeZoneT>(value)); return *this;}
174 private:
175
176 Aws::String m_autoScalingGroupName;
177 bool m_autoScalingGroupNameHasBeenSet = false;
178
179 Aws::String m_scheduledActionName;
180 bool m_scheduledActionNameHasBeenSet = false;
181
182 Aws::String m_scheduledActionARN;
183 bool m_scheduledActionARNHasBeenSet = false;
184
185 Aws::Utils::DateTime m_time{};
186 bool m_timeHasBeenSet = false;
187
188 Aws::Utils::DateTime m_startTime{};
189 bool m_startTimeHasBeenSet = false;
190
191 Aws::Utils::DateTime m_endTime{};
192 bool m_endTimeHasBeenSet = false;
193
194 Aws::String m_recurrence;
195 bool m_recurrenceHasBeenSet = false;
196
197 int m_minSize{0};
198 bool m_minSizeHasBeenSet = false;
199
200 int m_maxSize{0};
201 bool m_maxSizeHasBeenSet = false;
202
203 int m_desiredCapacity{0};
204 bool m_desiredCapacityHasBeenSet = false;
205
206 Aws::String m_timeZone;
207 bool m_timeZoneHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace AutoScaling
212} // 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