AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AutoScalingSettings.h
1
6#pragma once
7#include <aws/keyspaces/Keyspaces_EXPORTS.h>
8#include <aws/keyspaces/model/AutoScalingPolicy.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 Keyspaces
22{
23namespace Model
24{
25
67 {
68 public:
69 AWS_KEYSPACES_API AutoScalingSettings();
70 AWS_KEYSPACES_API AutoScalingSettings(Aws::Utils::Json::JsonView jsonValue);
72 AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
73
74
76
80 inline bool GetAutoScalingDisabled() const{ return m_autoScalingDisabled; }
81 inline bool AutoScalingDisabledHasBeenSet() const { return m_autoScalingDisabledHasBeenSet; }
82 inline void SetAutoScalingDisabled(bool value) { m_autoScalingDisabledHasBeenSet = true; m_autoScalingDisabled = value; }
83 inline AutoScalingSettings& WithAutoScalingDisabled(bool value) { SetAutoScalingDisabled(value); return *this;}
85
87
92 inline long long GetMinimumUnits() const{ return m_minimumUnits; }
93 inline bool MinimumUnitsHasBeenSet() const { return m_minimumUnitsHasBeenSet; }
94 inline void SetMinimumUnits(long long value) { m_minimumUnitsHasBeenSet = true; m_minimumUnits = value; }
95 inline AutoScalingSettings& WithMinimumUnits(long long value) { SetMinimumUnits(value); return *this;}
97
99
104 inline long long GetMaximumUnits() const{ return m_maximumUnits; }
105 inline bool MaximumUnitsHasBeenSet() const { return m_maximumUnitsHasBeenSet; }
106 inline void SetMaximumUnits(long long value) { m_maximumUnitsHasBeenSet = true; m_maximumUnits = value; }
107 inline AutoScalingSettings& WithMaximumUnits(long long value) { SetMaximumUnits(value); return *this;}
109
111
117 inline const AutoScalingPolicy& GetScalingPolicy() const{ return m_scalingPolicy; }
118 inline bool ScalingPolicyHasBeenSet() const { return m_scalingPolicyHasBeenSet; }
119 inline void SetScalingPolicy(const AutoScalingPolicy& value) { m_scalingPolicyHasBeenSet = true; m_scalingPolicy = value; }
120 inline void SetScalingPolicy(AutoScalingPolicy&& value) { m_scalingPolicyHasBeenSet = true; m_scalingPolicy = std::move(value); }
121 inline AutoScalingSettings& WithScalingPolicy(const AutoScalingPolicy& value) { SetScalingPolicy(value); return *this;}
122 inline AutoScalingSettings& WithScalingPolicy(AutoScalingPolicy&& value) { SetScalingPolicy(std::move(value)); return *this;}
124 private:
125
126 bool m_autoScalingDisabled;
127 bool m_autoScalingDisabledHasBeenSet = false;
128
129 long long m_minimumUnits;
130 bool m_minimumUnitsHasBeenSet = false;
131
132 long long m_maximumUnits;
133 bool m_maximumUnitsHasBeenSet = false;
134
135 AutoScalingPolicy m_scalingPolicy;
136 bool m_scalingPolicyHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace Keyspaces
141} // namespace Aws
AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KEYSPACES_API AutoScalingSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetScalingPolicy(const AutoScalingPolicy &value)
AWS_KEYSPACES_API AutoScalingSettings(Aws::Utils::Json::JsonView jsonValue)
AutoScalingSettings & WithMaximumUnits(long long value)
const AutoScalingPolicy & GetScalingPolicy() const
AutoScalingSettings & WithScalingPolicy(AutoScalingPolicy &&value)
AutoScalingSettings & WithAutoScalingDisabled(bool value)
void SetScalingPolicy(AutoScalingPolicy &&value)
AutoScalingSettings & WithScalingPolicy(const AutoScalingPolicy &value)
AutoScalingSettings & WithMinimumUnits(long long value)
Aws::Utils::Json::JsonValue JsonValue