/** * 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 static route for a VPN connection.

See Also:

AWS * API Reference

*/ class VpnStaticRoute { public: AWS_EC2_API VpnStaticRoute(); AWS_EC2_API VpnStaticRoute(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API VpnStaticRoute& 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 CIDR block associated with the local subnet of the customer data * center.

*/ inline const Aws::String& GetDestinationCidrBlock() const{ return m_destinationCidrBlock; } /** *

The CIDR block associated with the local subnet of the customer data * center.

*/ inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; } /** *

The CIDR block associated with the local subnet of the customer data * center.

*/ inline void SetDestinationCidrBlock(const Aws::String& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = value; } /** *

The CIDR block associated with the local subnet of the customer data * center.

*/ inline void SetDestinationCidrBlock(Aws::String&& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = std::move(value); } /** *

The CIDR block associated with the local subnet of the customer data * center.

*/ inline void SetDestinationCidrBlock(const char* value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock.assign(value); } /** *

The CIDR block associated with the local subnet of the customer data * center.

*/ inline VpnStaticRoute& WithDestinationCidrBlock(const Aws::String& value) { SetDestinationCidrBlock(value); return *this;} /** *

The CIDR block associated with the local subnet of the customer data * center.

*/ inline VpnStaticRoute& WithDestinationCidrBlock(Aws::String&& value) { SetDestinationCidrBlock(std::move(value)); return *this;} /** *

The CIDR block associated with the local subnet of the customer data * center.

*/ inline VpnStaticRoute& WithDestinationCidrBlock(const char* value) { SetDestinationCidrBlock(value); return *this;} /** *

Indicates how the routes were provided.

*/ inline const VpnStaticRouteSource& GetSource() const{ return m_source; } /** *

Indicates how the routes were provided.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

Indicates how the routes were provided.

*/ inline void SetSource(const VpnStaticRouteSource& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

Indicates how the routes were provided.

*/ inline void SetSource(VpnStaticRouteSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

Indicates how the routes were provided.

*/ inline VpnStaticRoute& WithSource(const VpnStaticRouteSource& value) { SetSource(value); return *this;} /** *

Indicates how the routes were provided.

*/ inline VpnStaticRoute& WithSource(VpnStaticRouteSource&& value) { SetSource(std::move(value)); return *this;} /** *

The current state of the static route.

*/ inline const VpnState& GetState() const{ return m_state; } /** *

The current state of the static route.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The current state of the static route.

*/ inline void SetState(const VpnState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The current state of the static route.

*/ inline void SetState(VpnState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The current state of the static route.

*/ inline VpnStaticRoute& WithState(const VpnState& value) { SetState(value); return *this;} /** *

The current state of the static route.

*/ inline VpnStaticRoute& WithState(VpnState&& value) { SetState(std::move(value)); return *this;} private: Aws::String m_destinationCidrBlock; bool m_destinationCidrBlockHasBeenSet = false; VpnStaticRouteSource m_source; bool m_sourceHasBeenSet = false; VpnState m_state; bool m_stateHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws