AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ScheduledUpdateGroupActionRequest.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
32 public:
33 AWS_AUTOSCALING_API ScheduledUpdateGroupActionRequest() = default;
36
37 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::String& GetScheduledActionName() const { return m_scheduledActionName; }
45 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
46 template <typename ScheduledActionNameT = Aws::String>
47 void SetScheduledActionName(ScheduledActionNameT&& value) {
48 m_scheduledActionNameHasBeenSet = true;
49 m_scheduledActionName = std::forward<ScheduledActionNameT>(value);
50 }
51 template <typename ScheduledActionNameT = Aws::String>
53 SetScheduledActionName(std::forward<ScheduledActionNameT>(value));
54 return *this;
55 }
57
59
68 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
69 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
70 template <typename StartTimeT = Aws::Utils::DateTime>
71 void SetStartTime(StartTimeT&& value) {
72 m_startTimeHasBeenSet = true;
73 m_startTime = std::forward<StartTimeT>(value);
74 }
75 template <typename StartTimeT = Aws::Utils::DateTime>
77 SetStartTime(std::forward<StartTimeT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
87 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
88 template <typename EndTimeT = Aws::Utils::DateTime>
89 void SetEndTime(EndTimeT&& value) {
90 m_endTimeHasBeenSet = true;
91 m_endTime = std::forward<EndTimeT>(value);
92 }
93 template <typename EndTimeT = Aws::Utils::DateTime>
95 SetEndTime(std::forward<EndTimeT>(value));
96 return *this;
97 }
99
101
112 inline const Aws::String& GetRecurrence() const { return m_recurrence; }
113 inline bool RecurrenceHasBeenSet() const { return m_recurrenceHasBeenSet; }
114 template <typename RecurrenceT = Aws::String>
115 void SetRecurrence(RecurrenceT&& value) {
116 m_recurrenceHasBeenSet = true;
117 m_recurrence = std::forward<RecurrenceT>(value);
118 }
119 template <typename RecurrenceT = Aws::String>
121 SetRecurrence(std::forward<RecurrenceT>(value));
122 return *this;
123 }
125
127
130 inline int GetMinSize() const { return m_minSize; }
131 inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
132 inline void SetMinSize(int value) {
133 m_minSizeHasBeenSet = true;
134 m_minSize = value;
135 }
137 SetMinSize(value);
138 return *this;
139 }
141
143
146 inline int GetMaxSize() const { return m_maxSize; }
147 inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
148 inline void SetMaxSize(int value) {
149 m_maxSizeHasBeenSet = true;
150 m_maxSize = value;
151 }
153 SetMaxSize(value);
154 return *this;
155 }
157
159
163 inline int GetDesiredCapacity() const { return m_desiredCapacity; }
164 inline bool DesiredCapacityHasBeenSet() const { return m_desiredCapacityHasBeenSet; }
165 inline void SetDesiredCapacity(int value) {
166 m_desiredCapacityHasBeenSet = true;
167 m_desiredCapacity = value;
168 }
170 SetDesiredCapacity(value);
171 return *this;
172 }
174
176
184 inline const Aws::String& GetTimeZone() const { return m_timeZone; }
185 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
186 template <typename TimeZoneT = Aws::String>
187 void SetTimeZone(TimeZoneT&& value) {
188 m_timeZoneHasBeenSet = true;
189 m_timeZone = std::forward<TimeZoneT>(value);
190 }
191 template <typename TimeZoneT = Aws::String>
193 SetTimeZone(std::forward<TimeZoneT>(value));
194 return *this;
195 }
197 private:
198 Aws::String m_scheduledActionName;
199
200 Aws::Utils::DateTime m_startTime{};
201
202 Aws::Utils::DateTime m_endTime{};
203
204 Aws::String m_recurrence;
205
206 int m_minSize{0};
207
208 int m_maxSize{0};
209
210 int m_desiredCapacity{0};
211
212 Aws::String m_timeZone;
213 bool m_scheduledActionNameHasBeenSet = false;
214 bool m_startTimeHasBeenSet = false;
215 bool m_endTimeHasBeenSet = false;
216 bool m_recurrenceHasBeenSet = false;
217 bool m_minSizeHasBeenSet = false;
218 bool m_maxSizeHasBeenSet = false;
219 bool m_desiredCapacityHasBeenSet = false;
220 bool m_timeZoneHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace AutoScaling
225} // namespace Aws
ScheduledUpdateGroupActionRequest & WithStartTime(StartTimeT &&value)
AWS_AUTOSCALING_API ScheduledUpdateGroupActionRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ScheduledUpdateGroupActionRequest & WithTimeZone(TimeZoneT &&value)
ScheduledUpdateGroupActionRequest & WithRecurrence(RecurrenceT &&value)
AWS_AUTOSCALING_API ScheduledUpdateGroupActionRequest()=default
ScheduledUpdateGroupActionRequest & WithEndTime(EndTimeT &&value)
ScheduledUpdateGroupActionRequest & WithScheduledActionName(ScheduledActionNameT &&value)
AWS_AUTOSCALING_API ScheduledUpdateGroupActionRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream