AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ServiceNamespace& GetServiceNamespace() const{ return m_serviceNamespace; }
47 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
48 inline void SetServiceNamespace(const ServiceNamespace& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
49 inline void SetServiceNamespace(ServiceNamespace&& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = std::move(value); }
53
55
116 inline const Aws::Vector<Aws::String>& GetResourceIds() const{ return m_resourceIds; }
117 inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; }
118 inline void SetResourceIds(const Aws::Vector<Aws::String>& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = value; }
119 inline void SetResourceIds(Aws::Vector<Aws::String>&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = std::move(value); }
122 inline DescribeScalableTargetsRequest& AddResourceIds(const Aws::String& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; }
123 inline DescribeScalableTargetsRequest& AddResourceIds(Aws::String&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(std::move(value)); return *this; }
124 inline DescribeScalableTargetsRequest& AddResourceIds(const char* value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; }
126
128
180 inline const ScalableDimension& GetScalableDimension() const{ return m_scalableDimension; }
181 inline bool ScalableDimensionHasBeenSet() const { return m_scalableDimensionHasBeenSet; }
182 inline void SetScalableDimension(const ScalableDimension& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = value; }
183 inline void SetScalableDimension(ScalableDimension&& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = std::move(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 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
211 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
212 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
213 inline DescribeScalableTargetsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
214 inline DescribeScalableTargetsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
215 inline DescribeScalableTargetsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
217 private:
218
219 ServiceNamespace m_serviceNamespace;
220 bool m_serviceNamespaceHasBeenSet = false;
221
222 Aws::Vector<Aws::String> m_resourceIds;
223 bool m_resourceIdsHasBeenSet = false;
224
225 ScalableDimension m_scalableDimension;
226 bool m_scalableDimensionHasBeenSet = false;
227
228 int m_maxResults;
229 bool m_maxResultsHasBeenSet = false;
230
231 Aws::String m_nextToken;
232 bool m_nextTokenHasBeenSet = false;
233 };
234
235} // namespace Model
236} // namespace ApplicationAutoScaling
237} // namespace Aws
DescribeScalableTargetsRequest & WithScalableDimension(const ScalableDimension &value)
DescribeScalableTargetsRequest & WithNextToken(Aws::String &&value)
DescribeScalableTargetsRequest & WithServiceNamespace(ServiceNamespace &&value)
AWS_APPLICATIONAUTOSCALING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeScalableTargetsRequest & WithResourceIds(Aws::Vector< Aws::String > &&value)
AWS_APPLICATIONAUTOSCALING_API Aws::String SerializePayload() const override
DescribeScalableTargetsRequest & WithResourceIds(const Aws::Vector< Aws::String > &value)
DescribeScalableTargetsRequest & AddResourceIds(Aws::String &&value)
DescribeScalableTargetsRequest & WithScalableDimension(ScalableDimension &&value)
DescribeScalableTargetsRequest & AddResourceIds(const Aws::String &value)
DescribeScalableTargetsRequest & WithServiceNamespace(const ServiceNamespace &value)
DescribeScalableTargetsRequest & WithNextToken(const Aws::String &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