/** * 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 { /** *

Information about a Client VPN endpoint route.

See Also:

AWS * API Reference

*/ class ClientVpnRoute { public: AWS_EC2_API ClientVpnRoute(); AWS_EC2_API ClientVpnRoute(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API ClientVpnRoute& 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 Client VPN endpoint with which the route is associated.

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

The ID of the Client VPN endpoint with which the route is associated.

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

The ID of the Client VPN endpoint with which the route 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 route 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 route 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 route is associated.

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

The ID of the Client VPN endpoint with which the route is associated.

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

The ID of the Client VPN endpoint with which the route is associated.

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

The IPv4 address range, in CIDR notation, of the route destination.

*/ inline const Aws::String& GetDestinationCidr() const{ return m_destinationCidr; } /** *

The IPv4 address range, in CIDR notation, of the route destination.

*/ inline bool DestinationCidrHasBeenSet() const { return m_destinationCidrHasBeenSet; } /** *

The IPv4 address range, in CIDR notation, of the route destination.

*/ inline void SetDestinationCidr(const Aws::String& value) { m_destinationCidrHasBeenSet = true; m_destinationCidr = value; } /** *

The IPv4 address range, in CIDR notation, of the route destination.

*/ inline void SetDestinationCidr(Aws::String&& value) { m_destinationCidrHasBeenSet = true; m_destinationCidr = std::move(value); } /** *

The IPv4 address range, in CIDR notation, of the route destination.

*/ inline void SetDestinationCidr(const char* value) { m_destinationCidrHasBeenSet = true; m_destinationCidr.assign(value); } /** *

The IPv4 address range, in CIDR notation, of the route destination.

*/ inline ClientVpnRoute& WithDestinationCidr(const Aws::String& value) { SetDestinationCidr(value); return *this;} /** *

The IPv4 address range, in CIDR notation, of the route destination.

*/ inline ClientVpnRoute& WithDestinationCidr(Aws::String&& value) { SetDestinationCidr(std::move(value)); return *this;} /** *

The IPv4 address range, in CIDR notation, of the route destination.

*/ inline ClientVpnRoute& WithDestinationCidr(const char* value) { SetDestinationCidr(value); return *this;} /** *

The ID of the subnet through which traffic is routed.

*/ inline const Aws::String& GetTargetSubnet() const{ return m_targetSubnet; } /** *

The ID of the subnet through which traffic is routed.

*/ inline bool TargetSubnetHasBeenSet() const { return m_targetSubnetHasBeenSet; } /** *

The ID of the subnet through which traffic is routed.

*/ inline void SetTargetSubnet(const Aws::String& value) { m_targetSubnetHasBeenSet = true; m_targetSubnet = value; } /** *

The ID of the subnet through which traffic is routed.

*/ inline void SetTargetSubnet(Aws::String&& value) { m_targetSubnetHasBeenSet = true; m_targetSubnet = std::move(value); } /** *

The ID of the subnet through which traffic is routed.

*/ inline void SetTargetSubnet(const char* value) { m_targetSubnetHasBeenSet = true; m_targetSubnet.assign(value); } /** *

The ID of the subnet through which traffic is routed.

*/ inline ClientVpnRoute& WithTargetSubnet(const Aws::String& value) { SetTargetSubnet(value); return *this;} /** *

The ID of the subnet through which traffic is routed.

*/ inline ClientVpnRoute& WithTargetSubnet(Aws::String&& value) { SetTargetSubnet(std::move(value)); return *this;} /** *

The ID of the subnet through which traffic is routed.

*/ inline ClientVpnRoute& WithTargetSubnet(const char* value) { SetTargetSubnet(value); return *this;} /** *

The route type.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The route type.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The route type.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The route type.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The route type.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The route type.

*/ inline ClientVpnRoute& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The route type.

*/ inline ClientVpnRoute& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The route type.

*/ inline ClientVpnRoute& WithType(const char* value) { SetType(value); return *this;} /** *

Indicates how the route was associated with the Client VPN endpoint. * associate indicates that the route was automatically added when the * target network was associated with the Client VPN endpoint. * add-route indicates that the route was manually added using the * CreateClientVpnRoute action.

*/ inline const Aws::String& GetOrigin() const{ return m_origin; } /** *

Indicates how the route was associated with the Client VPN endpoint. * associate indicates that the route was automatically added when the * target network was associated with the Client VPN endpoint. * add-route indicates that the route was manually added using the * CreateClientVpnRoute action.

*/ inline bool OriginHasBeenSet() const { return m_originHasBeenSet; } /** *

Indicates how the route was associated with the Client VPN endpoint. * associate indicates that the route was automatically added when the * target network was associated with the Client VPN endpoint. * add-route indicates that the route was manually added using the * CreateClientVpnRoute action.

*/ inline void SetOrigin(const Aws::String& value) { m_originHasBeenSet = true; m_origin = value; } /** *

Indicates how the route was associated with the Client VPN endpoint. * associate indicates that the route was automatically added when the * target network was associated with the Client VPN endpoint. * add-route indicates that the route was manually added using the * CreateClientVpnRoute action.

*/ inline void SetOrigin(Aws::String&& value) { m_originHasBeenSet = true; m_origin = std::move(value); } /** *

Indicates how the route was associated with the Client VPN endpoint. * associate indicates that the route was automatically added when the * target network was associated with the Client VPN endpoint. * add-route indicates that the route was manually added using the * CreateClientVpnRoute action.

*/ inline void SetOrigin(const char* value) { m_originHasBeenSet = true; m_origin.assign(value); } /** *

Indicates how the route was associated with the Client VPN endpoint. * associate indicates that the route was automatically added when the * target network was associated with the Client VPN endpoint. * add-route indicates that the route was manually added using the * CreateClientVpnRoute action.

*/ inline ClientVpnRoute& WithOrigin(const Aws::String& value) { SetOrigin(value); return *this;} /** *

Indicates how the route was associated with the Client VPN endpoint. * associate indicates that the route was automatically added when the * target network was associated with the Client VPN endpoint. * add-route indicates that the route was manually added using the * CreateClientVpnRoute action.

*/ inline ClientVpnRoute& WithOrigin(Aws::String&& value) { SetOrigin(std::move(value)); return *this;} /** *

Indicates how the route was associated with the Client VPN endpoint. * associate indicates that the route was automatically added when the * target network was associated with the Client VPN endpoint. * add-route indicates that the route was manually added using the * CreateClientVpnRoute action.

*/ inline ClientVpnRoute& WithOrigin(const char* value) { SetOrigin(value); return *this;} /** *

The current state of the route.

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

The current state of the route.

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

The current state of the route.

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

The current state of the route.

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

The current state of the route.

*/ inline ClientVpnRoute& WithStatus(const ClientVpnRouteStatus& value) { SetStatus(value); return *this;} /** *

The current state of the route.

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

A brief description of the route.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A brief description of the route.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A brief description of the route.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A brief description of the route.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A brief description of the route.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A brief description of the route.

*/ inline ClientVpnRoute& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A brief description of the route.

*/ inline ClientVpnRoute& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A brief description of the route.

*/ inline ClientVpnRoute& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_clientVpnEndpointId; bool m_clientVpnEndpointIdHasBeenSet = false; Aws::String m_destinationCidr; bool m_destinationCidrHasBeenSet = false; Aws::String m_targetSubnet; bool m_targetSubnetHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Aws::String m_origin; bool m_originHasBeenSet = false; ClientVpnRouteStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws