AWS SDK for C++  1.9.131
AWS SDK for C++
RouteTable.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
13 #include <aws/ec2/model/Route.h>
14 #include <aws/ec2/model/Tag.h>
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlNode;
24 } // namespace Xml
25 } // namespace Utils
26 namespace EC2
27 {
28 namespace Model
29 {
30 
37  {
38  public:
42 
43  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44  void OutputToStream(Aws::OStream& oStream, const char* location) const;
45 
46 
51  inline const Aws::Vector<RouteTableAssociation>& GetAssociations() const{ return m_associations; }
52 
57  inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; }
58 
63  inline void SetAssociations(const Aws::Vector<RouteTableAssociation>& value) { m_associationsHasBeenSet = true; m_associations = value; }
64 
69  inline void SetAssociations(Aws::Vector<RouteTableAssociation>&& value) { m_associationsHasBeenSet = true; m_associations = std::move(value); }
70 
75  inline RouteTable& WithAssociations(const Aws::Vector<RouteTableAssociation>& value) { SetAssociations(value); return *this;}
76 
81  inline RouteTable& WithAssociations(Aws::Vector<RouteTableAssociation>&& value) { SetAssociations(std::move(value)); return *this;}
82 
87  inline RouteTable& AddAssociations(const RouteTableAssociation& value) { m_associationsHasBeenSet = true; m_associations.push_back(value); return *this; }
88 
93  inline RouteTable& AddAssociations(RouteTableAssociation&& value) { m_associationsHasBeenSet = true; m_associations.push_back(std::move(value)); return *this; }
94 
95 
99  inline const Aws::Vector<PropagatingVgw>& GetPropagatingVgws() const{ return m_propagatingVgws; }
100 
104  inline bool PropagatingVgwsHasBeenSet() const { return m_propagatingVgwsHasBeenSet; }
105 
109  inline void SetPropagatingVgws(const Aws::Vector<PropagatingVgw>& value) { m_propagatingVgwsHasBeenSet = true; m_propagatingVgws = value; }
110 
114  inline void SetPropagatingVgws(Aws::Vector<PropagatingVgw>&& value) { m_propagatingVgwsHasBeenSet = true; m_propagatingVgws = std::move(value); }
115 
119  inline RouteTable& WithPropagatingVgws(const Aws::Vector<PropagatingVgw>& value) { SetPropagatingVgws(value); return *this;}
120 
124  inline RouteTable& WithPropagatingVgws(Aws::Vector<PropagatingVgw>&& value) { SetPropagatingVgws(std::move(value)); return *this;}
125 
129  inline RouteTable& AddPropagatingVgws(const PropagatingVgw& value) { m_propagatingVgwsHasBeenSet = true; m_propagatingVgws.push_back(value); return *this; }
130 
134  inline RouteTable& AddPropagatingVgws(PropagatingVgw&& value) { m_propagatingVgwsHasBeenSet = true; m_propagatingVgws.push_back(std::move(value)); return *this; }
135 
136 
140  inline const Aws::String& GetRouteTableId() const{ return m_routeTableId; }
141 
145  inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; }
146 
150  inline void SetRouteTableId(const Aws::String& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = value; }
151 
155  inline void SetRouteTableId(Aws::String&& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = std::move(value); }
156 
160  inline void SetRouteTableId(const char* value) { m_routeTableIdHasBeenSet = true; m_routeTableId.assign(value); }
161 
165  inline RouteTable& WithRouteTableId(const Aws::String& value) { SetRouteTableId(value); return *this;}
166 
170  inline RouteTable& WithRouteTableId(Aws::String&& value) { SetRouteTableId(std::move(value)); return *this;}
171 
175  inline RouteTable& WithRouteTableId(const char* value) { SetRouteTableId(value); return *this;}
176 
177 
181  inline const Aws::Vector<Route>& GetRoutes() const{ return m_routes; }
182 
186  inline bool RoutesHasBeenSet() const { return m_routesHasBeenSet; }
187 
191  inline void SetRoutes(const Aws::Vector<Route>& value) { m_routesHasBeenSet = true; m_routes = value; }
192 
196  inline void SetRoutes(Aws::Vector<Route>&& value) { m_routesHasBeenSet = true; m_routes = std::move(value); }
197 
201  inline RouteTable& WithRoutes(const Aws::Vector<Route>& value) { SetRoutes(value); return *this;}
202 
206  inline RouteTable& WithRoutes(Aws::Vector<Route>&& value) { SetRoutes(std::move(value)); return *this;}
207 
211  inline RouteTable& AddRoutes(const Route& value) { m_routesHasBeenSet = true; m_routes.push_back(value); return *this; }
212 
216  inline RouteTable& AddRoutes(Route&& value) { m_routesHasBeenSet = true; m_routes.push_back(std::move(value)); return *this; }
217 
218 
222  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
223 
227  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
228 
232  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
233 
237  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
238 
242  inline RouteTable& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
243 
247  inline RouteTable& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
248 
252  inline RouteTable& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
253 
257  inline RouteTable& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
258 
259 
263  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
264 
268  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
269 
273  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
274 
278  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
279 
283  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
284 
288  inline RouteTable& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
289 
293  inline RouteTable& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
294 
298  inline RouteTable& WithVpcId(const char* value) { SetVpcId(value); return *this;}
299 
300 
304  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
305 
309  inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
310 
314  inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
315 
319  inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
320 
324  inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
325 
329  inline RouteTable& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
330 
334  inline RouteTable& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
335 
339  inline RouteTable& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
340 
341  private:
342 
343  Aws::Vector<RouteTableAssociation> m_associations;
344  bool m_associationsHasBeenSet;
345 
346  Aws::Vector<PropagatingVgw> m_propagatingVgws;
347  bool m_propagatingVgwsHasBeenSet;
348 
349  Aws::String m_routeTableId;
350  bool m_routeTableIdHasBeenSet;
351 
352  Aws::Vector<Route> m_routes;
353  bool m_routesHasBeenSet;
354 
355  Aws::Vector<Tag> m_tags;
356  bool m_tagsHasBeenSet;
357 
358  Aws::String m_vpcId;
359  bool m_vpcIdHasBeenSet;
360 
361  Aws::String m_ownerId;
362  bool m_ownerIdHasBeenSet;
363  };
364 
365 } // namespace Model
366 } // namespace EC2
367 } // namespace Aws
Aws::EC2::Model::RouteTable::WithVpcId
RouteTable & WithVpcId(const char *value)
Definition: RouteTable.h:298
Aws::EC2::Model::RouteTableAssociation
Definition: RouteTableAssociation.h:34
Aws::EC2::Model::PropagatingVgw
Definition: PropagatingVgw.h:33
Aws::EC2::Model::RouteTable::AddTags
RouteTable & AddTags(Tag &&value)
Definition: RouteTable.h:257
Aws::EC2::Model::RouteTable::SetAssociations
void SetAssociations(Aws::Vector< RouteTableAssociation > &&value)
Definition: RouteTable.h:69
Aws::EC2::Model::RouteTable::GetOwnerId
const Aws::String & GetOwnerId() const
Definition: RouteTable.h:304
Aws::EC2::Model::RouteTable::SetRouteTableId
void SetRouteTableId(Aws::String &&value)
Definition: RouteTable.h:155
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::RouteTable::WithRoutes
RouteTable & WithRoutes(Aws::Vector< Route > &&value)
Definition: RouteTable.h:206
Aws::EC2::Model::RouteTable::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::RouteTable::AssociationsHasBeenSet
bool AssociationsHasBeenSet() const
Definition: RouteTable.h:57
Aws::EC2::Model::RouteTable::SetOwnerId
void SetOwnerId(const Aws::String &value)
Definition: RouteTable.h:314
Aws::EC2::Model::RouteTable::SetRouteTableId
void SetRouteTableId(const Aws::String &value)
Definition: RouteTable.h:150
Aws::EC2::Model::RouteTable::GetAssociations
const Aws::Vector< RouteTableAssociation > & GetAssociations() const
Definition: RouteTable.h:51
Aws::EC2::Model::RouteTable::AddRoutes
RouteTable & AddRoutes(Route &&value)
Definition: RouteTable.h:216
Aws::EC2::Model::Route
Definition: Route.h:34
Aws::EC2::Model::RouteTable::GetVpcId
const Aws::String & GetVpcId() const
Definition: RouteTable.h:263
Aws::EC2::Model::RouteTable::WithOwnerId
RouteTable & WithOwnerId(Aws::String &&value)
Definition: RouteTable.h:334
Aws::EC2::Model::RouteTable::RouteTable
RouteTable()
Aws::EC2::Model::RouteTable::WithAssociations
RouteTable & WithAssociations(const Aws::Vector< RouteTableAssociation > &value)
Definition: RouteTable.h:75
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::RouteTable::AddAssociations
RouteTable & AddAssociations(RouteTableAssociation &&value)
Definition: RouteTable.h:93
Aws::EC2::Model::RouteTable::SetVpcId
void SetVpcId(const char *value)
Definition: RouteTable.h:283
Aws::EC2::Model::RouteTable::SetPropagatingVgws
void SetPropagatingVgws(Aws::Vector< PropagatingVgw > &&value)
Definition: RouteTable.h:114
Aws::EC2::Model::RouteTable::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: RouteTable.h:232
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::RouteTable::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: RouteTable.h:237
Aws::EC2::Model::RouteTable::GetRouteTableId
const Aws::String & GetRouteTableId() const
Definition: RouteTable.h:140
AWSStreamFwd.h
Aws::EC2::Model::RouteTable::AddAssociations
RouteTable & AddAssociations(const RouteTableAssociation &value)
Definition: RouteTable.h:87
Aws::EC2::Model::RouteTable::WithPropagatingVgws
RouteTable & WithPropagatingVgws(Aws::Vector< PropagatingVgw > &&value)
Definition: RouteTable.h:124
RouteTableAssociation.h
Aws::EC2::Model::RouteTable::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: RouteTable.h:278
AWSVector.h
Tag.h
Aws::EC2::Model::RouteTable::WithVpcId
RouteTable & WithVpcId(Aws::String &&value)
Definition: RouteTable.h:293
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::RouteTable::WithTags
RouteTable & WithTags(Aws::Vector< Tag > &&value)
Definition: RouteTable.h:247
Aws::EC2::Model::RouteTable::GetPropagatingVgws
const Aws::Vector< PropagatingVgw > & GetPropagatingVgws() const
Definition: RouteTable.h:99
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::RouteTable::WithAssociations
RouteTable & WithAssociations(Aws::Vector< RouteTableAssociation > &&value)
Definition: RouteTable.h:81
Aws::EC2::Model::RouteTable::WithRoutes
RouteTable & WithRoutes(const Aws::Vector< Route > &value)
Definition: RouteTable.h:201
Aws::EC2::Model::RouteTable::RoutesHasBeenSet
bool RoutesHasBeenSet() const
Definition: RouteTable.h:186
Aws::EC2::Model::RouteTable::WithOwnerId
RouteTable & WithOwnerId(const char *value)
Definition: RouteTable.h:339
Aws::EC2::Model::RouteTable::AddRoutes
RouteTable & AddRoutes(const Route &value)
Definition: RouteTable.h:211
Aws::EC2::Model::RouteTable::AddPropagatingVgws
RouteTable & AddPropagatingVgws(const PropagatingVgw &value)
Definition: RouteTable.h:129
Aws::EC2::Model::RouteTable::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: RouteTable.h:227
Aws::EC2::Model::RouteTable::SetRoutes
void SetRoutes(Aws::Vector< Route > &&value)
Definition: RouteTable.h:196
Aws::EC2::Model::RouteTable::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: RouteTable.h:268
Aws::EC2::Model::RouteTable::WithOwnerId
RouteTable & WithOwnerId(const Aws::String &value)
Definition: RouteTable.h:329
AWSString.h
Aws::EC2::Model::RouteTable::GetRoutes
const Aws::Vector< Route > & GetRoutes() const
Definition: RouteTable.h:181
Aws::EC2::Model::RouteTable::WithVpcId
RouteTable & WithVpcId(const Aws::String &value)
Definition: RouteTable.h:288
Aws::EC2::Model::RouteTable::SetOwnerId
void SetOwnerId(const char *value)
Definition: RouteTable.h:324
Aws::EC2::Model::RouteTable::WithTags
RouteTable & WithTags(const Aws::Vector< Tag > &value)
Definition: RouteTable.h:242
Aws::EC2::Model::RouteTable
Definition: RouteTable.h:37
Aws::EC2::Model::RouteTable::AddPropagatingVgws
RouteTable & AddPropagatingVgws(PropagatingVgw &&value)
Definition: RouteTable.h:134
Aws::EC2::Model::RouteTable::SetOwnerId
void SetOwnerId(Aws::String &&value)
Definition: RouteTable.h:319
Aws::EC2::Model::RouteTable::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: RouteTable.h:222
Aws::EC2::Model::RouteTable::RouteTable
RouteTable(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::RouteTable::WithPropagatingVgws
RouteTable & WithPropagatingVgws(const Aws::Vector< PropagatingVgw > &value)
Definition: RouteTable.h:119
Aws::EC2::Model::RouteTable::OwnerIdHasBeenSet
bool OwnerIdHasBeenSet() const
Definition: RouteTable.h:309
Aws::EC2::Model::RouteTable::WithRouteTableId
RouteTable & WithRouteTableId(const char *value)
Definition: RouteTable.h:175
Aws::EC2::Model::RouteTable::PropagatingVgwsHasBeenSet
bool PropagatingVgwsHasBeenSet() const
Definition: RouteTable.h:104
Aws::EC2::Model::RouteTable::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: RouteTable.h:273
Route.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::RouteTable::SetPropagatingVgws
void SetPropagatingVgws(const Aws::Vector< PropagatingVgw > &value)
Definition: RouteTable.h:109
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::RouteTable::WithRouteTableId
RouteTable & WithRouteTableId(Aws::String &&value)
Definition: RouteTable.h:170
Aws::EC2::Model::RouteTable::SetAssociations
void SetAssociations(const Aws::Vector< RouteTableAssociation > &value)
Definition: RouteTable.h:63
Aws::EC2::Model::RouteTable::AddTags
RouteTable & AddTags(const Tag &value)
Definition: RouteTable.h:252
Aws::EC2::Model::RouteTable::SetRouteTableId
void SetRouteTableId(const char *value)
Definition: RouteTable.h:160
Aws::EC2::Model::RouteTable::operator=
RouteTable & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PropagatingVgw.h
Aws::EC2::Model::RouteTable::RouteTableIdHasBeenSet
bool RouteTableIdHasBeenSet() const
Definition: RouteTable.h:145
EC2_EXPORTS.h
Aws::EC2::Model::RouteTable::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::RouteTable::SetRoutes
void SetRoutes(const Aws::Vector< Route > &value)
Definition: RouteTable.h:191
Aws::EC2::Model::RouteTable::WithRouteTableId
RouteTable & WithRouteTableId(const Aws::String &value)
Definition: RouteTable.h:165