AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
KxScalingGroupConfiguration.h
1
6#pragma once
7#include <aws/finspace/Finspace_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 finspace
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_FINSPACE_API KxScalingGroupConfiguration();
38 AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetScalingGroupName() const{ return m_scalingGroupName; }
46 inline bool ScalingGroupNameHasBeenSet() const { return m_scalingGroupNameHasBeenSet; }
47 inline void SetScalingGroupName(const Aws::String& value) { m_scalingGroupNameHasBeenSet = true; m_scalingGroupName = value; }
48 inline void SetScalingGroupName(Aws::String&& value) { m_scalingGroupNameHasBeenSet = true; m_scalingGroupName = std::move(value); }
49 inline void SetScalingGroupName(const char* value) { m_scalingGroupNameHasBeenSet = true; m_scalingGroupName.assign(value); }
51 inline KxScalingGroupConfiguration& WithScalingGroupName(Aws::String&& value) { SetScalingGroupName(std::move(value)); return *this;}
52 inline KxScalingGroupConfiguration& WithScalingGroupName(const char* value) { SetScalingGroupName(value); return *this;}
54
56
59 inline int GetMemoryLimit() const{ return m_memoryLimit; }
60 inline bool MemoryLimitHasBeenSet() const { return m_memoryLimitHasBeenSet; }
61 inline void SetMemoryLimit(int value) { m_memoryLimitHasBeenSet = true; m_memoryLimit = value; }
62 inline KxScalingGroupConfiguration& WithMemoryLimit(int value) { SetMemoryLimit(value); return *this;}
64
66
71 inline int GetMemoryReservation() const{ return m_memoryReservation; }
72 inline bool MemoryReservationHasBeenSet() const { return m_memoryReservationHasBeenSet; }
73 inline void SetMemoryReservation(int value) { m_memoryReservationHasBeenSet = true; m_memoryReservation = value; }
76
78
81 inline int GetNodeCount() const{ return m_nodeCount; }
82 inline bool NodeCountHasBeenSet() const { return m_nodeCountHasBeenSet; }
83 inline void SetNodeCount(int value) { m_nodeCountHasBeenSet = true; m_nodeCount = value; }
84 inline KxScalingGroupConfiguration& WithNodeCount(int value) { SetNodeCount(value); return *this;}
86
88
92 inline double GetCpu() const{ return m_cpu; }
93 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
94 inline void SetCpu(double value) { m_cpuHasBeenSet = true; m_cpu = value; }
95 inline KxScalingGroupConfiguration& WithCpu(double value) { SetCpu(value); return *this;}
97 private:
98
99 Aws::String m_scalingGroupName;
100 bool m_scalingGroupNameHasBeenSet = false;
101
102 int m_memoryLimit;
103 bool m_memoryLimitHasBeenSet = false;
104
105 int m_memoryReservation;
106 bool m_memoryReservationHasBeenSet = false;
107
108 int m_nodeCount;
109 bool m_nodeCountHasBeenSet = false;
110
111 double m_cpu;
112 bool m_cpuHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace finspace
117} // namespace Aws
AWS_FINSPACE_API KxScalingGroupConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
KxScalingGroupConfiguration & WithCpu(double value)
KxScalingGroupConfiguration & WithMemoryLimit(int value)
KxScalingGroupConfiguration & WithMemoryReservation(int value)
KxScalingGroupConfiguration & WithNodeCount(int value)
KxScalingGroupConfiguration & WithScalingGroupName(Aws::String &&value)
KxScalingGroupConfiguration & WithScalingGroupName(const Aws::String &value)
AWS_FINSPACE_API KxScalingGroupConfiguration(Aws::Utils::Json::JsonView jsonValue)
KxScalingGroupConfiguration & WithScalingGroupName(const char *value)
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