AWS SDK for C++  0.12.9
AWS SDK for C++
PutScheduledUpdateGroupActionRequest.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 AutoScaling
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
39  inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
40 
44  inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
45 
49  inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
50 
54  inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
55 
59  inline PutScheduledUpdateGroupActionRequest& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;}
60 
64  inline PutScheduledUpdateGroupActionRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(value); return *this;}
65 
69  inline PutScheduledUpdateGroupActionRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
70 
74  inline const Aws::String& GetScheduledActionName() const{ return m_scheduledActionName; }
75 
79  inline void SetScheduledActionName(const Aws::String& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = value; }
80 
84  inline void SetScheduledActionName(Aws::String&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = value; }
85 
89  inline void SetScheduledActionName(const char* value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName.assign(value); }
90 
94  inline PutScheduledUpdateGroupActionRequest& WithScheduledActionName(const Aws::String& value) { SetScheduledActionName(value); return *this;}
95 
99  inline PutScheduledUpdateGroupActionRequest& WithScheduledActionName(Aws::String&& value) { SetScheduledActionName(value); return *this;}
100 
104  inline PutScheduledUpdateGroupActionRequest& WithScheduledActionName(const char* value) { SetScheduledActionName(value); return *this;}
105 
109  inline const Aws::Utils::DateTime& GetTime() const{ return m_time; }
110 
114  inline void SetTime(const Aws::Utils::DateTime& value) { m_timeHasBeenSet = true; m_time = value; }
115 
119  inline void SetTime(Aws::Utils::DateTime&& value) { m_timeHasBeenSet = true; m_time = value; }
120 
124  inline PutScheduledUpdateGroupActionRequest& WithTime(const Aws::Utils::DateTime& value) { SetTime(value); return *this;}
125 
129  inline PutScheduledUpdateGroupActionRequest& WithTime(Aws::Utils::DateTime&& value) { SetTime(value); return *this;}
130 
139  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
140 
149  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
150 
159  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
160 
169  inline PutScheduledUpdateGroupActionRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
170 
179  inline PutScheduledUpdateGroupActionRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(value); return *this;}
180 
184  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
185 
189  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
190 
194  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
195 
199  inline PutScheduledUpdateGroupActionRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
200 
204  inline PutScheduledUpdateGroupActionRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(value); return *this;}
205 
214  inline const Aws::String& GetRecurrence() const{ return m_recurrence; }
215 
224  inline void SetRecurrence(const Aws::String& value) { m_recurrenceHasBeenSet = true; m_recurrence = value; }
225 
234  inline void SetRecurrence(Aws::String&& value) { m_recurrenceHasBeenSet = true; m_recurrence = value; }
235 
244  inline void SetRecurrence(const char* value) { m_recurrenceHasBeenSet = true; m_recurrence.assign(value); }
245 
254  inline PutScheduledUpdateGroupActionRequest& WithRecurrence(const Aws::String& value) { SetRecurrence(value); return *this;}
255 
264  inline PutScheduledUpdateGroupActionRequest& WithRecurrence(Aws::String&& value) { SetRecurrence(value); return *this;}
265 
274  inline PutScheduledUpdateGroupActionRequest& WithRecurrence(const char* value) { SetRecurrence(value); return *this;}
275 
279  inline long GetMinSize() const{ return m_minSize; }
280 
284  inline void SetMinSize(long value) { m_minSizeHasBeenSet = true; m_minSize = value; }
285 
289  inline PutScheduledUpdateGroupActionRequest& WithMinSize(long value) { SetMinSize(value); return *this;}
290 
294  inline long GetMaxSize() const{ return m_maxSize; }
295 
299  inline void SetMaxSize(long value) { m_maxSizeHasBeenSet = true; m_maxSize = value; }
300 
304  inline PutScheduledUpdateGroupActionRequest& WithMaxSize(long value) { SetMaxSize(value); return *this;}
305 
309  inline long GetDesiredCapacity() const{ return m_desiredCapacity; }
310 
314  inline void SetDesiredCapacity(long value) { m_desiredCapacityHasBeenSet = true; m_desiredCapacity = value; }
315 
319  inline PutScheduledUpdateGroupActionRequest& WithDesiredCapacity(long value) { SetDesiredCapacity(value); return *this;}
320 
321  private:
322  Aws::String m_autoScalingGroupName;
323  bool m_autoScalingGroupNameHasBeenSet;
324  Aws::String m_scheduledActionName;
325  bool m_scheduledActionNameHasBeenSet;
326  Aws::Utils::DateTime m_time;
327  bool m_timeHasBeenSet;
328  Aws::Utils::DateTime m_startTime;
329  bool m_startTimeHasBeenSet;
330  Aws::Utils::DateTime m_endTime;
331  bool m_endTimeHasBeenSet;
332  Aws::String m_recurrence;
333  bool m_recurrenceHasBeenSet;
334  long m_minSize;
335  bool m_minSizeHasBeenSet;
336  long m_maxSize;
337  bool m_maxSizeHasBeenSet;
338  long m_desiredCapacity;
339  bool m_desiredCapacityHasBeenSet;
340  };
341 
342 } // namespace Model
343 } // namespace AutoScaling
344 } // 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
JSON (JavaScript Object Notation).