/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a load balancer.See Also:
AWS
* API Reference
The Amazon Resource Name (ARN) of the load balancer.
*/ inline const Aws::String& GetLoadBalancerArn() const{ return m_loadBalancerArn; } /** *The Amazon Resource Name (ARN) of the load balancer.
*/ inline bool LoadBalancerArnHasBeenSet() const { return m_loadBalancerArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the load balancer.
*/ inline void SetLoadBalancerArn(const Aws::String& value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn = value; } /** *The Amazon Resource Name (ARN) of the load balancer.
*/ inline void SetLoadBalancerArn(Aws::String&& value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the load balancer.
*/ inline void SetLoadBalancerArn(const char* value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn.assign(value); } /** *The Amazon Resource Name (ARN) of the load balancer.
*/ inline LoadBalancer& WithLoadBalancerArn(const Aws::String& value) { SetLoadBalancerArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the load balancer.
*/ inline LoadBalancer& WithLoadBalancerArn(Aws::String&& value) { SetLoadBalancerArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the load balancer.
*/ inline LoadBalancer& WithLoadBalancerArn(const char* value) { SetLoadBalancerArn(value); return *this;} /** *The public DNS name of the load balancer.
*/ inline const Aws::String& GetDNSName() const{ return m_dNSName; } /** *The public DNS name of the load balancer.
*/ inline bool DNSNameHasBeenSet() const { return m_dNSNameHasBeenSet; } /** *The public DNS name of the load balancer.
*/ inline void SetDNSName(const Aws::String& value) { m_dNSNameHasBeenSet = true; m_dNSName = value; } /** *The public DNS name of the load balancer.
*/ inline void SetDNSName(Aws::String&& value) { m_dNSNameHasBeenSet = true; m_dNSName = std::move(value); } /** *The public DNS name of the load balancer.
*/ inline void SetDNSName(const char* value) { m_dNSNameHasBeenSet = true; m_dNSName.assign(value); } /** *The public DNS name of the load balancer.
*/ inline LoadBalancer& WithDNSName(const Aws::String& value) { SetDNSName(value); return *this;} /** *The public DNS name of the load balancer.
*/ inline LoadBalancer& WithDNSName(Aws::String&& value) { SetDNSName(std::move(value)); return *this;} /** *The public DNS name of the load balancer.
*/ inline LoadBalancer& WithDNSName(const char* value) { SetDNSName(value); return *this;} /** *The ID of the Amazon Route 53 hosted zone associated with the load * balancer.
*/ inline const Aws::String& GetCanonicalHostedZoneId() const{ return m_canonicalHostedZoneId; } /** *The ID of the Amazon Route 53 hosted zone associated with the load * balancer.
*/ inline bool CanonicalHostedZoneIdHasBeenSet() const { return m_canonicalHostedZoneIdHasBeenSet; } /** *The ID of the Amazon Route 53 hosted zone associated with the load * balancer.
*/ inline void SetCanonicalHostedZoneId(const Aws::String& value) { m_canonicalHostedZoneIdHasBeenSet = true; m_canonicalHostedZoneId = value; } /** *The ID of the Amazon Route 53 hosted zone associated with the load * balancer.
*/ inline void SetCanonicalHostedZoneId(Aws::String&& value) { m_canonicalHostedZoneIdHasBeenSet = true; m_canonicalHostedZoneId = std::move(value); } /** *The ID of the Amazon Route 53 hosted zone associated with the load * balancer.
*/ inline void SetCanonicalHostedZoneId(const char* value) { m_canonicalHostedZoneIdHasBeenSet = true; m_canonicalHostedZoneId.assign(value); } /** *The ID of the Amazon Route 53 hosted zone associated with the load * balancer.
*/ inline LoadBalancer& WithCanonicalHostedZoneId(const Aws::String& value) { SetCanonicalHostedZoneId(value); return *this;} /** *The ID of the Amazon Route 53 hosted zone associated with the load * balancer.
*/ inline LoadBalancer& WithCanonicalHostedZoneId(Aws::String&& value) { SetCanonicalHostedZoneId(std::move(value)); return *this;} /** *The ID of the Amazon Route 53 hosted zone associated with the load * balancer.
*/ inline LoadBalancer& WithCanonicalHostedZoneId(const char* value) { SetCanonicalHostedZoneId(value); return *this;} /** *The date and time the load balancer was created.
*/ inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; } /** *The date and time the load balancer was created.
*/ inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; } /** *The date and time the load balancer was created.
*/ inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; } /** *The date and time the load balancer was created.
*/ inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); } /** *The date and time the load balancer was created.
*/ inline LoadBalancer& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} /** *The date and time the load balancer was created.
*/ inline LoadBalancer& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;} /** *The name of the load balancer.
*/ inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; } /** *The name of the load balancer.
*/ inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; } /** *The name of the load balancer.
*/ inline void SetLoadBalancerName(const Aws::String& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = value; } /** *The name of the load balancer.
*/ inline void SetLoadBalancerName(Aws::String&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::move(value); } /** *The name of the load balancer.
*/ inline void SetLoadBalancerName(const char* value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName.assign(value); } /** *The name of the load balancer.
*/ inline LoadBalancer& WithLoadBalancerName(const Aws::String& value) { SetLoadBalancerName(value); return *this;} /** *The name of the load balancer.
*/ inline LoadBalancer& WithLoadBalancerName(Aws::String&& value) { SetLoadBalancerName(std::move(value)); return *this;} /** *The name of the load balancer.
*/ inline LoadBalancer& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;} /** *The nodes of an Internet-facing load balancer have public IP addresses. The * DNS name of an Internet-facing load balancer is publicly resolvable to the * public IP addresses of the nodes. Therefore, Internet-facing load balancers can * route requests from clients over the internet.
The nodes of an internal * load balancer have only private IP addresses. The DNS name of an internal load * balancer is publicly resolvable to the private IP addresses of the nodes. * Therefore, internal load balancers can route requests only from clients with * access to the VPC for the load balancer.
*/ inline const LoadBalancerSchemeEnum& GetScheme() const{ return m_scheme; } /** *The nodes of an Internet-facing load balancer have public IP addresses. The * DNS name of an Internet-facing load balancer is publicly resolvable to the * public IP addresses of the nodes. Therefore, Internet-facing load balancers can * route requests from clients over the internet.
The nodes of an internal * load balancer have only private IP addresses. The DNS name of an internal load * balancer is publicly resolvable to the private IP addresses of the nodes. * Therefore, internal load balancers can route requests only from clients with * access to the VPC for the load balancer.
*/ inline bool SchemeHasBeenSet() const { return m_schemeHasBeenSet; } /** *The nodes of an Internet-facing load balancer have public IP addresses. The * DNS name of an Internet-facing load balancer is publicly resolvable to the * public IP addresses of the nodes. Therefore, Internet-facing load balancers can * route requests from clients over the internet.
The nodes of an internal * load balancer have only private IP addresses. The DNS name of an internal load * balancer is publicly resolvable to the private IP addresses of the nodes. * Therefore, internal load balancers can route requests only from clients with * access to the VPC for the load balancer.
*/ inline void SetScheme(const LoadBalancerSchemeEnum& value) { m_schemeHasBeenSet = true; m_scheme = value; } /** *The nodes of an Internet-facing load balancer have public IP addresses. The * DNS name of an Internet-facing load balancer is publicly resolvable to the * public IP addresses of the nodes. Therefore, Internet-facing load balancers can * route requests from clients over the internet.
The nodes of an internal * load balancer have only private IP addresses. The DNS name of an internal load * balancer is publicly resolvable to the private IP addresses of the nodes. * Therefore, internal load balancers can route requests only from clients with * access to the VPC for the load balancer.
*/ inline void SetScheme(LoadBalancerSchemeEnum&& value) { m_schemeHasBeenSet = true; m_scheme = std::move(value); } /** *The nodes of an Internet-facing load balancer have public IP addresses. The * DNS name of an Internet-facing load balancer is publicly resolvable to the * public IP addresses of the nodes. Therefore, Internet-facing load balancers can * route requests from clients over the internet.
The nodes of an internal * load balancer have only private IP addresses. The DNS name of an internal load * balancer is publicly resolvable to the private IP addresses of the nodes. * Therefore, internal load balancers can route requests only from clients with * access to the VPC for the load balancer.
*/ inline LoadBalancer& WithScheme(const LoadBalancerSchemeEnum& value) { SetScheme(value); return *this;} /** *The nodes of an Internet-facing load balancer have public IP addresses. The * DNS name of an Internet-facing load balancer is publicly resolvable to the * public IP addresses of the nodes. Therefore, Internet-facing load balancers can * route requests from clients over the internet.
The nodes of an internal * load balancer have only private IP addresses. The DNS name of an internal load * balancer is publicly resolvable to the private IP addresses of the nodes. * Therefore, internal load balancers can route requests only from clients with * access to the VPC for the load balancer.
*/ inline LoadBalancer& WithScheme(LoadBalancerSchemeEnum&& value) { SetScheme(std::move(value)); return *this;} /** *The ID of the VPC for the load balancer.
*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *The ID of the VPC for the load balancer.
*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *The ID of the VPC for the load balancer.
*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *The ID of the VPC for the load balancer.
*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *The ID of the VPC for the load balancer.
*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *The ID of the VPC for the load balancer.
*/ inline LoadBalancer& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *The ID of the VPC for the load balancer.
*/ inline LoadBalancer& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *The ID of the VPC for the load balancer.
*/ inline LoadBalancer& WithVpcId(const char* value) { SetVpcId(value); return *this;} /** *The state of the load balancer.
*/ inline const LoadBalancerState& GetState() const{ return m_state; } /** *The state of the load balancer.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The state of the load balancer.
*/ inline void SetState(const LoadBalancerState& value) { m_stateHasBeenSet = true; m_state = value; } /** *The state of the load balancer.
*/ inline void SetState(LoadBalancerState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The state of the load balancer.
*/ inline LoadBalancer& WithState(const LoadBalancerState& value) { SetState(value); return *this;} /** *The state of the load balancer.
*/ inline LoadBalancer& WithState(LoadBalancerState&& value) { SetState(std::move(value)); return *this;} /** *The type of load balancer.
*/ inline const LoadBalancerTypeEnum& GetType() const{ return m_type; } /** *The type of load balancer.
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *The type of load balancer.
*/ inline void SetType(const LoadBalancerTypeEnum& value) { m_typeHasBeenSet = true; m_type = value; } /** *The type of load balancer.
*/ inline void SetType(LoadBalancerTypeEnum&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *The type of load balancer.
*/ inline LoadBalancer& WithType(const LoadBalancerTypeEnum& value) { SetType(value); return *this;} /** *The type of load balancer.
*/ inline LoadBalancer& WithType(LoadBalancerTypeEnum&& value) { SetType(std::move(value)); return *this;} /** *The subnets for the load balancer.
*/ inline const Aws::VectorThe subnets for the load balancer.
*/ inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; } /** *The subnets for the load balancer.
*/ inline void SetAvailabilityZones(const Aws::VectorThe subnets for the load balancer.
*/ inline void SetAvailabilityZones(Aws::VectorThe subnets for the load balancer.
*/ inline LoadBalancer& WithAvailabilityZones(const Aws::VectorThe subnets for the load balancer.
*/ inline LoadBalancer& WithAvailabilityZones(Aws::VectorThe subnets for the load balancer.
*/ inline LoadBalancer& AddAvailabilityZones(const AvailabilityZone& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; } /** *The subnets for the load balancer.
*/ inline LoadBalancer& AddAvailabilityZones(AvailabilityZone&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; } /** *The IDs of the security groups for the load balancer.
*/ inline const Aws::VectorThe IDs of the security groups for the load balancer.
*/ inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; } /** *The IDs of the security groups for the load balancer.
*/ inline void SetSecurityGroups(const Aws::VectorThe IDs of the security groups for the load balancer.
*/ inline void SetSecurityGroups(Aws::VectorThe IDs of the security groups for the load balancer.
*/ inline LoadBalancer& WithSecurityGroups(const Aws::VectorThe IDs of the security groups for the load balancer.
*/ inline LoadBalancer& WithSecurityGroups(Aws::VectorThe IDs of the security groups for the load balancer.
*/ inline LoadBalancer& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *The IDs of the security groups for the load balancer.
*/ inline LoadBalancer& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; } /** *The IDs of the security groups for the load balancer.
*/ inline LoadBalancer& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *The type of IP addresses used by the subnets for your load balancer. The
* possible values are ipv4
(for IPv4 addresses) and
* dualstack
(for IPv4 and IPv6 addresses).
The type of IP addresses used by the subnets for your load balancer. The
* possible values are ipv4
(for IPv4 addresses) and
* dualstack
(for IPv4 and IPv6 addresses).
The type of IP addresses used by the subnets for your load balancer. The
* possible values are ipv4
(for IPv4 addresses) and
* dualstack
(for IPv4 and IPv6 addresses).
The type of IP addresses used by the subnets for your load balancer. The
* possible values are ipv4
(for IPv4 addresses) and
* dualstack
(for IPv4 and IPv6 addresses).
The type of IP addresses used by the subnets for your load balancer. The
* possible values are ipv4
(for IPv4 addresses) and
* dualstack
(for IPv4 and IPv6 addresses).
The type of IP addresses used by the subnets for your load balancer. The
* possible values are ipv4
(for IPv4 addresses) and
* dualstack
(for IPv4 and IPv6 addresses).
[Application Load Balancers on Outposts] The ID of the customer-owned address * pool.
*/ inline const Aws::String& GetCustomerOwnedIpv4Pool() const{ return m_customerOwnedIpv4Pool; } /** *[Application Load Balancers on Outposts] The ID of the customer-owned address * pool.
*/ inline bool CustomerOwnedIpv4PoolHasBeenSet() const { return m_customerOwnedIpv4PoolHasBeenSet; } /** *[Application Load Balancers on Outposts] The ID of the customer-owned address * pool.
*/ inline void SetCustomerOwnedIpv4Pool(const Aws::String& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = value; } /** *[Application Load Balancers on Outposts] The ID of the customer-owned address * pool.
*/ inline void SetCustomerOwnedIpv4Pool(Aws::String&& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = std::move(value); } /** *[Application Load Balancers on Outposts] The ID of the customer-owned address * pool.
*/ inline void SetCustomerOwnedIpv4Pool(const char* value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool.assign(value); } /** *[Application Load Balancers on Outposts] The ID of the customer-owned address * pool.
*/ inline LoadBalancer& WithCustomerOwnedIpv4Pool(const Aws::String& value) { SetCustomerOwnedIpv4Pool(value); return *this;} /** *[Application Load Balancers on Outposts] The ID of the customer-owned address * pool.
*/ inline LoadBalancer& WithCustomerOwnedIpv4Pool(Aws::String&& value) { SetCustomerOwnedIpv4Pool(std::move(value)); return *this;} /** *[Application Load Balancers on Outposts] The ID of the customer-owned address * pool.
*/ inline LoadBalancer& WithCustomerOwnedIpv4Pool(const char* value) { SetCustomerOwnedIpv4Pool(value); return *this;} private: Aws::String m_loadBalancerArn; bool m_loadBalancerArnHasBeenSet = false; Aws::String m_dNSName; bool m_dNSNameHasBeenSet = false; Aws::String m_canonicalHostedZoneId; bool m_canonicalHostedZoneIdHasBeenSet = false; Aws::Utils::DateTime m_createdTime; bool m_createdTimeHasBeenSet = false; Aws::String m_loadBalancerName; bool m_loadBalancerNameHasBeenSet = false; LoadBalancerSchemeEnum m_scheme; bool m_schemeHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; LoadBalancerState m_state; bool m_stateHasBeenSet = false; LoadBalancerTypeEnum m_type; bool m_typeHasBeenSet = false; Aws::Vector