/** * 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 EC2 { namespace Model { /** *

Describes a load balancer when creating an Amazon Web Services Verified * Access endpoint using the load-balancer type.

See * Also:

AWS * API Reference

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

The IDs of the subnets.

*/ inline const Aws::Vector& GetSubnetIds() const{ return m_subnetIds; } /** *

The IDs of the subnets.

*/ inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; } /** *

The IDs of the subnets.

*/ inline void SetSubnetIds(const Aws::Vector& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; } /** *

The IDs of the subnets.

*/ inline void SetSubnetIds(Aws::Vector&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); } /** *

The IDs of the subnets.

*/ inline ModifyVerifiedAccessEndpointLoadBalancerOptions& WithSubnetIds(const Aws::Vector& value) { SetSubnetIds(value); return *this;} /** *

The IDs of the subnets.

*/ inline ModifyVerifiedAccessEndpointLoadBalancerOptions& WithSubnetIds(Aws::Vector&& value) { SetSubnetIds(std::move(value)); return *this;} /** *

The IDs of the subnets.

*/ inline ModifyVerifiedAccessEndpointLoadBalancerOptions& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

The IDs of the subnets.

*/ inline ModifyVerifiedAccessEndpointLoadBalancerOptions& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; } /** *

The IDs of the subnets.

*/ inline ModifyVerifiedAccessEndpointLoadBalancerOptions& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

The IP protocol.

*/ inline const VerifiedAccessEndpointProtocol& GetProtocol() const{ return m_protocol; } /** *

The IP protocol.

*/ inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; } /** *

The IP protocol.

*/ inline void SetProtocol(const VerifiedAccessEndpointProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; } /** *

The IP protocol.

*/ inline void SetProtocol(VerifiedAccessEndpointProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); } /** *

The IP protocol.

*/ inline ModifyVerifiedAccessEndpointLoadBalancerOptions& WithProtocol(const VerifiedAccessEndpointProtocol& value) { SetProtocol(value); return *this;} /** *

The IP protocol.

*/ inline ModifyVerifiedAccessEndpointLoadBalancerOptions& WithProtocol(VerifiedAccessEndpointProtocol&& value) { SetProtocol(std::move(value)); return *this;} /** *

The IP port number.

*/ inline int GetPort() const{ return m_port; } /** *

The IP port number.

*/ inline bool PortHasBeenSet() const { return m_portHasBeenSet; } /** *

The IP port number.

*/ inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; } /** *

The IP port number.

*/ inline ModifyVerifiedAccessEndpointLoadBalancerOptions& WithPort(int value) { SetPort(value); return *this;} private: Aws::Vector m_subnetIds; bool m_subnetIdsHasBeenSet = false; VerifiedAccessEndpointProtocol m_protocol; bool m_protocolHasBeenSet = false; int m_port; bool m_portHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws