AWS SDK for C++  0.14.3
AWS SDK for C++
ScheduledUpdateGroupAction.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace AutoScaling
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  ScheduledUpdateGroupAction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
52 
56  inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
57 
61  inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
62 
66  inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
67 
71  inline ScheduledUpdateGroupAction& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;}
72 
76  inline ScheduledUpdateGroupAction& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(value); return *this;}
77 
81  inline ScheduledUpdateGroupAction& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
82 
86  inline const Aws::String& GetScheduledActionName() const{ return m_scheduledActionName; }
87 
91  inline void SetScheduledActionName(const Aws::String& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = value; }
92 
96  inline void SetScheduledActionName(Aws::String&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = value; }
97 
101  inline void SetScheduledActionName(const char* value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName.assign(value); }
102 
106  inline ScheduledUpdateGroupAction& WithScheduledActionName(const Aws::String& value) { SetScheduledActionName(value); return *this;}
107 
111  inline ScheduledUpdateGroupAction& WithScheduledActionName(Aws::String&& value) { SetScheduledActionName(value); return *this;}
112 
116  inline ScheduledUpdateGroupAction& WithScheduledActionName(const char* value) { SetScheduledActionName(value); return *this;}
117 
121  inline const Aws::String& GetScheduledActionARN() const{ return m_scheduledActionARN; }
122 
126  inline void SetScheduledActionARN(const Aws::String& value) { m_scheduledActionARNHasBeenSet = true; m_scheduledActionARN = value; }
127 
131  inline void SetScheduledActionARN(Aws::String&& value) { m_scheduledActionARNHasBeenSet = true; m_scheduledActionARN = value; }
132 
136  inline void SetScheduledActionARN(const char* value) { m_scheduledActionARNHasBeenSet = true; m_scheduledActionARN.assign(value); }
137 
141  inline ScheduledUpdateGroupAction& WithScheduledActionARN(const Aws::String& value) { SetScheduledActionARN(value); return *this;}
142 
146  inline ScheduledUpdateGroupAction& WithScheduledActionARN(Aws::String&& value) { SetScheduledActionARN(value); return *this;}
147 
151  inline ScheduledUpdateGroupAction& WithScheduledActionARN(const char* value) { SetScheduledActionARN(value); return *this;}
152 
156  inline const Aws::Utils::DateTime& GetTime() const{ return m_time; }
157 
161  inline void SetTime(const Aws::Utils::DateTime& value) { m_timeHasBeenSet = true; m_time = value; }
162 
166  inline void SetTime(Aws::Utils::DateTime&& value) { m_timeHasBeenSet = true; m_time = value; }
167 
171  inline ScheduledUpdateGroupAction& WithTime(const Aws::Utils::DateTime& value) { SetTime(value); return *this;}
172 
176  inline ScheduledUpdateGroupAction& WithTime(Aws::Utils::DateTime&& value) { SetTime(value); return *this;}
177 
184  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
185 
192  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
193 
200  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
201 
208  inline ScheduledUpdateGroupAction& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
209 
216  inline ScheduledUpdateGroupAction& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(value); return *this;}
217 
222  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
223 
228  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
229 
234  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
235 
240  inline ScheduledUpdateGroupAction& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
241 
246  inline ScheduledUpdateGroupAction& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(value); return *this;}
247 
251  inline const Aws::String& GetRecurrence() const{ return m_recurrence; }
252 
256  inline void SetRecurrence(const Aws::String& value) { m_recurrenceHasBeenSet = true; m_recurrence = value; }
257 
261  inline void SetRecurrence(Aws::String&& value) { m_recurrenceHasBeenSet = true; m_recurrence = value; }
262 
266  inline void SetRecurrence(const char* value) { m_recurrenceHasBeenSet = true; m_recurrence.assign(value); }
267 
271  inline ScheduledUpdateGroupAction& WithRecurrence(const Aws::String& value) { SetRecurrence(value); return *this;}
272 
276  inline ScheduledUpdateGroupAction& WithRecurrence(Aws::String&& value) { SetRecurrence(value); return *this;}
277 
281  inline ScheduledUpdateGroupAction& WithRecurrence(const char* value) { SetRecurrence(value); return *this;}
282 
286  inline int GetMinSize() const{ return m_minSize; }
287 
291  inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; }
292 
296  inline ScheduledUpdateGroupAction& WithMinSize(int value) { SetMinSize(value); return *this;}
297 
301  inline int GetMaxSize() const{ return m_maxSize; }
302 
306  inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; }
307 
311  inline ScheduledUpdateGroupAction& WithMaxSize(int value) { SetMaxSize(value); return *this;}
312 
316  inline int GetDesiredCapacity() const{ return m_desiredCapacity; }
317 
321  inline void SetDesiredCapacity(int value) { m_desiredCapacityHasBeenSet = true; m_desiredCapacity = value; }
322 
326  inline ScheduledUpdateGroupAction& WithDesiredCapacity(int value) { SetDesiredCapacity(value); return *this;}
327 
328  private:
329  Aws::String m_autoScalingGroupName;
330  bool m_autoScalingGroupNameHasBeenSet;
331  Aws::String m_scheduledActionName;
332  bool m_scheduledActionNameHasBeenSet;
333  Aws::String m_scheduledActionARN;
334  bool m_scheduledActionARNHasBeenSet;
335  Aws::Utils::DateTime m_time;
336  bool m_timeHasBeenSet;
337  Aws::Utils::DateTime m_startTime;
338  bool m_startTimeHasBeenSet;
339  Aws::Utils::DateTime m_endTime;
340  bool m_endTimeHasBeenSet;
341  Aws::String m_recurrence;
342  bool m_recurrenceHasBeenSet;
343  int m_minSize;
344  bool m_minSizeHasBeenSet;
345  int m_maxSize;
346  bool m_maxSizeHasBeenSet;
347  int m_desiredCapacity;
348  bool m_desiredCapacityHasBeenSet;
349  };
350 
351 } // namespace Model
352 } // namespace AutoScaling
353 } // namespace Aws
ScheduledUpdateGroupAction & WithAutoScalingGroupName(Aws::String &&value)
ScheduledUpdateGroupAction & WithDesiredCapacity(int value)
ScheduledUpdateGroupAction & WithScheduledActionName(Aws::String &&value)
ScheduledUpdateGroupAction & WithAutoScalingGroupName(const char *value)
ScheduledUpdateGroupAction & WithRecurrence(Aws::String &&value)
ScheduledUpdateGroupAction & WithRecurrence(const Aws::String &value)
ScheduledUpdateGroupAction & WithScheduledActionARN(Aws::String &&value)
ScheduledUpdateGroupAction & WithScheduledActionARN(const char *value)
ScheduledUpdateGroupAction & WithScheduledActionName(const Aws::String &value)
ScheduledUpdateGroupAction & WithAutoScalingGroupName(const Aws::String &value)
ScheduledUpdateGroupAction & WithStartTime(Aws::Utils::DateTime &&value)
ScheduledUpdateGroupAction & WithStartTime(const Aws::Utils::DateTime &value)
ScheduledUpdateGroupAction & WithScheduledActionName(const char *value)
ScheduledUpdateGroupAction & WithTime(const Aws::Utils::DateTime &value)
ScheduledUpdateGroupAction & WithEndTime(const Aws::Utils::DateTime &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
ScheduledUpdateGroupAction & WithScheduledActionARN(const Aws::String &value)
ScheduledUpdateGroupAction & WithRecurrence(const char *value)
ScheduledUpdateGroupAction & WithEndTime(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ScheduledUpdateGroupAction & WithTime(Aws::Utils::DateTime &&value)
#define AWS_AUTOSCALING_API
JSON (JavaScript Object Notation).