7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2Request.h>
10#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
11#include <aws/elasticloadbalancingv2/model/Matcher.h>
12#include <aws/elasticloadbalancingv2/model/ProtocolEnum.h>
13#include <aws/elasticloadbalancingv2/model/Tag.h>
14#include <aws/elasticloadbalancingv2/model/TargetGroupIpAddressTypeEnum.h>
15#include <aws/elasticloadbalancingv2/model/TargetTypeEnum.h>
20namespace ElasticLoadBalancingv2 {
49 template <
typename NameT = Aws::String>
51 m_nameHasBeenSet =
true;
52 m_name = std::forward<NameT>(value);
54 template <
typename NameT = Aws::String>
56 SetName(std::forward<NameT>(value));
74 m_protocolHasBeenSet =
true;
92 template <
typename ProtocolVersionT = Aws::String>
94 m_protocolVersionHasBeenSet =
true;
95 m_protocolVersion = std::forward<ProtocolVersionT>(value);
97 template <
typename ProtocolVersionT = Aws::String>
114 m_portHasBeenSet =
true;
131 template <
typename VpcIdT = Aws::String>
133 m_vpcIdHasBeenSet =
true;
134 m_vpcId = std::forward<VpcIdT>(value);
136 template <
typename VpcIdT = Aws::String>
138 SetVpcId(std::forward<VpcIdT>(value));
155 m_healthCheckProtocolHasBeenSet =
true;
156 m_healthCheckProtocol = value;
174 template <
typename HealthCheckPortT = Aws::String>
176 m_healthCheckPortHasBeenSet =
true;
177 m_healthCheckPort = std::forward<HealthCheckPortT>(value);
179 template <
typename HealthCheckPortT = Aws::String>
196 m_healthCheckEnabledHasBeenSet =
true;
197 m_healthCheckEnabled = value;
215 template <
typename HealthCheckPathT = Aws::String>
217 m_healthCheckPathHasBeenSet =
true;
218 m_healthCheckPath = std::forward<HealthCheckPathT>(value);
220 template <
typename HealthCheckPathT = Aws::String>
238 m_healthCheckIntervalSecondsHasBeenSet =
true;
239 m_healthCheckIntervalSeconds = value;
259 m_healthCheckTimeoutSecondsHasBeenSet =
true;
260 m_healthCheckTimeoutSeconds = value;
279 m_healthyThresholdCountHasBeenSet =
true;
280 m_healthyThresholdCount = value;
299 m_unhealthyThresholdCountHasBeenSet =
true;
300 m_unhealthyThresholdCount = value;
318 template <
typename MatcherT = Matcher>
320 m_matcherHasBeenSet =
true;
321 m_matcher = std::forward<MatcherT>(value);
323 template <
typename MatcherT = Matcher>
347 m_targetTypeHasBeenSet =
true;
348 m_targetType = value;
362 template <
typename TagsT = Aws::Vector<Tag>>
364 m_tagsHasBeenSet =
true;
365 m_tags = std::forward<TagsT>(value);
367 template <
typename TagsT = Aws::Vector<Tag>>
369 SetTags(std::forward<TagsT>(value));
372 template <
typename TagsT = Tag>
374 m_tagsHasBeenSet =
true;
375 m_tags.emplace_back(std::forward<TagsT>(value));
387 m_ipAddressTypeHasBeenSet =
true;
388 m_ipAddressType = value;
404 m_targetControlPortHasBeenSet =
true;
405 m_targetControlPort = value;
427 bool m_healthCheckEnabled{
false};
431 int m_healthCheckIntervalSeconds{0};
433 int m_healthCheckTimeoutSeconds{0};
435 int m_healthyThresholdCount{0};
437 int m_unhealthyThresholdCount{0};
447 int m_targetControlPort{0};
448 bool m_nameHasBeenSet =
false;
449 bool m_protocolHasBeenSet =
false;
450 bool m_protocolVersionHasBeenSet =
false;
451 bool m_portHasBeenSet =
false;
452 bool m_vpcIdHasBeenSet =
false;
453 bool m_healthCheckProtocolHasBeenSet =
false;
454 bool m_healthCheckPortHasBeenSet =
false;
455 bool m_healthCheckEnabledHasBeenSet =
false;
456 bool m_healthCheckPathHasBeenSet =
false;
457 bool m_healthCheckIntervalSecondsHasBeenSet =
false;
458 bool m_healthCheckTimeoutSecondsHasBeenSet =
false;
459 bool m_healthyThresholdCountHasBeenSet =
false;
460 bool m_unhealthyThresholdCountHasBeenSet =
false;
461 bool m_matcherHasBeenSet =
false;
462 bool m_targetTypeHasBeenSet =
false;
463 bool m_tagsHasBeenSet =
false;
464 bool m_ipAddressTypeHasBeenSet =
false;
465 bool m_targetControlPortHasBeenSet =
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 & WithTargetControlPort(int 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
void SetTargetControlPort(int value)
CreateTargetGroupRequest & WithMatcher(MatcherT &&value)
const Aws::String & GetName() const
int GetHealthyThresholdCount() const
int GetTargetControlPort() 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)
bool TargetControlPortHasBeenSet() const
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