AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScheduledUpdateGroupActionRequest.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
36 {
37 public:
38 AWS_AUTOSCALING_API ScheduledUpdateGroupActionRequest();
41
42 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetScheduledActionName() const{ return m_scheduledActionName; }
51 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
52 inline void SetScheduledActionName(const Aws::String& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = value; }
53 inline void SetScheduledActionName(Aws::String&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::move(value); }
54 inline void SetScheduledActionName(const char* value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName.assign(value); }
57 inline ScheduledUpdateGroupActionRequest& WithScheduledActionName(const char* value) { SetScheduledActionName(value); return *this;}
59
61
70 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
71 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
72 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
73 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
75 inline ScheduledUpdateGroupActionRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
77
79
82 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
83 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
84 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
85 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
87 inline ScheduledUpdateGroupActionRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
89
91
102 inline const Aws::String& GetRecurrence() const{ return m_recurrence; }
103 inline bool RecurrenceHasBeenSet() const { return m_recurrenceHasBeenSet; }
104 inline void SetRecurrence(const Aws::String& value) { m_recurrenceHasBeenSet = true; m_recurrence = value; }
105 inline void SetRecurrence(Aws::String&& value) { m_recurrenceHasBeenSet = true; m_recurrence = std::move(value); }
106 inline void SetRecurrence(const char* value) { m_recurrenceHasBeenSet = true; m_recurrence.assign(value); }
107 inline ScheduledUpdateGroupActionRequest& WithRecurrence(const Aws::String& value) { SetRecurrence(value); return *this;}
108 inline ScheduledUpdateGroupActionRequest& WithRecurrence(Aws::String&& value) { SetRecurrence(std::move(value)); return *this;}
109 inline ScheduledUpdateGroupActionRequest& WithRecurrence(const char* value) { SetRecurrence(value); return *this;}
111
113
116 inline int GetMinSize() const{ return m_minSize; }
117 inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
118 inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; }
119 inline ScheduledUpdateGroupActionRequest& WithMinSize(int value) { SetMinSize(value); return *this;}
121
123
126 inline int GetMaxSize() const{ return m_maxSize; }
127 inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
128 inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; }
129 inline ScheduledUpdateGroupActionRequest& WithMaxSize(int value) { SetMaxSize(value); return *this;}
131
133
137 inline int GetDesiredCapacity() const{ return m_desiredCapacity; }
138 inline bool DesiredCapacityHasBeenSet() const { return m_desiredCapacityHasBeenSet; }
139 inline void SetDesiredCapacity(int value) { m_desiredCapacityHasBeenSet = true; m_desiredCapacity = value; }
142
144
152 inline const Aws::String& GetTimeZone() const{ return m_timeZone; }
153 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
154 inline void SetTimeZone(const Aws::String& value) { m_timeZoneHasBeenSet = true; m_timeZone = value; }
155 inline void SetTimeZone(Aws::String&& value) { m_timeZoneHasBeenSet = true; m_timeZone = std::move(value); }
156 inline void SetTimeZone(const char* value) { m_timeZoneHasBeenSet = true; m_timeZone.assign(value); }
157 inline ScheduledUpdateGroupActionRequest& WithTimeZone(const Aws::String& value) { SetTimeZone(value); return *this;}
158 inline ScheduledUpdateGroupActionRequest& WithTimeZone(Aws::String&& value) { SetTimeZone(std::move(value)); return *this;}
159 inline ScheduledUpdateGroupActionRequest& WithTimeZone(const char* value) { SetTimeZone(value); return *this;}
161 private:
162
163 Aws::String m_scheduledActionName;
164 bool m_scheduledActionNameHasBeenSet = false;
165
166 Aws::Utils::DateTime m_startTime;
167 bool m_startTimeHasBeenSet = false;
168
169 Aws::Utils::DateTime m_endTime;
170 bool m_endTimeHasBeenSet = false;
171
172 Aws::String m_recurrence;
173 bool m_recurrenceHasBeenSet = false;
174
175 int m_minSize;
176 bool m_minSizeHasBeenSet = false;
177
178 int m_maxSize;
179 bool m_maxSizeHasBeenSet = false;
180
181 int m_desiredCapacity;
182 bool m_desiredCapacityHasBeenSet = false;
183
184 Aws::String m_timeZone;
185 bool m_timeZoneHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace AutoScaling
190} // namespace Aws
ScheduledUpdateGroupActionRequest & WithScheduledActionName(const char *value)
ScheduledUpdateGroupActionRequest & WithScheduledActionName(Aws::String &&value)
AWS_AUTOSCALING_API ScheduledUpdateGroupActionRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ScheduledUpdateGroupActionRequest & WithEndTime(Aws::Utils::DateTime &&value)
ScheduledUpdateGroupActionRequest & WithRecurrence(const char *value)
ScheduledUpdateGroupActionRequest & WithTimeZone(const char *value)
ScheduledUpdateGroupActionRequest & WithScheduledActionName(const Aws::String &value)
ScheduledUpdateGroupActionRequest & WithTimeZone(const Aws::String &value)
ScheduledUpdateGroupActionRequest & WithRecurrence(Aws::String &&value)
ScheduledUpdateGroupActionRequest & WithRecurrence(const Aws::String &value)
ScheduledUpdateGroupActionRequest & WithTimeZone(Aws::String &&value)
ScheduledUpdateGroupActionRequest & WithEndTime(const Aws::Utils::DateTime &value)
ScheduledUpdateGroupActionRequest & WithStartTime(const Aws::Utils::DateTime &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
ScheduledUpdateGroupActionRequest & WithStartTime(Aws::Utils::DateTime &&value)
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