AWS SDK for C++  0.12.9
AWS SDK for C++
ScalableTarget.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 Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace ApplicationAutoScaling
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  ScalableTarget& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
53  inline const ServiceNamespace& GetServiceNamespace() const{ return m_serviceNamespace; }
54 
61  inline void SetServiceNamespace(const ServiceNamespace& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
62 
69  inline void SetServiceNamespace(ServiceNamespace&& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
70 
77  inline ScalableTarget& WithServiceNamespace(const ServiceNamespace& value) { SetServiceNamespace(value); return *this;}
78 
85  inline ScalableTarget& WithServiceNamespace(ServiceNamespace&& value) { SetServiceNamespace(value); return *this;}
86 
93  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
94 
101  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
102 
109  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
110 
117  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
118 
125  inline ScalableTarget& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
126 
133  inline ScalableTarget& WithResourceId(Aws::String&& value) { SetResourceId(value); return *this;}
134 
141  inline ScalableTarget& WithResourceId(const char* value) { SetResourceId(value); return *this;}
142 
149  inline const ScalableDimension& GetScalableDimension() const{ return m_scalableDimension; }
150 
157  inline void SetScalableDimension(const ScalableDimension& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = value; }
158 
165  inline void SetScalableDimension(ScalableDimension&& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = value; }
166 
173  inline ScalableTarget& WithScalableDimension(const ScalableDimension& value) { SetScalableDimension(value); return *this;}
174 
181  inline ScalableTarget& WithScalableDimension(ScalableDimension&& value) { SetScalableDimension(value); return *this;}
182 
187  inline long GetMinCapacity() const{ return m_minCapacity; }
188 
193  inline void SetMinCapacity(long value) { m_minCapacityHasBeenSet = true; m_minCapacity = value; }
194 
199  inline ScalableTarget& WithMinCapacity(long value) { SetMinCapacity(value); return *this;}
200 
205  inline long GetMaxCapacity() const{ return m_maxCapacity; }
206 
211  inline void SetMaxCapacity(long value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
212 
217  inline ScalableTarget& WithMaxCapacity(long value) { SetMaxCapacity(value); return *this;}
218 
223  inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
224 
229  inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
230 
235  inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
236 
241  inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
242 
247  inline ScalableTarget& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
248 
253  inline ScalableTarget& WithRoleARN(Aws::String&& value) { SetRoleARN(value); return *this;}
254 
259  inline ScalableTarget& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
260 
264  inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
265 
269  inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
270 
274  inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
275 
279  inline ScalableTarget& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
280 
284  inline ScalableTarget& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(value); return *this;}
285 
286  private:
287  ServiceNamespace m_serviceNamespace;
288  bool m_serviceNamespaceHasBeenSet;
289  Aws::String m_resourceId;
290  bool m_resourceIdHasBeenSet;
291  ScalableDimension m_scalableDimension;
292  bool m_scalableDimensionHasBeenSet;
293  long m_minCapacity;
294  bool m_minCapacityHasBeenSet;
295  long m_maxCapacity;
296  bool m_maxCapacityHasBeenSet;
297  Aws::String m_roleARN;
298  bool m_roleARNHasBeenSet;
299  Aws::Utils::DateTime m_creationTime;
300  bool m_creationTimeHasBeenSet;
301  };
302 
303 } // namespace Model
304 } // namespace ApplicationAutoScaling
305 } // namespace Aws
ScalableTarget & WithServiceNamespace(ServiceNamespace &&value)
ScalableTarget & WithScalableDimension(const ScalableDimension &value)
ScalableTarget & WithRoleARN(Aws::String &&value)
const ScalableDimension & GetScalableDimension() const
ScalableTarget & WithResourceId(const char *value)
void SetScalableDimension(const ScalableDimension &value)
#define AWS_APPLICATIONAUTOSCALING_API
ScalableTarget & WithResourceId(const Aws::String &value)
void SetServiceNamespace(ServiceNamespace &&value)
ScalableTarget & WithRoleARN(const Aws::String &value)
void SetServiceNamespace(const ServiceNamespace &value)
void SetCreationTime(const Aws::Utils::DateTime &value)
void SetScalableDimension(ScalableDimension &&value)
ScalableTarget & WithCreationTime(const Aws::Utils::DateTime &value)
ScalableTarget & WithServiceNamespace(const ServiceNamespace &value)
void SetCreationTime(Aws::Utils::DateTime &&value)
ScalableTarget & WithScalableDimension(ScalableDimension &&value)
ScalableTarget & WithResourceId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Utils::DateTime & GetCreationTime() const
const ServiceNamespace & GetServiceNamespace() const
ScalableTarget & WithRoleARN(const char *value)
JSON (JavaScript Object Notation).
ScalableTarget & WithCreationTime(Aws::Utils::DateTime &&value)