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

Describes a target network that is associated with a Client VPN endpoint. A * target network is a subnet in a VPC.

See Also:

AWS * API Reference

*/ class AssociatedTargetNetwork { public: AWS_EC2_API AssociatedTargetNetwork(); AWS_EC2_API AssociatedTargetNetwork(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API AssociatedTargetNetwork& 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 ID of the subnet.

*/ inline const Aws::String& GetNetworkId() const{ return m_networkId; } /** *

The ID of the subnet.

*/ inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; } /** *

The ID of the subnet.

*/ inline void SetNetworkId(const Aws::String& value) { m_networkIdHasBeenSet = true; m_networkId = value; } /** *

The ID of the subnet.

*/ inline void SetNetworkId(Aws::String&& value) { m_networkIdHasBeenSet = true; m_networkId = std::move(value); } /** *

The ID of the subnet.

*/ inline void SetNetworkId(const char* value) { m_networkIdHasBeenSet = true; m_networkId.assign(value); } /** *

The ID of the subnet.

*/ inline AssociatedTargetNetwork& WithNetworkId(const Aws::String& value) { SetNetworkId(value); return *this;} /** *

The ID of the subnet.

*/ inline AssociatedTargetNetwork& WithNetworkId(Aws::String&& value) { SetNetworkId(std::move(value)); return *this;} /** *

The ID of the subnet.

*/ inline AssociatedTargetNetwork& WithNetworkId(const char* value) { SetNetworkId(value); return *this;} /** *

The target network type.

*/ inline const AssociatedNetworkType& GetNetworkType() const{ return m_networkType; } /** *

The target network type.

*/ inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; } /** *

The target network type.

*/ inline void SetNetworkType(const AssociatedNetworkType& value) { m_networkTypeHasBeenSet = true; m_networkType = value; } /** *

The target network type.

*/ inline void SetNetworkType(AssociatedNetworkType&& value) { m_networkTypeHasBeenSet = true; m_networkType = std::move(value); } /** *

The target network type.

*/ inline AssociatedTargetNetwork& WithNetworkType(const AssociatedNetworkType& value) { SetNetworkType(value); return *this;} /** *

The target network type.

*/ inline AssociatedTargetNetwork& WithNetworkType(AssociatedNetworkType&& value) { SetNetworkType(std::move(value)); return *this;} private: Aws::String m_networkId; bool m_networkIdHasBeenSet = false; AssociatedNetworkType m_networkType; bool m_networkTypeHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws