AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TargetGroup.h
1
6#pragma once
7#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.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 <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/elasticloadbalancingv2/model/TargetTypeEnum.h>
14#include <aws/elasticloadbalancingv2/model/TargetGroupIpAddressTypeEnum.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace ElasticLoadBalancingv2
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_ELASTICLOADBALANCINGV2_API TargetGroup();
40 AWS_ELASTICLOADBALANCINGV2_API TargetGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_ELASTICLOADBALANCINGV2_API TargetGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetTargetGroupArn() const{ return m_targetGroupArn; }
52 inline bool TargetGroupArnHasBeenSet() const { return m_targetGroupArnHasBeenSet; }
53 inline void SetTargetGroupArn(const Aws::String& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = value; }
54 inline void SetTargetGroupArn(Aws::String&& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = std::move(value); }
55 inline void SetTargetGroupArn(const char* value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn.assign(value); }
56 inline TargetGroup& WithTargetGroupArn(const Aws::String& value) { SetTargetGroupArn(value); return *this;}
57 inline TargetGroup& WithTargetGroupArn(Aws::String&& value) { SetTargetGroupArn(std::move(value)); return *this;}
58 inline TargetGroup& WithTargetGroupArn(const char* value) { SetTargetGroupArn(value); return *this;}
60
62
65 inline const Aws::String& GetTargetGroupName() const{ return m_targetGroupName; }
66 inline bool TargetGroupNameHasBeenSet() const { return m_targetGroupNameHasBeenSet; }
67 inline void SetTargetGroupName(const Aws::String& value) { m_targetGroupNameHasBeenSet = true; m_targetGroupName = value; }
68 inline void SetTargetGroupName(Aws::String&& value) { m_targetGroupNameHasBeenSet = true; m_targetGroupName = std::move(value); }
69 inline void SetTargetGroupName(const char* value) { m_targetGroupNameHasBeenSet = true; m_targetGroupName.assign(value); }
70 inline TargetGroup& WithTargetGroupName(const Aws::String& value) { SetTargetGroupName(value); return *this;}
71 inline TargetGroup& WithTargetGroupName(Aws::String&& value) { SetTargetGroupName(std::move(value)); return *this;}
72 inline TargetGroup& WithTargetGroupName(const char* value) { SetTargetGroupName(value); return *this;}
74
76
79 inline const ProtocolEnum& GetProtocol() const{ return m_protocol; }
80 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
81 inline void SetProtocol(const ProtocolEnum& value) { m_protocolHasBeenSet = true; m_protocol = value; }
82 inline void SetProtocol(ProtocolEnum&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
83 inline TargetGroup& WithProtocol(const ProtocolEnum& value) { SetProtocol(value); return *this;}
84 inline TargetGroup& WithProtocol(ProtocolEnum&& value) { SetProtocol(std::move(value)); return *this;}
86
88
92 inline int GetPort() const{ return m_port; }
93 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
94 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
95 inline TargetGroup& WithPort(int value) { SetPort(value); return *this;}
97
99
102 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
103 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
104 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
105 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
106 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
107 inline TargetGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
108 inline TargetGroup& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
109 inline TargetGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;}
111
113
117 inline const ProtocolEnum& GetHealthCheckProtocol() const{ return m_healthCheckProtocol; }
118 inline bool HealthCheckProtocolHasBeenSet() const { return m_healthCheckProtocolHasBeenSet; }
119 inline void SetHealthCheckProtocol(const ProtocolEnum& value) { m_healthCheckProtocolHasBeenSet = true; m_healthCheckProtocol = value; }
120 inline void SetHealthCheckProtocol(ProtocolEnum&& value) { m_healthCheckProtocolHasBeenSet = true; m_healthCheckProtocol = std::move(value); }
121 inline TargetGroup& WithHealthCheckProtocol(const ProtocolEnum& value) { SetHealthCheckProtocol(value); return *this;}
122 inline TargetGroup& WithHealthCheckProtocol(ProtocolEnum&& value) { SetHealthCheckProtocol(std::move(value)); return *this;}
124
126
129 inline const Aws::String& GetHealthCheckPort() const{ return m_healthCheckPort; }
130 inline bool HealthCheckPortHasBeenSet() const { return m_healthCheckPortHasBeenSet; }
131 inline void SetHealthCheckPort(const Aws::String& value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = value; }
132 inline void SetHealthCheckPort(Aws::String&& value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = std::move(value); }
133 inline void SetHealthCheckPort(const char* value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort.assign(value); }
134 inline TargetGroup& WithHealthCheckPort(const Aws::String& value) { SetHealthCheckPort(value); return *this;}
135 inline TargetGroup& WithHealthCheckPort(Aws::String&& value) { SetHealthCheckPort(std::move(value)); return *this;}
136 inline TargetGroup& WithHealthCheckPort(const char* value) { SetHealthCheckPort(value); return *this;}
138
140
143 inline bool GetHealthCheckEnabled() const{ return m_healthCheckEnabled; }
144 inline bool HealthCheckEnabledHasBeenSet() const { return m_healthCheckEnabledHasBeenSet; }
145 inline void SetHealthCheckEnabled(bool value) { m_healthCheckEnabledHasBeenSet = true; m_healthCheckEnabled = value; }
146 inline TargetGroup& WithHealthCheckEnabled(bool value) { SetHealthCheckEnabled(value); return *this;}
148
150
154 inline int GetHealthCheckIntervalSeconds() const{ return m_healthCheckIntervalSeconds; }
155 inline bool HealthCheckIntervalSecondsHasBeenSet() const { return m_healthCheckIntervalSecondsHasBeenSet; }
156 inline void SetHealthCheckIntervalSeconds(int value) { m_healthCheckIntervalSecondsHasBeenSet = true; m_healthCheckIntervalSeconds = value; }
159
161
165 inline int GetHealthCheckTimeoutSeconds() const{ return m_healthCheckTimeoutSeconds; }
166 inline bool HealthCheckTimeoutSecondsHasBeenSet() const { return m_healthCheckTimeoutSecondsHasBeenSet; }
167 inline void SetHealthCheckTimeoutSeconds(int value) { m_healthCheckTimeoutSecondsHasBeenSet = true; m_healthCheckTimeoutSeconds = value; }
170
172
176 inline int GetHealthyThresholdCount() const{ return m_healthyThresholdCount; }
177 inline bool HealthyThresholdCountHasBeenSet() const { return m_healthyThresholdCountHasBeenSet; }
178 inline void SetHealthyThresholdCount(int value) { m_healthyThresholdCountHasBeenSet = true; m_healthyThresholdCount = value; }
179 inline TargetGroup& WithHealthyThresholdCount(int value) { SetHealthyThresholdCount(value); return *this;}
181
183
187 inline int GetUnhealthyThresholdCount() const{ return m_unhealthyThresholdCount; }
188 inline bool UnhealthyThresholdCountHasBeenSet() const { return m_unhealthyThresholdCountHasBeenSet; }
189 inline void SetUnhealthyThresholdCount(int value) { m_unhealthyThresholdCountHasBeenSet = true; m_unhealthyThresholdCount = value; }
190 inline TargetGroup& WithUnhealthyThresholdCount(int value) { SetUnhealthyThresholdCount(value); return *this;}
192
194
197 inline const Aws::String& GetHealthCheckPath() const{ return m_healthCheckPath; }
198 inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
199 inline void SetHealthCheckPath(const Aws::String& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = value; }
200 inline void SetHealthCheckPath(Aws::String&& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = std::move(value); }
201 inline void SetHealthCheckPath(const char* value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath.assign(value); }
202 inline TargetGroup& WithHealthCheckPath(const Aws::String& value) { SetHealthCheckPath(value); return *this;}
203 inline TargetGroup& WithHealthCheckPath(Aws::String&& value) { SetHealthCheckPath(std::move(value)); return *this;}
204 inline TargetGroup& WithHealthCheckPath(const char* value) { SetHealthCheckPath(value); return *this;}
206
208
212 inline const Matcher& GetMatcher() const{ return m_matcher; }
213 inline bool MatcherHasBeenSet() const { return m_matcherHasBeenSet; }
214 inline void SetMatcher(const Matcher& value) { m_matcherHasBeenSet = true; m_matcher = value; }
215 inline void SetMatcher(Matcher&& value) { m_matcherHasBeenSet = true; m_matcher = std::move(value); }
216 inline TargetGroup& WithMatcher(const Matcher& value) { SetMatcher(value); return *this;}
217 inline TargetGroup& WithMatcher(Matcher&& value) { SetMatcher(std::move(value)); return *this;}
219
221
226 inline const Aws::Vector<Aws::String>& GetLoadBalancerArns() const{ return m_loadBalancerArns; }
227 inline bool LoadBalancerArnsHasBeenSet() const { return m_loadBalancerArnsHasBeenSet; }
228 inline void SetLoadBalancerArns(const Aws::Vector<Aws::String>& value) { m_loadBalancerArnsHasBeenSet = true; m_loadBalancerArns = value; }
229 inline void SetLoadBalancerArns(Aws::Vector<Aws::String>&& value) { m_loadBalancerArnsHasBeenSet = true; m_loadBalancerArns = std::move(value); }
231 inline TargetGroup& WithLoadBalancerArns(Aws::Vector<Aws::String>&& value) { SetLoadBalancerArns(std::move(value)); return *this;}
232 inline TargetGroup& AddLoadBalancerArns(const Aws::String& value) { m_loadBalancerArnsHasBeenSet = true; m_loadBalancerArns.push_back(value); return *this; }
233 inline TargetGroup& AddLoadBalancerArns(Aws::String&& value) { m_loadBalancerArnsHasBeenSet = true; m_loadBalancerArns.push_back(std::move(value)); return *this; }
234 inline TargetGroup& AddLoadBalancerArns(const char* value) { m_loadBalancerArnsHasBeenSet = true; m_loadBalancerArns.push_back(value); return *this; }
236
238
245 inline const TargetTypeEnum& GetTargetType() const{ return m_targetType; }
246 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
247 inline void SetTargetType(const TargetTypeEnum& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
248 inline void SetTargetType(TargetTypeEnum&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
249 inline TargetGroup& WithTargetType(const TargetTypeEnum& value) { SetTargetType(value); return *this;}
250 inline TargetGroup& WithTargetType(TargetTypeEnum&& value) { SetTargetType(std::move(value)); return *this;}
252
254
258 inline const Aws::String& GetProtocolVersion() const{ return m_protocolVersion; }
259 inline bool ProtocolVersionHasBeenSet() const { return m_protocolVersionHasBeenSet; }
260 inline void SetProtocolVersion(const Aws::String& value) { m_protocolVersionHasBeenSet = true; m_protocolVersion = value; }
261 inline void SetProtocolVersion(Aws::String&& value) { m_protocolVersionHasBeenSet = true; m_protocolVersion = std::move(value); }
262 inline void SetProtocolVersion(const char* value) { m_protocolVersionHasBeenSet = true; m_protocolVersion.assign(value); }
263 inline TargetGroup& WithProtocolVersion(const Aws::String& value) { SetProtocolVersion(value); return *this;}
264 inline TargetGroup& WithProtocolVersion(Aws::String&& value) { SetProtocolVersion(std::move(value)); return *this;}
265 inline TargetGroup& WithProtocolVersion(const char* value) { SetProtocolVersion(value); return *this;}
267
269
272 inline const TargetGroupIpAddressTypeEnum& GetIpAddressType() const{ return m_ipAddressType; }
273 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
274 inline void SetIpAddressType(const TargetGroupIpAddressTypeEnum& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
275 inline void SetIpAddressType(TargetGroupIpAddressTypeEnum&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); }
276 inline TargetGroup& WithIpAddressType(const TargetGroupIpAddressTypeEnum& value) { SetIpAddressType(value); return *this;}
277 inline TargetGroup& WithIpAddressType(TargetGroupIpAddressTypeEnum&& value) { SetIpAddressType(std::move(value)); return *this;}
279 private:
280
281 Aws::String m_targetGroupArn;
282 bool m_targetGroupArnHasBeenSet = false;
283
284 Aws::String m_targetGroupName;
285 bool m_targetGroupNameHasBeenSet = false;
286
287 ProtocolEnum m_protocol;
288 bool m_protocolHasBeenSet = false;
289
290 int m_port;
291 bool m_portHasBeenSet = false;
292
293 Aws::String m_vpcId;
294 bool m_vpcIdHasBeenSet = false;
295
296 ProtocolEnum m_healthCheckProtocol;
297 bool m_healthCheckProtocolHasBeenSet = false;
298
299 Aws::String m_healthCheckPort;
300 bool m_healthCheckPortHasBeenSet = false;
301
302 bool m_healthCheckEnabled;
303 bool m_healthCheckEnabledHasBeenSet = false;
304
305 int m_healthCheckIntervalSeconds;
306 bool m_healthCheckIntervalSecondsHasBeenSet = false;
307
308 int m_healthCheckTimeoutSeconds;
309 bool m_healthCheckTimeoutSecondsHasBeenSet = false;
310
311 int m_healthyThresholdCount;
312 bool m_healthyThresholdCountHasBeenSet = false;
313
314 int m_unhealthyThresholdCount;
315 bool m_unhealthyThresholdCountHasBeenSet = false;
316
317 Aws::String m_healthCheckPath;
318 bool m_healthCheckPathHasBeenSet = false;
319
320 Matcher m_matcher;
321 bool m_matcherHasBeenSet = false;
322
323 Aws::Vector<Aws::String> m_loadBalancerArns;
324 bool m_loadBalancerArnsHasBeenSet = false;
325
326 TargetTypeEnum m_targetType;
327 bool m_targetTypeHasBeenSet = false;
328
329 Aws::String m_protocolVersion;
330 bool m_protocolVersionHasBeenSet = false;
331
332 TargetGroupIpAddressTypeEnum m_ipAddressType;
333 bool m_ipAddressTypeHasBeenSet = false;
334 };
335
336} // namespace Model
337} // namespace ElasticLoadBalancingv2
338} // namespace Aws
TargetGroup & WithVpcId(const char *value)
TargetGroup & WithTargetType(TargetTypeEnum &&value)
TargetGroup & WithHealthCheckEnabled(bool value)
TargetGroup & WithHealthCheckPort(const Aws::String &value)
void SetVpcId(const Aws::String &value)
TargetGroup & WithProtocol(const ProtocolEnum &value)
Definition TargetGroup.h:83
void SetTargetType(TargetTypeEnum &&value)
TargetGroup & WithHealthCheckPath(Aws::String &&value)
TargetGroup & AddLoadBalancerArns(const char *value)
TargetGroup & WithHealthCheckPort(Aws::String &&value)
TargetGroup & WithHealthCheckPath(const char *value)
AWS_ELASTICLOADBALANCINGV2_API TargetGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TargetGroup & WithTargetType(const TargetTypeEnum &value)
AWS_ELASTICLOADBALANCINGV2_API TargetGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetLoadBalancerArns(const Aws::Vector< Aws::String > &value)
void SetIpAddressType(const TargetGroupIpAddressTypeEnum &value)
TargetGroup & WithProtocolVersion(const char *value)
const ProtocolEnum & GetProtocol() const
Definition TargetGroup.h:79
TargetGroup & WithHealthCheckPath(const Aws::String &value)
const Aws::String & GetTargetGroupName() const
Definition TargetGroup.h:65
const TargetGroupIpAddressTypeEnum & GetIpAddressType() const
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TargetGroup & WithMatcher(const Matcher &value)
TargetGroup & WithTargetGroupArn(Aws::String &&value)
Definition TargetGroup.h:57
const Aws::String & GetTargetGroupArn() const
Definition TargetGroup.h:51
TargetGroup & WithProtocol(ProtocolEnum &&value)
Definition TargetGroup.h:84
void SetLoadBalancerArns(Aws::Vector< Aws::String > &&value)
TargetGroup & WithTargetGroupName(Aws::String &&value)
Definition TargetGroup.h:71
void SetProtocol(const ProtocolEnum &value)
Definition TargetGroup.h:81
void SetHealthCheckPort(const Aws::String &value)
TargetGroup & WithTargetGroupName(const char *value)
Definition TargetGroup.h:72
void SetHealthCheckProtocol(ProtocolEnum &&value)
const Aws::Vector< Aws::String > & GetLoadBalancerArns() const
void SetHealthCheckPath(const Aws::String &value)
const TargetTypeEnum & GetTargetType() const
void SetHealthCheckProtocol(const ProtocolEnum &value)
TargetGroup & WithTargetGroupName(const Aws::String &value)
Definition TargetGroup.h:70
const Aws::String & GetHealthCheckPort() const
TargetGroup & WithHealthCheckIntervalSeconds(int value)
void SetProtocolVersion(const Aws::String &value)
TargetGroup & WithHealthyThresholdCount(int value)
AWS_ELASTICLOADBALANCINGV2_API TargetGroup()
TargetGroup & WithLoadBalancerArns(const Aws::Vector< Aws::String > &value)
TargetGroup & WithUnhealthyThresholdCount(int value)
TargetGroup & WithIpAddressType(const TargetGroupIpAddressTypeEnum &value)
void SetTargetGroupArn(const Aws::String &value)
Definition TargetGroup.h:53
TargetGroup & WithProtocolVersion(const Aws::String &value)
TargetGroup & WithHealthCheckProtocol(ProtocolEnum &&value)
const ProtocolEnum & GetHealthCheckProtocol() const
TargetGroup & WithIpAddressType(TargetGroupIpAddressTypeEnum &&value)
TargetGroup & AddLoadBalancerArns(const Aws::String &value)
const Aws::String & GetProtocolVersion() const
TargetGroup & WithProtocolVersion(Aws::String &&value)
TargetGroup & WithMatcher(Matcher &&value)
TargetGroup & WithLoadBalancerArns(Aws::Vector< Aws::String > &&value)
const Aws::String & GetHealthCheckPath() const
void SetIpAddressType(TargetGroupIpAddressTypeEnum &&value)
TargetGroup & WithHealthCheckTimeoutSeconds(int value)
TargetGroup & WithTargetGroupArn(const char *value)
Definition TargetGroup.h:58
TargetGroup & WithVpcId(const Aws::String &value)
void SetTargetGroupName(const Aws::String &value)
Definition TargetGroup.h:67
TargetGroup & WithHealthCheckProtocol(const ProtocolEnum &value)
TargetGroup & WithHealthCheckPort(const char *value)
void SetTargetType(const TargetTypeEnum &value)
TargetGroup & AddLoadBalancerArns(Aws::String &&value)
TargetGroup & WithTargetGroupArn(const Aws::String &value)
Definition TargetGroup.h:56
TargetGroup & WithVpcId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream