AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeScalableTargetsRequest.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/application-autoscaling/ApplicationAutoScalingRequest.h>
9#include <aws/application-autoscaling/model/ServiceNamespace.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/application-autoscaling/model/ScalableDimension.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ApplicationAutoScaling
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_APPLICATIONAUTOSCALING_API DescribeScalableTargetsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "DescribeScalableTargets"; }
34
35 AWS_APPLICATIONAUTOSCALING_API Aws::String SerializePayload() const override;
36
37 AWS_APPLICATIONAUTOSCALING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
46 inline ServiceNamespace GetServiceNamespace() const { return m_serviceNamespace; }
47 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
48 inline void SetServiceNamespace(ServiceNamespace value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
51
53
117 inline const Aws::Vector<Aws::String>& GetResourceIds() const { return m_resourceIds; }
118 inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; }
119 template<typename ResourceIdsT = Aws::Vector<Aws::String>>
120 void SetResourceIds(ResourceIdsT&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = std::forward<ResourceIdsT>(value); }
121 template<typename ResourceIdsT = Aws::Vector<Aws::String>>
122 DescribeScalableTargetsRequest& WithResourceIds(ResourceIdsT&& value) { SetResourceIds(std::forward<ResourceIdsT>(value)); return *this;}
123 template<typename ResourceIdsT = Aws::String>
124 DescribeScalableTargetsRequest& AddResourceIds(ResourceIdsT&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.emplace_back(std::forward<ResourceIdsT>(value)); return *this; }
126
128
182 inline ScalableDimension GetScalableDimension() const { return m_scalableDimension; }
183 inline bool ScalableDimensionHasBeenSet() const { return m_scalableDimensionHasBeenSet; }
184 inline void SetScalableDimension(ScalableDimension value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = value; }
187
189
198 inline int GetMaxResults() const { return m_maxResults; }
199 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
200 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
201 inline DescribeScalableTargetsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
203
205
208 inline const Aws::String& GetNextToken() const { return m_nextToken; }
209 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
210 template<typename NextTokenT = Aws::String>
211 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
212 template<typename NextTokenT = Aws::String>
213 DescribeScalableTargetsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
215 private:
216
218 bool m_serviceNamespaceHasBeenSet = false;
219
220 Aws::Vector<Aws::String> m_resourceIds;
221 bool m_resourceIdsHasBeenSet = false;
222
224 bool m_scalableDimensionHasBeenSet = false;
225
226 int m_maxResults{0};
227 bool m_maxResultsHasBeenSet = false;
228
229 Aws::String m_nextToken;
230 bool m_nextTokenHasBeenSet = false;
231 };
232
233} // namespace Model
234} // namespace ApplicationAutoScaling
235} // 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