AWS SDK for C++  1.9.108
AWS SDK for C++
LoadBasedAutoScalingConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace OpsWorks
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetLayerId() const{ return m_layerId; }
46 
50  inline bool LayerIdHasBeenSet() const { return m_layerIdHasBeenSet; }
51 
55  inline void SetLayerId(const Aws::String& value) { m_layerIdHasBeenSet = true; m_layerId = value; }
56 
60  inline void SetLayerId(Aws::String&& value) { m_layerIdHasBeenSet = true; m_layerId = std::move(value); }
61 
65  inline void SetLayerId(const char* value) { m_layerIdHasBeenSet = true; m_layerId.assign(value); }
66 
70  inline LoadBasedAutoScalingConfiguration& WithLayerId(const Aws::String& value) { SetLayerId(value); return *this;}
71 
75  inline LoadBasedAutoScalingConfiguration& WithLayerId(Aws::String&& value) { SetLayerId(std::move(value)); return *this;}
76 
80  inline LoadBasedAutoScalingConfiguration& WithLayerId(const char* value) { SetLayerId(value); return *this;}
81 
82 
86  inline bool GetEnable() const{ return m_enable; }
87 
91  inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; }
92 
96  inline void SetEnable(bool value) { m_enableHasBeenSet = true; m_enable = value; }
97 
101  inline LoadBasedAutoScalingConfiguration& WithEnable(bool value) { SetEnable(value); return *this;}
102 
103 
109  inline const AutoScalingThresholds& GetUpScaling() const{ return m_upScaling; }
110 
116  inline bool UpScalingHasBeenSet() const { return m_upScalingHasBeenSet; }
117 
123  inline void SetUpScaling(const AutoScalingThresholds& value) { m_upScalingHasBeenSet = true; m_upScaling = value; }
124 
130  inline void SetUpScaling(AutoScalingThresholds&& value) { m_upScalingHasBeenSet = true; m_upScaling = std::move(value); }
131 
137  inline LoadBasedAutoScalingConfiguration& WithUpScaling(const AutoScalingThresholds& value) { SetUpScaling(value); return *this;}
138 
144  inline LoadBasedAutoScalingConfiguration& WithUpScaling(AutoScalingThresholds&& value) { SetUpScaling(std::move(value)); return *this;}
145 
146 
152  inline const AutoScalingThresholds& GetDownScaling() const{ return m_downScaling; }
153 
159  inline bool DownScalingHasBeenSet() const { return m_downScalingHasBeenSet; }
160 
166  inline void SetDownScaling(const AutoScalingThresholds& value) { m_downScalingHasBeenSet = true; m_downScaling = value; }
167 
173  inline void SetDownScaling(AutoScalingThresholds&& value) { m_downScalingHasBeenSet = true; m_downScaling = std::move(value); }
174 
180  inline LoadBasedAutoScalingConfiguration& WithDownScaling(const AutoScalingThresholds& value) { SetDownScaling(value); return *this;}
181 
187  inline LoadBasedAutoScalingConfiguration& WithDownScaling(AutoScalingThresholds&& value) { SetDownScaling(std::move(value)); return *this;}
188 
189  private:
190 
191  Aws::String m_layerId;
192  bool m_layerIdHasBeenSet;
193 
194  bool m_enable;
195  bool m_enableHasBeenSet;
196 
197  AutoScalingThresholds m_upScaling;
198  bool m_upScalingHasBeenSet;
199 
200  AutoScalingThresholds m_downScaling;
201  bool m_downScalingHasBeenSet;
202  };
203 
204 } // namespace Model
205 } // namespace OpsWorks
206 } // namespace Aws
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::GetEnable
bool GetEnable() const
Definition: LoadBasedAutoScalingConfiguration.h:86
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::DownScalingHasBeenSet
bool DownScalingHasBeenSet() const
Definition: LoadBasedAutoScalingConfiguration.h:159
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::GetUpScaling
const AutoScalingThresholds & GetUpScaling() const
Definition: LoadBasedAutoScalingConfiguration.h:109
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::SetEnable
void SetEnable(bool value)
Definition: LoadBasedAutoScalingConfiguration.h:96
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration
Definition: LoadBasedAutoScalingConfiguration.h:34
AutoScalingThresholds.h
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::SetLayerId
void SetLayerId(const char *value)
Definition: LoadBasedAutoScalingConfiguration.h:65
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::WithLayerId
LoadBasedAutoScalingConfiguration & WithLayerId(const Aws::String &value)
Definition: LoadBasedAutoScalingConfiguration.h:70
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::LayerIdHasBeenSet
bool LayerIdHasBeenSet() const
Definition: LoadBasedAutoScalingConfiguration.h:50
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::WithDownScaling
LoadBasedAutoScalingConfiguration & WithDownScaling(const AutoScalingThresholds &value)
Definition: LoadBasedAutoScalingConfiguration.h:180
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::SetLayerId
void SetLayerId(const Aws::String &value)
Definition: LoadBasedAutoScalingConfiguration.h:55
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::UpScalingHasBeenSet
bool UpScalingHasBeenSet() const
Definition: LoadBasedAutoScalingConfiguration.h:116
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::WithEnable
LoadBasedAutoScalingConfiguration & WithEnable(bool value)
Definition: LoadBasedAutoScalingConfiguration.h:101
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::SetUpScaling
void SetUpScaling(const AutoScalingThresholds &value)
Definition: LoadBasedAutoScalingConfiguration.h:123
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::WithUpScaling
LoadBasedAutoScalingConfiguration & WithUpScaling(const AutoScalingThresholds &value)
Definition: LoadBasedAutoScalingConfiguration.h:137
Aws::OpsWorks::Model::AutoScalingThresholds
Definition: AutoScalingThresholds.h:35
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::WithLayerId
LoadBasedAutoScalingConfiguration & WithLayerId(const char *value)
Definition: LoadBasedAutoScalingConfiguration.h:80
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::SetUpScaling
void SetUpScaling(AutoScalingThresholds &&value)
Definition: LoadBasedAutoScalingConfiguration.h:130
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::SetLayerId
void SetLayerId(Aws::String &&value)
Definition: LoadBasedAutoScalingConfiguration.h:60
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::SetDownScaling
void SetDownScaling(AutoScalingThresholds &&value)
Definition: LoadBasedAutoScalingConfiguration.h:173
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::LoadBasedAutoScalingConfiguration
LoadBasedAutoScalingConfiguration()
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::WithLayerId
LoadBasedAutoScalingConfiguration & WithLayerId(Aws::String &&value)
Definition: LoadBasedAutoScalingConfiguration.h:75
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::SetDownScaling
void SetDownScaling(const AutoScalingThresholds &value)
Definition: LoadBasedAutoScalingConfiguration.h:166
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::GetDownScaling
const AutoScalingThresholds & GetDownScaling() const
Definition: LoadBasedAutoScalingConfiguration.h:152
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::GetLayerId
const Aws::String & GetLayerId() const
Definition: LoadBasedAutoScalingConfiguration.h:45
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::operator=
LoadBasedAutoScalingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::LoadBasedAutoScalingConfiguration
LoadBasedAutoScalingConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::WithUpScaling
LoadBasedAutoScalingConfiguration & WithUpScaling(AutoScalingThresholds &&value)
Definition: LoadBasedAutoScalingConfiguration.h:144
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::WithDownScaling
LoadBasedAutoScalingConfiguration & WithDownScaling(AutoScalingThresholds &&value)
Definition: LoadBasedAutoScalingConfiguration.h:187
Aws::OpsWorks::Model::LoadBasedAutoScalingConfiguration::EnableHasBeenSet
bool EnableHasBeenSet() const
Definition: LoadBasedAutoScalingConfiguration.h:91