AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeScheduledActionsRequest.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
21 
22 namespace Aws
23 {
24 namespace AutoScaling
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
41  inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
42 
46  inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
47 
51  inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
52 
56  inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
57 
61  inline DescribeScheduledActionsRequest& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;}
62 
66  inline DescribeScheduledActionsRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(value); return *this;}
67 
71  inline DescribeScheduledActionsRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
72 
81  inline const Aws::Vector<Aws::String>& GetScheduledActionNames() const{ return m_scheduledActionNames; }
82 
91  inline void SetScheduledActionNames(const Aws::Vector<Aws::String>& value) { m_scheduledActionNamesHasBeenSet = true; m_scheduledActionNames = value; }
92 
101  inline void SetScheduledActionNames(Aws::Vector<Aws::String>&& value) { m_scheduledActionNamesHasBeenSet = true; m_scheduledActionNames = value; }
102 
111  inline DescribeScheduledActionsRequest& WithScheduledActionNames(const Aws::Vector<Aws::String>& value) { SetScheduledActionNames(value); return *this;}
112 
121  inline DescribeScheduledActionsRequest& WithScheduledActionNames(Aws::Vector<Aws::String>&& value) { SetScheduledActionNames(value); return *this;}
122 
131  inline DescribeScheduledActionsRequest& AddScheduledActionNames(const Aws::String& value) { m_scheduledActionNamesHasBeenSet = true; m_scheduledActionNames.push_back(value); return *this; }
132 
141  inline DescribeScheduledActionsRequest& AddScheduledActionNames(Aws::String&& value) { m_scheduledActionNamesHasBeenSet = true; m_scheduledActionNames.push_back(value); return *this; }
142 
151  inline DescribeScheduledActionsRequest& AddScheduledActionNames(const char* value) { m_scheduledActionNamesHasBeenSet = true; m_scheduledActionNames.push_back(value); return *this; }
152 
157  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
158 
163  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
164 
169  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
170 
175  inline DescribeScheduledActionsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
176 
181  inline DescribeScheduledActionsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(value); return *this;}
182 
187  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
188 
193  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
194 
199  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
200 
205  inline DescribeScheduledActionsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
206 
211  inline DescribeScheduledActionsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(value); return *this;}
212 
217  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
218 
223  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
224 
229  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
230 
235  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
236 
241  inline DescribeScheduledActionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
242 
247  inline DescribeScheduledActionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
248 
253  inline DescribeScheduledActionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
254 
258  inline int GetMaxRecords() const{ return m_maxRecords; }
259 
263  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
264 
268  inline DescribeScheduledActionsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
269 
270  private:
271  Aws::String m_autoScalingGroupName;
272  bool m_autoScalingGroupNameHasBeenSet;
273  Aws::Vector<Aws::String> m_scheduledActionNames;
274  bool m_scheduledActionNamesHasBeenSet;
275  Aws::Utils::DateTime m_startTime;
276  bool m_startTimeHasBeenSet;
277  Aws::Utils::DateTime m_endTime;
278  bool m_endTimeHasBeenSet;
279  Aws::String m_nextToken;
280  bool m_nextTokenHasBeenSet;
281  int m_maxRecords;
282  bool m_maxRecordsHasBeenSet;
283  };
284 
285 } // namespace Model
286 } // namespace AutoScaling
287 } // namespace Aws
DescribeScheduledActionsRequest & WithScheduledActionNames(Aws::Vector< Aws::String > &&value)
DescribeScheduledActionsRequest & WithEndTime(Aws::Utils::DateTime &&value)
void SetScheduledActionNames(const Aws::Vector< Aws::String > &value)
DescribeScheduledActionsRequest & WithAutoScalingGroupName(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DescribeScheduledActionsRequest & WithStartTime(Aws::Utils::DateTime &&value)
const Aws::Vector< Aws::String > & GetScheduledActionNames() const
DescribeScheduledActionsRequest & AddScheduledActionNames(Aws::String &&value)
DescribeScheduledActionsRequest & WithNextToken(const Aws::String &value)
DescribeScheduledActionsRequest & WithStartTime(const Aws::Utils::DateTime &value)
DescribeScheduledActionsRequest & WithEndTime(const Aws::Utils::DateTime &value)
DescribeScheduledActionsRequest & AddScheduledActionNames(const char *value)
DescribeScheduledActionsRequest & WithScheduledActionNames(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeScheduledActionsRequest & WithAutoScalingGroupName(Aws::String &&value)
#define AWS_AUTOSCALING_API
DescribeScheduledActionsRequest & WithNextToken(const char *value)
DescribeScheduledActionsRequest & AddScheduledActionNames(const Aws::String &value)
DescribeScheduledActionsRequest & WithNextToken(Aws::String &&value)
DescribeScheduledActionsRequest & WithAutoScalingGroupName(const Aws::String &value)
JSON (JavaScript Object Notation).