AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
LocalGatewayRoute.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/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/LocalGatewayRouteState.h>
11#include <aws/ec2/model/LocalGatewayRouteType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
31 public:
32 AWS_EC2_API LocalGatewayRoute() = default;
33 AWS_EC2_API LocalGatewayRoute(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetDestinationCidrBlock() const { return m_destinationCidrBlock; }
44 inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
45 template <typename DestinationCidrBlockT = Aws::String>
46 void SetDestinationCidrBlock(DestinationCidrBlockT&& value) {
47 m_destinationCidrBlockHasBeenSet = true;
48 m_destinationCidrBlock = std::forward<DestinationCidrBlockT>(value);
49 }
50 template <typename DestinationCidrBlockT = Aws::String>
51 LocalGatewayRoute& WithDestinationCidrBlock(DestinationCidrBlockT&& value) {
52 SetDestinationCidrBlock(std::forward<DestinationCidrBlockT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetLocalGatewayVirtualInterfaceGroupId() const { return m_localGatewayVirtualInterfaceGroupId; }
62 inline bool LocalGatewayVirtualInterfaceGroupIdHasBeenSet() const { return m_localGatewayVirtualInterfaceGroupIdHasBeenSet; }
63 template <typename LocalGatewayVirtualInterfaceGroupIdT = Aws::String>
64 void SetLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT&& value) {
65 m_localGatewayVirtualInterfaceGroupIdHasBeenSet = true;
66 m_localGatewayVirtualInterfaceGroupId = std::forward<LocalGatewayVirtualInterfaceGroupIdT>(value);
67 }
68 template <typename LocalGatewayVirtualInterfaceGroupIdT = Aws::String>
69 LocalGatewayRoute& WithLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT&& value) {
70 SetLocalGatewayVirtualInterfaceGroupId(std::forward<LocalGatewayVirtualInterfaceGroupIdT>(value));
71 return *this;
72 }
74
76
79 inline LocalGatewayRouteType GetType() const { return m_type; }
80 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
81 inline void SetType(LocalGatewayRouteType value) {
82 m_typeHasBeenSet = true;
83 m_type = value;
84 }
86 SetType(value);
87 return *this;
88 }
90
92
95 inline LocalGatewayRouteState GetState() const { return m_state; }
96 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
97 inline void SetState(LocalGatewayRouteState value) {
98 m_stateHasBeenSet = true;
99 m_state = value;
100 }
102 SetState(value);
103 return *this;
104 }
106
108
111 inline const Aws::String& GetLocalGatewayRouteTableId() const { return m_localGatewayRouteTableId; }
112 inline bool LocalGatewayRouteTableIdHasBeenSet() const { return m_localGatewayRouteTableIdHasBeenSet; }
113 template <typename LocalGatewayRouteTableIdT = Aws::String>
114 void SetLocalGatewayRouteTableId(LocalGatewayRouteTableIdT&& value) {
115 m_localGatewayRouteTableIdHasBeenSet = true;
116 m_localGatewayRouteTableId = std::forward<LocalGatewayRouteTableIdT>(value);
117 }
118 template <typename LocalGatewayRouteTableIdT = Aws::String>
119 LocalGatewayRoute& WithLocalGatewayRouteTableId(LocalGatewayRouteTableIdT&& value) {
120 SetLocalGatewayRouteTableId(std::forward<LocalGatewayRouteTableIdT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetLocalGatewayRouteTableArn() const { return m_localGatewayRouteTableArn; }
130 inline bool LocalGatewayRouteTableArnHasBeenSet() const { return m_localGatewayRouteTableArnHasBeenSet; }
131 template <typename LocalGatewayRouteTableArnT = Aws::String>
132 void SetLocalGatewayRouteTableArn(LocalGatewayRouteTableArnT&& value) {
133 m_localGatewayRouteTableArnHasBeenSet = true;
134 m_localGatewayRouteTableArn = std::forward<LocalGatewayRouteTableArnT>(value);
135 }
136 template <typename LocalGatewayRouteTableArnT = Aws::String>
137 LocalGatewayRoute& WithLocalGatewayRouteTableArn(LocalGatewayRouteTableArnT&& value) {
138 SetLocalGatewayRouteTableArn(std::forward<LocalGatewayRouteTableArnT>(value));
139 return *this;
140 }
142
144
148 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
149 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
150 template <typename OwnerIdT = Aws::String>
151 void SetOwnerId(OwnerIdT&& value) {
152 m_ownerIdHasBeenSet = true;
153 m_ownerId = std::forward<OwnerIdT>(value);
154 }
155 template <typename OwnerIdT = Aws::String>
156 LocalGatewayRoute& WithOwnerId(OwnerIdT&& value) {
157 SetOwnerId(std::forward<OwnerIdT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
167 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
168 template <typename SubnetIdT = Aws::String>
169 void SetSubnetId(SubnetIdT&& value) {
170 m_subnetIdHasBeenSet = true;
171 m_subnetId = std::forward<SubnetIdT>(value);
172 }
173 template <typename SubnetIdT = Aws::String>
174 LocalGatewayRoute& WithSubnetId(SubnetIdT&& value) {
175 SetSubnetId(std::forward<SubnetIdT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::String& GetCoipPoolId() const { return m_coipPoolId; }
185 inline bool CoipPoolIdHasBeenSet() const { return m_coipPoolIdHasBeenSet; }
186 template <typename CoipPoolIdT = Aws::String>
187 void SetCoipPoolId(CoipPoolIdT&& value) {
188 m_coipPoolIdHasBeenSet = true;
189 m_coipPoolId = std::forward<CoipPoolIdT>(value);
190 }
191 template <typename CoipPoolIdT = Aws::String>
192 LocalGatewayRoute& WithCoipPoolId(CoipPoolIdT&& value) {
193 SetCoipPoolId(std::forward<CoipPoolIdT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::String& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
203 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
204 template <typename NetworkInterfaceIdT = Aws::String>
205 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) {
206 m_networkInterfaceIdHasBeenSet = true;
207 m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value);
208 }
209 template <typename NetworkInterfaceIdT = Aws::String>
210 LocalGatewayRoute& WithNetworkInterfaceId(NetworkInterfaceIdT&& value) {
211 SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::String& GetDestinationPrefixListId() const { return m_destinationPrefixListId; }
221 inline bool DestinationPrefixListIdHasBeenSet() const { return m_destinationPrefixListIdHasBeenSet; }
222 template <typename DestinationPrefixListIdT = Aws::String>
223 void SetDestinationPrefixListId(DestinationPrefixListIdT&& value) {
224 m_destinationPrefixListIdHasBeenSet = true;
225 m_destinationPrefixListId = std::forward<DestinationPrefixListIdT>(value);
226 }
227 template <typename DestinationPrefixListIdT = Aws::String>
228 LocalGatewayRoute& WithDestinationPrefixListId(DestinationPrefixListIdT&& value) {
229 SetDestinationPrefixListId(std::forward<DestinationPrefixListIdT>(value));
230 return *this;
231 }
233 private:
234 Aws::String m_destinationCidrBlock;
235
236 Aws::String m_localGatewayVirtualInterfaceGroupId;
237
239
241
242 Aws::String m_localGatewayRouteTableId;
243
244 Aws::String m_localGatewayRouteTableArn;
245
246 Aws::String m_ownerId;
247
248 Aws::String m_subnetId;
249
250 Aws::String m_coipPoolId;
251
252 Aws::String m_networkInterfaceId;
253
254 Aws::String m_destinationPrefixListId;
255 bool m_destinationCidrBlockHasBeenSet = false;
256 bool m_localGatewayVirtualInterfaceGroupIdHasBeenSet = false;
257 bool m_typeHasBeenSet = false;
258 bool m_stateHasBeenSet = false;
259 bool m_localGatewayRouteTableIdHasBeenSet = false;
260 bool m_localGatewayRouteTableArnHasBeenSet = false;
261 bool m_ownerIdHasBeenSet = false;
262 bool m_subnetIdHasBeenSet = false;
263 bool m_coipPoolIdHasBeenSet = false;
264 bool m_networkInterfaceIdHasBeenSet = false;
265 bool m_destinationPrefixListIdHasBeenSet = false;
266};
267
268} // namespace Model
269} // namespace EC2
270} // namespace Aws
LocalGatewayRouteState GetState() const
LocalGatewayRouteType GetType() const
const Aws::String & GetCoipPoolId() const
LocalGatewayRoute & WithNetworkInterfaceId(NetworkInterfaceIdT &&value)
LocalGatewayRoute & WithCoipPoolId(CoipPoolIdT &&value)
const Aws::String & GetSubnetId() const
AWS_EC2_API LocalGatewayRoute()=default
bool LocalGatewayVirtualInterfaceGroupIdHasBeenSet() const
LocalGatewayRoute & WithType(LocalGatewayRouteType value)
const Aws::String & GetLocalGatewayVirtualInterfaceGroupId() const
LocalGatewayRoute & WithSubnetId(SubnetIdT &&value)
LocalGatewayRoute & WithLocalGatewayRouteTableId(LocalGatewayRouteTableIdT &&value)
void SetLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT &&value)
const Aws::String & GetLocalGatewayRouteTableId() const
LocalGatewayRoute & WithLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT &&value)
void SetCoipPoolId(CoipPoolIdT &&value)
const Aws::String & GetOwnerId() const
void SetLocalGatewayRouteTableId(LocalGatewayRouteTableIdT &&value)
AWS_EC2_API LocalGatewayRoute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetNetworkInterfaceId() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetDestinationPrefixListId(DestinationPrefixListIdT &&value)
LocalGatewayRoute & WithOwnerId(OwnerIdT &&value)
void SetType(LocalGatewayRouteType value)
AWS_EC2_API LocalGatewayRoute(const Aws::Utils::Xml::XmlNode &xmlNode)
LocalGatewayRoute & WithState(LocalGatewayRouteState value)
const Aws::String & GetDestinationCidrBlock() const
LocalGatewayRoute & WithLocalGatewayRouteTableArn(LocalGatewayRouteTableArnT &&value)
void SetLocalGatewayRouteTableArn(LocalGatewayRouteTableArnT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetDestinationCidrBlock(DestinationCidrBlockT &&value)
LocalGatewayRoute & WithDestinationCidrBlock(DestinationCidrBlockT &&value)
LocalGatewayRoute & WithDestinationPrefixListId(DestinationPrefixListIdT &&value)
const Aws::String & GetDestinationPrefixListId() const
void SetNetworkInterfaceId(NetworkInterfaceIdT &&value)
void SetState(LocalGatewayRouteState value)
const Aws::String & GetLocalGatewayRouteTableArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream