/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #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 table.

See Also:

AWS API * Reference

*/ class RouteTable { public: AWS_EC2_API RouteTable(); AWS_EC2_API RouteTable(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API RouteTable& 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 associations between the route table and one or more subnets or a * gateway.

*/ inline const Aws::Vector& GetAssociations() const{ return m_associations; } /** *

The associations between the route table and one or more subnets or a * gateway.

*/ inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; } /** *

The associations between the route table and one or more subnets or a * gateway.

*/ inline void SetAssociations(const Aws::Vector& value) { m_associationsHasBeenSet = true; m_associations = value; } /** *

The associations between the route table and one or more subnets or a * gateway.

*/ inline void SetAssociations(Aws::Vector&& value) { m_associationsHasBeenSet = true; m_associations = std::move(value); } /** *

The associations between the route table and one or more subnets or a * gateway.

*/ inline RouteTable& WithAssociations(const Aws::Vector& value) { SetAssociations(value); return *this;} /** *

The associations between the route table and one or more subnets or a * gateway.

*/ inline RouteTable& WithAssociations(Aws::Vector&& value) { SetAssociations(std::move(value)); return *this;} /** *

The associations between the route table and one or more subnets or a * gateway.

*/ inline RouteTable& AddAssociations(const RouteTableAssociation& value) { m_associationsHasBeenSet = true; m_associations.push_back(value); return *this; } /** *

The associations between the route table and one or more subnets or a * gateway.

*/ inline RouteTable& AddAssociations(RouteTableAssociation&& value) { m_associationsHasBeenSet = true; m_associations.push_back(std::move(value)); return *this; } /** *

Any virtual private gateway (VGW) propagating routes.

*/ inline const Aws::Vector& GetPropagatingVgws() const{ return m_propagatingVgws; } /** *

Any virtual private gateway (VGW) propagating routes.

*/ inline bool PropagatingVgwsHasBeenSet() const { return m_propagatingVgwsHasBeenSet; } /** *

Any virtual private gateway (VGW) propagating routes.

*/ inline void SetPropagatingVgws(const Aws::Vector& value) { m_propagatingVgwsHasBeenSet = true; m_propagatingVgws = value; } /** *

Any virtual private gateway (VGW) propagating routes.

*/ inline void SetPropagatingVgws(Aws::Vector&& value) { m_propagatingVgwsHasBeenSet = true; m_propagatingVgws = std::move(value); } /** *

Any virtual private gateway (VGW) propagating routes.

*/ inline RouteTable& WithPropagatingVgws(const Aws::Vector& value) { SetPropagatingVgws(value); return *this;} /** *

Any virtual private gateway (VGW) propagating routes.

*/ inline RouteTable& WithPropagatingVgws(Aws::Vector&& value) { SetPropagatingVgws(std::move(value)); return *this;} /** *

Any virtual private gateway (VGW) propagating routes.

*/ inline RouteTable& AddPropagatingVgws(const PropagatingVgw& value) { m_propagatingVgwsHasBeenSet = true; m_propagatingVgws.push_back(value); return *this; } /** *

Any virtual private gateway (VGW) propagating routes.

*/ inline RouteTable& AddPropagatingVgws(PropagatingVgw&& value) { m_propagatingVgwsHasBeenSet = true; m_propagatingVgws.push_back(std::move(value)); return *this; } /** *

The ID of the route table.

*/ inline const Aws::String& GetRouteTableId() const{ return m_routeTableId; } /** *

The ID of the route table.

*/ inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; } /** *

The ID of the route table.

*/ inline void SetRouteTableId(const Aws::String& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = value; } /** *

The ID of the route table.

*/ inline void SetRouteTableId(Aws::String&& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = std::move(value); } /** *

The ID of the route table.

*/ inline void SetRouteTableId(const char* value) { m_routeTableIdHasBeenSet = true; m_routeTableId.assign(value); } /** *

The ID of the route table.

*/ inline RouteTable& WithRouteTableId(const Aws::String& value) { SetRouteTableId(value); return *this;} /** *

The ID of the route table.

*/ inline RouteTable& WithRouteTableId(Aws::String&& value) { SetRouteTableId(std::move(value)); return *this;} /** *

The ID of the route table.

*/ inline RouteTable& WithRouteTableId(const char* value) { SetRouteTableId(value); return *this;} /** *

The routes in the route table.

*/ inline const Aws::Vector& GetRoutes() const{ return m_routes; } /** *

The routes in the route table.

*/ inline bool RoutesHasBeenSet() const { return m_routesHasBeenSet; } /** *

The routes in the route table.

*/ inline void SetRoutes(const Aws::Vector& value) { m_routesHasBeenSet = true; m_routes = value; } /** *

The routes in the route table.

*/ inline void SetRoutes(Aws::Vector&& value) { m_routesHasBeenSet = true; m_routes = std::move(value); } /** *

The routes in the route table.

*/ inline RouteTable& WithRoutes(const Aws::Vector& value) { SetRoutes(value); return *this;} /** *

The routes in the route table.

*/ inline RouteTable& WithRoutes(Aws::Vector&& value) { SetRoutes(std::move(value)); return *this;} /** *

The routes in the route table.

*/ inline RouteTable& AddRoutes(const Route& value) { m_routesHasBeenSet = true; m_routes.push_back(value); return *this; } /** *

The routes in the route table.

*/ inline RouteTable& AddRoutes(Route&& value) { m_routesHasBeenSet = true; m_routes.push_back(std::move(value)); return *this; } /** *

Any tags assigned to the route table.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Any tags assigned to the route table.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Any tags assigned to the route table.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Any tags assigned to the route table.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Any tags assigned to the route table.

*/ inline RouteTable& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Any tags assigned to the route table.

*/ inline RouteTable& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Any tags assigned to the route table.

*/ inline RouteTable& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Any tags assigned to the route table.

*/ inline RouteTable& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The ID of the VPC.

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

The ID of the VPC.

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

The ID of the VPC.

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

The ID of the VPC.

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

The ID of the VPC.

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

The ID of the VPC.

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

The ID of the VPC.

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

The ID of the VPC.

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

The ID of the Amazon Web Services account that owns the route table.

*/ inline const Aws::String& GetOwnerId() const{ return m_ownerId; } /** *

The ID of the Amazon Web Services account that owns the route table.

*/ inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; } /** *

The ID of the Amazon Web Services account that owns the route table.

*/ inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; } /** *

The ID of the Amazon Web Services account that owns the route table.

*/ inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); } /** *

The ID of the Amazon Web Services account that owns the route table.

*/ inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); } /** *

The ID of the Amazon Web Services account that owns the route table.

*/ inline RouteTable& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} /** *

The ID of the Amazon Web Services account that owns the route table.

*/ inline RouteTable& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services account that owns the route table.

*/ inline RouteTable& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} private: Aws::Vector m_associations; bool m_associationsHasBeenSet = false; Aws::Vector m_propagatingVgws; bool m_propagatingVgwsHasBeenSet = false; Aws::String m_routeTableId; bool m_routeTableIdHasBeenSet = false; Aws::Vector m_routes; bool m_routesHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::String m_ownerId; bool m_ownerIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws