AWS SDK for C++  0.14.3
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 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
40  inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
41 
45  inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
46 
50  inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
51 
55  inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
56 
60  inline PutScheduledUpdateGroupActionRequest& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;}
61 
65  inline PutScheduledUpdateGroupActionRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(value); return *this;}
66 
70  inline PutScheduledUpdateGroupActionRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
71 
75  inline const Aws::String& GetScheduledActionName() const{ return m_scheduledActionName; }
76 
80  inline void SetScheduledActionName(const Aws::String& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = value; }
81 
85  inline void SetScheduledActionName(Aws::String&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = value; }
86 
90  inline void SetScheduledActionName(const char* value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName.assign(value); }
91 
95  inline PutScheduledUpdateGroupActionRequest& WithScheduledActionName(const Aws::String& value) { SetScheduledActionName(value); return *this;}
96 
100  inline PutScheduledUpdateGroupActionRequest& WithScheduledActionName(Aws::String&& value) { SetScheduledActionName(value); return *this;}
101 
105  inline PutScheduledUpdateGroupActionRequest& WithScheduledActionName(const char* value) { SetScheduledActionName(value); return *this;}
106 
110  inline const Aws::Utils::DateTime& GetTime() const{ return m_time; }
111 
115  inline void SetTime(const Aws::Utils::DateTime& value) { m_timeHasBeenSet = true; m_time = value; }
116 
120  inline void SetTime(Aws::Utils::DateTime&& value) { m_timeHasBeenSet = true; m_time = value; }
121 
125  inline PutScheduledUpdateGroupActionRequest& WithTime(const Aws::Utils::DateTime& value) { SetTime(value); return *this;}
126 
130  inline PutScheduledUpdateGroupActionRequest& WithTime(Aws::Utils::DateTime&& value) { SetTime(value); return *this;}
131 
140  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
141 
150  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
151 
160  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
161 
170  inline PutScheduledUpdateGroupActionRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
171 
180  inline PutScheduledUpdateGroupActionRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(value); return *this;}
181 
185  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
186 
190  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
191 
195  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
196 
200  inline PutScheduledUpdateGroupActionRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
201 
205  inline PutScheduledUpdateGroupActionRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(value); return *this;}
206 
215  inline const Aws::String& GetRecurrence() const{ return m_recurrence; }
216 
225  inline void SetRecurrence(const Aws::String& value) { m_recurrenceHasBeenSet = true; m_recurrence = value; }
226 
235  inline void SetRecurrence(Aws::String&& value) { m_recurrenceHasBeenSet = true; m_recurrence = value; }
236 
245  inline void SetRecurrence(const char* value) { m_recurrenceHasBeenSet = true; m_recurrence.assign(value); }
246 
255  inline PutScheduledUpdateGroupActionRequest& WithRecurrence(const Aws::String& value) { SetRecurrence(value); return *this;}
256 
265  inline PutScheduledUpdateGroupActionRequest& WithRecurrence(Aws::String&& value) { SetRecurrence(value); return *this;}
266 
275  inline PutScheduledUpdateGroupActionRequest& WithRecurrence(const char* value) { SetRecurrence(value); return *this;}
276 
280  inline int GetMinSize() const{ return m_minSize; }
281 
285  inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; }
286 
290  inline PutScheduledUpdateGroupActionRequest& WithMinSize(int value) { SetMinSize(value); return *this;}
291 
295  inline int GetMaxSize() const{ return m_maxSize; }
296 
300  inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; }
301 
305  inline PutScheduledUpdateGroupActionRequest& WithMaxSize(int value) { SetMaxSize(value); return *this;}
306 
310  inline int GetDesiredCapacity() const{ return m_desiredCapacity; }
311 
315  inline void SetDesiredCapacity(int value) { m_desiredCapacityHasBeenSet = true; m_desiredCapacity = value; }
316 
320  inline PutScheduledUpdateGroupActionRequest& WithDesiredCapacity(int value) { SetDesiredCapacity(value); return *this;}
321 
322  private:
323  Aws::String m_autoScalingGroupName;
324  bool m_autoScalingGroupNameHasBeenSet;
325  Aws::String m_scheduledActionName;
326  bool m_scheduledActionNameHasBeenSet;
327  Aws::Utils::DateTime m_time;
328  bool m_timeHasBeenSet;
329  Aws::Utils::DateTime m_startTime;
330  bool m_startTimeHasBeenSet;
331  Aws::Utils::DateTime m_endTime;
332  bool m_endTimeHasBeenSet;
333  Aws::String m_recurrence;
334  bool m_recurrenceHasBeenSet;
335  int m_minSize;
336  bool m_minSizeHasBeenSet;
337  int m_maxSize;
338  bool m_maxSizeHasBeenSet;
339  int m_desiredCapacity;
340  bool m_desiredCapacityHasBeenSet;
341  };
342 
343 } // namespace Model
344 } // namespace AutoScaling
345 } // 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).