AWS SDK for C++  1.9.159
AWS SDK for C++
ExecutePolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace AutoScaling
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "ExecutePolicy"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
42  inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
43 
47  inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
48 
52  inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
53 
57  inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
58 
62  inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
63 
67  inline ExecutePolicyRequest& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;}
68 
72  inline ExecutePolicyRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;}
73 
77  inline ExecutePolicyRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
78 
79 
83  inline const Aws::String& GetPolicyName() const{ return m_policyName; }
84 
88  inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
89 
93  inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
94 
98  inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
99 
103  inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
104 
108  inline ExecutePolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
109 
113  inline ExecutePolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
114 
118  inline ExecutePolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
119 
120 
129  inline bool GetHonorCooldown() const{ return m_honorCooldown; }
130 
139  inline bool HonorCooldownHasBeenSet() const { return m_honorCooldownHasBeenSet; }
140 
149  inline void SetHonorCooldown(bool value) { m_honorCooldownHasBeenSet = true; m_honorCooldown = value; }
150 
159  inline ExecutePolicyRequest& WithHonorCooldown(bool value) { SetHonorCooldown(value); return *this;}
160 
161 
172  inline double GetMetricValue() const{ return m_metricValue; }
173 
184  inline bool MetricValueHasBeenSet() const { return m_metricValueHasBeenSet; }
185 
196  inline void SetMetricValue(double value) { m_metricValueHasBeenSet = true; m_metricValue = value; }
197 
208  inline ExecutePolicyRequest& WithMetricValue(double value) { SetMetricValue(value); return *this;}
209 
210 
215  inline double GetBreachThreshold() const{ return m_breachThreshold; }
216 
221  inline bool BreachThresholdHasBeenSet() const { return m_breachThresholdHasBeenSet; }
222 
227  inline void SetBreachThreshold(double value) { m_breachThresholdHasBeenSet = true; m_breachThreshold = value; }
228 
233  inline ExecutePolicyRequest& WithBreachThreshold(double value) { SetBreachThreshold(value); return *this;}
234 
235  private:
236 
237  Aws::String m_autoScalingGroupName;
238  bool m_autoScalingGroupNameHasBeenSet;
239 
240  Aws::String m_policyName;
241  bool m_policyNameHasBeenSet;
242 
243  bool m_honorCooldown;
244  bool m_honorCooldownHasBeenSet;
245 
246  double m_metricValue;
247  bool m_metricValueHasBeenSet;
248 
249  double m_breachThreshold;
250  bool m_breachThresholdHasBeenSet;
251  };
252 
253 } // namespace Model
254 } // namespace AutoScaling
255 } // namespace Aws
Aws::AutoScaling::Model::ExecutePolicyRequest::SetBreachThreshold
void SetBreachThreshold(double value)
Definition: ExecutePolicyRequest.h:227
Aws::AutoScaling::Model::ExecutePolicyRequest::WithPolicyName
ExecutePolicyRequest & WithPolicyName(const Aws::String &value)
Definition: ExecutePolicyRequest.h:108
Aws::Http::URI
Definition: URI.h:32
Aws::AutoScaling::Model::ExecutePolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ExecutePolicyRequest.h:30
Aws::AutoScaling::Model::ExecutePolicyRequest::HonorCooldownHasBeenSet
bool HonorCooldownHasBeenSet() const
Definition: ExecutePolicyRequest.h:139
Aws::AutoScaling::Model::ExecutePolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AutoScaling::Model::ExecutePolicyRequest::WithAutoScalingGroupName
ExecutePolicyRequest & WithAutoScalingGroupName(const char *value)
Definition: ExecutePolicyRequest.h:77
Aws::AutoScaling::Model::ExecutePolicyRequest::WithPolicyName
ExecutePolicyRequest & WithPolicyName(Aws::String &&value)
Definition: ExecutePolicyRequest.h:113
Aws::AutoScaling::Model::ExecutePolicyRequest::WithBreachThreshold
ExecutePolicyRequest & WithBreachThreshold(double value)
Definition: ExecutePolicyRequest.h:233
Aws::AutoScaling::Model::ExecutePolicyRequest::PolicyNameHasBeenSet
bool PolicyNameHasBeenSet() const
Definition: ExecutePolicyRequest.h:88
Aws::AutoScaling::Model::ExecutePolicyRequest::GetAutoScalingGroupName
const Aws::String & GetAutoScalingGroupName() const
Definition: ExecutePolicyRequest.h:42
Aws::AutoScaling::Model::ExecutePolicyRequest::SetHonorCooldown
void SetHonorCooldown(bool value)
Definition: ExecutePolicyRequest.h:149
Aws::AutoScaling::Model::ExecutePolicyRequest::SetAutoScalingGroupName
void SetAutoScalingGroupName(const Aws::String &value)
Definition: ExecutePolicyRequest.h:52
Aws::AutoScaling::Model::ExecutePolicyRequest::SetAutoScalingGroupName
void SetAutoScalingGroupName(const char *value)
Definition: ExecutePolicyRequest.h:62
Aws::AutoScaling::Model::ExecutePolicyRequest
Definition: ExecutePolicyRequest.h:22
Aws::AutoScaling::Model::ExecutePolicyRequest::BreachThresholdHasBeenSet
bool BreachThresholdHasBeenSet() const
Definition: ExecutePolicyRequest.h:221
Aws::AutoScaling::Model::ExecutePolicyRequest::GetMetricValue
double GetMetricValue() const
Definition: ExecutePolicyRequest.h:172
Aws::AutoScaling::Model::ExecutePolicyRequest::SetMetricValue
void SetMetricValue(double value)
Definition: ExecutePolicyRequest.h:196
AutoScalingRequest.h
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::ExecutePolicyRequest::WithAutoScalingGroupName
ExecutePolicyRequest & WithAutoScalingGroupName(Aws::String &&value)
Definition: ExecutePolicyRequest.h:72
Aws::AutoScaling::Model::ExecutePolicyRequest::GetBreachThreshold
double GetBreachThreshold() const
Definition: ExecutePolicyRequest.h:215
Aws::AutoScaling::Model::ExecutePolicyRequest::MetricValueHasBeenSet
bool MetricValueHasBeenSet() const
Definition: ExecutePolicyRequest.h:184
Aws::AutoScaling::Model::ExecutePolicyRequest::WithMetricValue
ExecutePolicyRequest & WithMetricValue(double value)
Definition: ExecutePolicyRequest.h:208
Aws::AutoScaling::Model::ExecutePolicyRequest::SetAutoScalingGroupName
void SetAutoScalingGroupName(Aws::String &&value)
Definition: ExecutePolicyRequest.h:57
AWSString.h
Aws::AutoScaling::Model::ExecutePolicyRequest::AutoScalingGroupNameHasBeenSet
bool AutoScalingGroupNameHasBeenSet() const
Definition: ExecutePolicyRequest.h:47
Aws::AutoScaling::Model::ExecutePolicyRequest::SetPolicyName
void SetPolicyName(const Aws::String &value)
Definition: ExecutePolicyRequest.h:93
Aws::AutoScaling::AutoScalingRequest
Definition: AutoScalingRequest.h:17
Aws::AutoScaling::Model::ExecutePolicyRequest::ExecutePolicyRequest
ExecutePolicyRequest()
Aws::AutoScaling::Model::ExecutePolicyRequest::SetPolicyName
void SetPolicyName(const char *value)
Definition: ExecutePolicyRequest.h:103
AutoScaling_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::ExecutePolicyRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::AutoScaling::Model::ExecutePolicyRequest::WithAutoScalingGroupName
ExecutePolicyRequest & WithAutoScalingGroupName(const Aws::String &value)
Definition: ExecutePolicyRequest.h:67
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AutoScaling::Model::ExecutePolicyRequest::GetHonorCooldown
bool GetHonorCooldown() const
Definition: ExecutePolicyRequest.h:129
Aws::AutoScaling::Model::ExecutePolicyRequest::GetPolicyName
const Aws::String & GetPolicyName() const
Definition: ExecutePolicyRequest.h:83
Aws::AutoScaling::Model::ExecutePolicyRequest::WithPolicyName
ExecutePolicyRequest & WithPolicyName(const char *value)
Definition: ExecutePolicyRequest.h:118
Aws::AutoScaling::Model::ExecutePolicyRequest::WithHonorCooldown
ExecutePolicyRequest & WithHonorCooldown(bool value)
Definition: ExecutePolicyRequest.h:159
Aws::AutoScaling::Model::ExecutePolicyRequest::SetPolicyName
void SetPolicyName(Aws::String &&value)
Definition: ExecutePolicyRequest.h:98