AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ModifyTargetGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2Request.h>
9#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
10#include <aws/elasticloadbalancingv2/model/Matcher.h>
11#include <aws/elasticloadbalancingv2/model/ProtocolEnum.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ElasticLoadBalancingv2 {
17namespace Model {
18
22 public:
23 AWS_ELASTICLOADBALANCINGV2_API ModifyTargetGroupRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ModifyTargetGroup"; }
30
31 AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
41 inline const Aws::String& GetTargetGroupArn() const { return m_targetGroupArn; }
42 inline bool TargetGroupArnHasBeenSet() const { return m_targetGroupArnHasBeenSet; }
43 template <typename TargetGroupArnT = Aws::String>
44 void SetTargetGroupArn(TargetGroupArnT&& value) {
45 m_targetGroupArnHasBeenSet = true;
46 m_targetGroupArn = std::forward<TargetGroupArnT>(value);
47 }
48 template <typename TargetGroupArnT = Aws::String>
49 ModifyTargetGroupRequest& WithTargetGroupArn(TargetGroupArnT&& value) {
50 SetTargetGroupArn(std::forward<TargetGroupArnT>(value));
51 return *this;
52 }
54
56
65 inline ProtocolEnum GetHealthCheckProtocol() const { return m_healthCheckProtocol; }
66 inline bool HealthCheckProtocolHasBeenSet() const { return m_healthCheckProtocolHasBeenSet; }
68 m_healthCheckProtocolHasBeenSet = true;
69 m_healthCheckProtocol = value;
70 }
73 return *this;
74 }
76
78
81 inline const Aws::String& GetHealthCheckPort() const { return m_healthCheckPort; }
82 inline bool HealthCheckPortHasBeenSet() const { return m_healthCheckPortHasBeenSet; }
83 template <typename HealthCheckPortT = Aws::String>
84 void SetHealthCheckPort(HealthCheckPortT&& value) {
85 m_healthCheckPortHasBeenSet = true;
86 m_healthCheckPort = std::forward<HealthCheckPortT>(value);
87 }
88 template <typename HealthCheckPortT = Aws::String>
89 ModifyTargetGroupRequest& WithHealthCheckPort(HealthCheckPortT&& value) {
90 SetHealthCheckPort(std::forward<HealthCheckPortT>(value));
91 return *this;
92 }
94
96
103 inline const Aws::String& GetHealthCheckPath() const { return m_healthCheckPath; }
104 inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
105 template <typename HealthCheckPathT = Aws::String>
106 void SetHealthCheckPath(HealthCheckPathT&& value) {
107 m_healthCheckPathHasBeenSet = true;
108 m_healthCheckPath = std::forward<HealthCheckPathT>(value);
109 }
110 template <typename HealthCheckPathT = Aws::String>
112 SetHealthCheckPath(std::forward<HealthCheckPathT>(value));
113 return *this;
114 }
116
118
124 inline bool GetHealthCheckEnabled() const { return m_healthCheckEnabled; }
125 inline bool HealthCheckEnabledHasBeenSet() const { return m_healthCheckEnabledHasBeenSet; }
126 inline void SetHealthCheckEnabled(bool value) {
127 m_healthCheckEnabledHasBeenSet = true;
128 m_healthCheckEnabled = value;
129 }
132 return *this;
133 }
135
137
141 inline int GetHealthCheckIntervalSeconds() const { return m_healthCheckIntervalSeconds; }
142 inline bool HealthCheckIntervalSecondsHasBeenSet() const { return m_healthCheckIntervalSecondsHasBeenSet; }
143 inline void SetHealthCheckIntervalSeconds(int value) {
144 m_healthCheckIntervalSecondsHasBeenSet = true;
145 m_healthCheckIntervalSeconds = value;
146 }
149 return *this;
150 }
152
154
158 inline int GetHealthCheckTimeoutSeconds() const { return m_healthCheckTimeoutSeconds; }
159 inline bool HealthCheckTimeoutSecondsHasBeenSet() const { return m_healthCheckTimeoutSecondsHasBeenSet; }
160 inline void SetHealthCheckTimeoutSeconds(int value) {
161 m_healthCheckTimeoutSecondsHasBeenSet = true;
162 m_healthCheckTimeoutSeconds = value;
163 }
166 return *this;
167 }
169
171
175 inline int GetHealthyThresholdCount() const { return m_healthyThresholdCount; }
176 inline bool HealthyThresholdCountHasBeenSet() const { return m_healthyThresholdCountHasBeenSet; }
177 inline void SetHealthyThresholdCount(int value) {
178 m_healthyThresholdCountHasBeenSet = true;
179 m_healthyThresholdCount = value;
180 }
183 return *this;
184 }
186
188
192 inline int GetUnhealthyThresholdCount() const { return m_unhealthyThresholdCount; }
193 inline bool UnhealthyThresholdCountHasBeenSet() const { return m_unhealthyThresholdCountHasBeenSet; }
194 inline void SetUnhealthyThresholdCount(int value) {
195 m_unhealthyThresholdCountHasBeenSet = true;
196 m_unhealthyThresholdCount = value;
197 }
200 return *this;
201 }
203
205
212 inline const Matcher& GetMatcher() const { return m_matcher; }
213 inline bool MatcherHasBeenSet() const { return m_matcherHasBeenSet; }
214 template <typename MatcherT = Matcher>
215 void SetMatcher(MatcherT&& value) {
216 m_matcherHasBeenSet = true;
217 m_matcher = std::forward<MatcherT>(value);
218 }
219 template <typename MatcherT = Matcher>
221 SetMatcher(std::forward<MatcherT>(value));
222 return *this;
223 }
225 private:
226 Aws::String m_targetGroupArn;
227
228 ProtocolEnum m_healthCheckProtocol{ProtocolEnum::NOT_SET};
229
230 Aws::String m_healthCheckPort;
231
232 Aws::String m_healthCheckPath;
233
234 bool m_healthCheckEnabled{false};
235
236 int m_healthCheckIntervalSeconds{0};
237
238 int m_healthCheckTimeoutSeconds{0};
239
240 int m_healthyThresholdCount{0};
241
242 int m_unhealthyThresholdCount{0};
243
244 Matcher m_matcher;
245 bool m_targetGroupArnHasBeenSet = false;
246 bool m_healthCheckProtocolHasBeenSet = false;
247 bool m_healthCheckPortHasBeenSet = false;
248 bool m_healthCheckPathHasBeenSet = false;
249 bool m_healthCheckEnabledHasBeenSet = false;
250 bool m_healthCheckIntervalSecondsHasBeenSet = false;
251 bool m_healthCheckTimeoutSecondsHasBeenSet = false;
252 bool m_healthyThresholdCountHasBeenSet = false;
253 bool m_unhealthyThresholdCountHasBeenSet = false;
254 bool m_matcherHasBeenSet = false;
255};
256
257} // namespace Model
258} // namespace ElasticLoadBalancingv2
259} // namespace Aws
ModifyTargetGroupRequest & WithTargetGroupArn(TargetGroupArnT &&value)
AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_ELASTICLOADBALANCINGV2_API ModifyTargetGroupRequest()=default
ModifyTargetGroupRequest & WithHealthCheckProtocol(ProtocolEnum value)
AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override
ModifyTargetGroupRequest & WithHealthCheckPort(HealthCheckPortT &&value)
ModifyTargetGroupRequest & WithHealthCheckPath(HealthCheckPathT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String