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

Describes the options when modifying a Verified Access endpoint with the * network-interface type.

See Also:

AWS * API Reference

*/ class ModifyVerifiedAccessEndpointEniOptions { public: AWS_EC2_API ModifyVerifiedAccessEndpointEniOptions(); AWS_EC2_API ModifyVerifiedAccessEndpointEniOptions(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API ModifyVerifiedAccessEndpointEniOptions& 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 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 ModifyVerifiedAccessEndpointEniOptions& WithProtocol(const VerifiedAccessEndpointProtocol& value) { SetProtocol(value); return *this;} /** *

The IP protocol.

*/ inline ModifyVerifiedAccessEndpointEniOptions& 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 ModifyVerifiedAccessEndpointEniOptions& WithPort(int value) { SetPort(value); return *this;} private: VerifiedAccessEndpointProtocol m_protocol; bool m_protocolHasBeenSet = false; int m_port; bool m_portHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws