AWS SDK for C++  1.9.109
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 
92  inline const ProtocolEnum& GetHealthCheckProtocol() const{ return m_healthCheckProtocol; }
93 
104  inline bool HealthCheckProtocolHasBeenSet() const { return m_healthCheckProtocolHasBeenSet; }
105 
116  inline void SetHealthCheckProtocol(const ProtocolEnum& value) { m_healthCheckProtocolHasBeenSet = true; m_healthCheckProtocol = value; }
117 
128  inline void SetHealthCheckProtocol(ProtocolEnum&& value) { m_healthCheckProtocolHasBeenSet = true; m_healthCheckProtocol = std::move(value); }
129 
140  inline ModifyTargetGroupRequest& WithHealthCheckProtocol(const ProtocolEnum& value) { SetHealthCheckProtocol(value); return *this;}
141 
152  inline ModifyTargetGroupRequest& WithHealthCheckProtocol(ProtocolEnum&& value) { SetHealthCheckProtocol(std::move(value)); return *this;}
153 
154 
158  inline const Aws::String& GetHealthCheckPort() const{ return m_healthCheckPort; }
159 
163  inline bool HealthCheckPortHasBeenSet() const { return m_healthCheckPortHasBeenSet; }
164 
168  inline void SetHealthCheckPort(const Aws::String& value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = value; }
169 
173  inline void SetHealthCheckPort(Aws::String&& value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = std::move(value); }
174 
178  inline void SetHealthCheckPort(const char* value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort.assign(value); }
179 
183  inline ModifyTargetGroupRequest& WithHealthCheckPort(const Aws::String& value) { SetHealthCheckPort(value); return *this;}
184 
188  inline ModifyTargetGroupRequest& WithHealthCheckPort(Aws::String&& value) { SetHealthCheckPort(std::move(value)); return *this;}
189 
193  inline ModifyTargetGroupRequest& WithHealthCheckPort(const char* value) { SetHealthCheckPort(value); return *this;}
194 
195 
203  inline const Aws::String& GetHealthCheckPath() const{ return m_healthCheckPath; }
204 
212  inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
213 
221  inline void SetHealthCheckPath(const Aws::String& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = value; }
222 
230  inline void SetHealthCheckPath(Aws::String&& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = std::move(value); }
231 
239  inline void SetHealthCheckPath(const char* value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath.assign(value); }
240 
248  inline ModifyTargetGroupRequest& WithHealthCheckPath(const Aws::String& value) { SetHealthCheckPath(value); return *this;}
249 
257  inline ModifyTargetGroupRequest& WithHealthCheckPath(Aws::String&& value) { SetHealthCheckPath(std::move(value)); return *this;}
258 
266  inline ModifyTargetGroupRequest& WithHealthCheckPath(const char* value) { SetHealthCheckPath(value); return *this;}
267 
268 
272  inline bool GetHealthCheckEnabled() const{ return m_healthCheckEnabled; }
273 
277  inline bool HealthCheckEnabledHasBeenSet() const { return m_healthCheckEnabledHasBeenSet; }
278 
282  inline void SetHealthCheckEnabled(bool value) { m_healthCheckEnabledHasBeenSet = true; m_healthCheckEnabled = value; }
283 
287  inline ModifyTargetGroupRequest& WithHealthCheckEnabled(bool value) { SetHealthCheckEnabled(value); return *this;}
288 
289 
295  inline int GetHealthCheckIntervalSeconds() const{ return m_healthCheckIntervalSeconds; }
296 
302  inline bool HealthCheckIntervalSecondsHasBeenSet() const { return m_healthCheckIntervalSecondsHasBeenSet; }
303 
309  inline void SetHealthCheckIntervalSeconds(int value) { m_healthCheckIntervalSecondsHasBeenSet = true; m_healthCheckIntervalSeconds = value; }
310 
316  inline ModifyTargetGroupRequest& WithHealthCheckIntervalSeconds(int value) { SetHealthCheckIntervalSeconds(value); return *this;}
317 
318 
324  inline int GetHealthCheckTimeoutSeconds() const{ return m_healthCheckTimeoutSeconds; }
325 
331  inline bool HealthCheckTimeoutSecondsHasBeenSet() const { return m_healthCheckTimeoutSecondsHasBeenSet; }
332 
338  inline void SetHealthCheckTimeoutSeconds(int value) { m_healthCheckTimeoutSecondsHasBeenSet = true; m_healthCheckTimeoutSeconds = value; }
339 
345  inline ModifyTargetGroupRequest& WithHealthCheckTimeoutSeconds(int value) { SetHealthCheckTimeoutSeconds(value); return *this;}
346 
347 
352  inline int GetHealthyThresholdCount() const{ return m_healthyThresholdCount; }
353 
358  inline bool HealthyThresholdCountHasBeenSet() const { return m_healthyThresholdCountHasBeenSet; }
359 
364  inline void SetHealthyThresholdCount(int value) { m_healthyThresholdCountHasBeenSet = true; m_healthyThresholdCount = value; }
365 
370  inline ModifyTargetGroupRequest& WithHealthyThresholdCount(int value) { SetHealthyThresholdCount(value); return *this;}
371 
372 
378  inline int GetUnhealthyThresholdCount() const{ return m_unhealthyThresholdCount; }
379 
385  inline bool UnhealthyThresholdCountHasBeenSet() const { return m_unhealthyThresholdCountHasBeenSet; }
386 
392  inline void SetUnhealthyThresholdCount(int value) { m_unhealthyThresholdCountHasBeenSet = true; m_unhealthyThresholdCount = value; }
393 
399  inline ModifyTargetGroupRequest& WithUnhealthyThresholdCount(int value) { SetUnhealthyThresholdCount(value); return *this;}
400 
401 
407  inline const Matcher& GetMatcher() const{ return m_matcher; }
408 
414  inline bool MatcherHasBeenSet() const { return m_matcherHasBeenSet; }
415 
421  inline void SetMatcher(const Matcher& value) { m_matcherHasBeenSet = true; m_matcher = value; }
422 
428  inline void SetMatcher(Matcher&& value) { m_matcherHasBeenSet = true; m_matcher = std::move(value); }
429 
435  inline ModifyTargetGroupRequest& WithMatcher(const Matcher& value) { SetMatcher(value); return *this;}
436 
442  inline ModifyTargetGroupRequest& WithMatcher(Matcher&& value) { SetMatcher(std::move(value)); return *this;}
443 
444  private:
445 
446  Aws::String m_targetGroupArn;
447  bool m_targetGroupArnHasBeenSet;
448 
449  ProtocolEnum m_healthCheckProtocol;
450  bool m_healthCheckProtocolHasBeenSet;
451 
452  Aws::String m_healthCheckPort;
453  bool m_healthCheckPortHasBeenSet;
454 
455  Aws::String m_healthCheckPath;
456  bool m_healthCheckPathHasBeenSet;
457 
458  bool m_healthCheckEnabled;
459  bool m_healthCheckEnabledHasBeenSet;
460 
461  int m_healthCheckIntervalSeconds;
462  bool m_healthCheckIntervalSecondsHasBeenSet;
463 
464  int m_healthCheckTimeoutSeconds;
465  bool m_healthCheckTimeoutSecondsHasBeenSet;
466 
467  int m_healthyThresholdCount;
468  bool m_healthyThresholdCountHasBeenSet;
469 
470  int m_unhealthyThresholdCount;
471  bool m_unhealthyThresholdCountHasBeenSet;
472 
473  Matcher m_matcher;
474  bool m_matcherHasBeenSet;
475  };
476 
477 } // namespace Model
478 } // namespace ElasticLoadBalancingv2
479 } // namespace Aws
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetHealthCheckIntervalSeconds
void SetHealthCheckIntervalSeconds(int value)
Definition: ModifyTargetGroupRequest.h:309
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:193
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::GetHealthCheckEnabled
bool GetHealthCheckEnabled() const
Definition: ModifyTargetGroupRequest.h:272
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:302
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithHealthCheckPath
ModifyTargetGroupRequest & WithHealthCheckPath(Aws::String &&value)
Definition: ModifyTargetGroupRequest.h:257
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::HealthCheckEnabledHasBeenSet
bool HealthCheckEnabledHasBeenSet() const
Definition: ModifyTargetGroupRequest.h:277
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::GetHealthCheckProtocol
const ProtocolEnum & GetHealthCheckProtocol() const
Definition: ModifyTargetGroupRequest.h:92
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::GetMatcher
const Matcher & GetMatcher() const
Definition: ModifyTargetGroupRequest.h:407
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetUnhealthyThresholdCount
void SetUnhealthyThresholdCount(int value)
Definition: ModifyTargetGroupRequest.h:392
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::HealthCheckProtocolHasBeenSet
bool HealthCheckProtocolHasBeenSet() const
Definition: ModifyTargetGroupRequest.h:104
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:421
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithHealthCheckPath
ModifyTargetGroupRequest & WithHealthCheckPath(const Aws::String &value)
Definition: ModifyTargetGroupRequest.h:248
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithMatcher
ModifyTargetGroupRequest & WithMatcher(const Matcher &value)
Definition: ModifyTargetGroupRequest.h:435
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::GetHealthCheckPath
const Aws::String & GetHealthCheckPath() const
Definition: ModifyTargetGroupRequest.h:203
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithUnhealthyThresholdCount
ModifyTargetGroupRequest & WithUnhealthyThresholdCount(int value)
Definition: ModifyTargetGroupRequest.h:399
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::GetHealthCheckIntervalSeconds
int GetHealthCheckIntervalSeconds() const
Definition: ModifyTargetGroupRequest.h:295
Aws::ElasticLoadBalancingv2::Model::ProtocolEnum
ProtocolEnum
Definition: ProtocolEnum.h:17
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithHealthCheckProtocol
ModifyTargetGroupRequest & WithHealthCheckProtocol(ProtocolEnum &&value)
Definition: ModifyTargetGroupRequest.h:152
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithHealthCheckIntervalSeconds
ModifyTargetGroupRequest & WithHealthCheckIntervalSeconds(int value)
Definition: ModifyTargetGroupRequest.h:316
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:358
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithHealthCheckPath
ModifyTargetGroupRequest & WithHealthCheckPath(const char *value)
Definition: ModifyTargetGroupRequest.h:266
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetHealthCheckPath
void SetHealthCheckPath(const char *value)
Definition: ModifyTargetGroupRequest.h:239
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetHealthCheckProtocol
void SetHealthCheckProtocol(const ProtocolEnum &value)
Definition: ModifyTargetGroupRequest.h:116
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::UnhealthyThresholdCountHasBeenSet
bool UnhealthyThresholdCountHasBeenSet() const
Definition: ModifyTargetGroupRequest.h:385
Aws::ElasticLoadBalancingv2::Model::Matcher
Definition: Matcher.h:34
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::HealthCheckPortHasBeenSet
bool HealthCheckPortHasBeenSet() const
Definition: ModifyTargetGroupRequest.h:163
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithHealthCheckTimeoutSeconds
ModifyTargetGroupRequest & WithHealthCheckTimeoutSeconds(int value)
Definition: ModifyTargetGroupRequest.h:345
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetHealthCheckEnabled
void SetHealthCheckEnabled(bool value)
Definition: ModifyTargetGroupRequest.h:282
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:364
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::HealthCheckTimeoutSecondsHasBeenSet
bool HealthCheckTimeoutSecondsHasBeenSet() const
Definition: ModifyTargetGroupRequest.h:331
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithHealthCheckPort
ModifyTargetGroupRequest & WithHealthCheckPort(Aws::String &&value)
Definition: ModifyTargetGroupRequest.h:188
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithHealthyThresholdCount
ModifyTargetGroupRequest & WithHealthyThresholdCount(int value)
Definition: ModifyTargetGroupRequest.h:370
AWSString.h
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetHealthCheckTimeoutSeconds
void SetHealthCheckTimeoutSeconds(int value)
Definition: ModifyTargetGroupRequest.h:338
Matcher.h
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetHealthCheckPort
void SetHealthCheckPort(const char *value)
Definition: ModifyTargetGroupRequest.h:178
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::GetHealthyThresholdCount
int GetHealthyThresholdCount() const
Definition: ModifyTargetGroupRequest.h:352
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:378
ElasticLoadBalancingv2Request.h
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithHealthCheckProtocol
ModifyTargetGroupRequest & WithHealthCheckProtocol(const ProtocolEnum &value)
Definition: ModifyTargetGroupRequest.h:140
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::WithHealthCheckEnabled
ModifyTargetGroupRequest & WithHealthCheckEnabled(bool value)
Definition: ModifyTargetGroupRequest.h:287
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::TargetGroupArnHasBeenSet
bool TargetGroupArnHasBeenSet() const
Definition: ModifyTargetGroupRequest.h:49
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::GetHealthCheckTimeoutSeconds
int GetHealthCheckTimeoutSeconds() const
Definition: ModifyTargetGroupRequest.h:324
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::MatcherHasBeenSet
bool MatcherHasBeenSet() const
Definition: ModifyTargetGroupRequest.h:414
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:183
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetHealthCheckPath
void SetHealthCheckPath(const Aws::String &value)
Definition: ModifyTargetGroupRequest.h:221
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetHealthCheckPath
void SetHealthCheckPath(Aws::String &&value)
Definition: ModifyTargetGroupRequest.h:230
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:158
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:428
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:442
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:212
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetHealthCheckProtocol
void SetHealthCheckProtocol(ProtocolEnum &&value)
Definition: ModifyTargetGroupRequest.h:128
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetHealthCheckPort
void SetHealthCheckPort(const Aws::String &value)
Definition: ModifyTargetGroupRequest.h:168
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::SetHealthCheckPort
void SetHealthCheckPort(Aws::String &&value)
Definition: ModifyTargetGroupRequest.h:173
Aws::ElasticLoadBalancingv2::Model::ModifyTargetGroupRequest::ModifyTargetGroupRequest
ModifyTargetGroupRequest()