/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace ElasticLoadBalancingv2 { namespace Model { /** *

Information about an Availability Zone.

See Also:

AWS * API Reference

*/ class AvailabilityZone { public: AWS_ELASTICLOADBALANCINGV2_API AvailabilityZone(); AWS_ELASTICLOADBALANCINGV2_API AvailabilityZone(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICLOADBALANCINGV2_API AvailabilityZone& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The name of the Availability Zone.

*/ inline const Aws::String& GetZoneName() const{ return m_zoneName; } /** *

The name of the Availability Zone.

*/ inline bool ZoneNameHasBeenSet() const { return m_zoneNameHasBeenSet; } /** *

The name of the Availability Zone.

*/ inline void SetZoneName(const Aws::String& value) { m_zoneNameHasBeenSet = true; m_zoneName = value; } /** *

The name of the Availability Zone.

*/ inline void SetZoneName(Aws::String&& value) { m_zoneNameHasBeenSet = true; m_zoneName = std::move(value); } /** *

The name of the Availability Zone.

*/ inline void SetZoneName(const char* value) { m_zoneNameHasBeenSet = true; m_zoneName.assign(value); } /** *

The name of the Availability Zone.

*/ inline AvailabilityZone& WithZoneName(const Aws::String& value) { SetZoneName(value); return *this;} /** *

The name of the Availability Zone.

*/ inline AvailabilityZone& WithZoneName(Aws::String&& value) { SetZoneName(std::move(value)); return *this;} /** *

The name of the Availability Zone.

*/ inline AvailabilityZone& WithZoneName(const char* value) { SetZoneName(value); return *this;} /** *

The ID of the subnet. You can specify one subnet per Availability Zone.

*/ inline const Aws::String& GetSubnetId() const{ return m_subnetId; } /** *

The ID of the subnet. You can specify one subnet per Availability Zone.

*/ inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; } /** *

The ID of the subnet. You can specify one subnet per Availability Zone.

*/ inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; } /** *

The ID of the subnet. You can specify one subnet per Availability Zone.

*/ inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); } /** *

The ID of the subnet. You can specify one subnet per Availability Zone.

*/ inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); } /** *

The ID of the subnet. You can specify one subnet per Availability Zone.

*/ inline AvailabilityZone& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *

The ID of the subnet. You can specify one subnet per Availability Zone.

*/ inline AvailabilityZone& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *

The ID of the subnet. You can specify one subnet per Availability Zone.

*/ inline AvailabilityZone& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} /** *

[Application Load Balancers on Outposts] The ID of the Outpost.

*/ inline const Aws::String& GetOutpostId() const{ return m_outpostId; } /** *

[Application Load Balancers on Outposts] The ID of the Outpost.

*/ inline bool OutpostIdHasBeenSet() const { return m_outpostIdHasBeenSet; } /** *

[Application Load Balancers on Outposts] The ID of the Outpost.

*/ inline void SetOutpostId(const Aws::String& value) { m_outpostIdHasBeenSet = true; m_outpostId = value; } /** *

[Application Load Balancers on Outposts] The ID of the Outpost.

*/ inline void SetOutpostId(Aws::String&& value) { m_outpostIdHasBeenSet = true; m_outpostId = std::move(value); } /** *

[Application Load Balancers on Outposts] The ID of the Outpost.

*/ inline void SetOutpostId(const char* value) { m_outpostIdHasBeenSet = true; m_outpostId.assign(value); } /** *

[Application Load Balancers on Outposts] The ID of the Outpost.

*/ inline AvailabilityZone& WithOutpostId(const Aws::String& value) { SetOutpostId(value); return *this;} /** *

[Application Load Balancers on Outposts] The ID of the Outpost.

*/ inline AvailabilityZone& WithOutpostId(Aws::String&& value) { SetOutpostId(std::move(value)); return *this;} /** *

[Application Load Balancers on Outposts] The ID of the Outpost.

*/ inline AvailabilityZone& WithOutpostId(const char* value) { SetOutpostId(value); return *this;} /** *

[Network Load Balancers] If you need static IP addresses for your load * balancer, you can specify one Elastic IP address per Availability Zone when you * create an internal-facing load balancer. For internal load balancers, you can * specify a private IP address from the IPv4 range of the subnet.

*/ inline const Aws::Vector& GetLoadBalancerAddresses() const{ return m_loadBalancerAddresses; } /** *

[Network Load Balancers] If you need static IP addresses for your load * balancer, you can specify one Elastic IP address per Availability Zone when you * create an internal-facing load balancer. For internal load balancers, you can * specify a private IP address from the IPv4 range of the subnet.

*/ inline bool LoadBalancerAddressesHasBeenSet() const { return m_loadBalancerAddressesHasBeenSet; } /** *

[Network Load Balancers] If you need static IP addresses for your load * balancer, you can specify one Elastic IP address per Availability Zone when you * create an internal-facing load balancer. For internal load balancers, you can * specify a private IP address from the IPv4 range of the subnet.

*/ inline void SetLoadBalancerAddresses(const Aws::Vector& value) { m_loadBalancerAddressesHasBeenSet = true; m_loadBalancerAddresses = value; } /** *

[Network Load Balancers] If you need static IP addresses for your load * balancer, you can specify one Elastic IP address per Availability Zone when you * create an internal-facing load balancer. For internal load balancers, you can * specify a private IP address from the IPv4 range of the subnet.

*/ inline void SetLoadBalancerAddresses(Aws::Vector&& value) { m_loadBalancerAddressesHasBeenSet = true; m_loadBalancerAddresses = std::move(value); } /** *

[Network Load Balancers] If you need static IP addresses for your load * balancer, you can specify one Elastic IP address per Availability Zone when you * create an internal-facing load balancer. For internal load balancers, you can * specify a private IP address from the IPv4 range of the subnet.

*/ inline AvailabilityZone& WithLoadBalancerAddresses(const Aws::Vector& value) { SetLoadBalancerAddresses(value); return *this;} /** *

[Network Load Balancers] If you need static IP addresses for your load * balancer, you can specify one Elastic IP address per Availability Zone when you * create an internal-facing load balancer. For internal load balancers, you can * specify a private IP address from the IPv4 range of the subnet.

*/ inline AvailabilityZone& WithLoadBalancerAddresses(Aws::Vector&& value) { SetLoadBalancerAddresses(std::move(value)); return *this;} /** *

[Network Load Balancers] If you need static IP addresses for your load * balancer, you can specify one Elastic IP address per Availability Zone when you * create an internal-facing load balancer. For internal load balancers, you can * specify a private IP address from the IPv4 range of the subnet.

*/ inline AvailabilityZone& AddLoadBalancerAddresses(const LoadBalancerAddress& value) { m_loadBalancerAddressesHasBeenSet = true; m_loadBalancerAddresses.push_back(value); return *this; } /** *

[Network Load Balancers] If you need static IP addresses for your load * balancer, you can specify one Elastic IP address per Availability Zone when you * create an internal-facing load balancer. For internal load balancers, you can * specify a private IP address from the IPv4 range of the subnet.

*/ inline AvailabilityZone& AddLoadBalancerAddresses(LoadBalancerAddress&& value) { m_loadBalancerAddressesHasBeenSet = true; m_loadBalancerAddresses.push_back(std::move(value)); return *this; } private: Aws::String m_zoneName; bool m_zoneNameHasBeenSet = false; Aws::String m_subnetId; bool m_subnetIdHasBeenSet = false; Aws::String m_outpostId; bool m_outpostIdHasBeenSet = false; Aws::Vector m_loadBalancerAddresses; bool m_loadBalancerAddressesHasBeenSet = false; }; } // namespace Model } // namespace ElasticLoadBalancingv2 } // namespace Aws