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 <aws/elasticloadbalancingv2/model/TargetTypeEnum.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/elasticloadbalancingv2/model/TargetGroupIpAddressTypeEnum.h>
15#include <aws/elasticloadbalancingv2/model/Tag.h>
20namespace ElasticLoadBalancingv2
53 template<
typename NameT = Aws::String>
54 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
55 template<
typename NameT = Aws::String>
83 template<
typename ProtocolVersionT = Aws::String>
84 void SetProtocolVersion(ProtocolVersionT&& value) { m_protocolVersionHasBeenSet =
true; m_protocolVersion = std::forward<ProtocolVersionT>(value); }
85 template<
typename ProtocolVersionT = Aws::String>
96 inline int GetPort()
const {
return m_port; }
98 inline void SetPort(
int value) { m_portHasBeenSet =
true; m_port = value; }
110 template<
typename VpcIdT = Aws::String>
111 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet =
true; m_vpcId = std::forward<VpcIdT>(value); }
112 template<
typename VpcIdT = Aws::String>
141 template<
typename HealthCheckPortT = Aws::String>
142 void SetHealthCheckPort(HealthCheckPortT&& value) { m_healthCheckPortHasBeenSet =
true; m_healthCheckPort = std::forward<HealthCheckPortT>(value); }
143 template<
typename HealthCheckPortT = Aws::String>
156 inline void SetHealthCheckEnabled(
bool value) { m_healthCheckEnabledHasBeenSet =
true; m_healthCheckEnabled = value; }
170 template<
typename HealthCheckPathT = Aws::String>
171 void SetHealthCheckPath(HealthCheckPathT&& value) { m_healthCheckPathHasBeenSet =
true; m_healthCheckPath = std::forward<HealthCheckPathT>(value); }
172 template<
typename HealthCheckPathT = Aws::String>
243 template<
typename MatcherT = Matcher>
244 void SetMatcher(MatcherT&& value) { m_matcherHasBeenSet =
true; m_matcher = std::forward<MatcherT>(value); }
245 template<
typename MatcherT = Matcher>
275 template<
typename TagsT = Aws::Vector<Tag>>
276 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
277 template<
typename TagsT = Aws::Vector<Tag>>
279 template<
typename TagsT = Tag>
295 bool m_nameHasBeenSet =
false;
298 bool m_protocolHasBeenSet =
false;
301 bool m_protocolVersionHasBeenSet =
false;
304 bool m_portHasBeenSet =
false;
307 bool m_vpcIdHasBeenSet =
false;
310 bool m_healthCheckProtocolHasBeenSet =
false;
313 bool m_healthCheckPortHasBeenSet =
false;
315 bool m_healthCheckEnabled{
false};
316 bool m_healthCheckEnabledHasBeenSet =
false;
319 bool m_healthCheckPathHasBeenSet =
false;
321 int m_healthCheckIntervalSeconds{0};
322 bool m_healthCheckIntervalSecondsHasBeenSet =
false;
324 int m_healthCheckTimeoutSeconds{0};
325 bool m_healthCheckTimeoutSecondsHasBeenSet =
false;
327 int m_healthyThresholdCount{0};
328 bool m_healthyThresholdCountHasBeenSet =
false;
330 int m_unhealthyThresholdCount{0};
331 bool m_unhealthyThresholdCountHasBeenSet =
false;
334 bool m_matcherHasBeenSet =
false;
337 bool m_targetTypeHasBeenSet =
false;
340 bool m_tagsHasBeenSet =
false;
343 bool m_ipAddressTypeHasBeenSet =
false;
CreateTargetGroupRequest & WithHealthCheckPort(HealthCheckPortT &&value)
void SetName(NameT &&value)
bool ProtocolVersionHasBeenSet() const
const Aws::String & GetProtocolVersion() const
bool ProtocolHasBeenSet() const
const Aws::Vector< Tag > & GetTags() const
bool UnhealthyThresholdCountHasBeenSet() const
CreateTargetGroupRequest & WithIpAddressType(TargetGroupIpAddressTypeEnum value)
void SetVpcId(VpcIdT &&value)
void SetHealthCheckEnabled(bool value)
AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::String & GetHealthCheckPath() const
AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override
TargetGroupIpAddressTypeEnum GetIpAddressType() const
CreateTargetGroupRequest & WithHealthCheckEnabled(bool value)
CreateTargetGroupRequest & WithHealthCheckProtocol(ProtocolEnum value)
void SetHealthCheckTimeoutSeconds(int value)
bool PortHasBeenSet() const
int GetHealthCheckIntervalSeconds() const
const Aws::String & GetVpcId() const
const Aws::String & GetHealthCheckPort() const
void SetHealthCheckPath(HealthCheckPathT &&value)
virtual const char * GetServiceRequestName() const override
CreateTargetGroupRequest & WithHealthCheckTimeoutSeconds(int value)
void SetTargetType(TargetTypeEnum value)
CreateTargetGroupRequest & WithHealthCheckIntervalSeconds(int value)
bool GetHealthCheckEnabled() const
void SetMatcher(MatcherT &&value)
CreateTargetGroupRequest & WithName(NameT &&value)
CreateTargetGroupRequest & WithUnhealthyThresholdCount(int value)
bool HealthCheckEnabledHasBeenSet() const
CreateTargetGroupRequest & WithPort(int value)
bool MatcherHasBeenSet() const
void SetHealthCheckProtocol(ProtocolEnum value)
TargetTypeEnum GetTargetType() const
bool TagsHasBeenSet() const
CreateTargetGroupRequest & WithTargetType(TargetTypeEnum value)
bool TargetTypeHasBeenSet() const
ProtocolEnum GetProtocol() const
bool HealthCheckPortHasBeenSet() const
CreateTargetGroupRequest & WithVpcId(VpcIdT &&value)
void SetHealthyThresholdCount(int value)
bool HealthCheckIntervalSecondsHasBeenSet() const
bool HealthCheckTimeoutSecondsHasBeenSet() const
bool HealthCheckProtocolHasBeenSet() const
void SetHealthCheckPort(HealthCheckPortT &&value)
void SetProtocolVersion(ProtocolVersionT &&value)
AWS_ELASTICLOADBALANCINGV2_API CreateTargetGroupRequest()=default
CreateTargetGroupRequest & WithHealthCheckPath(HealthCheckPathT &&value)
const Matcher & GetMatcher() const
CreateTargetGroupRequest & WithProtocol(ProtocolEnum value)
int GetUnhealthyThresholdCount() const
int GetHealthCheckTimeoutSeconds() const
bool IpAddressTypeHasBeenSet() const
bool NameHasBeenSet() const
bool VpcIdHasBeenSet() const
CreateTargetGroupRequest & WithMatcher(MatcherT &&value)
const Aws::String & GetName() const
int GetHealthyThresholdCount() const
void SetHealthCheckIntervalSeconds(int value)
void SetUnhealthyThresholdCount(int value)
CreateTargetGroupRequest & WithTags(TagsT &&value)
bool HealthCheckPathHasBeenSet() const
ProtocolEnum GetHealthCheckProtocol() const
void SetProtocol(ProtocolEnum value)
void SetIpAddressType(TargetGroupIpAddressTypeEnum value)
CreateTargetGroupRequest & WithHealthyThresholdCount(int value)
CreateTargetGroupRequest & WithProtocolVersion(ProtocolVersionT &&value)
void SetTags(TagsT &&value)
CreateTargetGroupRequest & AddTags(TagsT &&value)
bool HealthyThresholdCountHasBeenSet() const
TargetGroupIpAddressTypeEnum
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector