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;
55 inline void SetTargetGroupArn(
const char* value) { m_targetGroupArnHasBeenSet =
true; m_targetGroupArn.assign(value); }
69 inline void SetTargetGroupName(
const char* value) { m_targetGroupNameHasBeenSet =
true; m_targetGroupName.assign(value); }
92 inline int GetPort()
const{
return m_port; }
94 inline void SetPort(
int value) { m_portHasBeenSet =
true; m_port = value; }
106 inline void SetVpcId(
const char* value) { m_vpcIdHasBeenSet =
true; m_vpcId.assign(value); }
133 inline void SetHealthCheckPort(
const char* value) { m_healthCheckPortHasBeenSet =
true; m_healthCheckPort.assign(value); }
145 inline void SetHealthCheckEnabled(
bool value) { m_healthCheckEnabledHasBeenSet =
true; m_healthCheckEnabled = value; }
201 inline void SetHealthCheckPath(
const char* value) { m_healthCheckPathHasBeenSet =
true; m_healthCheckPath.assign(value); }
215 inline void SetMatcher(
Matcher&& value) { m_matcherHasBeenSet =
true; m_matcher = std::move(value); }
262 inline void SetProtocolVersion(
const char* value) { m_protocolVersionHasBeenSet =
true; m_protocolVersion.assign(value); }
282 bool m_targetGroupArnHasBeenSet =
false;
285 bool m_targetGroupNameHasBeenSet =
false;
288 bool m_protocolHasBeenSet =
false;
291 bool m_portHasBeenSet =
false;
294 bool m_vpcIdHasBeenSet =
false;
297 bool m_healthCheckProtocolHasBeenSet =
false;
300 bool m_healthCheckPortHasBeenSet =
false;
302 bool m_healthCheckEnabled;
303 bool m_healthCheckEnabledHasBeenSet =
false;
305 int m_healthCheckIntervalSeconds;
306 bool m_healthCheckIntervalSecondsHasBeenSet =
false;
308 int m_healthCheckTimeoutSeconds;
309 bool m_healthCheckTimeoutSecondsHasBeenSet =
false;
311 int m_healthyThresholdCount;
312 bool m_healthyThresholdCountHasBeenSet =
false;
314 int m_unhealthyThresholdCount;
315 bool m_unhealthyThresholdCountHasBeenSet =
false;
318 bool m_healthCheckPathHasBeenSet =
false;
321 bool m_matcherHasBeenSet =
false;
324 bool m_loadBalancerArnsHasBeenSet =
false;
327 bool m_targetTypeHasBeenSet =
false;
330 bool m_protocolVersionHasBeenSet =
false;
333 bool m_ipAddressTypeHasBeenSet =
false;
TargetGroup & WithVpcId(const char *value)
TargetGroup & WithTargetType(TargetTypeEnum &&value)
TargetGroup & WithHealthCheckEnabled(bool value)
void SetTargetGroupArn(Aws::String &&value)
TargetGroup & WithHealthCheckPort(const Aws::String &value)
void SetVpcId(const Aws::String &value)
TargetGroup & WithProtocol(const ProtocolEnum &value)
void SetTargetType(TargetTypeEnum &&value)
void SetProtocolVersion(Aws::String &&value)
void SetMatcher(Matcher &&value)
bool HealthCheckEnabledHasBeenSet() const
TargetGroup & WithHealthCheckPath(Aws::String &&value)
TargetGroup & AddLoadBalancerArns(const char *value)
TargetGroup & WithHealthCheckPort(Aws::String &&value)
bool HealthCheckTimeoutSecondsHasBeenSet() const
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
TargetGroup & WithHealthCheckPath(const Aws::String &value)
const Aws::String & GetTargetGroupName() const
void SetUnhealthyThresholdCount(int value)
void SetHealthyThresholdCount(int value)
void SetVpcId(const char *value)
const TargetGroupIpAddressTypeEnum & GetIpAddressType() const
void SetTargetGroupName(Aws::String &&value)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TargetGroup & WithMatcher(const Matcher &value)
bool LoadBalancerArnsHasBeenSet() const
TargetGroup & WithTargetGroupArn(Aws::String &&value)
TargetGroup & WithPort(int value)
const Aws::String & GetTargetGroupArn() const
TargetGroup & WithProtocol(ProtocolEnum &&value)
void SetHealthCheckPort(const char *value)
void SetLoadBalancerArns(Aws::Vector< Aws::String > &&value)
TargetGroup & WithTargetGroupName(Aws::String &&value)
int GetHealthyThresholdCount() const
void SetProtocol(const ProtocolEnum &value)
void SetHealthCheckPort(const Aws::String &value)
TargetGroup & WithTargetGroupName(const char *value)
void SetHealthCheckProtocol(ProtocolEnum &&value)
const Aws::Vector< Aws::String > & GetLoadBalancerArns() const
int GetHealthCheckTimeoutSeconds() const
bool IpAddressTypeHasBeenSet() const
void SetHealthCheckPath(const Aws::String &value)
const TargetTypeEnum & GetTargetType() const
void SetHealthCheckProtocol(const ProtocolEnum &value)
TargetGroup & WithTargetGroupName(const Aws::String &value)
bool TargetTypeHasBeenSet() const
bool ProtocolHasBeenSet() const
const Aws::String & GetHealthCheckPort() const
TargetGroup & WithHealthCheckIntervalSeconds(int value)
void SetProtocolVersion(const Aws::String &value)
bool TargetGroupNameHasBeenSet() const
const Matcher & GetMatcher() const
void SetTargetGroupName(const char *value)
int GetHealthCheckIntervalSeconds() const
bool ProtocolVersionHasBeenSet() const
bool GetHealthCheckEnabled() const
TargetGroup & WithHealthyThresholdCount(int value)
bool HealthCheckIntervalSecondsHasBeenSet() const
void SetMatcher(const Matcher &value)
AWS_ELASTICLOADBALANCINGV2_API TargetGroup()
TargetGroup & WithLoadBalancerArns(const Aws::Vector< Aws::String > &value)
void SetProtocolVersion(const char *value)
void SetHealthCheckPath(const char *value)
TargetGroup & WithUnhealthyThresholdCount(int value)
const Aws::String & GetVpcId() const
TargetGroup & WithIpAddressType(const TargetGroupIpAddressTypeEnum &value)
bool HealthCheckPortHasBeenSet() const
int GetUnhealthyThresholdCount() const
void SetHealthCheckPort(Aws::String &&value)
void SetTargetGroupArn(const Aws::String &value)
void SetHealthCheckIntervalSeconds(int value)
TargetGroup & WithProtocolVersion(const Aws::String &value)
TargetGroup & WithHealthCheckProtocol(ProtocolEnum &&value)
const ProtocolEnum & GetHealthCheckProtocol() const
bool VpcIdHasBeenSet() const
bool HealthyThresholdCountHasBeenSet() const
void SetHealthCheckPath(Aws::String &&value)
TargetGroup & WithIpAddressType(TargetGroupIpAddressTypeEnum &&value)
void SetHealthCheckEnabled(bool value)
bool TargetGroupArnHasBeenSet() const
TargetGroup & AddLoadBalancerArns(const Aws::String &value)
const Aws::String & GetProtocolVersion() const
void SetHealthCheckTimeoutSeconds(int value)
TargetGroup & WithProtocolVersion(Aws::String &&value)
TargetGroup & WithMatcher(Matcher &&value)
void SetVpcId(Aws::String &&value)
TargetGroup & WithLoadBalancerArns(Aws::Vector< Aws::String > &&value)
bool PortHasBeenSet() const
const Aws::String & GetHealthCheckPath() const
void SetIpAddressType(TargetGroupIpAddressTypeEnum &&value)
TargetGroup & WithHealthCheckTimeoutSeconds(int value)
TargetGroup & WithTargetGroupArn(const char *value)
TargetGroup & WithVpcId(const Aws::String &value)
void SetTargetGroupName(const Aws::String &value)
TargetGroup & WithHealthCheckProtocol(const ProtocolEnum &value)
void SetProtocol(ProtocolEnum &&value)
TargetGroup & WithHealthCheckPort(const char *value)
void SetTargetGroupArn(const char *value)
void SetTargetType(const TargetTypeEnum &value)
TargetGroup & AddLoadBalancerArns(Aws::String &&value)
TargetGroup & WithTargetGroupArn(const Aws::String &value)
bool HealthCheckProtocolHasBeenSet() const
bool MatcherHasBeenSet() const
bool HealthCheckPathHasBeenSet() const
TargetGroup & WithVpcId(Aws::String &&value)
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