AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RouteTable.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/RouteTableAssociation.h>
12#include <aws/ec2/model/PropagatingVgw.h>
13#include <aws/ec2/model/Route.h>
14#include <aws/ec2/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace EC2
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_EC2_API RouteTable() = default;
40 AWS_EC2_API RouteTable(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_EC2_API RouteTable& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::Vector<RouteTableAssociation>& GetAssociations() const { return m_associations; }
52 inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; }
53 template<typename AssociationsT = Aws::Vector<RouteTableAssociation>>
54 void SetAssociations(AssociationsT&& value) { m_associationsHasBeenSet = true; m_associations = std::forward<AssociationsT>(value); }
55 template<typename AssociationsT = Aws::Vector<RouteTableAssociation>>
56 RouteTable& WithAssociations(AssociationsT&& value) { SetAssociations(std::forward<AssociationsT>(value)); return *this;}
57 template<typename AssociationsT = RouteTableAssociation>
58 RouteTable& AddAssociations(AssociationsT&& value) { m_associationsHasBeenSet = true; m_associations.emplace_back(std::forward<AssociationsT>(value)); return *this; }
60
62
65 inline const Aws::Vector<PropagatingVgw>& GetPropagatingVgws() const { return m_propagatingVgws; }
66 inline bool PropagatingVgwsHasBeenSet() const { return m_propagatingVgwsHasBeenSet; }
67 template<typename PropagatingVgwsT = Aws::Vector<PropagatingVgw>>
68 void SetPropagatingVgws(PropagatingVgwsT&& value) { m_propagatingVgwsHasBeenSet = true; m_propagatingVgws = std::forward<PropagatingVgwsT>(value); }
69 template<typename PropagatingVgwsT = Aws::Vector<PropagatingVgw>>
70 RouteTable& WithPropagatingVgws(PropagatingVgwsT&& value) { SetPropagatingVgws(std::forward<PropagatingVgwsT>(value)); return *this;}
71 template<typename PropagatingVgwsT = PropagatingVgw>
72 RouteTable& AddPropagatingVgws(PropagatingVgwsT&& value) { m_propagatingVgwsHasBeenSet = true; m_propagatingVgws.emplace_back(std::forward<PropagatingVgwsT>(value)); return *this; }
74
76
79 inline const Aws::String& GetRouteTableId() const { return m_routeTableId; }
80 inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; }
81 template<typename RouteTableIdT = Aws::String>
82 void SetRouteTableId(RouteTableIdT&& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = std::forward<RouteTableIdT>(value); }
83 template<typename RouteTableIdT = Aws::String>
84 RouteTable& WithRouteTableId(RouteTableIdT&& value) { SetRouteTableId(std::forward<RouteTableIdT>(value)); return *this;}
86
88
91 inline const Aws::Vector<Route>& GetRoutes() const { return m_routes; }
92 inline bool RoutesHasBeenSet() const { return m_routesHasBeenSet; }
93 template<typename RoutesT = Aws::Vector<Route>>
94 void SetRoutes(RoutesT&& value) { m_routesHasBeenSet = true; m_routes = std::forward<RoutesT>(value); }
95 template<typename RoutesT = Aws::Vector<Route>>
96 RouteTable& WithRoutes(RoutesT&& value) { SetRoutes(std::forward<RoutesT>(value)); return *this;}
97 template<typename RoutesT = Route>
98 RouteTable& AddRoutes(RoutesT&& value) { m_routesHasBeenSet = true; m_routes.emplace_back(std::forward<RoutesT>(value)); return *this; }
100
102
105 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 template<typename TagsT = Aws::Vector<Tag>>
108 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
109 template<typename TagsT = Aws::Vector<Tag>>
110 RouteTable& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
111 template<typename TagsT = Tag>
112 RouteTable& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
114
116
119 inline const Aws::String& GetVpcId() const { return m_vpcId; }
120 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
121 template<typename VpcIdT = Aws::String>
122 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
123 template<typename VpcIdT = Aws::String>
124 RouteTable& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
126
128
131 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
132 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
133 template<typename OwnerIdT = Aws::String>
134 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
135 template<typename OwnerIdT = Aws::String>
136 RouteTable& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
138 private:
139
141 bool m_associationsHasBeenSet = false;
142
143 Aws::Vector<PropagatingVgw> m_propagatingVgws;
144 bool m_propagatingVgwsHasBeenSet = false;
145
146 Aws::String m_routeTableId;
147 bool m_routeTableIdHasBeenSet = false;
148
149 Aws::Vector<Route> m_routes;
150 bool m_routesHasBeenSet = false;
151
152 Aws::Vector<Tag> m_tags;
153 bool m_tagsHasBeenSet = false;
154
155 Aws::String m_vpcId;
156 bool m_vpcIdHasBeenSet = false;
157
158 Aws::String m_ownerId;
159 bool m_ownerIdHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace EC2
164} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
RouteTable & AddPropagatingVgws(PropagatingVgwsT &&value)
Definition RouteTable.h:72
void SetOwnerId(OwnerIdT &&value)
Definition RouteTable.h:134
RouteTable & WithRoutes(RoutesT &&value)
Definition RouteTable.h:96
bool PropagatingVgwsHasBeenSet() const
Definition RouteTable.h:66
RouteTable & WithRouteTableId(RouteTableIdT &&value)
Definition RouteTable.h:84
const Aws::Vector< PropagatingVgw > & GetPropagatingVgws() const
Definition RouteTable.h:65
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool AssociationsHasBeenSet() const
Definition RouteTable.h:52
RouteTable & WithTags(TagsT &&value)
Definition RouteTable.h:110
void SetVpcId(VpcIdT &&value)
Definition RouteTable.h:122
RouteTable & AddTags(TagsT &&value)
Definition RouteTable.h:112
AWS_EC2_API RouteTable & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetRoutes(RoutesT &&value)
Definition RouteTable.h:94
void SetRouteTableId(RouteTableIdT &&value)
Definition RouteTable.h:82
const Aws::Vector< RouteTableAssociation > & GetAssociations() const
Definition RouteTable.h:51
const Aws::String & GetVpcId() const
Definition RouteTable.h:119
RouteTable & WithVpcId(VpcIdT &&value)
Definition RouteTable.h:124
RouteTable & WithAssociations(AssociationsT &&value)
Definition RouteTable.h:56
AWS_EC2_API RouteTable(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTags(TagsT &&value)
Definition RouteTable.h:108
AWS_EC2_API RouteTable()=default
RouteTable & WithOwnerId(OwnerIdT &&value)
Definition RouteTable.h:136
void SetAssociations(AssociationsT &&value)
Definition RouteTable.h:54
const Aws::Vector< Route > & GetRoutes() const
Definition RouteTable.h:91
bool RouteTableIdHasBeenSet() const
Definition RouteTable.h:80
bool RoutesHasBeenSet() const
Definition RouteTable.h:92
const Aws::Vector< Tag > & GetTags() const
Definition RouteTable.h:105
const Aws::String & GetOwnerId() const
Definition RouteTable.h:131
RouteTable & AddRoutes(RoutesT &&value)
Definition RouteTable.h:98
void SetPropagatingVgws(PropagatingVgwsT &&value)
Definition RouteTable.h:68
RouteTable & WithPropagatingVgws(PropagatingVgwsT &&value)
Definition RouteTable.h:70
RouteTable & AddAssociations(AssociationsT &&value)
Definition RouteTable.h:58
const Aws::String & GetRouteTableId() const
Definition RouteTable.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream