AWS SDK for C++  0.14.3
AWS SDK for C++
ExecutePolicyRequest.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
19 
20 namespace Aws
21 {
22 namespace AutoScaling
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
39  inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
40 
44  inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
45 
49  inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
50 
54  inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
55 
59  inline ExecutePolicyRequest& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;}
60 
64  inline ExecutePolicyRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(value); return *this;}
65 
69  inline ExecutePolicyRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
70 
74  inline const Aws::String& GetPolicyName() const{ return m_policyName; }
75 
79  inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
80 
84  inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
85 
89  inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
90 
94  inline ExecutePolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
95 
99  inline ExecutePolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(value); return *this;}
100 
104  inline ExecutePolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
105 
115  inline bool GetHonorCooldown() const{ return m_honorCooldown; }
116 
126  inline void SetHonorCooldown(bool value) { m_honorCooldownHasBeenSet = true; m_honorCooldown = value; }
127 
137  inline ExecutePolicyRequest& WithHonorCooldown(bool value) { SetHonorCooldown(value); return *this;}
138 
149  inline double GetMetricValue() const{ return m_metricValue; }
150 
161  inline void SetMetricValue(double value) { m_metricValueHasBeenSet = true; m_metricValue = value; }
162 
173  inline ExecutePolicyRequest& WithMetricValue(double value) { SetMetricValue(value); return *this;}
174 
179  inline double GetBreachThreshold() const{ return m_breachThreshold; }
180 
185  inline void SetBreachThreshold(double value) { m_breachThresholdHasBeenSet = true; m_breachThreshold = value; }
186 
191  inline ExecutePolicyRequest& WithBreachThreshold(double value) { SetBreachThreshold(value); return *this;}
192 
193  private:
194  Aws::String m_autoScalingGroupName;
195  bool m_autoScalingGroupNameHasBeenSet;
196  Aws::String m_policyName;
197  bool m_policyNameHasBeenSet;
198  bool m_honorCooldown;
199  bool m_honorCooldownHasBeenSet;
200  double m_metricValue;
201  bool m_metricValueHasBeenSet;
202  double m_breachThreshold;
203  bool m_breachThresholdHasBeenSet;
204  };
205 
206 } // namespace Model
207 } // namespace AutoScaling
208 } // namespace Aws
ExecutePolicyRequest & WithBreachThreshold(double value)
ExecutePolicyRequest & WithPolicyName(const char *value)
ExecutePolicyRequest & WithHonorCooldown(bool value)
ExecutePolicyRequest & WithMetricValue(double value)
const Aws::String & GetAutoScalingGroupName() const
ExecutePolicyRequest & WithAutoScalingGroupName(const Aws::String &value)
ExecutePolicyRequest & WithAutoScalingGroupName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ExecutePolicyRequest & WithPolicyName(Aws::String &&value)
void SetAutoScalingGroupName(const Aws::String &value)
ExecutePolicyRequest & WithPolicyName(const Aws::String &value)
#define AWS_AUTOSCALING_API
ExecutePolicyRequest & WithAutoScalingGroupName(Aws::String &&value)
JSON (JavaScript Object Notation).