AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ScalingConstraints.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace EMR {
17namespace Model {
18
28 public:
29 AWS_EMR_API ScalingConstraints() = default;
33
35
40 inline int GetMinCapacity() const { return m_minCapacity; }
41 inline bool MinCapacityHasBeenSet() const { return m_minCapacityHasBeenSet; }
42 inline void SetMinCapacity(int value) {
43 m_minCapacityHasBeenSet = true;
44 m_minCapacity = value;
45 }
47 SetMinCapacity(value);
48 return *this;
49 }
51
53
58 inline int GetMaxCapacity() const { return m_maxCapacity; }
59 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
60 inline void SetMaxCapacity(int value) {
61 m_maxCapacityHasBeenSet = true;
62 m_maxCapacity = value;
63 }
65 SetMaxCapacity(value);
66 return *this;
67 }
69 private:
70 int m_minCapacity{0};
71
72 int m_maxCapacity{0};
73 bool m_minCapacityHasBeenSet = false;
74 bool m_maxCapacityHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace EMR
79} // namespace Aws
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMR_API ScalingConstraints(Aws::Utils::Json::JsonView jsonValue)
ScalingConstraints & WithMinCapacity(int value)
ScalingConstraints & WithMaxCapacity(int value)
AWS_EMR_API ScalingConstraints()=default
AWS_EMR_API ScalingConstraints & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue