AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
ExecutePolicyRequest.h
1
6#pragma once
7#include <aws/autoscaling/AutoScalingRequest.h>
8#include <aws/autoscaling/AutoScaling_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace AutoScaling {
15namespace Model {
16
20 public:
21 AWS_AUTOSCALING_API ExecutePolicyRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "ExecutePolicy"; }
28
29 AWS_AUTOSCALING_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
39 inline const Aws::String& GetAutoScalingGroupName() const { return m_autoScalingGroupName; }
40 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
41 template <typename AutoScalingGroupNameT = Aws::String>
42 void SetAutoScalingGroupName(AutoScalingGroupNameT&& value) {
43 m_autoScalingGroupNameHasBeenSet = true;
44 m_autoScalingGroupName = std::forward<AutoScalingGroupNameT>(value);
45 }
46 template <typename AutoScalingGroupNameT = Aws::String>
47 ExecutePolicyRequest& WithAutoScalingGroupName(AutoScalingGroupNameT&& value) {
48 SetAutoScalingGroupName(std::forward<AutoScalingGroupNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetPolicyName() const { return m_policyName; }
58 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
59 template <typename PolicyNameT = Aws::String>
60 void SetPolicyName(PolicyNameT&& value) {
61 m_policyNameHasBeenSet = true;
62 m_policyName = std::forward<PolicyNameT>(value);
63 }
64 template <typename PolicyNameT = Aws::String>
65 ExecutePolicyRequest& WithPolicyName(PolicyNameT&& value) {
66 SetPolicyName(std::forward<PolicyNameT>(value));
67 return *this;
68 }
70
72
80 inline bool GetHonorCooldown() const { return m_honorCooldown; }
81 inline bool HonorCooldownHasBeenSet() const { return m_honorCooldownHasBeenSet; }
82 inline void SetHonorCooldown(bool value) {
83 m_honorCooldownHasBeenSet = true;
84 m_honorCooldown = value;
85 }
87 SetHonorCooldown(value);
88 return *this;
89 }
91
93
103 inline double GetMetricValue() const { return m_metricValue; }
104 inline bool MetricValueHasBeenSet() const { return m_metricValueHasBeenSet; }
105 inline void SetMetricValue(double value) {
106 m_metricValueHasBeenSet = true;
107 m_metricValue = value;
108 }
109 inline ExecutePolicyRequest& WithMetricValue(double value) {
110 SetMetricValue(value);
111 return *this;
112 }
114
116
120 inline double GetBreachThreshold() const { return m_breachThreshold; }
121 inline bool BreachThresholdHasBeenSet() const { return m_breachThresholdHasBeenSet; }
122 inline void SetBreachThreshold(double value) {
123 m_breachThresholdHasBeenSet = true;
124 m_breachThreshold = value;
125 }
127 SetBreachThreshold(value);
128 return *this;
129 }
131 private:
132 Aws::String m_autoScalingGroupName;
133
134 Aws::String m_policyName;
135
136 bool m_honorCooldown{false};
137
138 double m_metricValue{0.0};
139
140 double m_breachThreshold{0.0};
141 bool m_autoScalingGroupNameHasBeenSet = false;
142 bool m_policyNameHasBeenSet = false;
143 bool m_honorCooldownHasBeenSet = false;
144 bool m_metricValueHasBeenSet = false;
145 bool m_breachThresholdHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace AutoScaling
150} // namespace Aws
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ExecutePolicyRequest & WithMetricValue(double value)
void SetAutoScalingGroupName(AutoScalingGroupNameT &&value)
ExecutePolicyRequest & WithAutoScalingGroupName(AutoScalingGroupNameT &&value)
AWS_AUTOSCALING_API ExecutePolicyRequest()=default
ExecutePolicyRequest & WithBreachThreshold(double value)
virtual const char * GetServiceRequestName() const override
ExecutePolicyRequest & WithPolicyName(PolicyNameT &&value)
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
ExecutePolicyRequest & WithHonorCooldown(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String