AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
DescribeScalableTargetsRequest.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScalingRequest.h>
8#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
9#include <aws/application-autoscaling/model/ScalableDimension.h>
10#include <aws/application-autoscaling/model/ServiceNamespace.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace ApplicationAutoScaling {
18namespace Model {
19
23 public:
24 AWS_APPLICATIONAUTOSCALING_API DescribeScalableTargetsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "DescribeScalableTargets"; }
31
32 AWS_APPLICATIONAUTOSCALING_API Aws::String SerializePayload() const override;
33
34 AWS_APPLICATIONAUTOSCALING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
42 inline ServiceNamespace GetServiceNamespace() const { return m_serviceNamespace; }
43 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
45 m_serviceNamespaceHasBeenSet = true;
46 m_serviceNamespace = value;
47 }
50 return *this;
51 }
53
55
119 inline const Aws::Vector<Aws::String>& GetResourceIds() const { return m_resourceIds; }
120 inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; }
121 template <typename ResourceIdsT = Aws::Vector<Aws::String>>
122 void SetResourceIds(ResourceIdsT&& value) {
123 m_resourceIdsHasBeenSet = true;
124 m_resourceIds = std::forward<ResourceIdsT>(value);
125 }
126 template <typename ResourceIdsT = Aws::Vector<Aws::String>>
128 SetResourceIds(std::forward<ResourceIdsT>(value));
129 return *this;
130 }
131 template <typename ResourceIdsT = Aws::String>
133 m_resourceIdsHasBeenSet = true;
134 m_resourceIds.emplace_back(std::forward<ResourceIdsT>(value));
135 return *this;
136 }
138
140
194 inline ScalableDimension GetScalableDimension() const { return m_scalableDimension; }
195 inline bool ScalableDimensionHasBeenSet() const { return m_scalableDimensionHasBeenSet; }
197 m_scalableDimensionHasBeenSet = true;
198 m_scalableDimension = value;
199 }
202 return *this;
203 }
205
207
216 inline int GetMaxResults() const { return m_maxResults; }
217 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
218 inline void SetMaxResults(int value) {
219 m_maxResultsHasBeenSet = true;
220 m_maxResults = value;
221 }
223 SetMaxResults(value);
224 return *this;
225 }
227
229
232 inline const Aws::String& GetNextToken() const { return m_nextToken; }
233 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
234 template <typename NextTokenT = Aws::String>
235 void SetNextToken(NextTokenT&& value) {
236 m_nextTokenHasBeenSet = true;
237 m_nextToken = std::forward<NextTokenT>(value);
238 }
239 template <typename NextTokenT = Aws::String>
241 SetNextToken(std::forward<NextTokenT>(value));
242 return *this;
243 }
245 private:
247
248 Aws::Vector<Aws::String> m_resourceIds;
249
251
252 int m_maxResults{0};
253
254 Aws::String m_nextToken;
255 bool m_serviceNamespaceHasBeenSet = false;
256 bool m_resourceIdsHasBeenSet = false;
257 bool m_scalableDimensionHasBeenSet = false;
258 bool m_maxResultsHasBeenSet = false;
259 bool m_nextTokenHasBeenSet = false;
260};
261
262} // namespace Model
263} // namespace ApplicationAutoScaling
264} // namespace Aws
DescribeScalableTargetsRequest & WithScalableDimension(ScalableDimension value)
DescribeScalableTargetsRequest & WithServiceNamespace(ServiceNamespace value)
AWS_APPLICATIONAUTOSCALING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_APPLICATIONAUTOSCALING_API Aws::String SerializePayload() const override
DescribeScalableTargetsRequest & AddResourceIds(ResourceIdsT &&value)
AWS_APPLICATIONAUTOSCALING_API DescribeScalableTargetsRequest()=default
DescribeScalableTargetsRequest & WithResourceIds(ResourceIdsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector