AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ScalingConfiguration.h
1
6#pragma once
7#include <aws/pcs/PCS_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace PCS {
17namespace Model {
18
26 public:
27 AWS_PCS_API ScalingConfiguration() = default;
31
33
36 inline int GetMinInstanceCount() const { return m_minInstanceCount; }
37 inline bool MinInstanceCountHasBeenSet() const { return m_minInstanceCountHasBeenSet; }
38 inline void SetMinInstanceCount(int value) {
39 m_minInstanceCountHasBeenSet = true;
40 m_minInstanceCount = value;
41 }
44 return *this;
45 }
47
49
52 inline int GetMaxInstanceCount() const { return m_maxInstanceCount; }
53 inline bool MaxInstanceCountHasBeenSet() const { return m_maxInstanceCountHasBeenSet; }
54 inline void SetMaxInstanceCount(int value) {
55 m_maxInstanceCountHasBeenSet = true;
56 m_maxInstanceCount = value;
57 }
60 return *this;
61 }
63 private:
64 int m_minInstanceCount{0};
65
66 int m_maxInstanceCount{0};
67 bool m_minInstanceCountHasBeenSet = false;
68 bool m_maxInstanceCountHasBeenSet = false;
69};
70
71} // namespace Model
72} // namespace PCS
73} // namespace Aws
AWS_PCS_API ScalingConfiguration()=default
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
ScalingConfiguration & WithMaxInstanceCount(int value)
ScalingConfiguration & WithMinInstanceCount(int value)
AWS_PCS_API ScalingConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_PCS_API ScalingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue