AWS SDK for C++  1.8.71
AWS SDK for C++
PutScheduledUpdateGroupActionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace AutoScaling
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "PutScheduledUpdateGroupAction"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
44 
48  inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
49 
53  inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
54 
58  inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
59 
63  inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
64 
68  inline PutScheduledUpdateGroupActionRequest& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;}
69 
73  inline PutScheduledUpdateGroupActionRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;}
74 
78  inline PutScheduledUpdateGroupActionRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
79 
80 
84  inline const Aws::String& GetScheduledActionName() const{ return m_scheduledActionName; }
85 
89  inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
90 
94  inline void SetScheduledActionName(const Aws::String& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = value; }
95 
99  inline void SetScheduledActionName(Aws::String&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::move(value); }
100 
104  inline void SetScheduledActionName(const char* value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName.assign(value); }
105 
109  inline PutScheduledUpdateGroupActionRequest& WithScheduledActionName(const Aws::String& value) { SetScheduledActionName(value); return *this;}
110 
114  inline PutScheduledUpdateGroupActionRequest& WithScheduledActionName(Aws::String&& value) { SetScheduledActionName(std::move(value)); return *this;}
115 
119  inline PutScheduledUpdateGroupActionRequest& WithScheduledActionName(const char* value) { SetScheduledActionName(value); return *this;}
120 
121 
125  inline const Aws::Utils::DateTime& GetTime() const{ return m_time; }
126 
130  inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
131 
135  inline void SetTime(const Aws::Utils::DateTime& value) { m_timeHasBeenSet = true; m_time = value; }
136 
140  inline void SetTime(Aws::Utils::DateTime&& value) { m_timeHasBeenSet = true; m_time = std::move(value); }
141 
145  inline PutScheduledUpdateGroupActionRequest& WithTime(const Aws::Utils::DateTime& value) { SetTime(value); return *this;}
146 
150  inline PutScheduledUpdateGroupActionRequest& WithTime(Aws::Utils::DateTime&& value) { SetTime(std::move(value)); return *this;}
151 
152 
162  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
163 
173  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
174 
184  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
185 
195  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
196 
206  inline PutScheduledUpdateGroupActionRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
207 
217  inline PutScheduledUpdateGroupActionRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
218 
219 
224  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
225 
230  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
231 
236  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
237 
242  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
243 
248  inline PutScheduledUpdateGroupActionRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
249 
254  inline PutScheduledUpdateGroupActionRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
255 
256 
267  inline const Aws::String& GetRecurrence() const{ return m_recurrence; }
268 
279  inline bool RecurrenceHasBeenSet() const { return m_recurrenceHasBeenSet; }
280 
291  inline void SetRecurrence(const Aws::String& value) { m_recurrenceHasBeenSet = true; m_recurrence = value; }
292 
303  inline void SetRecurrence(Aws::String&& value) { m_recurrenceHasBeenSet = true; m_recurrence = std::move(value); }
304 
315  inline void SetRecurrence(const char* value) { m_recurrenceHasBeenSet = true; m_recurrence.assign(value); }
316 
327  inline PutScheduledUpdateGroupActionRequest& WithRecurrence(const Aws::String& value) { SetRecurrence(value); return *this;}
328 
339  inline PutScheduledUpdateGroupActionRequest& WithRecurrence(Aws::String&& value) { SetRecurrence(std::move(value)); return *this;}
340 
351  inline PutScheduledUpdateGroupActionRequest& WithRecurrence(const char* value) { SetRecurrence(value); return *this;}
352 
353 
357  inline int GetMinSize() const{ return m_minSize; }
358 
362  inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
363 
367  inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; }
368 
372  inline PutScheduledUpdateGroupActionRequest& WithMinSize(int value) { SetMinSize(value); return *this;}
373 
374 
378  inline int GetMaxSize() const{ return m_maxSize; }
379 
383  inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
384 
388  inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; }
389 
393  inline PutScheduledUpdateGroupActionRequest& WithMaxSize(int value) { SetMaxSize(value); return *this;}
394 
395 
401  inline int GetDesiredCapacity() const{ return m_desiredCapacity; }
402 
408  inline bool DesiredCapacityHasBeenSet() const { return m_desiredCapacityHasBeenSet; }
409 
415  inline void SetDesiredCapacity(int value) { m_desiredCapacityHasBeenSet = true; m_desiredCapacity = value; }
416 
422  inline PutScheduledUpdateGroupActionRequest& WithDesiredCapacity(int value) { SetDesiredCapacity(value); return *this;}
423 
424  private:
425 
426  Aws::String m_autoScalingGroupName;
427  bool m_autoScalingGroupNameHasBeenSet;
428 
429  Aws::String m_scheduledActionName;
430  bool m_scheduledActionNameHasBeenSet;
431 
432  Aws::Utils::DateTime m_time;
433  bool m_timeHasBeenSet;
434 
435  Aws::Utils::DateTime m_startTime;
436  bool m_startTimeHasBeenSet;
437 
438  Aws::Utils::DateTime m_endTime;
439  bool m_endTimeHasBeenSet;
440 
441  Aws::String m_recurrence;
442  bool m_recurrenceHasBeenSet;
443 
444  int m_minSize;
445  bool m_minSizeHasBeenSet;
446 
447  int m_maxSize;
448  bool m_maxSizeHasBeenSet;
449 
450  int m_desiredCapacity;
451  bool m_desiredCapacityHasBeenSet;
452  };
453 
454 } // namespace Model
455 } // namespace AutoScaling
456 } // namespace Aws
PutScheduledUpdateGroupActionRequest & WithTime(const Aws::Utils::DateTime &value)
PutScheduledUpdateGroupActionRequest & WithAutoScalingGroupName(const char *value)
PutScheduledUpdateGroupActionRequest & WithTime(Aws::Utils::DateTime &&value)
PutScheduledUpdateGroupActionRequest & WithRecurrence(const Aws::String &value)
PutScheduledUpdateGroupActionRequest & WithAutoScalingGroupName(const Aws::String &value)
PutScheduledUpdateGroupActionRequest & WithStartTime(Aws::Utils::DateTime &&value)
PutScheduledUpdateGroupActionRequest & WithScheduledActionName(Aws::String &&value)
PutScheduledUpdateGroupActionRequest & WithRecurrence(Aws::String &&value)
PutScheduledUpdateGroupActionRequest & WithRecurrence(const char *value)
PutScheduledUpdateGroupActionRequest & WithAutoScalingGroupName(Aws::String &&value)
PutScheduledUpdateGroupActionRequest & WithEndTime(Aws::Utils::DateTime &&value)
PutScheduledUpdateGroupActionRequest & WithScheduledActionName(const Aws::String &value)
PutScheduledUpdateGroupActionRequest & WithScheduledActionName(const char *value)
PutScheduledUpdateGroupActionRequest & WithEndTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PutScheduledUpdateGroupActionRequest & WithStartTime(const Aws::Utils::DateTime &value)
#define AWS_AUTOSCALING_API