AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
DescribeScalingActivitiesRequest.h
1
6#pragma once
7#include <aws/autoscaling/AutoScalingRequest.h>
8#include <aws/autoscaling/AutoScaling_EXPORTS.h>
9#include <aws/autoscaling/model/Filter.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace AutoScaling {
17namespace Model {
18
22 public:
23 AWS_AUTOSCALING_API DescribeScalingActivitiesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeScalingActivities"; }
30
31 AWS_AUTOSCALING_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
45 inline const Aws::Vector<Aws::String>& GetActivityIds() const { return m_activityIds; }
46 inline bool ActivityIdsHasBeenSet() const { return m_activityIdsHasBeenSet; }
47 template <typename ActivityIdsT = Aws::Vector<Aws::String>>
48 void SetActivityIds(ActivityIdsT&& value) {
49 m_activityIdsHasBeenSet = true;
50 m_activityIds = std::forward<ActivityIdsT>(value);
51 }
52 template <typename ActivityIdsT = Aws::Vector<Aws::String>>
54 SetActivityIds(std::forward<ActivityIdsT>(value));
55 return *this;
56 }
57 template <typename ActivityIdsT = Aws::String>
59 m_activityIdsHasBeenSet = true;
60 m_activityIds.emplace_back(std::forward<ActivityIdsT>(value));
61 return *this;
62 }
64
66
71 inline const Aws::String& GetAutoScalingGroupName() const { return m_autoScalingGroupName; }
72 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
73 template <typename AutoScalingGroupNameT = Aws::String>
74 void SetAutoScalingGroupName(AutoScalingGroupNameT&& value) {
75 m_autoScalingGroupNameHasBeenSet = true;
76 m_autoScalingGroupName = std::forward<AutoScalingGroupNameT>(value);
77 }
78 template <typename AutoScalingGroupNameT = Aws::String>
80 SetAutoScalingGroupName(std::forward<AutoScalingGroupNameT>(value));
81 return *this;
82 }
84
86
90 inline bool GetIncludeDeletedGroups() const { return m_includeDeletedGroups; }
91 inline bool IncludeDeletedGroupsHasBeenSet() const { return m_includeDeletedGroupsHasBeenSet; }
92 inline void SetIncludeDeletedGroups(bool value) {
93 m_includeDeletedGroupsHasBeenSet = true;
94 m_includeDeletedGroups = value;
95 }
98 return *this;
99 }
101
103
107 inline int GetMaxRecords() const { return m_maxRecords; }
108 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
109 inline void SetMaxRecords(int value) {
110 m_maxRecordsHasBeenSet = true;
111 m_maxRecords = value;
112 }
114 SetMaxRecords(value);
115 return *this;
116 }
118
120
124 inline const Aws::String& GetNextToken() const { return m_nextToken; }
125 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
126 template <typename NextTokenT = Aws::String>
127 void SetNextToken(NextTokenT&& value) {
128 m_nextTokenHasBeenSet = true;
129 m_nextToken = std::forward<NextTokenT>(value);
130 }
131 template <typename NextTokenT = Aws::String>
133 SetNextToken(std::forward<NextTokenT>(value));
134 return *this;
135 }
137
139
157 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
158 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
159 template <typename FiltersT = Aws::Vector<Filter>>
160 void SetFilters(FiltersT&& value) {
161 m_filtersHasBeenSet = true;
162 m_filters = std::forward<FiltersT>(value);
163 }
164 template <typename FiltersT = Aws::Vector<Filter>>
166 SetFilters(std::forward<FiltersT>(value));
167 return *this;
168 }
169 template <typename FiltersT = Filter>
171 m_filtersHasBeenSet = true;
172 m_filters.emplace_back(std::forward<FiltersT>(value));
173 return *this;
174 }
176 private:
177 Aws::Vector<Aws::String> m_activityIds;
178
179 Aws::String m_autoScalingGroupName;
180
181 bool m_includeDeletedGroups{false};
182
183 int m_maxRecords{0};
184
185 Aws::String m_nextToken;
186
187 Aws::Vector<Filter> m_filters;
188 bool m_activityIdsHasBeenSet = false;
189 bool m_autoScalingGroupNameHasBeenSet = false;
190 bool m_includeDeletedGroupsHasBeenSet = false;
191 bool m_maxRecordsHasBeenSet = false;
192 bool m_nextTokenHasBeenSet = false;
193 bool m_filtersHasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace AutoScaling
198} // namespace Aws
AWS_AUTOSCALING_API DescribeScalingActivitiesRequest()=default
DescribeScalingActivitiesRequest & AddFilters(FiltersT &&value)
DescribeScalingActivitiesRequest & WithAutoScalingGroupName(AutoScalingGroupNameT &&value)
DescribeScalingActivitiesRequest & WithActivityIds(ActivityIdsT &&value)
DescribeScalingActivitiesRequest & WithIncludeDeletedGroups(bool value)
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeScalingActivitiesRequest & AddActivityIds(ActivityIdsT &&value)
DescribeScalingActivitiesRequest & WithNextToken(NextTokenT &&value)
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
DescribeScalingActivitiesRequest & WithFilters(FiltersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector