AWS SDK for C++  0.12.9
AWS SDK for C++
SetLoadBasedAutoScalingRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace OpsWorks
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
41  inline const Aws::String& GetLayerId() const{ return m_layerId; }
42 
46  inline void SetLayerId(const Aws::String& value) { m_layerIdHasBeenSet = true; m_layerId = value; }
47 
51  inline void SetLayerId(Aws::String&& value) { m_layerIdHasBeenSet = true; m_layerId = value; }
52 
56  inline void SetLayerId(const char* value) { m_layerIdHasBeenSet = true; m_layerId.assign(value); }
57 
61  inline SetLoadBasedAutoScalingRequest& WithLayerId(const Aws::String& value) { SetLayerId(value); return *this;}
62 
66  inline SetLoadBasedAutoScalingRequest& WithLayerId(Aws::String&& value) { SetLayerId(value); return *this;}
67 
71  inline SetLoadBasedAutoScalingRequest& WithLayerId(const char* value) { SetLayerId(value); return *this;}
72 
76  inline bool GetEnable() const{ return m_enable; }
77 
81  inline void SetEnable(bool value) { m_enableHasBeenSet = true; m_enable = value; }
82 
86  inline SetLoadBasedAutoScalingRequest& WithEnable(bool value) { SetEnable(value); return *this;}
87 
93  inline const AutoScalingThresholds& GetUpScaling() const{ return m_upScaling; }
94 
100  inline void SetUpScaling(const AutoScalingThresholds& value) { m_upScalingHasBeenSet = true; m_upScaling = value; }
101 
107  inline void SetUpScaling(AutoScalingThresholds&& value) { m_upScalingHasBeenSet = true; m_upScaling = value; }
108 
114  inline SetLoadBasedAutoScalingRequest& WithUpScaling(const AutoScalingThresholds& value) { SetUpScaling(value); return *this;}
115 
121  inline SetLoadBasedAutoScalingRequest& WithUpScaling(AutoScalingThresholds&& value) { SetUpScaling(value); return *this;}
122 
128  inline const AutoScalingThresholds& GetDownScaling() const{ return m_downScaling; }
129 
135  inline void SetDownScaling(const AutoScalingThresholds& value) { m_downScalingHasBeenSet = true; m_downScaling = value; }
136 
142  inline void SetDownScaling(AutoScalingThresholds&& value) { m_downScalingHasBeenSet = true; m_downScaling = value; }
143 
149  inline SetLoadBasedAutoScalingRequest& WithDownScaling(const AutoScalingThresholds& value) { SetDownScaling(value); return *this;}
150 
156  inline SetLoadBasedAutoScalingRequest& WithDownScaling(AutoScalingThresholds&& value) { SetDownScaling(value); return *this;}
157 
158  private:
159  Aws::String m_layerId;
160  bool m_layerIdHasBeenSet;
161  bool m_enable;
162  bool m_enableHasBeenSet;
163  AutoScalingThresholds m_upScaling;
164  bool m_upScalingHasBeenSet;
165  AutoScalingThresholds m_downScaling;
166  bool m_downScalingHasBeenSet;
167  };
168 
169 } // namespace Model
170 } // namespace OpsWorks
171 } // namespace Aws
SetLoadBasedAutoScalingRequest & WithLayerId(Aws::String &&value)
SetLoadBasedAutoScalingRequest & WithDownScaling(const AutoScalingThresholds &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
SetLoadBasedAutoScalingRequest & WithLayerId(const Aws::String &value)
SetLoadBasedAutoScalingRequest & WithDownScaling(AutoScalingThresholds &&value)
SetLoadBasedAutoScalingRequest & WithUpScaling(AutoScalingThresholds &&value)
SetLoadBasedAutoScalingRequest & WithUpScaling(const AutoScalingThresholds &value)
SetLoadBasedAutoScalingRequest & WithLayerId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
SetLoadBasedAutoScalingRequest & WithEnable(bool value)
JSON (JavaScript Object Notation).