AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyTargetGroupRequest.h
1
6#pragma once
7#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
8#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticloadbalancingv2/model/ProtocolEnum.h>
11#include <aws/elasticloadbalancingv2/model/Matcher.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ElasticLoadBalancingv2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ELASTICLOADBALANCINGV2_API ModifyTargetGroupRequest();
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_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::String& GetTargetGroupArn() const{ return m_targetGroupArn; }
46 inline bool TargetGroupArnHasBeenSet() const { return m_targetGroupArnHasBeenSet; }
47 inline void SetTargetGroupArn(const Aws::String& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = value; }
48 inline void SetTargetGroupArn(Aws::String&& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = std::move(value); }
49 inline void SetTargetGroupArn(const char* value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn.assign(value); }
50 inline ModifyTargetGroupRequest& WithTargetGroupArn(const Aws::String& value) { SetTargetGroupArn(value); return *this;}
51 inline ModifyTargetGroupRequest& WithTargetGroupArn(Aws::String&& value) { SetTargetGroupArn(std::move(value)); return *this;}
52 inline ModifyTargetGroupRequest& WithTargetGroupArn(const char* value) { SetTargetGroupArn(value); return *this;}
54
56
65 inline const ProtocolEnum& GetHealthCheckProtocol() const{ return m_healthCheckProtocol; }
66 inline bool HealthCheckProtocolHasBeenSet() const { return m_healthCheckProtocolHasBeenSet; }
67 inline void SetHealthCheckProtocol(const ProtocolEnum& value) { m_healthCheckProtocolHasBeenSet = true; m_healthCheckProtocol = value; }
68 inline void SetHealthCheckProtocol(ProtocolEnum&& value) { m_healthCheckProtocolHasBeenSet = true; m_healthCheckProtocol = std::move(value); }
70 inline ModifyTargetGroupRequest& WithHealthCheckProtocol(ProtocolEnum&& value) { SetHealthCheckProtocol(std::move(value)); return *this;}
72
74
77 inline const Aws::String& GetHealthCheckPort() const{ return m_healthCheckPort; }
78 inline bool HealthCheckPortHasBeenSet() const { return m_healthCheckPortHasBeenSet; }
79 inline void SetHealthCheckPort(const Aws::String& value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = value; }
80 inline void SetHealthCheckPort(Aws::String&& value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = std::move(value); }
81 inline void SetHealthCheckPort(const char* value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort.assign(value); }
82 inline ModifyTargetGroupRequest& WithHealthCheckPort(const Aws::String& value) { SetHealthCheckPort(value); return *this;}
83 inline ModifyTargetGroupRequest& WithHealthCheckPort(Aws::String&& value) { SetHealthCheckPort(std::move(value)); return *this;}
84 inline ModifyTargetGroupRequest& WithHealthCheckPort(const char* value) { SetHealthCheckPort(value); return *this;}
86
88
95 inline const Aws::String& GetHealthCheckPath() const{ return m_healthCheckPath; }
96 inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
97 inline void SetHealthCheckPath(const Aws::String& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = value; }
98 inline void SetHealthCheckPath(Aws::String&& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = std::move(value); }
99 inline void SetHealthCheckPath(const char* value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath.assign(value); }
100 inline ModifyTargetGroupRequest& WithHealthCheckPath(const Aws::String& value) { SetHealthCheckPath(value); return *this;}
101 inline ModifyTargetGroupRequest& WithHealthCheckPath(Aws::String&& value) { SetHealthCheckPath(std::move(value)); return *this;}
102 inline ModifyTargetGroupRequest& WithHealthCheckPath(const char* value) { SetHealthCheckPath(value); return *this;}
104
106
109 inline bool GetHealthCheckEnabled() const{ return m_healthCheckEnabled; }
110 inline bool HealthCheckEnabledHasBeenSet() const { return m_healthCheckEnabledHasBeenSet; }
111 inline void SetHealthCheckEnabled(bool value) { m_healthCheckEnabledHasBeenSet = true; m_healthCheckEnabled = value; }
112 inline ModifyTargetGroupRequest& WithHealthCheckEnabled(bool value) { SetHealthCheckEnabled(value); return *this;}
114
116
120 inline int GetHealthCheckIntervalSeconds() const{ return m_healthCheckIntervalSeconds; }
121 inline bool HealthCheckIntervalSecondsHasBeenSet() const { return m_healthCheckIntervalSecondsHasBeenSet; }
122 inline void SetHealthCheckIntervalSeconds(int value) { m_healthCheckIntervalSecondsHasBeenSet = true; m_healthCheckIntervalSeconds = value; }
125
127
131 inline int GetHealthCheckTimeoutSeconds() const{ return m_healthCheckTimeoutSeconds; }
132 inline bool HealthCheckTimeoutSecondsHasBeenSet() const { return m_healthCheckTimeoutSecondsHasBeenSet; }
133 inline void SetHealthCheckTimeoutSeconds(int value) { m_healthCheckTimeoutSecondsHasBeenSet = true; m_healthCheckTimeoutSeconds = value; }
136
138
142 inline int GetHealthyThresholdCount() const{ return m_healthyThresholdCount; }
143 inline bool HealthyThresholdCountHasBeenSet() const { return m_healthyThresholdCountHasBeenSet; }
144 inline void SetHealthyThresholdCount(int value) { m_healthyThresholdCountHasBeenSet = true; m_healthyThresholdCount = value; }
147
149
153 inline int GetUnhealthyThresholdCount() const{ return m_unhealthyThresholdCount; }
154 inline bool UnhealthyThresholdCountHasBeenSet() const { return m_unhealthyThresholdCountHasBeenSet; }
155 inline void SetUnhealthyThresholdCount(int value) { m_unhealthyThresholdCountHasBeenSet = true; m_unhealthyThresholdCount = value; }
158
160
167 inline const Matcher& GetMatcher() const{ return m_matcher; }
168 inline bool MatcherHasBeenSet() const { return m_matcherHasBeenSet; }
169 inline void SetMatcher(const Matcher& value) { m_matcherHasBeenSet = true; m_matcher = value; }
170 inline void SetMatcher(Matcher&& value) { m_matcherHasBeenSet = true; m_matcher = std::move(value); }
171 inline ModifyTargetGroupRequest& WithMatcher(const Matcher& value) { SetMatcher(value); return *this;}
172 inline ModifyTargetGroupRequest& WithMatcher(Matcher&& value) { SetMatcher(std::move(value)); return *this;}
174 private:
175
176 Aws::String m_targetGroupArn;
177 bool m_targetGroupArnHasBeenSet = false;
178
179 ProtocolEnum m_healthCheckProtocol;
180 bool m_healthCheckProtocolHasBeenSet = false;
181
182 Aws::String m_healthCheckPort;
183 bool m_healthCheckPortHasBeenSet = false;
184
185 Aws::String m_healthCheckPath;
186 bool m_healthCheckPathHasBeenSet = false;
187
188 bool m_healthCheckEnabled;
189 bool m_healthCheckEnabledHasBeenSet = false;
190
191 int m_healthCheckIntervalSeconds;
192 bool m_healthCheckIntervalSecondsHasBeenSet = false;
193
194 int m_healthCheckTimeoutSeconds;
195 bool m_healthCheckTimeoutSecondsHasBeenSet = false;
196
197 int m_healthyThresholdCount;
198 bool m_healthyThresholdCountHasBeenSet = false;
199
200 int m_unhealthyThresholdCount;
201 bool m_unhealthyThresholdCountHasBeenSet = false;
202
203 Matcher m_matcher;
204 bool m_matcherHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace ElasticLoadBalancingv2
209} // namespace Aws
ModifyTargetGroupRequest & WithTargetGroupArn(const Aws::String &value)
ModifyTargetGroupRequest & WithHealthCheckPort(const char *value)
AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyTargetGroupRequest & WithHealthCheckProtocol(ProtocolEnum &&value)
ModifyTargetGroupRequest & WithHealthCheckPath(Aws::String &&value)
ModifyTargetGroupRequest & WithTargetGroupArn(Aws::String &&value)
AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override
ModifyTargetGroupRequest & WithHealthCheckPort(Aws::String &&value)
ModifyTargetGroupRequest & WithTargetGroupArn(const char *value)
ModifyTargetGroupRequest & WithHealthCheckPath(const Aws::String &value)
ModifyTargetGroupRequest & WithHealthCheckPort(const Aws::String &value)
ModifyTargetGroupRequest & WithHealthCheckPath(const char *value)
ModifyTargetGroupRequest & WithMatcher(const Matcher &value)
ModifyTargetGroupRequest & WithHealthCheckProtocol(const ProtocolEnum &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String