AWS SDK for C++  1.8.127
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 
184  inline const Aws::String& GetHealthCheckPath() const{ return m_healthCheckPath; }
185 
192  inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
193 
200  inline void SetHealthCheckPath(const Aws::String& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = value; }
201 
208  inline void SetHealthCheckPath(Aws::String&& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = std::move(value); }
209 
216  inline void SetHealthCheckPath(const char* value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath.assign(value); }
217 
224  inline ModifyTargetGroupRequest& WithHealthCheckPath(const Aws::String& value) { SetHealthCheckPath(value); return *this;}
225 
232  inline ModifyTargetGroupRequest& WithHealthCheckPath(Aws::String&& value) { SetHealthCheckPath(std::move(value)); return *this;}
233 
240  inline ModifyTargetGroupRequest& WithHealthCheckPath(const char* value) { SetHealthCheckPath(value); return *this;}
241 
242 
246  inline bool GetHealthCheckEnabled() const{ return m_healthCheckEnabled; }
247 
251  inline bool HealthCheckEnabledHasBeenSet() const { return m_healthCheckEnabledHasBeenSet; }
252 
256  inline void SetHealthCheckEnabled(bool value) { m_healthCheckEnabledHasBeenSet = true; m_healthCheckEnabled = value; }
257 
261  inline ModifyTargetGroupRequest& WithHealthCheckEnabled(bool value) { SetHealthCheckEnabled(value); return *this;}
262 
263 
269  inline int GetHealthCheckIntervalSeconds() const{ return m_healthCheckIntervalSeconds; }
270 
276  inline bool HealthCheckIntervalSecondsHasBeenSet() const { return m_healthCheckIntervalSecondsHasBeenSet; }
277 
283  inline void SetHealthCheckIntervalSeconds(int value) { m_healthCheckIntervalSecondsHasBeenSet = true; m_healthCheckIntervalSeconds = value; }
284 
290  inline ModifyTargetGroupRequest& WithHealthCheckIntervalSeconds(int value) { SetHealthCheckIntervalSeconds(value); return *this;}
291 
292 
298  inline int GetHealthCheckTimeoutSeconds() const{ return m_healthCheckTimeoutSeconds; }
299 
305  inline bool HealthCheckTimeoutSecondsHasBeenSet() const { return m_healthCheckTimeoutSecondsHasBeenSet; }
306 
312  inline void SetHealthCheckTimeoutSeconds(int value) { m_healthCheckTimeoutSecondsHasBeenSet = true; m_healthCheckTimeoutSeconds = value; }
313 
319  inline ModifyTargetGroupRequest& WithHealthCheckTimeoutSeconds(int value) { SetHealthCheckTimeoutSeconds(value); return *this;}
320 
321 
326  inline int GetHealthyThresholdCount() const{ return m_healthyThresholdCount; }
327 
332  inline bool HealthyThresholdCountHasBeenSet() const { return m_healthyThresholdCountHasBeenSet; }
333 
338  inline void SetHealthyThresholdCount(int value) { m_healthyThresholdCountHasBeenSet = true; m_healthyThresholdCount = value; }
339 
344  inline ModifyTargetGroupRequest& WithHealthyThresholdCount(int value) { SetHealthyThresholdCount(value); return *this;}
345 
346 
352  inline int GetUnhealthyThresholdCount() const{ return m_unhealthyThresholdCount; }
353 
359  inline bool UnhealthyThresholdCountHasBeenSet() const { return m_unhealthyThresholdCountHasBeenSet; }
360 
366  inline void SetUnhealthyThresholdCount(int value) { m_unhealthyThresholdCountHasBeenSet = true; m_unhealthyThresholdCount = value; }
367 
373  inline ModifyTargetGroupRequest& WithUnhealthyThresholdCount(int value) { SetUnhealthyThresholdCount(value); return *this;}
374 
375 
381  inline const Matcher& GetMatcher() const{ return m_matcher; }
382 
388  inline bool MatcherHasBeenSet() const { return m_matcherHasBeenSet; }
389 
395  inline void SetMatcher(const Matcher& value) { m_matcherHasBeenSet = true; m_matcher = value; }
396 
402  inline void SetMatcher(Matcher&& value) { m_matcherHasBeenSet = true; m_matcher = std::move(value); }
403 
409  inline ModifyTargetGroupRequest& WithMatcher(const Matcher& value) { SetMatcher(value); return *this;}
410 
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
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetHealthCheckIntervalSeconds
void SetHealthCheckIntervalSeconds(int value)
Definition: ModifyTargetGroupRequest.h:283
Aws::ElasticLoadBalancingv2::ElasticLoadBalancingv2Request
Definition: ElasticLoadBalancingv2Request.h:17
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetTargetGroupArn
void SetTargetGroupArn(const Aws::String &value)
Definition: ModifyTargetGroupRequest.h:54
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithHealthCheckPort
ModifyTargetGroupRequest & WithHealthCheckPort(const char *value)
Definition: ModifyTargetGroupRequest.h:175
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::GetHealthCheckEnabled
bool GetHealthCheckEnabled() const
Definition: ModifyTargetGroupRequest.h:246
Aws::Http::URI
Definition: URI.h:32
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetTargetGroupArn
void SetTargetGroupArn(Aws::String &&value)
Definition: ModifyTargetGroupRequest.h:59
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::HealthCheckIntervalSecondsHasBeenSet
bool HealthCheckIntervalSecondsHasBeenSet() const
Definition: ModifyTargetGroupRequest.h:276
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithHealthCheckPath
ModifyTargetGroupRequest & WithHealthCheckPath(Aws::String &&value)
Definition: ModifyTargetGroupRequest.h:232
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::HealthCheckEnabledHasBeenSet
bool HealthCheckEnabledHasBeenSet() const
Definition: ModifyTargetGroupRequest.h:251
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::GetHealthCheckProtocol
const ProtocolEnum & GetHealthCheckProtocol() const
Definition: ModifyTargetGroupRequest.h:89
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::GetMatcher
const Matcher & GetMatcher() const
Definition: ModifyTargetGroupRequest.h:381
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetUnhealthyThresholdCount
void SetUnhealthyThresholdCount(int value)
Definition: ModifyTargetGroupRequest.h:366
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::HealthCheckProtocolHasBeenSet
bool HealthCheckProtocolHasBeenSet() const
Definition: ModifyTargetGroupRequest.h:98
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetTargetGroupArn
void SetTargetGroupArn(const char *value)
Definition: ModifyTargetGroupRequest.h:64
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetMatcher
void SetMatcher(const Matcher &value)
Definition: ModifyTargetGroupRequest.h:395
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithHealthCheckPath
ModifyTargetGroupRequest & WithHealthCheckPath(const Aws::String &value)
Definition: ModifyTargetGroupRequest.h:224
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithMatcher
ModifyTargetGroupRequest & WithMatcher(const Matcher &value)
Definition: ModifyTargetGroupRequest.h:409
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::GetHealthCheckPath
const Aws::String & GetHealthCheckPath() const
Definition: ModifyTargetGroupRequest.h:184
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithUnhealthyThresholdCount
ModifyTargetGroupRequest & WithUnhealthyThresholdCount(int value)
Definition: ModifyTargetGroupRequest.h:373
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::GetHealthCheckIntervalSeconds
int GetHealthCheckIntervalSeconds() const
Definition: ModifyTargetGroupRequest.h:269
Aws::ElasticLoadBalancingv2::Model::ProtocolEnum
ProtocolEnum
Definition: ProtocolEnum.h:17
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithHealthCheckProtocol
ModifyTargetGroupRequest & WithHealthCheckProtocol(ProtocolEnum &&value)
Definition: ModifyTargetGroupRequest.h:134
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithHealthCheckIntervalSeconds
ModifyTargetGroupRequest & WithHealthCheckIntervalSeconds(int value)
Definition: ModifyTargetGroupRequest.h:290
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::GetTargetGroupArn
const Aws::String & GetTargetGroupArn() const
Definition: ModifyTargetGroupRequest.h:44
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::HealthyThresholdCountHasBeenSet
bool HealthyThresholdCountHasBeenSet() const
Definition: ModifyTargetGroupRequest.h:332
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithHealthCheckPath
ModifyTargetGroupRequest & WithHealthCheckPath(const char *value)
Definition: ModifyTargetGroupRequest.h:240
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetHealthCheckPath
void SetHealthCheckPath(const char *value)
Definition: ModifyTargetGroupRequest.h:216
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetHealthCheckProtocol
void SetHealthCheckProtocol(const ProtocolEnum &value)
Definition: ModifyTargetGroupRequest.h:107
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::UnhealthyThresholdCountHasBeenSet
bool UnhealthyThresholdCountHasBeenSet() const
Definition: ModifyTargetGroupRequest.h:359
Aws::ElasticLoadBalancingv2::Model::Matcher
Definition: Matcher.h:34
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::HealthCheckPortHasBeenSet
bool HealthCheckPortHasBeenSet() const
Definition: ModifyTargetGroupRequest.h:145
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithHealthCheckTimeoutSeconds
ModifyTargetGroupRequest & WithHealthCheckTimeoutSeconds(int value)
Definition: ModifyTargetGroupRequest.h:319
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetHealthCheckEnabled
void SetHealthCheckEnabled(bool value)
Definition: ModifyTargetGroupRequest.h:256
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetHealthyThresholdCount
void SetHealthyThresholdCount(int value)
Definition: ModifyTargetGroupRequest.h:338
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::HealthCheckTimeoutSecondsHasBeenSet
bool HealthCheckTimeoutSecondsHasBeenSet() const
Definition: ModifyTargetGroupRequest.h:305
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithHealthCheckPort
ModifyTargetGroupRequest & WithHealthCheckPort(Aws::String &&value)
Definition: ModifyTargetGroupRequest.h:170
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithHealthyThresholdCount
ModifyTargetGroupRequest & WithHealthyThresholdCount(int value)
Definition: ModifyTargetGroupRequest.h:344
AWSString.h
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetHealthCheckTimeoutSeconds
void SetHealthCheckTimeoutSeconds(int value)
Definition: ModifyTargetGroupRequest.h:312
Matcher.h
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetHealthCheckPort
void SetHealthCheckPort(const char *value)
Definition: ModifyTargetGroupRequest.h:160
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::GetHealthyThresholdCount
int GetHealthyThresholdCount() const
Definition: ModifyTargetGroupRequest.h:326
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SerializePayload
Aws::String SerializePayload() const override
ElasticLoadBalancingv2_EXPORTS.h
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest
Definition: ModifyTargetGroupRequest.h:24
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::GetUnhealthyThresholdCount
int GetUnhealthyThresholdCount() const
Definition: ModifyTargetGroupRequest.h:352
ElasticLoadBalancingv2Request.h
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithHealthCheckProtocol
ModifyTargetGroupRequest & WithHealthCheckProtocol(const ProtocolEnum &value)
Definition: ModifyTargetGroupRequest.h:125
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithHealthCheckEnabled
ModifyTargetGroupRequest & WithHealthCheckEnabled(bool value)
Definition: ModifyTargetGroupRequest.h:261
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::TargetGroupArnHasBeenSet
bool TargetGroupArnHasBeenSet() const
Definition: ModifyTargetGroupRequest.h:49
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::GetHealthCheckTimeoutSeconds
int GetHealthCheckTimeoutSeconds() const
Definition: ModifyTargetGroupRequest.h:298
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::MatcherHasBeenSet
bool MatcherHasBeenSet() const
Definition: ModifyTargetGroupRequest.h:388
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyTargetGroupRequest.h:32
AWS_ELASTICLOADBALANCINGV2_API
#define AWS_ELASTICLOADBALANCINGV2_API
Definition: ElasticLoadBalancingv2_EXPORTS.h:28
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithHealthCheckPort
ModifyTargetGroupRequest & WithHealthCheckPort(const Aws::String &value)
Definition: ModifyTargetGroupRequest.h:165
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetHealthCheckPath
void SetHealthCheckPath(const Aws::String &value)
Definition: ModifyTargetGroupRequest.h:200
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetHealthCheckPath
void SetHealthCheckPath(Aws::String &&value)
Definition: ModifyTargetGroupRequest.h:208
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::GetHealthCheckPort
const Aws::String & GetHealthCheckPort() const
Definition: ModifyTargetGroupRequest.h:140
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithTargetGroupArn
ModifyTargetGroupRequest & WithTargetGroupArn(const char *value)
Definition: ModifyTargetGroupRequest.h:79
ProtocolEnum.h
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetMatcher
void SetMatcher(Matcher &&value)
Definition: ModifyTargetGroupRequest.h:402
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithTargetGroupArn
ModifyTargetGroupRequest & WithTargetGroupArn(Aws::String &&value)
Definition: ModifyTargetGroupRequest.h:74
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithMatcher
ModifyTargetGroupRequest & WithMatcher(Matcher &&value)
Definition: ModifyTargetGroupRequest.h:416
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithTargetGroupArn
ModifyTargetGroupRequest & WithTargetGroupArn(const Aws::String &value)
Definition: ModifyTargetGroupRequest.h:69
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::HealthCheckPathHasBeenSet
bool HealthCheckPathHasBeenSet() const
Definition: ModifyTargetGroupRequest.h:192
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetHealthCheckProtocol
void SetHealthCheckProtocol(ProtocolEnum &&value)
Definition: ModifyTargetGroupRequest.h:116
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetHealthCheckPort
void SetHealthCheckPort(const Aws::String &value)
Definition: ModifyTargetGroupRequest.h:150
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetHealthCheckPort
void SetHealthCheckPort(Aws::String &&value)
Definition: ModifyTargetGroupRequest.h:155
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::ModifyTargetGroupRequest
ModifyTargetGroupRequest()