AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AutoScalingGroupConfiguration.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ComputeOptimizer
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_COMPUTEOPTIMIZER_API AutoScalingGroupConfiguration();
36 AWS_COMPUTEOPTIMIZER_API AutoScalingGroupConfiguration(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline int GetDesiredCapacity() const{ return m_desiredCapacity; }
46 inline bool DesiredCapacityHasBeenSet() const { return m_desiredCapacityHasBeenSet; }
47 inline void SetDesiredCapacity(int value) { m_desiredCapacityHasBeenSet = true; m_desiredCapacity = value; }
48 inline AutoScalingGroupConfiguration& WithDesiredCapacity(int value) { SetDesiredCapacity(value); return *this;}
50
52
56 inline int GetMinSize() const{ return m_minSize; }
57 inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
58 inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; }
59 inline AutoScalingGroupConfiguration& WithMinSize(int value) { SetMinSize(value); return *this;}
61
63
67 inline int GetMaxSize() const{ return m_maxSize; }
68 inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
69 inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; }
70 inline AutoScalingGroupConfiguration& WithMaxSize(int value) { SetMaxSize(value); return *this;}
72
74
77 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
78 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
79 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
80 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
81 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
82 inline AutoScalingGroupConfiguration& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
83 inline AutoScalingGroupConfiguration& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
84 inline AutoScalingGroupConfiguration& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
86 private:
87
88 int m_desiredCapacity;
89 bool m_desiredCapacityHasBeenSet = false;
90
91 int m_minSize;
92 bool m_minSizeHasBeenSet = false;
93
94 int m_maxSize;
95 bool m_maxSizeHasBeenSet = false;
96
97 Aws::String m_instanceType;
98 bool m_instanceTypeHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace ComputeOptimizer
103} // namespace Aws
AutoScalingGroupConfiguration & WithInstanceType(Aws::String &&value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
AutoScalingGroupConfiguration & WithInstanceType(const Aws::String &value)
AWS_COMPUTEOPTIMIZER_API AutoScalingGroupConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoScalingGroupConfiguration & WithInstanceType(const char *value)
AWS_COMPUTEOPTIMIZER_API AutoScalingGroupConfiguration(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue