AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
47 inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
48 inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
53
55
58 inline const Aws::String& GetScheduledActionName() const{ return m_scheduledActionName; }
59 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
60 inline void SetScheduledActionName(const Aws::String& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = value; }
61 inline void SetScheduledActionName(Aws::String&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::move(value); }
62 inline void SetScheduledActionName(const char* value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName.assign(value); }
67
69
72 inline const Aws::Utils::DateTime& GetTime() const{ return m_time; }
73 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
74 inline void SetTime(const Aws::Utils::DateTime& value) { m_timeHasBeenSet = true; m_time = value; }
75 inline void SetTime(Aws::Utils::DateTime&& value) { m_timeHasBeenSet = true; m_time = std::move(value); }
76 inline PutScheduledUpdateGroupActionRequest& WithTime(const Aws::Utils::DateTime& value) { SetTime(value); return *this;}
77 inline PutScheduledUpdateGroupActionRequest& WithTime(Aws::Utils::DateTime&& value) { SetTime(std::move(value)); return *this;}
79
81
89 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
90 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
91 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
92 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
94 inline PutScheduledUpdateGroupActionRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
96
98
102 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
103 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
104 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
105 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
107 inline PutScheduledUpdateGroupActionRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
109
111
121 inline const Aws::String& GetRecurrence() const{ return m_recurrence; }
122 inline bool RecurrenceHasBeenSet() const { return m_recurrenceHasBeenSet; }
123 inline void SetRecurrence(const Aws::String& value) { m_recurrenceHasBeenSet = true; m_recurrence = value; }
124 inline void SetRecurrence(Aws::String&& value) { m_recurrenceHasBeenSet = true; m_recurrence = std::move(value); }
125 inline void SetRecurrence(const char* value) { m_recurrenceHasBeenSet = true; m_recurrence.assign(value); }
127 inline PutScheduledUpdateGroupActionRequest& WithRecurrence(Aws::String&& value) { SetRecurrence(std::move(value)); return *this;}
128 inline PutScheduledUpdateGroupActionRequest& WithRecurrence(const char* value) { SetRecurrence(value); return *this;}
130
132
135 inline int GetMinSize() const{ return m_minSize; }
136 inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
137 inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; }
138 inline PutScheduledUpdateGroupActionRequest& WithMinSize(int value) { SetMinSize(value); return *this;}
140
142
145 inline int GetMaxSize() const{ return m_maxSize; }
146 inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
147 inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; }
148 inline PutScheduledUpdateGroupActionRequest& WithMaxSize(int value) { SetMaxSize(value); return *this;}
150
152
159 inline int GetDesiredCapacity() const{ return m_desiredCapacity; }
160 inline bool DesiredCapacityHasBeenSet() const { return m_desiredCapacityHasBeenSet; }
161 inline void SetDesiredCapacity(int value) { m_desiredCapacityHasBeenSet = true; m_desiredCapacity = value; }
164
166
174 inline const Aws::String& GetTimeZone() const{ return m_timeZone; }
175 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
176 inline void SetTimeZone(const Aws::String& value) { m_timeZoneHasBeenSet = true; m_timeZone = value; }
177 inline void SetTimeZone(Aws::String&& value) { m_timeZoneHasBeenSet = true; m_timeZone = std::move(value); }
178 inline void SetTimeZone(const char* value) { m_timeZoneHasBeenSet = true; m_timeZone.assign(value); }
179 inline PutScheduledUpdateGroupActionRequest& WithTimeZone(const Aws::String& value) { SetTimeZone(value); return *this;}
180 inline PutScheduledUpdateGroupActionRequest& WithTimeZone(Aws::String&& value) { SetTimeZone(std::move(value)); return *this;}
181 inline PutScheduledUpdateGroupActionRequest& WithTimeZone(const char* value) { SetTimeZone(value); return *this;}
183 private:
184
185 Aws::String m_autoScalingGroupName;
186 bool m_autoScalingGroupNameHasBeenSet = false;
187
188 Aws::String m_scheduledActionName;
189 bool m_scheduledActionNameHasBeenSet = false;
190
192 bool m_timeHasBeenSet = false;
193
194 Aws::Utils::DateTime m_startTime;
195 bool m_startTimeHasBeenSet = false;
196
197 Aws::Utils::DateTime m_endTime;
198 bool m_endTimeHasBeenSet = false;
199
200 Aws::String m_recurrence;
201 bool m_recurrenceHasBeenSet = false;
202
203 int m_minSize;
204 bool m_minSizeHasBeenSet = false;
205
206 int m_maxSize;
207 bool m_maxSizeHasBeenSet = false;
208
209 int m_desiredCapacity;
210 bool m_desiredCapacityHasBeenSet = false;
211
212 Aws::String m_timeZone;
213 bool m_timeZoneHasBeenSet = false;
214 };
215
216} // namespace Model
217} // namespace AutoScaling
218} // namespace Aws
PutScheduledUpdateGroupActionRequest & WithTimeZone(const char *value)
PutScheduledUpdateGroupActionRequest & WithTimeZone(const Aws::String &value)
PutScheduledUpdateGroupActionRequest & WithEndTime(Aws::Utils::DateTime &&value)
PutScheduledUpdateGroupActionRequest & WithRecurrence(Aws::String &&value)
PutScheduledUpdateGroupActionRequest & WithRecurrence(const char *value)
PutScheduledUpdateGroupActionRequest & WithScheduledActionName(const Aws::String &value)
PutScheduledUpdateGroupActionRequest & WithAutoScalingGroupName(const Aws::String &value)
PutScheduledUpdateGroupActionRequest & WithScheduledActionName(const char *value)
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
PutScheduledUpdateGroupActionRequest & WithRecurrence(const Aws::String &value)
PutScheduledUpdateGroupActionRequest & WithTime(const Aws::Utils::DateTime &value)
PutScheduledUpdateGroupActionRequest & WithTimeZone(Aws::String &&value)
PutScheduledUpdateGroupActionRequest & WithAutoScalingGroupName(Aws::String &&value)
PutScheduledUpdateGroupActionRequest & WithStartTime(Aws::Utils::DateTime &&value)
PutScheduledUpdateGroupActionRequest & WithTime(Aws::Utils::DateTime &&value)
PutScheduledUpdateGroupActionRequest & WithScheduledActionName(Aws::String &&value)
PutScheduledUpdateGroupActionRequest & WithEndTime(const Aws::Utils::DateTime &value)
PutScheduledUpdateGroupActionRequest & WithAutoScalingGroupName(const char *value)
PutScheduledUpdateGroupActionRequest & WithStartTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String