/** * 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 target network associated with a Client VPN * endpoint.

See Also:

AWS * API Reference

*/ class TargetNetwork { public: AWS_EC2_API TargetNetwork(); AWS_EC2_API TargetNetwork(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API TargetNetwork& 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 association.

*/ inline const Aws::String& GetAssociationId() const{ return m_associationId; } /** *

The ID of the association.

*/ inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; } /** *

The ID of the association.

*/ inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; } /** *

The ID of the association.

*/ inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); } /** *

The ID of the association.

*/ inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); } /** *

The ID of the association.

*/ inline TargetNetwork& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;} /** *

The ID of the association.

*/ inline TargetNetwork& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;} /** *

The ID of the association.

*/ inline TargetNetwork& WithAssociationId(const char* value) { SetAssociationId(value); return *this;} /** *

The ID of the VPC in which the target network (subnet) is located.

*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *

The ID of the VPC in which the target network (subnet) is located.

*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *

The ID of the VPC in which the target network (subnet) is located.

*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *

The ID of the VPC in which the target network (subnet) is located.

*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *

The ID of the VPC in which the target network (subnet) is located.

*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *

The ID of the VPC in which the target network (subnet) is located.

*/ inline TargetNetwork& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *

The ID of the VPC in which the target network (subnet) is located.

*/ inline TargetNetwork& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *

The ID of the VPC in which the target network (subnet) is located.

*/ inline TargetNetwork& WithVpcId(const char* value) { SetVpcId(value); return *this;} /** *

The ID of the subnet specified as the target network.

*/ inline const Aws::String& GetTargetNetworkId() const{ return m_targetNetworkId; } /** *

The ID of the subnet specified as the target network.

*/ inline bool TargetNetworkIdHasBeenSet() const { return m_targetNetworkIdHasBeenSet; } /** *

The ID of the subnet specified as the target network.

*/ inline void SetTargetNetworkId(const Aws::String& value) { m_targetNetworkIdHasBeenSet = true; m_targetNetworkId = value; } /** *

The ID of the subnet specified as the target network.

*/ inline void SetTargetNetworkId(Aws::String&& value) { m_targetNetworkIdHasBeenSet = true; m_targetNetworkId = std::move(value); } /** *

The ID of the subnet specified as the target network.

*/ inline void SetTargetNetworkId(const char* value) { m_targetNetworkIdHasBeenSet = true; m_targetNetworkId.assign(value); } /** *

The ID of the subnet specified as the target network.

*/ inline TargetNetwork& WithTargetNetworkId(const Aws::String& value) { SetTargetNetworkId(value); return *this;} /** *

The ID of the subnet specified as the target network.

*/ inline TargetNetwork& WithTargetNetworkId(Aws::String&& value) { SetTargetNetworkId(std::move(value)); return *this;} /** *

The ID of the subnet specified as the target network.

*/ inline TargetNetwork& WithTargetNetworkId(const char* value) { SetTargetNetworkId(value); return *this;} /** *

The ID of the Client VPN endpoint with which the target network is * associated.

*/ inline const Aws::String& GetClientVpnEndpointId() const{ return m_clientVpnEndpointId; } /** *

The ID of the Client VPN endpoint with which the target network is * associated.

*/ inline bool ClientVpnEndpointIdHasBeenSet() const { return m_clientVpnEndpointIdHasBeenSet; } /** *

The ID of the Client VPN endpoint with which the target network is * associated.

*/ inline void SetClientVpnEndpointId(const Aws::String& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = value; } /** *

The ID of the Client VPN endpoint with which the target network is * associated.

*/ inline void SetClientVpnEndpointId(Aws::String&& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = std::move(value); } /** *

The ID of the Client VPN endpoint with which the target network is * associated.

*/ inline void SetClientVpnEndpointId(const char* value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId.assign(value); } /** *

The ID of the Client VPN endpoint with which the target network is * associated.

*/ inline TargetNetwork& WithClientVpnEndpointId(const Aws::String& value) { SetClientVpnEndpointId(value); return *this;} /** *

The ID of the Client VPN endpoint with which the target network is * associated.

*/ inline TargetNetwork& WithClientVpnEndpointId(Aws::String&& value) { SetClientVpnEndpointId(std::move(value)); return *this;} /** *

The ID of the Client VPN endpoint with which the target network is * associated.

*/ inline TargetNetwork& WithClientVpnEndpointId(const char* value) { SetClientVpnEndpointId(value); return *this;} /** *

The current state of the target network association.

*/ inline const AssociationStatus& GetStatus() const{ return m_status; } /** *

The current state of the target network association.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current state of the target network association.

*/ inline void SetStatus(const AssociationStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The current state of the target network association.

*/ inline void SetStatus(AssociationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The current state of the target network association.

*/ inline TargetNetwork& WithStatus(const AssociationStatus& value) { SetStatus(value); return *this;} /** *

The current state of the target network association.

*/ inline TargetNetwork& WithStatus(AssociationStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The IDs of the security groups applied to the target network association.

*/ inline const Aws::Vector& GetSecurityGroups() const{ return m_securityGroups; } /** *

The IDs of the security groups applied to the target network association.

*/ inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; } /** *

The IDs of the security groups applied to the target network association.

*/ inline void SetSecurityGroups(const Aws::Vector& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; } /** *

The IDs of the security groups applied to the target network association.

*/ inline void SetSecurityGroups(Aws::Vector&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); } /** *

The IDs of the security groups applied to the target network association.

*/ inline TargetNetwork& WithSecurityGroups(const Aws::Vector& value) { SetSecurityGroups(value); return *this;} /** *

The IDs of the security groups applied to the target network association.

*/ inline TargetNetwork& WithSecurityGroups(Aws::Vector&& value) { SetSecurityGroups(std::move(value)); return *this;} /** *

The IDs of the security groups applied to the target network association.

*/ inline TargetNetwork& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *

The IDs of the security groups applied to the target network association.

*/ inline TargetNetwork& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; } /** *

The IDs of the security groups applied to the target network association.

*/ inline TargetNetwork& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } private: Aws::String m_associationId; bool m_associationIdHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::String m_targetNetworkId; bool m_targetNetworkIdHasBeenSet = false; Aws::String m_clientVpnEndpointId; bool m_clientVpnEndpointIdHasBeenSet = false; AssociationStatus m_status; bool m_statusHasBeenSet = false; Aws::Vector m_securityGroups; bool m_securityGroupsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws