AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutScheduledUpdateGroupActionRequest.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/AutoScalingRequest.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 AutoScaling
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_AUTOSCALING_API PutScheduledUpdateGroupActionRequest() = default;
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_AUTOSCALING_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::String& GetAutoScalingGroupName() const { return m_autoScalingGroupName; }
45 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
46 template<typename AutoScalingGroupNameT = Aws::String>
47 void SetAutoScalingGroupName(AutoScalingGroupNameT&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::forward<AutoScalingGroupNameT>(value); }
48 template<typename AutoScalingGroupNameT = Aws::String>
49 PutScheduledUpdateGroupActionRequest& WithAutoScalingGroupName(AutoScalingGroupNameT&& value) { SetAutoScalingGroupName(std::forward<AutoScalingGroupNameT>(value)); return *this;}
51
53
56 inline const Aws::String& GetScheduledActionName() const { return m_scheduledActionName; }
57 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
58 template<typename ScheduledActionNameT = Aws::String>
59 void SetScheduledActionName(ScheduledActionNameT&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::forward<ScheduledActionNameT>(value); }
60 template<typename ScheduledActionNameT = Aws::String>
61 PutScheduledUpdateGroupActionRequest& WithScheduledActionName(ScheduledActionNameT&& value) { SetScheduledActionName(std::forward<ScheduledActionNameT>(value)); return *this;}
63
65
68 inline const Aws::Utils::DateTime& GetTime() const { return m_time; }
69 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
70 template<typename TimeT = Aws::Utils::DateTime>
71 void SetTime(TimeT&& value) { m_timeHasBeenSet = true; m_time = std::forward<TimeT>(value); }
72 template<typename TimeT = Aws::Utils::DateTime>
73 PutScheduledUpdateGroupActionRequest& WithTime(TimeT&& value) { SetTime(std::forward<TimeT>(value)); return *this;}
75
77
85 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
86 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
87 template<typename StartTimeT = Aws::Utils::DateTime>
88 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
89 template<typename StartTimeT = Aws::Utils::DateTime>
90 PutScheduledUpdateGroupActionRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
92
94
98 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
99 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
100 template<typename EndTimeT = Aws::Utils::DateTime>
101 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
102 template<typename EndTimeT = Aws::Utils::DateTime>
103 PutScheduledUpdateGroupActionRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
105
107
117 inline const Aws::String& GetRecurrence() const { return m_recurrence; }
118 inline bool RecurrenceHasBeenSet() const { return m_recurrenceHasBeenSet; }
119 template<typename RecurrenceT = Aws::String>
120 void SetRecurrence(RecurrenceT&& value) { m_recurrenceHasBeenSet = true; m_recurrence = std::forward<RecurrenceT>(value); }
121 template<typename RecurrenceT = Aws::String>
122 PutScheduledUpdateGroupActionRequest& WithRecurrence(RecurrenceT&& value) { SetRecurrence(std::forward<RecurrenceT>(value)); return *this;}
124
126
129 inline int GetMinSize() const { return m_minSize; }
130 inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
131 inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; }
132 inline PutScheduledUpdateGroupActionRequest& WithMinSize(int value) { SetMinSize(value); return *this;}
134
136
139 inline int GetMaxSize() const { return m_maxSize; }
140 inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
141 inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; }
142 inline PutScheduledUpdateGroupActionRequest& WithMaxSize(int value) { SetMaxSize(value); return *this;}
144
146
153 inline int GetDesiredCapacity() const { return m_desiredCapacity; }
154 inline bool DesiredCapacityHasBeenSet() const { return m_desiredCapacityHasBeenSet; }
155 inline void SetDesiredCapacity(int value) { m_desiredCapacityHasBeenSet = true; m_desiredCapacity = value; }
158
160
168 inline const Aws::String& GetTimeZone() const { return m_timeZone; }
169 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
170 template<typename TimeZoneT = Aws::String>
171 void SetTimeZone(TimeZoneT&& value) { m_timeZoneHasBeenSet = true; m_timeZone = std::forward<TimeZoneT>(value); }
172 template<typename TimeZoneT = Aws::String>
173 PutScheduledUpdateGroupActionRequest& WithTimeZone(TimeZoneT&& value) { SetTimeZone(std::forward<TimeZoneT>(value)); return *this;}
175 private:
176
177 Aws::String m_autoScalingGroupName;
178 bool m_autoScalingGroupNameHasBeenSet = false;
179
180 Aws::String m_scheduledActionName;
181 bool m_scheduledActionNameHasBeenSet = false;
182
183 Aws::Utils::DateTime m_time{};
184 bool m_timeHasBeenSet = false;
185
186 Aws::Utils::DateTime m_startTime{};
187 bool m_startTimeHasBeenSet = false;
188
189 Aws::Utils::DateTime m_endTime{};
190 bool m_endTimeHasBeenSet = false;
191
192 Aws::String m_recurrence;
193 bool m_recurrenceHasBeenSet = false;
194
195 int m_minSize{0};
196 bool m_minSizeHasBeenSet = false;
197
198 int m_maxSize{0};
199 bool m_maxSizeHasBeenSet = false;
200
201 int m_desiredCapacity{0};
202 bool m_desiredCapacityHasBeenSet = false;
203
204 Aws::String m_timeZone;
205 bool m_timeZoneHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace AutoScaling
210} // namespace Aws
PutScheduledUpdateGroupActionRequest & WithEndTime(EndTimeT &&value)
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
PutScheduledUpdateGroupActionRequest & WithStartTime(StartTimeT &&value)
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
AWS_AUTOSCALING_API PutScheduledUpdateGroupActionRequest()=default
PutScheduledUpdateGroupActionRequest & WithTimeZone(TimeZoneT &&value)
PutScheduledUpdateGroupActionRequest & WithAutoScalingGroupName(AutoScalingGroupNameT &&value)
PutScheduledUpdateGroupActionRequest & WithRecurrence(RecurrenceT &&value)
PutScheduledUpdateGroupActionRequest & WithScheduledActionName(ScheduledActionNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String