AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeScalableTargetsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
22 
23 namespace Aws
24 {
25 namespace ApplicationAutoScaling
26 {
27 namespace Model
28 {
29 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
46  inline const ServiceNamespace& GetServiceNamespace() const{ return m_serviceNamespace; }
47 
54  inline void SetServiceNamespace(const ServiceNamespace& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
55 
62  inline void SetServiceNamespace(ServiceNamespace&& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
63 
70  inline DescribeScalableTargetsRequest& WithServiceNamespace(const ServiceNamespace& value) { SetServiceNamespace(value); return *this;}
71 
78  inline DescribeScalableTargetsRequest& WithServiceNamespace(ServiceNamespace&& value) { SetServiceNamespace(value); return *this;}
79 
87  inline const Aws::Vector<Aws::String>& GetResourceIds() const{ return m_resourceIds; }
88 
96  inline void SetResourceIds(const Aws::Vector<Aws::String>& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = value; }
97 
105  inline void SetResourceIds(Aws::Vector<Aws::String>&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = value; }
106 
114  inline DescribeScalableTargetsRequest& WithResourceIds(const Aws::Vector<Aws::String>& value) { SetResourceIds(value); return *this;}
115 
123  inline DescribeScalableTargetsRequest& WithResourceIds(Aws::Vector<Aws::String>&& value) { SetResourceIds(value); return *this;}
124 
132  inline DescribeScalableTargetsRequest& AddResourceIds(const Aws::String& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; }
133 
141  inline DescribeScalableTargetsRequest& AddResourceIds(Aws::String&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; }
142 
150  inline DescribeScalableTargetsRequest& AddResourceIds(const char* value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; }
151 
159  inline const ScalableDimension& GetScalableDimension() const{ return m_scalableDimension; }
160 
168  inline void SetScalableDimension(const ScalableDimension& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = value; }
169 
177  inline void SetScalableDimension(ScalableDimension&& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = value; }
178 
186  inline DescribeScalableTargetsRequest& WithScalableDimension(const ScalableDimension& value) { SetScalableDimension(value); return *this;}
187 
195  inline DescribeScalableTargetsRequest& WithScalableDimension(ScalableDimension&& value) { SetScalableDimension(value); return *this;}
196 
208  inline int GetMaxResults() const{ return m_maxResults; }
209 
221  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
222 
234  inline DescribeScalableTargetsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
235 
242  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
243 
250  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
251 
258  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
259 
266  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
267 
274  inline DescribeScalableTargetsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
275 
282  inline DescribeScalableTargetsRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
283 
290  inline DescribeScalableTargetsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
291 
292  private:
293  ServiceNamespace m_serviceNamespace;
294  bool m_serviceNamespaceHasBeenSet;
295  Aws::Vector<Aws::String> m_resourceIds;
296  bool m_resourceIdsHasBeenSet;
297  ScalableDimension m_scalableDimension;
298  bool m_scalableDimensionHasBeenSet;
299  int m_maxResults;
300  bool m_maxResultsHasBeenSet;
301  Aws::String m_nextToken;
302  bool m_nextTokenHasBeenSet;
303  };
304 
305 } // namespace Model
306 } // namespace ApplicationAutoScaling
307 } // namespace Aws
#define AWS_APPLICATIONAUTOSCALING_API
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DescribeScalableTargetsRequest & WithResourceIds(Aws::Vector< Aws::String > &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
DescribeScalableTargetsRequest & AddResourceIds(const Aws::String &value)
DescribeScalableTargetsRequest & WithNextToken(Aws::String &&value)
DescribeScalableTargetsRequest & WithServiceNamespace(ServiceNamespace &&value)
DescribeScalableTargetsRequest & WithNextToken(const Aws::String &value)
DescribeScalableTargetsRequest & WithServiceNamespace(const ServiceNamespace &value)
DescribeScalableTargetsRequest & AddResourceIds(Aws::String &&value)
DescribeScalableTargetsRequest & WithScalableDimension(ScalableDimension &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeScalableTargetsRequest & WithScalableDimension(const ScalableDimension &value)
DescribeScalableTargetsRequest & WithResourceIds(const Aws::Vector< Aws::String > &value)
JSON (JavaScript Object Notation).