AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RouteTable.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/PropagatingVgw.h>
12#include <aws/ec2/model/Route.h>
13#include <aws/ec2/model/RouteTableAssociation.h>
14#include <aws/ec2/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2 {
25namespace Model {
26
33 public:
34 AWS_EC2_API RouteTable() = default;
35 AWS_EC2_API RouteTable(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_EC2_API RouteTable& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
45 inline const Aws::Vector<RouteTableAssociation>& GetAssociations() const { return m_associations; }
46 inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; }
47 template <typename AssociationsT = Aws::Vector<RouteTableAssociation>>
48 void SetAssociations(AssociationsT&& value) {
49 m_associationsHasBeenSet = true;
50 m_associations = std::forward<AssociationsT>(value);
51 }
52 template <typename AssociationsT = Aws::Vector<RouteTableAssociation>>
53 RouteTable& WithAssociations(AssociationsT&& value) {
54 SetAssociations(std::forward<AssociationsT>(value));
55 return *this;
56 }
57 template <typename AssociationsT = RouteTableAssociation>
58 RouteTable& AddAssociations(AssociationsT&& value) {
59 m_associationsHasBeenSet = true;
60 m_associations.emplace_back(std::forward<AssociationsT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::Vector<PropagatingVgw>& GetPropagatingVgws() const { return m_propagatingVgws; }
70 inline bool PropagatingVgwsHasBeenSet() const { return m_propagatingVgwsHasBeenSet; }
71 template <typename PropagatingVgwsT = Aws::Vector<PropagatingVgw>>
72 void SetPropagatingVgws(PropagatingVgwsT&& value) {
73 m_propagatingVgwsHasBeenSet = true;
74 m_propagatingVgws = std::forward<PropagatingVgwsT>(value);
75 }
76 template <typename PropagatingVgwsT = Aws::Vector<PropagatingVgw>>
77 RouteTable& WithPropagatingVgws(PropagatingVgwsT&& value) {
78 SetPropagatingVgws(std::forward<PropagatingVgwsT>(value));
79 return *this;
80 }
81 template <typename PropagatingVgwsT = PropagatingVgw>
82 RouteTable& AddPropagatingVgws(PropagatingVgwsT&& value) {
83 m_propagatingVgwsHasBeenSet = true;
84 m_propagatingVgws.emplace_back(std::forward<PropagatingVgwsT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetRouteTableId() const { return m_routeTableId; }
94 inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; }
95 template <typename RouteTableIdT = Aws::String>
96 void SetRouteTableId(RouteTableIdT&& value) {
97 m_routeTableIdHasBeenSet = true;
98 m_routeTableId = std::forward<RouteTableIdT>(value);
99 }
100 template <typename RouteTableIdT = Aws::String>
101 RouteTable& WithRouteTableId(RouteTableIdT&& value) {
102 SetRouteTableId(std::forward<RouteTableIdT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Vector<Route>& GetRoutes() const { return m_routes; }
112 inline bool RoutesHasBeenSet() const { return m_routesHasBeenSet; }
113 template <typename RoutesT = Aws::Vector<Route>>
114 void SetRoutes(RoutesT&& value) {
115 m_routesHasBeenSet = true;
116 m_routes = std::forward<RoutesT>(value);
117 }
118 template <typename RoutesT = Aws::Vector<Route>>
119 RouteTable& WithRoutes(RoutesT&& value) {
120 SetRoutes(std::forward<RoutesT>(value));
121 return *this;
122 }
123 template <typename RoutesT = Route>
124 RouteTable& AddRoutes(RoutesT&& value) {
125 m_routesHasBeenSet = true;
126 m_routes.emplace_back(std::forward<RoutesT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
136 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
137 template <typename TagsT = Aws::Vector<Tag>>
138 void SetTags(TagsT&& value) {
139 m_tagsHasBeenSet = true;
140 m_tags = std::forward<TagsT>(value);
141 }
142 template <typename TagsT = Aws::Vector<Tag>>
143 RouteTable& WithTags(TagsT&& value) {
144 SetTags(std::forward<TagsT>(value));
145 return *this;
146 }
147 template <typename TagsT = Tag>
148 RouteTable& AddTags(TagsT&& value) {
149 m_tagsHasBeenSet = true;
150 m_tags.emplace_back(std::forward<TagsT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::String& GetVpcId() const { return m_vpcId; }
160 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
161 template <typename VpcIdT = Aws::String>
162 void SetVpcId(VpcIdT&& value) {
163 m_vpcIdHasBeenSet = true;
164 m_vpcId = std::forward<VpcIdT>(value);
165 }
166 template <typename VpcIdT = Aws::String>
167 RouteTable& WithVpcId(VpcIdT&& value) {
168 SetVpcId(std::forward<VpcIdT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
178 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
179 template <typename OwnerIdT = Aws::String>
180 void SetOwnerId(OwnerIdT&& value) {
181 m_ownerIdHasBeenSet = true;
182 m_ownerId = std::forward<OwnerIdT>(value);
183 }
184 template <typename OwnerIdT = Aws::String>
185 RouteTable& WithOwnerId(OwnerIdT&& value) {
186 SetOwnerId(std::forward<OwnerIdT>(value));
187 return *this;
188 }
190 private:
192
193 Aws::Vector<PropagatingVgw> m_propagatingVgws;
194
195 Aws::String m_routeTableId;
196
197 Aws::Vector<Route> m_routes;
198
199 Aws::Vector<Tag> m_tags;
200
201 Aws::String m_vpcId;
202
203 Aws::String m_ownerId;
204 bool m_associationsHasBeenSet = false;
205 bool m_propagatingVgwsHasBeenSet = false;
206 bool m_routeTableIdHasBeenSet = false;
207 bool m_routesHasBeenSet = false;
208 bool m_tagsHasBeenSet = false;
209 bool m_vpcIdHasBeenSet = false;
210 bool m_ownerIdHasBeenSet = false;
211};
212
213} // namespace Model
214} // namespace EC2
215} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
RouteTable & AddPropagatingVgws(PropagatingVgwsT &&value)
Definition RouteTable.h:82
void SetOwnerId(OwnerIdT &&value)
Definition RouteTable.h:180
RouteTable & WithRoutes(RoutesT &&value)
Definition RouteTable.h:119
bool PropagatingVgwsHasBeenSet() const
Definition RouteTable.h:70
RouteTable & WithRouteTableId(RouteTableIdT &&value)
Definition RouteTable.h:101
const Aws::Vector< PropagatingVgw > & GetPropagatingVgws() const
Definition RouteTable.h:69
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool AssociationsHasBeenSet() const
Definition RouteTable.h:46
RouteTable & WithTags(TagsT &&value)
Definition RouteTable.h:143
void SetVpcId(VpcIdT &&value)
Definition RouteTable.h:162
RouteTable & AddTags(TagsT &&value)
Definition RouteTable.h:148
AWS_EC2_API RouteTable & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetRoutes(RoutesT &&value)
Definition RouteTable.h:114
void SetRouteTableId(RouteTableIdT &&value)
Definition RouteTable.h:96
const Aws::Vector< RouteTableAssociation > & GetAssociations() const
Definition RouteTable.h:45
const Aws::String & GetVpcId() const
Definition RouteTable.h:159
RouteTable & WithVpcId(VpcIdT &&value)
Definition RouteTable.h:167
RouteTable & WithAssociations(AssociationsT &&value)
Definition RouteTable.h:53
AWS_EC2_API RouteTable(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTags(TagsT &&value)
Definition RouteTable.h:138
AWS_EC2_API RouteTable()=default
RouteTable & WithOwnerId(OwnerIdT &&value)
Definition RouteTable.h:185
void SetAssociations(AssociationsT &&value)
Definition RouteTable.h:48
const Aws::Vector< Route > & GetRoutes() const
Definition RouteTable.h:111
bool RouteTableIdHasBeenSet() const
Definition RouteTable.h:94
const Aws::Vector< Tag > & GetTags() const
Definition RouteTable.h:135
const Aws::String & GetOwnerId() const
Definition RouteTable.h:177
RouteTable & AddRoutes(RoutesT &&value)
Definition RouteTable.h:124
void SetPropagatingVgws(PropagatingVgwsT &&value)
Definition RouteTable.h:72
RouteTable & WithPropagatingVgws(PropagatingVgwsT &&value)
Definition RouteTable.h:77
RouteTable & AddAssociations(AssociationsT &&value)
Definition RouteTable.h:58
const Aws::String & GetRouteTableId() const
Definition RouteTable.h:93
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