AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExecutePolicyRequest.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/AutoScalingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace AutoScaling
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_AUTOSCALING_API ExecutePolicyRequest();
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_AUTOSCALING_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
40
43 inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
44 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
45 inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
46 inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
47 inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
49 inline ExecutePolicyRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;}
50 inline ExecutePolicyRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
52
54
57 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
58 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
59 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
60 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
61 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
62 inline ExecutePolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
63 inline ExecutePolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
64 inline ExecutePolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
66
68
76 inline bool GetHonorCooldown() const{ return m_honorCooldown; }
77 inline bool HonorCooldownHasBeenSet() const { return m_honorCooldownHasBeenSet; }
78 inline void SetHonorCooldown(bool value) { m_honorCooldownHasBeenSet = true; m_honorCooldown = value; }
79 inline ExecutePolicyRequest& WithHonorCooldown(bool value) { SetHonorCooldown(value); return *this;}
81
83
93 inline double GetMetricValue() const{ return m_metricValue; }
94 inline bool MetricValueHasBeenSet() const { return m_metricValueHasBeenSet; }
95 inline void SetMetricValue(double value) { m_metricValueHasBeenSet = true; m_metricValue = value; }
96 inline ExecutePolicyRequest& WithMetricValue(double value) { SetMetricValue(value); return *this;}
98
100
104 inline double GetBreachThreshold() const{ return m_breachThreshold; }
105 inline bool BreachThresholdHasBeenSet() const { return m_breachThresholdHasBeenSet; }
106 inline void SetBreachThreshold(double value) { m_breachThresholdHasBeenSet = true; m_breachThreshold = value; }
107 inline ExecutePolicyRequest& WithBreachThreshold(double value) { SetBreachThreshold(value); return *this;}
109 private:
110
111 Aws::String m_autoScalingGroupName;
112 bool m_autoScalingGroupNameHasBeenSet = false;
113
114 Aws::String m_policyName;
115 bool m_policyNameHasBeenSet = false;
116
117 bool m_honorCooldown;
118 bool m_honorCooldownHasBeenSet = false;
119
120 double m_metricValue;
121 bool m_metricValueHasBeenSet = false;
122
123 double m_breachThreshold;
124 bool m_breachThresholdHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace AutoScaling
129} // namespace Aws
void SetAutoScalingGroupName(const Aws::String &value)
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ExecutePolicyRequest & WithMetricValue(double value)
ExecutePolicyRequest & WithPolicyName(const Aws::String &value)
ExecutePolicyRequest & WithAutoScalingGroupName(const Aws::String &value)
ExecutePolicyRequest & WithPolicyName(const char *value)
ExecutePolicyRequest & WithAutoScalingGroupName(const char *value)
ExecutePolicyRequest & WithAutoScalingGroupName(Aws::String &&value)
ExecutePolicyRequest & WithPolicyName(Aws::String &&value)
ExecutePolicyRequest & WithBreachThreshold(double value)
virtual const char * GetServiceRequestName() const override
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
ExecutePolicyRequest & WithHonorCooldown(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String