AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAssociations(const Aws::Vector<RouteTableAssociation>& value) { m_associationsHasBeenSet = true; m_associations = value; }
54 inline void SetAssociations(Aws::Vector<RouteTableAssociation>&& value) { m_associationsHasBeenSet = true; m_associations = std::move(value); }
56 inline RouteTable& WithAssociations(Aws::Vector<RouteTableAssociation>&& value) { SetAssociations(std::move(value)); return *this;}
57 inline RouteTable& AddAssociations(const RouteTableAssociation& value) { m_associationsHasBeenSet = true; m_associations.push_back(value); return *this; }
58 inline RouteTable& AddAssociations(RouteTableAssociation&& value) { m_associationsHasBeenSet = true; m_associations.push_back(std::move(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 inline void SetPropagatingVgws(const Aws::Vector<PropagatingVgw>& value) { m_propagatingVgwsHasBeenSet = true; m_propagatingVgws = value; }
68 inline void SetPropagatingVgws(Aws::Vector<PropagatingVgw>&& value) { m_propagatingVgwsHasBeenSet = true; m_propagatingVgws = std::move(value); }
70 inline RouteTable& WithPropagatingVgws(Aws::Vector<PropagatingVgw>&& value) { SetPropagatingVgws(std::move(value)); return *this;}
71 inline RouteTable& AddPropagatingVgws(const PropagatingVgw& value) { m_propagatingVgwsHasBeenSet = true; m_propagatingVgws.push_back(value); return *this; }
72 inline RouteTable& AddPropagatingVgws(PropagatingVgw&& value) { m_propagatingVgwsHasBeenSet = true; m_propagatingVgws.push_back(std::move(value)); return *this; }
74
76
79 inline const Aws::String& GetRouteTableId() const{ return m_routeTableId; }
80 inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; }
81 inline void SetRouteTableId(const Aws::String& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = value; }
82 inline void SetRouteTableId(Aws::String&& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = std::move(value); }
83 inline void SetRouteTableId(const char* value) { m_routeTableIdHasBeenSet = true; m_routeTableId.assign(value); }
84 inline RouteTable& WithRouteTableId(const Aws::String& value) { SetRouteTableId(value); return *this;}
85 inline RouteTable& WithRouteTableId(Aws::String&& value) { SetRouteTableId(std::move(value)); return *this;}
86 inline RouteTable& WithRouteTableId(const char* value) { SetRouteTableId(value); return *this;}
88
90
93 inline const Aws::Vector<Route>& GetRoutes() const{ return m_routes; }
94 inline bool RoutesHasBeenSet() const { return m_routesHasBeenSet; }
95 inline void SetRoutes(const Aws::Vector<Route>& value) { m_routesHasBeenSet = true; m_routes = value; }
96 inline void SetRoutes(Aws::Vector<Route>&& value) { m_routesHasBeenSet = true; m_routes = std::move(value); }
97 inline RouteTable& WithRoutes(const Aws::Vector<Route>& value) { SetRoutes(value); return *this;}
98 inline RouteTable& WithRoutes(Aws::Vector<Route>&& value) { SetRoutes(std::move(value)); return *this;}
99 inline RouteTable& AddRoutes(const Route& value) { m_routesHasBeenSet = true; m_routes.push_back(value); return *this; }
100 inline RouteTable& AddRoutes(Route&& value) { m_routesHasBeenSet = true; m_routes.push_back(std::move(value)); return *this; }
102
104
107 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
108 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
109 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
110 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
111 inline RouteTable& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
112 inline RouteTable& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
113 inline RouteTable& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
114 inline RouteTable& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
116
118
121 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
122 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
123 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
124 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
125 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
126 inline RouteTable& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
127 inline RouteTable& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
128 inline RouteTable& WithVpcId(const char* value) { SetVpcId(value); return *this;}
130
132
135 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
136 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
137 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
138 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
139 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
140 inline RouteTable& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
141 inline RouteTable& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
142 inline RouteTable& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
144 private:
145
147 bool m_associationsHasBeenSet = false;
148
149 Aws::Vector<PropagatingVgw> m_propagatingVgws;
150 bool m_propagatingVgwsHasBeenSet = false;
151
152 Aws::String m_routeTableId;
153 bool m_routeTableIdHasBeenSet = false;
154
155 Aws::Vector<Route> m_routes;
156 bool m_routesHasBeenSet = false;
157
158 Aws::Vector<Tag> m_tags;
159 bool m_tagsHasBeenSet = false;
160
161 Aws::String m_vpcId;
162 bool m_vpcIdHasBeenSet = false;
163
164 Aws::String m_ownerId;
165 bool m_ownerIdHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace EC2
170} // namespace Aws
void SetRoutes(const Aws::Vector< Route > &value)
Definition RouteTable.h:95
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
RouteTable & AddRoutes(Route &&value)
Definition RouteTable.h:100
RouteTable & WithRoutes(Aws::Vector< Route > &&value)
Definition RouteTable.h:98
RouteTable & WithOwnerId(const char *value)
Definition RouteTable.h:142
void SetPropagatingVgws(const Aws::Vector< PropagatingVgw > &value)
Definition RouteTable.h:67
RouteTable & WithOwnerId(const Aws::String &value)
Definition RouteTable.h:140
RouteTable & AddPropagatingVgws(const PropagatingVgw &value)
Definition RouteTable.h:71
RouteTable & AddAssociations(const RouteTableAssociation &value)
Definition RouteTable.h:57
void SetOwnerId(Aws::String &&value)
Definition RouteTable.h:138
RouteTable & AddAssociations(RouteTableAssociation &&value)
Definition RouteTable.h:58
bool PropagatingVgwsHasBeenSet() const
Definition RouteTable.h:66
void SetAssociations(const Aws::Vector< RouteTableAssociation > &value)
Definition RouteTable.h:53
RouteTable & WithRouteTableId(const Aws::String &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
void SetVpcId(const Aws::String &value)
Definition RouteTable.h:123
bool AssociationsHasBeenSet() const
Definition RouteTable.h:52
void SetVpcId(Aws::String &&value)
Definition RouteTable.h:124
void SetTags(const Aws::Vector< Tag > &value)
Definition RouteTable.h:109
RouteTable & WithTags(Aws::Vector< Tag > &&value)
Definition RouteTable.h:112
RouteTable & WithOwnerId(Aws::String &&value)
Definition RouteTable.h:141
RouteTable & AddTags(const Tag &value)
Definition RouteTable.h:113
RouteTable & WithVpcId(const Aws::String &value)
Definition RouteTable.h:126
AWS_EC2_API RouteTable & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetRoutes(Aws::Vector< Route > &&value)
Definition RouteTable.h:96
RouteTable & WithPropagatingVgws(Aws::Vector< PropagatingVgw > &&value)
Definition RouteTable.h:70
RouteTable & AddTags(Tag &&value)
Definition RouteTable.h:114
RouteTable & WithRoutes(const Aws::Vector< Route > &value)
Definition RouteTable.h:97
RouteTable & WithVpcId(const char *value)
Definition RouteTable.h:128
RouteTable & WithRouteTableId(const char *value)
Definition RouteTable.h:86
void SetAssociations(Aws::Vector< RouteTableAssociation > &&value)
Definition RouteTable.h:54
void SetRouteTableId(const char *value)
Definition RouteTable.h:83
RouteTable & WithVpcId(Aws::String &&value)
Definition RouteTable.h:127
const Aws::Vector< RouteTableAssociation > & GetAssociations() const
Definition RouteTable.h:51
void SetOwnerId(const Aws::String &value)
Definition RouteTable.h:137
const Aws::String & GetVpcId() const
Definition RouteTable.h:121
void SetRouteTableId(const Aws::String &value)
Definition RouteTable.h:81
AWS_EC2_API RouteTable(const Aws::Utils::Xml::XmlNode &xmlNode)
RouteTable & WithAssociations(const Aws::Vector< RouteTableAssociation > &value)
Definition RouteTable.h:55
void SetTags(Aws::Vector< Tag > &&value)
Definition RouteTable.h:110
RouteTable & WithTags(const Aws::Vector< Tag > &value)
Definition RouteTable.h:111
RouteTable & AddRoutes(const Route &value)
Definition RouteTable.h:99
const Aws::Vector< Route > & GetRoutes() const
Definition RouteTable.h:93
void SetRouteTableId(Aws::String &&value)
Definition RouteTable.h:82
void SetPropagatingVgws(Aws::Vector< PropagatingVgw > &&value)
Definition RouteTable.h:68
bool RouteTableIdHasBeenSet() const
Definition RouteTable.h:80
bool RoutesHasBeenSet() const
Definition RouteTable.h:94
RouteTable & WithPropagatingVgws(const Aws::Vector< PropagatingVgw > &value)
Definition RouteTable.h:69
void SetOwnerId(const char *value)
Definition RouteTable.h:139
const Aws::Vector< Tag > & GetTags() const
Definition RouteTable.h:107
const Aws::String & GetOwnerId() const
Definition RouteTable.h:135
RouteTable & WithAssociations(Aws::Vector< RouteTableAssociation > &&value)
Definition RouteTable.h:56
RouteTable & WithRouteTableId(Aws::String &&value)
Definition RouteTable.h:85
void SetVpcId(const char *value)
Definition RouteTable.h:125
RouteTable & AddPropagatingVgws(PropagatingVgw &&value)
Definition RouteTable.h:72
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