AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DynamicScalingConfiguration.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/model/ScalingPolicy.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SAGEMAKER_API DynamicScalingConfiguration();
39 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline int GetMinCapacity() const{ return m_minCapacity; }
47 inline bool MinCapacityHasBeenSet() const { return m_minCapacityHasBeenSet; }
48 inline void SetMinCapacity(int value) { m_minCapacityHasBeenSet = true; m_minCapacity = value; }
49 inline DynamicScalingConfiguration& WithMinCapacity(int value) { SetMinCapacity(value); return *this;}
51
53
56 inline int GetMaxCapacity() const{ return m_maxCapacity; }
57 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
58 inline void SetMaxCapacity(int value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
59 inline DynamicScalingConfiguration& WithMaxCapacity(int value) { SetMaxCapacity(value); return *this;}
61
63
66 inline int GetScaleInCooldown() const{ return m_scaleInCooldown; }
67 inline bool ScaleInCooldownHasBeenSet() const { return m_scaleInCooldownHasBeenSet; }
68 inline void SetScaleInCooldown(int value) { m_scaleInCooldownHasBeenSet = true; m_scaleInCooldown = value; }
69 inline DynamicScalingConfiguration& WithScaleInCooldown(int value) { SetScaleInCooldown(value); return *this;}
71
73
76 inline int GetScaleOutCooldown() const{ return m_scaleOutCooldown; }
77 inline bool ScaleOutCooldownHasBeenSet() const { return m_scaleOutCooldownHasBeenSet; }
78 inline void SetScaleOutCooldown(int value) { m_scaleOutCooldownHasBeenSet = true; m_scaleOutCooldown = value; }
79 inline DynamicScalingConfiguration& WithScaleOutCooldown(int value) { SetScaleOutCooldown(value); return *this;}
81
83
86 inline const Aws::Vector<ScalingPolicy>& GetScalingPolicies() const{ return m_scalingPolicies; }
87 inline bool ScalingPoliciesHasBeenSet() const { return m_scalingPoliciesHasBeenSet; }
88 inline void SetScalingPolicies(const Aws::Vector<ScalingPolicy>& value) { m_scalingPoliciesHasBeenSet = true; m_scalingPolicies = value; }
89 inline void SetScalingPolicies(Aws::Vector<ScalingPolicy>&& value) { m_scalingPoliciesHasBeenSet = true; m_scalingPolicies = std::move(value); }
92 inline DynamicScalingConfiguration& AddScalingPolicies(const ScalingPolicy& value) { m_scalingPoliciesHasBeenSet = true; m_scalingPolicies.push_back(value); return *this; }
93 inline DynamicScalingConfiguration& AddScalingPolicies(ScalingPolicy&& value) { m_scalingPoliciesHasBeenSet = true; m_scalingPolicies.push_back(std::move(value)); return *this; }
95 private:
96
97 int m_minCapacity;
98 bool m_minCapacityHasBeenSet = false;
99
100 int m_maxCapacity;
101 bool m_maxCapacityHasBeenSet = false;
102
103 int m_scaleInCooldown;
104 bool m_scaleInCooldownHasBeenSet = false;
105
106 int m_scaleOutCooldown;
107 bool m_scaleOutCooldownHasBeenSet = false;
108
109 Aws::Vector<ScalingPolicy> m_scalingPolicies;
110 bool m_scalingPoliciesHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace SageMaker
115} // namespace Aws
DynamicScalingConfiguration & WithScalingPolicies(Aws::Vector< ScalingPolicy > &&value)
AWS_SAGEMAKER_API DynamicScalingConfiguration(Aws::Utils::Json::JsonView jsonValue)
DynamicScalingConfiguration & WithScaleInCooldown(int value)
AWS_SAGEMAKER_API DynamicScalingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetScalingPolicies(Aws::Vector< ScalingPolicy > &&value)
DynamicScalingConfiguration & WithScalingPolicies(const Aws::Vector< ScalingPolicy > &value)
DynamicScalingConfiguration & WithMaxCapacity(int value)
DynamicScalingConfiguration & WithScaleOutCooldown(int value)
const Aws::Vector< ScalingPolicy > & GetScalingPolicies() const
DynamicScalingConfiguration & AddScalingPolicies(const ScalingPolicy &value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetScalingPolicies(const Aws::Vector< ScalingPolicy > &value)
DynamicScalingConfiguration & WithMinCapacity(int value)
DynamicScalingConfiguration & AddScalingPolicies(ScalingPolicy &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue