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>
26namespace ElasticLoadBalancingv2
43 AWS_ELASTICLOADBALANCINGV2_API
void OutputToStream(
Aws::OStream& ostream,
const char* location,
unsigned index,
const char* locationValue)
const;
53 template<
typename TargetGroupArnT = Aws::String>
54 void SetTargetGroupArn(TargetGroupArnT&& value) { m_targetGroupArnHasBeenSet =
true; m_targetGroupArn = std::forward<TargetGroupArnT>(value); }
55 template<
typename TargetGroupArnT = Aws::String>
65 template<
typename TargetGroupNameT = Aws::String>
66 void SetTargetGroupName(TargetGroupNameT&& value) { m_targetGroupNameHasBeenSet =
true; m_targetGroupName = std::forward<TargetGroupNameT>(value); }
67 template<
typename TargetGroupNameT = Aws::String>
86 inline int GetPort()
const {
return m_port; }
88 inline void SetPort(
int value) { m_portHasBeenSet =
true; m_port = value; }
98 template<
typename VpcIdT = Aws::String>
99 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet =
true; m_vpcId = std::forward<VpcIdT>(value); }
100 template<
typename VpcIdT = Aws::String>
121 template<
typename HealthCheckPortT = Aws::String>
122 void SetHealthCheckPort(HealthCheckPortT&& value) { m_healthCheckPortHasBeenSet =
true; m_healthCheckPort = std::forward<HealthCheckPortT>(value); }
123 template<
typename HealthCheckPortT = Aws::String>
133 inline void SetHealthCheckEnabled(
bool value) { m_healthCheckEnabledHasBeenSet =
true; m_healthCheckEnabled = value; }
187 template<
typename HealthCheckPathT = Aws::String>
188 void SetHealthCheckPath(HealthCheckPathT&& value) { m_healthCheckPathHasBeenSet =
true; m_healthCheckPath = std::forward<HealthCheckPathT>(value); }
189 template<
typename HealthCheckPathT = Aws::String>
200 template<
typename MatcherT = Matcher>
201 void SetMatcher(MatcherT&& value) { m_matcherHasBeenSet =
true; m_matcher = std::forward<MatcherT>(value); }
202 template<
typename MatcherT = Matcher>
214 template<
typename LoadBalancerArnsT = Aws::Vector<Aws::String>>
215 void SetLoadBalancerArns(LoadBalancerArnsT&& value) { m_loadBalancerArnsHasBeenSet =
true; m_loadBalancerArns = std::forward<LoadBalancerArnsT>(value); }
216 template<
typename LoadBalancerArnsT = Aws::Vector<Aws::String>>
218 template<
typename LoadBalancerArnsT = Aws::String>
219 TargetGroup&
AddLoadBalancerArns(LoadBalancerArnsT&& value) { m_loadBalancerArnsHasBeenSet =
true; m_loadBalancerArns.emplace_back(std::forward<LoadBalancerArnsT>(value));
return *
this; }
243 template<
typename ProtocolVersionT = Aws::String>
244 void SetProtocolVersion(ProtocolVersionT&& value) { m_protocolVersionHasBeenSet =
true; m_protocolVersion = std::forward<ProtocolVersionT>(value); }
245 template<
typename ProtocolVersionT = Aws::String>
261 bool m_targetGroupArnHasBeenSet =
false;
264 bool m_targetGroupNameHasBeenSet =
false;
267 bool m_protocolHasBeenSet =
false;
270 bool m_portHasBeenSet =
false;
273 bool m_vpcIdHasBeenSet =
false;
276 bool m_healthCheckProtocolHasBeenSet =
false;
279 bool m_healthCheckPortHasBeenSet =
false;
281 bool m_healthCheckEnabled{
false};
282 bool m_healthCheckEnabledHasBeenSet =
false;
284 int m_healthCheckIntervalSeconds{0};
285 bool m_healthCheckIntervalSecondsHasBeenSet =
false;
287 int m_healthCheckTimeoutSeconds{0};
288 bool m_healthCheckTimeoutSecondsHasBeenSet =
false;
290 int m_healthyThresholdCount{0};
291 bool m_healthyThresholdCountHasBeenSet =
false;
293 int m_unhealthyThresholdCount{0};
294 bool m_unhealthyThresholdCountHasBeenSet =
false;
297 bool m_healthCheckPathHasBeenSet =
false;
300 bool m_matcherHasBeenSet =
false;
303 bool m_loadBalancerArnsHasBeenSet =
false;
306 bool m_targetTypeHasBeenSet =
false;
309 bool m_protocolVersionHasBeenSet =
false;
312 bool m_ipAddressTypeHasBeenSet =
false;
void SetHealthCheckProtocol(ProtocolEnum value)
TargetGroup & WithHealthCheckProtocol(ProtocolEnum value)
TargetGroup & WithTargetGroupArn(TargetGroupArnT &&value)
TargetGroup & WithHealthCheckEnabled(bool value)
TargetGroup & WithProtocol(ProtocolEnum value)
bool HealthCheckEnabledHasBeenSet() const
bool HealthCheckTimeoutSecondsHasBeenSet() const
AWS_ELASTICLOADBALANCINGV2_API TargetGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICLOADBALANCINGV2_API TargetGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
TargetGroup & WithVpcId(VpcIdT &&value)
const Aws::String & GetTargetGroupName() const
void SetUnhealthyThresholdCount(int value)
void SetHealthyThresholdCount(int value)
void SetHealthCheckPort(HealthCheckPortT &&value)
void SetMatcher(MatcherT &&value)
AWS_ELASTICLOADBALANCINGV2_API TargetGroup()=default
TargetGroupIpAddressTypeEnum GetIpAddressType() const
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool LoadBalancerArnsHasBeenSet() const
TargetGroup & WithMatcher(MatcherT &&value)
TargetGroup & WithPort(int value)
const Aws::String & GetTargetGroupArn() const
TargetGroup & WithProtocolVersion(ProtocolVersionT &&value)
TargetGroup & WithHealthCheckPort(HealthCheckPortT &&value)
TargetGroup & AddLoadBalancerArns(LoadBalancerArnsT &&value)
int GetHealthyThresholdCount() const
const Aws::Vector< Aws::String > & GetLoadBalancerArns() const
int GetHealthCheckTimeoutSeconds() const
bool IpAddressTypeHasBeenSet() const
void SetProtocolVersion(ProtocolVersionT &&value)
void SetProtocol(ProtocolEnum value)
bool TargetTypeHasBeenSet() const
bool ProtocolHasBeenSet() const
const Aws::String & GetHealthCheckPort() const
TargetGroup & WithHealthCheckIntervalSeconds(int value)
void SetTargetType(TargetTypeEnum value)
bool TargetGroupNameHasBeenSet() const
const Matcher & GetMatcher() const
TargetGroup & WithHealthCheckPath(HealthCheckPathT &&value)
void SetTargetGroupName(TargetGroupNameT &&value)
int GetHealthCheckIntervalSeconds() const
bool ProtocolVersionHasBeenSet() const
bool GetHealthCheckEnabled() const
TargetGroup & WithHealthyThresholdCount(int value)
bool HealthCheckIntervalSecondsHasBeenSet() const
TargetGroup & WithTargetType(TargetTypeEnum value)
TargetGroup & WithTargetGroupName(TargetGroupNameT &&value)
ProtocolEnum GetProtocol() const
TargetGroup & WithUnhealthyThresholdCount(int value)
TargetTypeEnum GetTargetType() const
const Aws::String & GetVpcId() const
bool HealthCheckPortHasBeenSet() const
int GetUnhealthyThresholdCount() const
void SetIpAddressType(TargetGroupIpAddressTypeEnum value)
void SetHealthCheckIntervalSeconds(int value)
bool VpcIdHasBeenSet() const
bool HealthyThresholdCountHasBeenSet() const
void SetHealthCheckEnabled(bool value)
bool TargetGroupArnHasBeenSet() const
void SetTargetGroupArn(TargetGroupArnT &&value)
const Aws::String & GetProtocolVersion() const
void SetLoadBalancerArns(LoadBalancerArnsT &&value)
TargetGroup & WithIpAddressType(TargetGroupIpAddressTypeEnum value)
void SetHealthCheckTimeoutSeconds(int value)
void SetHealthCheckPath(HealthCheckPathT &&value)
bool PortHasBeenSet() const
TargetGroup & WithLoadBalancerArns(LoadBalancerArnsT &&value)
const Aws::String & GetHealthCheckPath() const
TargetGroup & WithHealthCheckTimeoutSeconds(int value)
ProtocolEnum GetHealthCheckProtocol() const
void SetVpcId(VpcIdT &&value)
bool HealthCheckProtocolHasBeenSet() const
bool MatcherHasBeenSet() const
bool HealthCheckPathHasBeenSet() const
bool UnhealthyThresholdCountHasBeenSet() const
TargetGroupIpAddressTypeEnum
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