AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
KxScalingGroupConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/finspace/Finspace_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace finspace {
20namespace Model {
21
29 public:
30 AWS_FINSPACE_API KxScalingGroupConfiguration() = default;
33 AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetScalingGroupName() const { return m_scalingGroupName; }
40 inline bool ScalingGroupNameHasBeenSet() const { return m_scalingGroupNameHasBeenSet; }
41 template <typename ScalingGroupNameT = Aws::String>
42 void SetScalingGroupName(ScalingGroupNameT&& value) {
43 m_scalingGroupNameHasBeenSet = true;
44 m_scalingGroupName = std::forward<ScalingGroupNameT>(value);
45 }
46 template <typename ScalingGroupNameT = Aws::String>
48 SetScalingGroupName(std::forward<ScalingGroupNameT>(value));
49 return *this;
50 }
52
54
57 inline int GetMemoryLimit() const { return m_memoryLimit; }
58 inline bool MemoryLimitHasBeenSet() const { return m_memoryLimitHasBeenSet; }
59 inline void SetMemoryLimit(int value) {
60 m_memoryLimitHasBeenSet = true;
61 m_memoryLimit = value;
62 }
64 SetMemoryLimit(value);
65 return *this;
66 }
68
70
75 inline int GetMemoryReservation() const { return m_memoryReservation; }
76 inline bool MemoryReservationHasBeenSet() const { return m_memoryReservationHasBeenSet; }
77 inline void SetMemoryReservation(int value) {
78 m_memoryReservationHasBeenSet = true;
79 m_memoryReservation = value;
80 }
83 return *this;
84 }
86
88
91 inline int GetNodeCount() const { return m_nodeCount; }
92 inline bool NodeCountHasBeenSet() const { return m_nodeCountHasBeenSet; }
93 inline void SetNodeCount(int value) {
94 m_nodeCountHasBeenSet = true;
95 m_nodeCount = value;
96 }
98 SetNodeCount(value);
99 return *this;
100 }
102
104
108 inline double GetCpu() const { return m_cpu; }
109 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
110 inline void SetCpu(double value) {
111 m_cpuHasBeenSet = true;
112 m_cpu = value;
113 }
114 inline KxScalingGroupConfiguration& WithCpu(double value) {
115 SetCpu(value);
116 return *this;
117 }
119 private:
120 Aws::String m_scalingGroupName;
121 bool m_scalingGroupNameHasBeenSet = false;
122
123 int m_memoryLimit{0};
124 bool m_memoryLimitHasBeenSet = false;
125
126 int m_memoryReservation{0};
127 bool m_memoryReservationHasBeenSet = false;
128
129 int m_nodeCount{0};
130 bool m_nodeCountHasBeenSet = false;
131
132 double m_cpu{0.0};
133 bool m_cpuHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace finspace
138} // namespace Aws
AWS_FINSPACE_API KxScalingGroupConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
KxScalingGroupConfiguration & WithCpu(double value)
KxScalingGroupConfiguration & WithScalingGroupName(ScalingGroupNameT &&value)
KxScalingGroupConfiguration & WithMemoryLimit(int value)
KxScalingGroupConfiguration & WithMemoryReservation(int value)
KxScalingGroupConfiguration & WithNodeCount(int value)
AWS_FINSPACE_API KxScalingGroupConfiguration()=default
AWS_FINSPACE_API KxScalingGroupConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue