AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScalingConstraints.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace EMR
20{
21namespace Model
22{
23
33 {
34 public:
35 AWS_EMR_API ScalingConstraints();
39
40
42
47 inline int GetMinCapacity() const{ return m_minCapacity; }
48 inline bool MinCapacityHasBeenSet() const { return m_minCapacityHasBeenSet; }
49 inline void SetMinCapacity(int value) { m_minCapacityHasBeenSet = true; m_minCapacity = value; }
50 inline ScalingConstraints& WithMinCapacity(int value) { SetMinCapacity(value); return *this;}
52
54
59 inline int GetMaxCapacity() const{ return m_maxCapacity; }
60 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
61 inline void SetMaxCapacity(int value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
62 inline ScalingConstraints& WithMaxCapacity(int value) { SetMaxCapacity(value); return *this;}
64 private:
65
66 int m_minCapacity;
67 bool m_minCapacityHasBeenSet = false;
68
69 int m_maxCapacity;
70 bool m_maxCapacityHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace EMR
75} // 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 & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue