AWS SDK for C++  1.8.71
AWS SDK for C++
ModifyTargetGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ElasticLoadBalancingv2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "ModifyTargetGroup"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::String& GetTargetGroupArn() const{ return m_targetGroupArn; }
45 
49  inline bool TargetGroupArnHasBeenSet() const { return m_targetGroupArnHasBeenSet; }
50 
54  inline void SetTargetGroupArn(const Aws::String& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = value; }
55 
59  inline void SetTargetGroupArn(Aws::String&& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = std::move(value); }
60 
64  inline void SetTargetGroupArn(const char* value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn.assign(value); }
65 
69  inline ModifyTargetGroupRequest& WithTargetGroupArn(const Aws::String& value) { SetTargetGroupArn(value); return *this;}
70 
74  inline ModifyTargetGroupRequest& WithTargetGroupArn(Aws::String&& value) { SetTargetGroupArn(std::move(value)); return *this;}
75 
79  inline ModifyTargetGroupRequest& WithTargetGroupArn(const char* value) { SetTargetGroupArn(value); return *this;}
80 
81 
89  inline const ProtocolEnum& GetHealthCheckProtocol() const{ return m_healthCheckProtocol; }
90 
98  inline bool HealthCheckProtocolHasBeenSet() const { return m_healthCheckProtocolHasBeenSet; }
99 
107  inline void SetHealthCheckProtocol(const ProtocolEnum& value) { m_healthCheckProtocolHasBeenSet = true; m_healthCheckProtocol = value; }
108 
116  inline void SetHealthCheckProtocol(ProtocolEnum&& value) { m_healthCheckProtocolHasBeenSet = true; m_healthCheckProtocol = std::move(value); }
117 
125  inline ModifyTargetGroupRequest& WithHealthCheckProtocol(const ProtocolEnum& value) { SetHealthCheckProtocol(value); return *this;}
126 
134  inline ModifyTargetGroupRequest& WithHealthCheckProtocol(ProtocolEnum&& value) { SetHealthCheckProtocol(std::move(value)); return *this;}
135 
136 
140  inline const Aws::String& GetHealthCheckPort() const{ return m_healthCheckPort; }
141 
145  inline bool HealthCheckPortHasBeenSet() const { return m_healthCheckPortHasBeenSet; }
146 
150  inline void SetHealthCheckPort(const Aws::String& value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = value; }
151 
155  inline void SetHealthCheckPort(Aws::String&& value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = std::move(value); }
156 
160  inline void SetHealthCheckPort(const char* value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort.assign(value); }
161 
165  inline ModifyTargetGroupRequest& WithHealthCheckPort(const Aws::String& value) { SetHealthCheckPort(value); return *this;}
166 
170  inline ModifyTargetGroupRequest& WithHealthCheckPort(Aws::String&& value) { SetHealthCheckPort(std::move(value)); return *this;}
171 
175  inline ModifyTargetGroupRequest& WithHealthCheckPort(const char* value) { SetHealthCheckPort(value); return *this;}
176 
177 
182  inline const Aws::String& GetHealthCheckPath() const{ return m_healthCheckPath; }
183 
188  inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
189 
194  inline void SetHealthCheckPath(const Aws::String& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = value; }
195 
200  inline void SetHealthCheckPath(Aws::String&& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = std::move(value); }
201 
206  inline void SetHealthCheckPath(const char* value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath.assign(value); }
207 
212  inline ModifyTargetGroupRequest& WithHealthCheckPath(const Aws::String& value) { SetHealthCheckPath(value); return *this;}
213 
218  inline ModifyTargetGroupRequest& WithHealthCheckPath(Aws::String&& value) { SetHealthCheckPath(std::move(value)); return *this;}
219 
224  inline ModifyTargetGroupRequest& WithHealthCheckPath(const char* value) { SetHealthCheckPath(value); return *this;}
225 
226 
230  inline bool GetHealthCheckEnabled() const{ return m_healthCheckEnabled; }
231 
235  inline bool HealthCheckEnabledHasBeenSet() const { return m_healthCheckEnabledHasBeenSet; }
236 
240  inline void SetHealthCheckEnabled(bool value) { m_healthCheckEnabledHasBeenSet = true; m_healthCheckEnabled = value; }
241 
245  inline ModifyTargetGroupRequest& WithHealthCheckEnabled(bool value) { SetHealthCheckEnabled(value); return *this;}
246 
247 
254  inline int GetHealthCheckIntervalSeconds() const{ return m_healthCheckIntervalSeconds; }
255 
262  inline bool HealthCheckIntervalSecondsHasBeenSet() const { return m_healthCheckIntervalSecondsHasBeenSet; }
263 
270  inline void SetHealthCheckIntervalSeconds(int value) { m_healthCheckIntervalSecondsHasBeenSet = true; m_healthCheckIntervalSeconds = value; }
271 
278  inline ModifyTargetGroupRequest& WithHealthCheckIntervalSeconds(int value) { SetHealthCheckIntervalSeconds(value); return *this;}
279 
280 
286  inline int GetHealthCheckTimeoutSeconds() const{ return m_healthCheckTimeoutSeconds; }
287 
293  inline bool HealthCheckTimeoutSecondsHasBeenSet() const { return m_healthCheckTimeoutSecondsHasBeenSet; }
294 
300  inline void SetHealthCheckTimeoutSeconds(int value) { m_healthCheckTimeoutSecondsHasBeenSet = true; m_healthCheckTimeoutSeconds = value; }
301 
307  inline ModifyTargetGroupRequest& WithHealthCheckTimeoutSeconds(int value) { SetHealthCheckTimeoutSeconds(value); return *this;}
308 
309 
314  inline int GetHealthyThresholdCount() const{ return m_healthyThresholdCount; }
315 
320  inline bool HealthyThresholdCountHasBeenSet() const { return m_healthyThresholdCountHasBeenSet; }
321 
326  inline void SetHealthyThresholdCount(int value) { m_healthyThresholdCountHasBeenSet = true; m_healthyThresholdCount = value; }
327 
332  inline ModifyTargetGroupRequest& WithHealthyThresholdCount(int value) { SetHealthyThresholdCount(value); return *this;}
333 
334 
340  inline int GetUnhealthyThresholdCount() const{ return m_unhealthyThresholdCount; }
341 
347  inline bool UnhealthyThresholdCountHasBeenSet() const { return m_unhealthyThresholdCountHasBeenSet; }
348 
354  inline void SetUnhealthyThresholdCount(int value) { m_unhealthyThresholdCountHasBeenSet = true; m_unhealthyThresholdCount = value; }
355 
361  inline ModifyTargetGroupRequest& WithUnhealthyThresholdCount(int value) { SetUnhealthyThresholdCount(value); return *this;}
362 
363 
371  inline const Matcher& GetMatcher() const{ return m_matcher; }
372 
380  inline bool MatcherHasBeenSet() const { return m_matcherHasBeenSet; }
381 
389  inline void SetMatcher(const Matcher& value) { m_matcherHasBeenSet = true; m_matcher = value; }
390 
398  inline void SetMatcher(Matcher&& value) { m_matcherHasBeenSet = true; m_matcher = std::move(value); }
399 
407  inline ModifyTargetGroupRequest& WithMatcher(const Matcher& value) { SetMatcher(value); return *this;}
408 
416  inline ModifyTargetGroupRequest& WithMatcher(Matcher&& value) { SetMatcher(std::move(value)); return *this;}
417 
418  private:
419 
420  Aws::String m_targetGroupArn;
421  bool m_targetGroupArnHasBeenSet;
422 
423  ProtocolEnum m_healthCheckProtocol;
424  bool m_healthCheckProtocolHasBeenSet;
425 
426  Aws::String m_healthCheckPort;
427  bool m_healthCheckPortHasBeenSet;
428 
429  Aws::String m_healthCheckPath;
430  bool m_healthCheckPathHasBeenSet;
431 
432  bool m_healthCheckEnabled;
433  bool m_healthCheckEnabledHasBeenSet;
434 
435  int m_healthCheckIntervalSeconds;
436  bool m_healthCheckIntervalSecondsHasBeenSet;
437 
438  int m_healthCheckTimeoutSeconds;
439  bool m_healthCheckTimeoutSecondsHasBeenSet;
440 
441  int m_healthyThresholdCount;
442  bool m_healthyThresholdCountHasBeenSet;
443 
444  int m_unhealthyThresholdCount;
445  bool m_unhealthyThresholdCountHasBeenSet;
446 
447  Matcher m_matcher;
448  bool m_matcherHasBeenSet;
449  };
450 
451 } // namespace Model
452 } // namespace ElasticLoadBalancingv2
453 } // namespace Aws
ModifyTargetGroupRequest & WithHealthCheckProtocol(ProtocolEnum &&value)
ModifyTargetGroupRequest & WithTargetGroupArn(const char *value)
ModifyTargetGroupRequest & WithMatcher(const Matcher &value)
ModifyTargetGroupRequest & WithHealthCheckPort(const char *value)
ModifyTargetGroupRequest & WithHealthCheckPath(const Aws::String &value)
ModifyTargetGroupRequest & WithHealthCheckPath(Aws::String &&value)
ModifyTargetGroupRequest & WithHealthCheckPort(Aws::String &&value)
ModifyTargetGroupRequest & WithHealthCheckPath(const char *value)
ModifyTargetGroupRequest & WithHealthCheckPort(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ModifyTargetGroupRequest & WithTargetGroupArn(Aws::String &&value)
ModifyTargetGroupRequest & WithHealthCheckProtocol(const ProtocolEnum &value)
#define AWS_ELASTICLOADBALANCINGV2_API
ModifyTargetGroupRequest & WithTargetGroupArn(const Aws::String &value)