AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
50 inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
51 inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
54 inline ScheduledUpdateGroupAction& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
56
58
61 inline const Aws::String& GetScheduledActionName() const{ return m_scheduledActionName; }
62 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
63 inline void SetScheduledActionName(const Aws::String& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = value; }
64 inline void SetScheduledActionName(Aws::String&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::move(value); }
65 inline void SetScheduledActionName(const char* value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName.assign(value); }
67 inline ScheduledUpdateGroupAction& WithScheduledActionName(Aws::String&& value) { SetScheduledActionName(std::move(value)); return *this;}
68 inline ScheduledUpdateGroupAction& WithScheduledActionName(const char* value) { SetScheduledActionName(value); return *this;}
70
72
75 inline const Aws::String& GetScheduledActionARN() const{ return m_scheduledActionARN; }
76 inline bool ScheduledActionARNHasBeenSet() const { return m_scheduledActionARNHasBeenSet; }
77 inline void SetScheduledActionARN(const Aws::String& value) { m_scheduledActionARNHasBeenSet = true; m_scheduledActionARN = value; }
78 inline void SetScheduledActionARN(Aws::String&& value) { m_scheduledActionARNHasBeenSet = true; m_scheduledActionARN = std::move(value); }
79 inline void SetScheduledActionARN(const char* value) { m_scheduledActionARNHasBeenSet = true; m_scheduledActionARN.assign(value); }
81 inline ScheduledUpdateGroupAction& WithScheduledActionARN(Aws::String&& value) { SetScheduledActionARN(std::move(value)); return *this;}
82 inline ScheduledUpdateGroupAction& WithScheduledActionARN(const char* value) { SetScheduledActionARN(value); return *this;}
84
86
89 inline const Aws::Utils::DateTime& GetTime() const{ return m_time; }
90 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
91 inline void SetTime(const Aws::Utils::DateTime& value) { m_timeHasBeenSet = true; m_time = value; }
92 inline void SetTime(Aws::Utils::DateTime&& value) { m_timeHasBeenSet = true; m_time = std::move(value); }
93 inline ScheduledUpdateGroupAction& WithTime(const Aws::Utils::DateTime& value) { SetTime(value); return *this;}
94 inline ScheduledUpdateGroupAction& WithTime(Aws::Utils::DateTime&& value) { SetTime(std::move(value)); return *this;}
96
98
102 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
103 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
104 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
105 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
106 inline ScheduledUpdateGroupAction& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
107 inline ScheduledUpdateGroupAction& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
109
111
115 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
116 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
117 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
118 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
119 inline ScheduledUpdateGroupAction& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
120 inline ScheduledUpdateGroupAction& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
122
124
130 inline const Aws::String& GetRecurrence() const{ return m_recurrence; }
131 inline bool RecurrenceHasBeenSet() const { return m_recurrenceHasBeenSet; }
132 inline void SetRecurrence(const Aws::String& value) { m_recurrenceHasBeenSet = true; m_recurrence = value; }
133 inline void SetRecurrence(Aws::String&& value) { m_recurrenceHasBeenSet = true; m_recurrence = std::move(value); }
134 inline void SetRecurrence(const char* value) { m_recurrenceHasBeenSet = true; m_recurrence.assign(value); }
135 inline ScheduledUpdateGroupAction& WithRecurrence(const Aws::String& value) { SetRecurrence(value); return *this;}
136 inline ScheduledUpdateGroupAction& WithRecurrence(Aws::String&& value) { SetRecurrence(std::move(value)); return *this;}
137 inline ScheduledUpdateGroupAction& WithRecurrence(const char* value) { SetRecurrence(value); return *this;}
139
141
144 inline int GetMinSize() const{ return m_minSize; }
145 inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
146 inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; }
147 inline ScheduledUpdateGroupAction& WithMinSize(int value) { SetMinSize(value); return *this;}
149
151
154 inline int GetMaxSize() const{ return m_maxSize; }
155 inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
156 inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; }
157 inline ScheduledUpdateGroupAction& WithMaxSize(int value) { SetMaxSize(value); return *this;}
159
161
165 inline int GetDesiredCapacity() const{ return m_desiredCapacity; }
166 inline bool DesiredCapacityHasBeenSet() const { return m_desiredCapacityHasBeenSet; }
167 inline void SetDesiredCapacity(int value) { m_desiredCapacityHasBeenSet = true; m_desiredCapacity = value; }
168 inline ScheduledUpdateGroupAction& WithDesiredCapacity(int value) { SetDesiredCapacity(value); return *this;}
170
172
175 inline const Aws::String& GetTimeZone() const{ return m_timeZone; }
176 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
177 inline void SetTimeZone(const Aws::String& value) { m_timeZoneHasBeenSet = true; m_timeZone = value; }
178 inline void SetTimeZone(Aws::String&& value) { m_timeZoneHasBeenSet = true; m_timeZone = std::move(value); }
179 inline void SetTimeZone(const char* value) { m_timeZoneHasBeenSet = true; m_timeZone.assign(value); }
180 inline ScheduledUpdateGroupAction& WithTimeZone(const Aws::String& value) { SetTimeZone(value); return *this;}
181 inline ScheduledUpdateGroupAction& WithTimeZone(Aws::String&& value) { SetTimeZone(std::move(value)); return *this;}
182 inline ScheduledUpdateGroupAction& WithTimeZone(const char* value) { SetTimeZone(value); return *this;}
184 private:
185
186 Aws::String m_autoScalingGroupName;
187 bool m_autoScalingGroupNameHasBeenSet = false;
188
189 Aws::String m_scheduledActionName;
190 bool m_scheduledActionNameHasBeenSet = false;
191
192 Aws::String m_scheduledActionARN;
193 bool m_scheduledActionARNHasBeenSet = false;
194
196 bool m_timeHasBeenSet = false;
197
198 Aws::Utils::DateTime m_startTime;
199 bool m_startTimeHasBeenSet = false;
200
201 Aws::Utils::DateTime m_endTime;
202 bool m_endTimeHasBeenSet = false;
203
204 Aws::String m_recurrence;
205 bool m_recurrenceHasBeenSet = false;
206
207 int m_minSize;
208 bool m_minSizeHasBeenSet = false;
209
210 int m_maxSize;
211 bool m_maxSizeHasBeenSet = false;
212
213 int m_desiredCapacity;
214 bool m_desiredCapacityHasBeenSet = false;
215
216 Aws::String m_timeZone;
217 bool m_timeZoneHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace AutoScaling
222} // namespace Aws
ScheduledUpdateGroupAction & WithRecurrence(Aws::String &&value)
ScheduledUpdateGroupAction & WithScheduledActionName(const Aws::String &value)
ScheduledUpdateGroupAction & WithEndTime(const Aws::Utils::DateTime &value)
ScheduledUpdateGroupAction & WithScheduledActionName(Aws::String &&value)
ScheduledUpdateGroupAction & WithAutoScalingGroupName(const char *value)
ScheduledUpdateGroupAction & WithTimeZone(const Aws::String &value)
AWS_AUTOSCALING_API ScheduledUpdateGroupAction(const Aws::Utils::Xml::XmlNode &xmlNode)
ScheduledUpdateGroupAction & WithDesiredCapacity(int value)
ScheduledUpdateGroupAction & WithScheduledActionARN(const char *value)
ScheduledUpdateGroupAction & WithStartTime(const Aws::Utils::DateTime &value)
ScheduledUpdateGroupAction & WithTimeZone(const char *value)
ScheduledUpdateGroupAction & WithEndTime(Aws::Utils::DateTime &&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 & WithAutoScalingGroupName(const Aws::String &value)
ScheduledUpdateGroupAction & WithScheduledActionName(const char *value)
ScheduledUpdateGroupAction & WithStartTime(Aws::Utils::DateTime &&value)
ScheduledUpdateGroupAction & WithTime(Aws::Utils::DateTime &&value)
ScheduledUpdateGroupAction & WithTime(const Aws::Utils::DateTime &value)
ScheduledUpdateGroupAction & WithAutoScalingGroupName(Aws::String &&value)
ScheduledUpdateGroupAction & WithScheduledActionARN(const Aws::String &value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ScheduledUpdateGroupAction & WithRecurrence(const Aws::String &value)
ScheduledUpdateGroupAction & WithTimeZone(Aws::String &&value)
ScheduledUpdateGroupAction & WithScheduledActionARN(Aws::String &&value)
ScheduledUpdateGroupAction & WithRecurrence(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream