AWS SDK for C++  1.9.106
AWS SDK for C++
SetLoadBasedAutoScalingRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace OpsWorks
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "SetLoadBasedAutoScaling"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetLayerId() const{ return m_layerId; }
42 
46  inline bool LayerIdHasBeenSet() const { return m_layerIdHasBeenSet; }
47 
51  inline void SetLayerId(const Aws::String& value) { m_layerIdHasBeenSet = true; m_layerId = value; }
52 
56  inline void SetLayerId(Aws::String&& value) { m_layerIdHasBeenSet = true; m_layerId = std::move(value); }
57 
61  inline void SetLayerId(const char* value) { m_layerIdHasBeenSet = true; m_layerId.assign(value); }
62 
66  inline SetLoadBasedAutoScalingRequest& WithLayerId(const Aws::String& value) { SetLayerId(value); return *this;}
67 
71  inline SetLoadBasedAutoScalingRequest& WithLayerId(Aws::String&& value) { SetLayerId(std::move(value)); return *this;}
72 
76  inline SetLoadBasedAutoScalingRequest& WithLayerId(const char* value) { SetLayerId(value); return *this;}
77 
78 
82  inline bool GetEnable() const{ return m_enable; }
83 
87  inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; }
88 
92  inline void SetEnable(bool value) { m_enableHasBeenSet = true; m_enable = value; }
93 
97  inline SetLoadBasedAutoScalingRequest& WithEnable(bool value) { SetEnable(value); return *this;}
98 
99 
105  inline const AutoScalingThresholds& GetUpScaling() const{ return m_upScaling; }
106 
112  inline bool UpScalingHasBeenSet() const { return m_upScalingHasBeenSet; }
113 
119  inline void SetUpScaling(const AutoScalingThresholds& value) { m_upScalingHasBeenSet = true; m_upScaling = value; }
120 
126  inline void SetUpScaling(AutoScalingThresholds&& value) { m_upScalingHasBeenSet = true; m_upScaling = std::move(value); }
127 
133  inline SetLoadBasedAutoScalingRequest& WithUpScaling(const AutoScalingThresholds& value) { SetUpScaling(value); return *this;}
134 
140  inline SetLoadBasedAutoScalingRequest& WithUpScaling(AutoScalingThresholds&& value) { SetUpScaling(std::move(value)); return *this;}
141 
142 
148  inline const AutoScalingThresholds& GetDownScaling() const{ return m_downScaling; }
149 
155  inline bool DownScalingHasBeenSet() const { return m_downScalingHasBeenSet; }
156 
162  inline void SetDownScaling(const AutoScalingThresholds& value) { m_downScalingHasBeenSet = true; m_downScaling = value; }
163 
169  inline void SetDownScaling(AutoScalingThresholds&& value) { m_downScalingHasBeenSet = true; m_downScaling = std::move(value); }
170 
176  inline SetLoadBasedAutoScalingRequest& WithDownScaling(const AutoScalingThresholds& value) { SetDownScaling(value); return *this;}
177 
183  inline SetLoadBasedAutoScalingRequest& WithDownScaling(AutoScalingThresholds&& value) { SetDownScaling(std::move(value)); return *this;}
184 
185  private:
186 
187  Aws::String m_layerId;
188  bool m_layerIdHasBeenSet;
189 
190  bool m_enable;
191  bool m_enableHasBeenSet;
192 
193  AutoScalingThresholds m_upScaling;
194  bool m_upScalingHasBeenSet;
195 
196  AutoScalingThresholds m_downScaling;
197  bool m_downScalingHasBeenSet;
198  };
199 
200 } // namespace Model
201 } // namespace OpsWorks
202 } // namespace Aws
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::UpScalingHasBeenSet
bool UpScalingHasBeenSet() const
Definition: SetLoadBasedAutoScalingRequest.h:112
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::LayerIdHasBeenSet
bool LayerIdHasBeenSet() const
Definition: SetLoadBasedAutoScalingRequest.h:46
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::WithDownScaling
SetLoadBasedAutoScalingRequest & WithDownScaling(AutoScalingThresholds &&value)
Definition: SetLoadBasedAutoScalingRequest.h:183
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::SetEnable
void SetEnable(bool value)
Definition: SetLoadBasedAutoScalingRequest.h:92
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::SetLoadBasedAutoScalingRequest
SetLoadBasedAutoScalingRequest()
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::DownScalingHasBeenSet
bool DownScalingHasBeenSet() const
Definition: SetLoadBasedAutoScalingRequest.h:155
AutoScalingThresholds.h
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::SetDownScaling
void SetDownScaling(AutoScalingThresholds &&value)
Definition: SetLoadBasedAutoScalingRequest.h:169
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::SetDownScaling
void SetDownScaling(const AutoScalingThresholds &value)
Definition: SetLoadBasedAutoScalingRequest.h:162
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::GetDownScaling
const AutoScalingThresholds & GetDownScaling() const
Definition: SetLoadBasedAutoScalingRequest.h:148
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::SetLayerId
void SetLayerId(const Aws::String &value)
Definition: SetLoadBasedAutoScalingRequest.h:51
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::EnableHasBeenSet
bool EnableHasBeenSet() const
Definition: SetLoadBasedAutoScalingRequest.h:87
Aws::OpsWorks::OpsWorksRequest
Definition: OpsWorksRequest.h:17
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::GetEnable
bool GetEnable() const
Definition: SetLoadBasedAutoScalingRequest.h:82
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::WithUpScaling
SetLoadBasedAutoScalingRequest & WithUpScaling(AutoScalingThresholds &&value)
Definition: SetLoadBasedAutoScalingRequest.h:140
OpsWorksRequest.h
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::WithLayerId
SetLoadBasedAutoScalingRequest & WithLayerId(const char *value)
Definition: SetLoadBasedAutoScalingRequest.h:76
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest
Definition: SetLoadBasedAutoScalingRequest.h:23
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::SetUpScaling
void SetUpScaling(const AutoScalingThresholds &value)
Definition: SetLoadBasedAutoScalingRequest.h:119
Aws::OpsWorks::Model::AutoScalingThresholds
Definition: AutoScalingThresholds.h:35
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SetLoadBasedAutoScalingRequest.h:31
AWSString.h
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::WithEnable
SetLoadBasedAutoScalingRequest & WithEnable(bool value)
Definition: SetLoadBasedAutoScalingRequest.h:97
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::GetLayerId
const Aws::String & GetLayerId() const
Definition: SetLoadBasedAutoScalingRequest.h:41
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::WithUpScaling
SetLoadBasedAutoScalingRequest & WithUpScaling(const AutoScalingThresholds &value)
Definition: SetLoadBasedAutoScalingRequest.h:133
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::WithDownScaling
SetLoadBasedAutoScalingRequest & WithDownScaling(const AutoScalingThresholds &value)
Definition: SetLoadBasedAutoScalingRequest.h:176
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::WithLayerId
SetLoadBasedAutoScalingRequest & WithLayerId(const Aws::String &value)
Definition: SetLoadBasedAutoScalingRequest.h:66
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::SetLayerId
void SetLayerId(const char *value)
Definition: SetLoadBasedAutoScalingRequest.h:61
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::SetLayerId
void SetLayerId(Aws::String &&value)
Definition: SetLoadBasedAutoScalingRequest.h:56
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::WithLayerId
SetLoadBasedAutoScalingRequest & WithLayerId(Aws::String &&value)
Definition: SetLoadBasedAutoScalingRequest.h:71
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::SetUpScaling
void SetUpScaling(AutoScalingThresholds &&value)
Definition: SetLoadBasedAutoScalingRequest.h:126
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::OpsWorks::Model::SetLoadBasedAutoScalingRequest::GetUpScaling
const AutoScalingThresholds & GetUpScaling() const
Definition: SetLoadBasedAutoScalingRequest.h:105