AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScalingConfigurationOutput.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/FleetScalingType.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codebuild/model/TargetTrackingScalingConfiguration.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeBuild
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CODEBUILD_API ScalingConfigurationOutput();
40 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const FleetScalingType& GetScalingType() const{ return m_scalingType; }
48 inline bool ScalingTypeHasBeenSet() const { return m_scalingTypeHasBeenSet; }
49 inline void SetScalingType(const FleetScalingType& value) { m_scalingTypeHasBeenSet = true; m_scalingType = value; }
50 inline void SetScalingType(FleetScalingType&& value) { m_scalingTypeHasBeenSet = true; m_scalingType = std::move(value); }
51 inline ScalingConfigurationOutput& WithScalingType(const FleetScalingType& value) { SetScalingType(value); return *this;}
52 inline ScalingConfigurationOutput& WithScalingType(FleetScalingType&& value) { SetScalingType(std::move(value)); return *this;}
54
56
59 inline const Aws::Vector<TargetTrackingScalingConfiguration>& GetTargetTrackingScalingConfigs() const{ return m_targetTrackingScalingConfigs; }
60 inline bool TargetTrackingScalingConfigsHasBeenSet() const { return m_targetTrackingScalingConfigsHasBeenSet; }
61 inline void SetTargetTrackingScalingConfigs(const Aws::Vector<TargetTrackingScalingConfiguration>& value) { m_targetTrackingScalingConfigsHasBeenSet = true; m_targetTrackingScalingConfigs = value; }
62 inline void SetTargetTrackingScalingConfigs(Aws::Vector<TargetTrackingScalingConfiguration>&& value) { m_targetTrackingScalingConfigsHasBeenSet = true; m_targetTrackingScalingConfigs = std::move(value); }
65 inline ScalingConfigurationOutput& AddTargetTrackingScalingConfigs(const TargetTrackingScalingConfiguration& value) { m_targetTrackingScalingConfigsHasBeenSet = true; m_targetTrackingScalingConfigs.push_back(value); return *this; }
66 inline ScalingConfigurationOutput& AddTargetTrackingScalingConfigs(TargetTrackingScalingConfiguration&& value) { m_targetTrackingScalingConfigsHasBeenSet = true; m_targetTrackingScalingConfigs.push_back(std::move(value)); return *this; }
68
70
73 inline int GetMaxCapacity() const{ return m_maxCapacity; }
74 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
75 inline void SetMaxCapacity(int value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
76 inline ScalingConfigurationOutput& WithMaxCapacity(int value) { SetMaxCapacity(value); return *this;}
78
80
83 inline int GetDesiredCapacity() const{ return m_desiredCapacity; }
84 inline bool DesiredCapacityHasBeenSet() const { return m_desiredCapacityHasBeenSet; }
85 inline void SetDesiredCapacity(int value) { m_desiredCapacityHasBeenSet = true; m_desiredCapacity = value; }
86 inline ScalingConfigurationOutput& WithDesiredCapacity(int value) { SetDesiredCapacity(value); return *this;}
88 private:
89
90 FleetScalingType m_scalingType;
91 bool m_scalingTypeHasBeenSet = false;
92
93 Aws::Vector<TargetTrackingScalingConfiguration> m_targetTrackingScalingConfigs;
94 bool m_targetTrackingScalingConfigsHasBeenSet = false;
95
96 int m_maxCapacity;
97 bool m_maxCapacityHasBeenSet = false;
98
99 int m_desiredCapacity;
100 bool m_desiredCapacityHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace CodeBuild
105} // namespace Aws
void SetTargetTrackingScalingConfigs(Aws::Vector< TargetTrackingScalingConfiguration > &&value)
void SetTargetTrackingScalingConfigs(const Aws::Vector< TargetTrackingScalingConfiguration > &value)
AWS_CODEBUILD_API ScalingConfigurationOutput(Aws::Utils::Json::JsonView jsonValue)
ScalingConfigurationOutput & WithMaxCapacity(int value)
ScalingConfigurationOutput & AddTargetTrackingScalingConfigs(TargetTrackingScalingConfiguration &&value)
ScalingConfigurationOutput & WithTargetTrackingScalingConfigs(Aws::Vector< TargetTrackingScalingConfiguration > &&value)
ScalingConfigurationOutput & AddTargetTrackingScalingConfigs(const TargetTrackingScalingConfiguration &value)
const Aws::Vector< TargetTrackingScalingConfiguration > & GetTargetTrackingScalingConfigs() const
ScalingConfigurationOutput & WithScalingType(const FleetScalingType &value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
ScalingConfigurationOutput & WithDesiredCapacity(int value)
ScalingConfigurationOutput & WithScalingType(FleetScalingType &&value)
ScalingConfigurationOutput & WithTargetTrackingScalingConfigs(const Aws::Vector< TargetTrackingScalingConfiguration > &value)
AWS_CODEBUILD_API ScalingConfigurationOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue