AWS SDK for C++  0.12.9
AWS SDK for C++
RegisterScalableTargetRequest.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
21 
22 namespace Aws
23 {
24 namespace ApplicationAutoScaling
25 {
26 namespace Model
27 {
28 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
46  inline const ServiceNamespace& GetServiceNamespace() const{ return m_serviceNamespace; }
47 
55  inline void SetServiceNamespace(const ServiceNamespace& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
56 
64  inline void SetServiceNamespace(ServiceNamespace&& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
65 
73  inline RegisterScalableTargetRequest& WithServiceNamespace(const ServiceNamespace& value) { SetServiceNamespace(value); return *this;}
74 
82  inline RegisterScalableTargetRequest& WithServiceNamespace(ServiceNamespace&& value) { SetServiceNamespace(value); return *this;}
83 
90  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
91 
98  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
99 
106  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
107 
114  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
115 
122  inline RegisterScalableTargetRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
123 
130  inline RegisterScalableTargetRequest& WithResourceId(Aws::String&& value) { SetResourceId(value); return *this;}
131 
138  inline RegisterScalableTargetRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
139 
146  inline const ScalableDimension& GetScalableDimension() const{ return m_scalableDimension; }
147 
154  inline void SetScalableDimension(const ScalableDimension& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = value; }
155 
162  inline void SetScalableDimension(ScalableDimension&& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = value; }
163 
170  inline RegisterScalableTargetRequest& WithScalableDimension(const ScalableDimension& value) { SetScalableDimension(value); return *this;}
171 
178  inline RegisterScalableTargetRequest& WithScalableDimension(ScalableDimension&& value) { SetScalableDimension(value); return *this;}
179 
185  inline long GetMinCapacity() const{ return m_minCapacity; }
186 
192  inline void SetMinCapacity(long value) { m_minCapacityHasBeenSet = true; m_minCapacity = value; }
193 
199  inline RegisterScalableTargetRequest& WithMinCapacity(long value) { SetMinCapacity(value); return *this;}
200 
206  inline long GetMaxCapacity() const{ return m_maxCapacity; }
207 
213  inline void SetMaxCapacity(long value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
214 
220  inline RegisterScalableTargetRequest& WithMaxCapacity(long value) { SetMaxCapacity(value); return *this;}
221 
228  inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
229 
236  inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
237 
244  inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
245 
252  inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
253 
260  inline RegisterScalableTargetRequest& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
261 
268  inline RegisterScalableTargetRequest& WithRoleARN(Aws::String&& value) { SetRoleARN(value); return *this;}
269 
276  inline RegisterScalableTargetRequest& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
277 
278  private:
279  ServiceNamespace m_serviceNamespace;
280  bool m_serviceNamespaceHasBeenSet;
281  Aws::String m_resourceId;
282  bool m_resourceIdHasBeenSet;
283  ScalableDimension m_scalableDimension;
284  bool m_scalableDimensionHasBeenSet;
285  long m_minCapacity;
286  bool m_minCapacityHasBeenSet;
287  long m_maxCapacity;
288  bool m_maxCapacityHasBeenSet;
289  Aws::String m_roleARN;
290  bool m_roleARNHasBeenSet;
291  };
292 
293 } // namespace Model
294 } // namespace ApplicationAutoScaling
295 } // namespace Aws
RegisterScalableTargetRequest & WithRoleARN(Aws::String &&value)
RegisterScalableTargetRequest & WithServiceNamespace(ServiceNamespace &&value)
RegisterScalableTargetRequest & WithResourceId(Aws::String &&value)
#define AWS_APPLICATIONAUTOSCALING_API
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
RegisterScalableTargetRequest & WithScalableDimension(ScalableDimension &&value)
RegisterScalableTargetRequest & WithResourceId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RegisterScalableTargetRequest & WithRoleARN(const Aws::String &value)
RegisterScalableTargetRequest & WithScalableDimension(const ScalableDimension &value)
RegisterScalableTargetRequest & WithServiceNamespace(const ServiceNamespace &value)
JSON (JavaScript Object Notation).