/** * 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 route for a local gateway route table.

See Also:

* AWS * API Reference

*/ class AWS_EC2_API LocalGatewayRoute { public: LocalGatewayRoute(); LocalGatewayRoute(const Aws::Utils::Xml::XmlNode& xmlNode); LocalGatewayRoute& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The CIDR block used for destination matches.

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

The CIDR block used for destination matches.

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

The CIDR block used for destination matches.

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

The CIDR block used for destination matches.

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

The CIDR block used for destination matches.

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

The CIDR block used for destination matches.

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

The CIDR block used for destination matches.

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

The CIDR block used for destination matches.

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

The ID of the virtual interface group.

*/ inline const Aws::String& GetLocalGatewayVirtualInterfaceGroupId() const{ return m_localGatewayVirtualInterfaceGroupId; } /** *

The ID of the virtual interface group.

*/ inline bool LocalGatewayVirtualInterfaceGroupIdHasBeenSet() const { return m_localGatewayVirtualInterfaceGroupIdHasBeenSet; } /** *

The ID of the virtual interface group.

*/ inline void SetLocalGatewayVirtualInterfaceGroupId(const Aws::String& value) { m_localGatewayVirtualInterfaceGroupIdHasBeenSet = true; m_localGatewayVirtualInterfaceGroupId = value; } /** *

The ID of the virtual interface group.

*/ inline void SetLocalGatewayVirtualInterfaceGroupId(Aws::String&& value) { m_localGatewayVirtualInterfaceGroupIdHasBeenSet = true; m_localGatewayVirtualInterfaceGroupId = std::move(value); } /** *

The ID of the virtual interface group.

*/ inline void SetLocalGatewayVirtualInterfaceGroupId(const char* value) { m_localGatewayVirtualInterfaceGroupIdHasBeenSet = true; m_localGatewayVirtualInterfaceGroupId.assign(value); } /** *

The ID of the virtual interface group.

*/ inline LocalGatewayRoute& WithLocalGatewayVirtualInterfaceGroupId(const Aws::String& value) { SetLocalGatewayVirtualInterfaceGroupId(value); return *this;} /** *

The ID of the virtual interface group.

*/ inline LocalGatewayRoute& WithLocalGatewayVirtualInterfaceGroupId(Aws::String&& value) { SetLocalGatewayVirtualInterfaceGroupId(std::move(value)); return *this;} /** *

The ID of the virtual interface group.

*/ inline LocalGatewayRoute& WithLocalGatewayVirtualInterfaceGroupId(const char* value) { SetLocalGatewayVirtualInterfaceGroupId(value); return *this;} /** *

The route type.

*/ inline const LocalGatewayRouteType& GetType() const{ return m_type; } /** *

The route type.

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

The route type.

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

The route type.

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

The route type.

*/ inline LocalGatewayRoute& WithType(const LocalGatewayRouteType& value) { SetType(value); return *this;} /** *

The route type.

*/ inline LocalGatewayRoute& WithType(LocalGatewayRouteType&& value) { SetType(std::move(value)); return *this;} /** *

The state of the route.

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

The state of the route.

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

The state of the route.

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

The state of the route.

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

The state of the route.

*/ inline LocalGatewayRoute& WithState(const LocalGatewayRouteState& value) { SetState(value); return *this;} /** *

The state of the route.

*/ inline LocalGatewayRoute& WithState(LocalGatewayRouteState&& value) { SetState(std::move(value)); return *this;} /** *

The ID of the local gateway route table.

*/ inline const Aws::String& GetLocalGatewayRouteTableId() const{ return m_localGatewayRouteTableId; } /** *

The ID of the local gateway route table.

*/ inline bool LocalGatewayRouteTableIdHasBeenSet() const { return m_localGatewayRouteTableIdHasBeenSet; } /** *

The ID of the local gateway route table.

*/ inline void SetLocalGatewayRouteTableId(const Aws::String& value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId = value; } /** *

The ID of the local gateway route table.

*/ inline void SetLocalGatewayRouteTableId(Aws::String&& value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId = std::move(value); } /** *

The ID of the local gateway route table.

*/ inline void SetLocalGatewayRouteTableId(const char* value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId.assign(value); } /** *

The ID of the local gateway route table.

*/ inline LocalGatewayRoute& WithLocalGatewayRouteTableId(const Aws::String& value) { SetLocalGatewayRouteTableId(value); return *this;} /** *

The ID of the local gateway route table.

*/ inline LocalGatewayRoute& WithLocalGatewayRouteTableId(Aws::String&& value) { SetLocalGatewayRouteTableId(std::move(value)); return *this;} /** *

The ID of the local gateway route table.

*/ inline LocalGatewayRoute& WithLocalGatewayRouteTableId(const char* value) { SetLocalGatewayRouteTableId(value); return *this;} private: Aws::String m_destinationCidrBlock; bool m_destinationCidrBlockHasBeenSet; Aws::String m_localGatewayVirtualInterfaceGroupId; bool m_localGatewayVirtualInterfaceGroupIdHasBeenSet; LocalGatewayRouteType m_type; bool m_typeHasBeenSet; LocalGatewayRouteState m_state; bool m_stateHasBeenSet; Aws::String m_localGatewayRouteTableId; bool m_localGatewayRouteTableIdHasBeenSet; }; } // namespace Model } // namespace EC2 } // namespace Aws