AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScalingConfigurationInput.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 ScalingConfigurationInput();
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 ScalingConfigurationInput& WithScalingType(const FleetScalingType& value) { SetScalingType(value); return *this;}
52 inline ScalingConfigurationInput& 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 ScalingConfigurationInput& AddTargetTrackingScalingConfigs(const TargetTrackingScalingConfiguration& value) { m_targetTrackingScalingConfigsHasBeenSet = true; m_targetTrackingScalingConfigs.push_back(value); return *this; }
66 inline ScalingConfigurationInput& 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 ScalingConfigurationInput& WithMaxCapacity(int value) { SetMaxCapacity(value); return *this;}
78 private:
79
80 FleetScalingType m_scalingType;
81 bool m_scalingTypeHasBeenSet = false;
82
83 Aws::Vector<TargetTrackingScalingConfiguration> m_targetTrackingScalingConfigs;
84 bool m_targetTrackingScalingConfigsHasBeenSet = false;
85
86 int m_maxCapacity;
87 bool m_maxCapacityHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace CodeBuild
92} // namespace Aws
ScalingConfigurationInput & WithMaxCapacity(int value)
const Aws::Vector< TargetTrackingScalingConfiguration > & GetTargetTrackingScalingConfigs() const
ScalingConfigurationInput & WithScalingType(FleetScalingType &&value)
void SetTargetTrackingScalingConfigs(const Aws::Vector< TargetTrackingScalingConfiguration > &value)
AWS_CODEBUILD_API ScalingConfigurationInput(Aws::Utils::Json::JsonView jsonValue)
ScalingConfigurationInput & AddTargetTrackingScalingConfigs(TargetTrackingScalingConfiguration &&value)
ScalingConfigurationInput & WithTargetTrackingScalingConfigs(const Aws::Vector< TargetTrackingScalingConfiguration > &value)
ScalingConfigurationInput & AddTargetTrackingScalingConfigs(const TargetTrackingScalingConfiguration &value)
ScalingConfigurationInput & WithTargetTrackingScalingConfigs(Aws::Vector< TargetTrackingScalingConfiguration > &&value)
AWS_CODEBUILD_API ScalingConfigurationInput & operator=(Aws::Utils::Json::JsonView jsonValue)
ScalingConfigurationInput & WithScalingType(const FleetScalingType &value)
void SetTargetTrackingScalingConfigs(Aws::Vector< TargetTrackingScalingConfiguration > &&value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue