AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LoadBasedAutoScalingConfiguration.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opsworks/model/AutoScalingThresholds.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 OpsWorks
23{
24namespace Model
25{
26
34 {
35 public:
39 AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetLayerId() const{ return m_layerId; }
47 inline bool LayerIdHasBeenSet() const { return m_layerIdHasBeenSet; }
48 inline void SetLayerId(const Aws::String& value) { m_layerIdHasBeenSet = true; m_layerId = value; }
49 inline void SetLayerId(Aws::String&& value) { m_layerIdHasBeenSet = true; m_layerId = std::move(value); }
50 inline void SetLayerId(const char* value) { m_layerIdHasBeenSet = true; m_layerId.assign(value); }
51 inline LoadBasedAutoScalingConfiguration& WithLayerId(const Aws::String& value) { SetLayerId(value); return *this;}
52 inline LoadBasedAutoScalingConfiguration& WithLayerId(Aws::String&& value) { SetLayerId(std::move(value)); return *this;}
53 inline LoadBasedAutoScalingConfiguration& WithLayerId(const char* value) { SetLayerId(value); return *this;}
55
57
60 inline bool GetEnable() const{ return m_enable; }
61 inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; }
62 inline void SetEnable(bool value) { m_enableHasBeenSet = true; m_enable = value; }
63 inline LoadBasedAutoScalingConfiguration& WithEnable(bool value) { SetEnable(value); return *this;}
65
67
72 inline const AutoScalingThresholds& GetUpScaling() const{ return m_upScaling; }
73 inline bool UpScalingHasBeenSet() const { return m_upScalingHasBeenSet; }
74 inline void SetUpScaling(const AutoScalingThresholds& value) { m_upScalingHasBeenSet = true; m_upScaling = value; }
75 inline void SetUpScaling(AutoScalingThresholds&& value) { m_upScalingHasBeenSet = true; m_upScaling = std::move(value); }
77 inline LoadBasedAutoScalingConfiguration& WithUpScaling(AutoScalingThresholds&& value) { SetUpScaling(std::move(value)); return *this;}
79
81
86 inline const AutoScalingThresholds& GetDownScaling() const{ return m_downScaling; }
87 inline bool DownScalingHasBeenSet() const { return m_downScalingHasBeenSet; }
88 inline void SetDownScaling(const AutoScalingThresholds& value) { m_downScalingHasBeenSet = true; m_downScaling = value; }
89 inline void SetDownScaling(AutoScalingThresholds&& value) { m_downScalingHasBeenSet = true; m_downScaling = std::move(value); }
93 private:
94
95 Aws::String m_layerId;
96 bool m_layerIdHasBeenSet = false;
97
98 bool m_enable;
99 bool m_enableHasBeenSet = false;
100
101 AutoScalingThresholds m_upScaling;
102 bool m_upScalingHasBeenSet = false;
103
104 AutoScalingThresholds m_downScaling;
105 bool m_downScalingHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace OpsWorks
110} // namespace Aws
LoadBasedAutoScalingConfiguration & WithDownScaling(const AutoScalingThresholds &value)
LoadBasedAutoScalingConfiguration & WithUpScaling(AutoScalingThresholds &&value)
AWS_OPSWORKS_API LoadBasedAutoScalingConfiguration(Aws::Utils::Json::JsonView jsonValue)
LoadBasedAutoScalingConfiguration & WithUpScaling(const AutoScalingThresholds &value)
AWS_OPSWORKS_API LoadBasedAutoScalingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
LoadBasedAutoScalingConfiguration & WithLayerId(const Aws::String &value)
LoadBasedAutoScalingConfiguration & WithLayerId(Aws::String &&value)
LoadBasedAutoScalingConfiguration & WithLayerId(const char *value)
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
LoadBasedAutoScalingConfiguration & WithDownScaling(AutoScalingThresholds &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue