AWS SDK for C++  1.8.71
AWS SDK for C++
DescribeScalingActivitiesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace AutoScaling
16 {
17 namespace 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 "DescribeScalingActivities"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
46  inline const Aws::Vector<Aws::String>& GetActivityIds() const{ return m_activityIds; }
47 
54  inline bool ActivityIdsHasBeenSet() const { return m_activityIdsHasBeenSet; }
55 
62  inline void SetActivityIds(const Aws::Vector<Aws::String>& value) { m_activityIdsHasBeenSet = true; m_activityIds = value; }
63 
70  inline void SetActivityIds(Aws::Vector<Aws::String>&& value) { m_activityIdsHasBeenSet = true; m_activityIds = std::move(value); }
71 
78  inline DescribeScalingActivitiesRequest& WithActivityIds(const Aws::Vector<Aws::String>& value) { SetActivityIds(value); return *this;}
79 
86  inline DescribeScalingActivitiesRequest& WithActivityIds(Aws::Vector<Aws::String>&& value) { SetActivityIds(std::move(value)); return *this;}
87 
94  inline DescribeScalingActivitiesRequest& AddActivityIds(const Aws::String& value) { m_activityIdsHasBeenSet = true; m_activityIds.push_back(value); return *this; }
95 
102  inline DescribeScalingActivitiesRequest& AddActivityIds(Aws::String&& value) { m_activityIdsHasBeenSet = true; m_activityIds.push_back(std::move(value)); return *this; }
103 
110  inline DescribeScalingActivitiesRequest& AddActivityIds(const char* value) { m_activityIdsHasBeenSet = true; m_activityIds.push_back(value); return *this; }
111 
112 
116  inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
117 
121  inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
122 
126  inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
127 
131  inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
132 
136  inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
137 
141  inline DescribeScalingActivitiesRequest& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;}
142 
146  inline DescribeScalingActivitiesRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;}
147 
151  inline DescribeScalingActivitiesRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
152 
153 
158  inline int GetMaxRecords() const{ return m_maxRecords; }
159 
164  inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
165 
170  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
171 
176  inline DescribeScalingActivitiesRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
177 
178 
183  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
184 
189  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
190 
195  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
196 
201  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
202 
207  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
208 
213  inline DescribeScalingActivitiesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
214 
219  inline DescribeScalingActivitiesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
220 
225  inline DescribeScalingActivitiesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
226 
227  private:
228 
229  Aws::Vector<Aws::String> m_activityIds;
230  bool m_activityIdsHasBeenSet;
231 
232  Aws::String m_autoScalingGroupName;
233  bool m_autoScalingGroupNameHasBeenSet;
234 
235  int m_maxRecords;
236  bool m_maxRecordsHasBeenSet;
237 
238  Aws::String m_nextToken;
239  bool m_nextTokenHasBeenSet;
240  };
241 
242 } // namespace Model
243 } // namespace AutoScaling
244 } // namespace Aws
DescribeScalingActivitiesRequest & WithAutoScalingGroupName(Aws::String &&value)
DescribeScalingActivitiesRequest & WithActivityIds(Aws::Vector< Aws::String > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
DescribeScalingActivitiesRequest & WithAutoScalingGroupName(const Aws::String &value)
DescribeScalingActivitiesRequest & AddActivityIds(Aws::String &&value)
DescribeScalingActivitiesRequest & AddActivityIds(const char *value)
DescribeScalingActivitiesRequest & AddActivityIds(const Aws::String &value)
DescribeScalingActivitiesRequest & WithNextToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeScalingActivitiesRequest & WithNextToken(const char *value)
DescribeScalingActivitiesRequest & WithAutoScalingGroupName(const char *value)
#define AWS_AUTOSCALING_API
DescribeScalingActivitiesRequest & WithActivityIds(const Aws::Vector< Aws::String > &value)
DescribeScalingActivitiesRequest & WithNextToken(const Aws::String &value)