AWS SDK for C++  1.9.66
AWS SDK for C++
LocalGatewayRoute.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::String& GetDestinationCidrBlock() const{ return m_destinationCidrBlock; }
49 
53  inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
54 
58  inline void SetDestinationCidrBlock(const Aws::String& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = value; }
59 
63  inline void SetDestinationCidrBlock(Aws::String&& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = std::move(value); }
64 
68  inline void SetDestinationCidrBlock(const char* value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock.assign(value); }
69 
73  inline LocalGatewayRoute& WithDestinationCidrBlock(const Aws::String& value) { SetDestinationCidrBlock(value); return *this;}
74 
78  inline LocalGatewayRoute& WithDestinationCidrBlock(Aws::String&& value) { SetDestinationCidrBlock(std::move(value)); return *this;}
79 
83  inline LocalGatewayRoute& WithDestinationCidrBlock(const char* value) { SetDestinationCidrBlock(value); return *this;}
84 
85 
89  inline const Aws::String& GetLocalGatewayVirtualInterfaceGroupId() const{ return m_localGatewayVirtualInterfaceGroupId; }
90 
94  inline bool LocalGatewayVirtualInterfaceGroupIdHasBeenSet() const { return m_localGatewayVirtualInterfaceGroupIdHasBeenSet; }
95 
99  inline void SetLocalGatewayVirtualInterfaceGroupId(const Aws::String& value) { m_localGatewayVirtualInterfaceGroupIdHasBeenSet = true; m_localGatewayVirtualInterfaceGroupId = value; }
100 
104  inline void SetLocalGatewayVirtualInterfaceGroupId(Aws::String&& value) { m_localGatewayVirtualInterfaceGroupIdHasBeenSet = true; m_localGatewayVirtualInterfaceGroupId = std::move(value); }
105 
109  inline void SetLocalGatewayVirtualInterfaceGroupId(const char* value) { m_localGatewayVirtualInterfaceGroupIdHasBeenSet = true; m_localGatewayVirtualInterfaceGroupId.assign(value); }
110 
114  inline LocalGatewayRoute& WithLocalGatewayVirtualInterfaceGroupId(const Aws::String& value) { SetLocalGatewayVirtualInterfaceGroupId(value); return *this;}
115 
119  inline LocalGatewayRoute& WithLocalGatewayVirtualInterfaceGroupId(Aws::String&& value) { SetLocalGatewayVirtualInterfaceGroupId(std::move(value)); return *this;}
120 
124  inline LocalGatewayRoute& WithLocalGatewayVirtualInterfaceGroupId(const char* value) { SetLocalGatewayVirtualInterfaceGroupId(value); return *this;}
125 
126 
130  inline const LocalGatewayRouteType& GetType() const{ return m_type; }
131 
135  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
136 
140  inline void SetType(const LocalGatewayRouteType& value) { m_typeHasBeenSet = true; m_type = value; }
141 
145  inline void SetType(LocalGatewayRouteType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
146 
150  inline LocalGatewayRoute& WithType(const LocalGatewayRouteType& value) { SetType(value); return *this;}
151 
155  inline LocalGatewayRoute& WithType(LocalGatewayRouteType&& value) { SetType(std::move(value)); return *this;}
156 
157 
161  inline const LocalGatewayRouteState& GetState() const{ return m_state; }
162 
166  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
167 
171  inline void SetState(const LocalGatewayRouteState& value) { m_stateHasBeenSet = true; m_state = value; }
172 
176  inline void SetState(LocalGatewayRouteState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
177 
181  inline LocalGatewayRoute& WithState(const LocalGatewayRouteState& value) { SetState(value); return *this;}
182 
186  inline LocalGatewayRoute& WithState(LocalGatewayRouteState&& value) { SetState(std::move(value)); return *this;}
187 
188 
192  inline const Aws::String& GetLocalGatewayRouteTableId() const{ return m_localGatewayRouteTableId; }
193 
197  inline bool LocalGatewayRouteTableIdHasBeenSet() const { return m_localGatewayRouteTableIdHasBeenSet; }
198 
202  inline void SetLocalGatewayRouteTableId(const Aws::String& value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId = value; }
203 
207  inline void SetLocalGatewayRouteTableId(Aws::String&& value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId = std::move(value); }
208 
212  inline void SetLocalGatewayRouteTableId(const char* value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId.assign(value); }
213 
217  inline LocalGatewayRoute& WithLocalGatewayRouteTableId(const Aws::String& value) { SetLocalGatewayRouteTableId(value); return *this;}
218 
222  inline LocalGatewayRoute& WithLocalGatewayRouteTableId(Aws::String&& value) { SetLocalGatewayRouteTableId(std::move(value)); return *this;}
223 
227  inline LocalGatewayRoute& WithLocalGatewayRouteTableId(const char* value) { SetLocalGatewayRouteTableId(value); return *this;}
228 
229 
233  inline const Aws::String& GetLocalGatewayRouteTableArn() const{ return m_localGatewayRouteTableArn; }
234 
238  inline bool LocalGatewayRouteTableArnHasBeenSet() const { return m_localGatewayRouteTableArnHasBeenSet; }
239 
243  inline void SetLocalGatewayRouteTableArn(const Aws::String& value) { m_localGatewayRouteTableArnHasBeenSet = true; m_localGatewayRouteTableArn = value; }
244 
248  inline void SetLocalGatewayRouteTableArn(Aws::String&& value) { m_localGatewayRouteTableArnHasBeenSet = true; m_localGatewayRouteTableArn = std::move(value); }
249 
253  inline void SetLocalGatewayRouteTableArn(const char* value) { m_localGatewayRouteTableArnHasBeenSet = true; m_localGatewayRouteTableArn.assign(value); }
254 
258  inline LocalGatewayRoute& WithLocalGatewayRouteTableArn(const Aws::String& value) { SetLocalGatewayRouteTableArn(value); return *this;}
259 
263  inline LocalGatewayRoute& WithLocalGatewayRouteTableArn(Aws::String&& value) { SetLocalGatewayRouteTableArn(std::move(value)); return *this;}
264 
268  inline LocalGatewayRoute& WithLocalGatewayRouteTableArn(const char* value) { SetLocalGatewayRouteTableArn(value); return *this;}
269 
270 
274  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
275 
279  inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
280 
284  inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
285 
289  inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
290 
294  inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
295 
299  inline LocalGatewayRoute& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
300 
304  inline LocalGatewayRoute& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
305 
309  inline LocalGatewayRoute& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
310 
311  private:
312 
313  Aws::String m_destinationCidrBlock;
314  bool m_destinationCidrBlockHasBeenSet;
315 
316  Aws::String m_localGatewayVirtualInterfaceGroupId;
317  bool m_localGatewayVirtualInterfaceGroupIdHasBeenSet;
318 
319  LocalGatewayRouteType m_type;
320  bool m_typeHasBeenSet;
321 
322  LocalGatewayRouteState m_state;
323  bool m_stateHasBeenSet;
324 
325  Aws::String m_localGatewayRouteTableId;
326  bool m_localGatewayRouteTableIdHasBeenSet;
327 
328  Aws::String m_localGatewayRouteTableArn;
329  bool m_localGatewayRouteTableArnHasBeenSet;
330 
331  Aws::String m_ownerId;
332  bool m_ownerIdHasBeenSet;
333  };
334 
335 } // namespace Model
336 } // namespace EC2
337 } // namespace Aws
Aws::EC2::Model::LocalGatewayRoute::SetType
void SetType(const LocalGatewayRouteType &value)
Definition: LocalGatewayRoute.h:140
Aws::EC2::Model::LocalGatewayRoute::SetLocalGatewayRouteTableArn
void SetLocalGatewayRouteTableArn(Aws::String &&value)
Definition: LocalGatewayRoute.h:248
Aws::EC2::Model::LocalGatewayRoute::LocalGatewayVirtualInterfaceGroupIdHasBeenSet
bool LocalGatewayVirtualInterfaceGroupIdHasBeenSet() const
Definition: LocalGatewayRoute.h:94
Aws::EC2::Model::LocalGatewayRoute::SetLocalGatewayRouteTableId
void SetLocalGatewayRouteTableId(const char *value)
Definition: LocalGatewayRoute.h:212
Aws::EC2::Model::LocalGatewayRoute::WithType
LocalGatewayRoute & WithType(const LocalGatewayRouteType &value)
Definition: LocalGatewayRoute.h:150
Aws::EC2::Model::LocalGatewayRoute::SetOwnerId
void SetOwnerId(const Aws::String &value)
Definition: LocalGatewayRoute.h:284
Aws::EC2::Model::LocalGatewayRoute::OwnerIdHasBeenSet
bool OwnerIdHasBeenSet() const
Definition: LocalGatewayRoute.h:279
Aws::EC2::Model::LocalGatewayRoute::LocalGatewayRouteTableArnHasBeenSet
bool LocalGatewayRouteTableArnHasBeenSet() const
Definition: LocalGatewayRoute.h:238
Aws::EC2::Model::LocalGatewayRoute::WithOwnerId
LocalGatewayRoute & WithOwnerId(const char *value)
Definition: LocalGatewayRoute.h:309
Aws::EC2::Model::LocalGatewayRoute::LocalGatewayRouteTableIdHasBeenSet
bool LocalGatewayRouteTableIdHasBeenSet() const
Definition: LocalGatewayRoute.h:197
Aws::EC2::Model::LocalGatewayRoute::WithLocalGatewayRouteTableArn
LocalGatewayRoute & WithLocalGatewayRouteTableArn(const Aws::String &value)
Definition: LocalGatewayRoute.h:258
Aws::EC2::Model::LocalGatewayRoute::WithLocalGatewayRouteTableArn
LocalGatewayRoute & WithLocalGatewayRouteTableArn(Aws::String &&value)
Definition: LocalGatewayRoute.h:263
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::LocalGatewayRoute::SetLocalGatewayRouteTableId
void SetLocalGatewayRouteTableId(const Aws::String &value)
Definition: LocalGatewayRoute.h:202
Aws::EC2::Model::LocalGatewayRoute::SetState
void SetState(LocalGatewayRouteState &&value)
Definition: LocalGatewayRoute.h:176
Aws::EC2::Model::LocalGatewayRoute::WithLocalGatewayVirtualInterfaceGroupId
LocalGatewayRoute & WithLocalGatewayVirtualInterfaceGroupId(const Aws::String &value)
Definition: LocalGatewayRoute.h:114
Aws::EC2::Model::LocalGatewayRoute::WithLocalGatewayVirtualInterfaceGroupId
LocalGatewayRoute & WithLocalGatewayVirtualInterfaceGroupId(Aws::String &&value)
Definition: LocalGatewayRoute.h:119
Aws::EC2::Model::LocalGatewayRoute::SetDestinationCidrBlock
void SetDestinationCidrBlock(const Aws::String &value)
Definition: LocalGatewayRoute.h:58
AWSStreamFwd.h
Aws::EC2::Model::LocalGatewayRoute::SetLocalGatewayVirtualInterfaceGroupId
void SetLocalGatewayVirtualInterfaceGroupId(Aws::String &&value)
Definition: LocalGatewayRoute.h:104
Aws::EC2::Model::LocalGatewayRoute::GetLocalGatewayRouteTableId
const Aws::String & GetLocalGatewayRouteTableId() const
Definition: LocalGatewayRoute.h:192
Aws::EC2::Model::LocalGatewayRoute::GetState
const LocalGatewayRouteState & GetState() const
Definition: LocalGatewayRoute.h:161
Aws::EC2::Model::LocalGatewayRoute::GetLocalGatewayVirtualInterfaceGroupId
const Aws::String & GetLocalGatewayVirtualInterfaceGroupId() const
Definition: LocalGatewayRoute.h:89
Aws::EC2::Model::LocalGatewayRoute::WithLocalGatewayRouteTableArn
LocalGatewayRoute & WithLocalGatewayRouteTableArn(const char *value)
Definition: LocalGatewayRoute.h:268
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LocalGatewayRoute::WithDestinationCidrBlock
LocalGatewayRoute & WithDestinationCidrBlock(const char *value)
Definition: LocalGatewayRoute.h:83
Aws::EC2::Model::LocalGatewayRoute::WithLocalGatewayVirtualInterfaceGroupId
LocalGatewayRoute & WithLocalGatewayVirtualInterfaceGroupId(const char *value)
Definition: LocalGatewayRoute.h:124
Aws::EC2::Model::LocalGatewayRoute::WithState
LocalGatewayRoute & WithState(const LocalGatewayRouteState &value)
Definition: LocalGatewayRoute.h:181
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LocalGatewayRoute::SetOwnerId
void SetOwnerId(const char *value)
Definition: LocalGatewayRoute.h:294
Aws::EC2::Model::LocalGatewayRoute::WithDestinationCidrBlock
LocalGatewayRoute & WithDestinationCidrBlock(const Aws::String &value)
Definition: LocalGatewayRoute.h:73
Aws::EC2::Model::LocalGatewayRoute::DestinationCidrBlockHasBeenSet
bool DestinationCidrBlockHasBeenSet() const
Definition: LocalGatewayRoute.h:53
Aws::EC2::Model::LocalGatewayRoute::SetDestinationCidrBlock
void SetDestinationCidrBlock(const char *value)
Definition: LocalGatewayRoute.h:68
Aws::EC2::Model::LocalGatewayRoute::WithOwnerId
LocalGatewayRoute & WithOwnerId(Aws::String &&value)
Definition: LocalGatewayRoute.h:304
Aws::EC2::Model::LocalGatewayRoute::SetDestinationCidrBlock
void SetDestinationCidrBlock(Aws::String &&value)
Definition: LocalGatewayRoute.h:63
Aws::EC2::Model::LocalGatewayRoute::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: LocalGatewayRoute.h:135
Aws::EC2::Model::LocalGatewayRoute::SetLocalGatewayRouteTableArn
void SetLocalGatewayRouteTableArn(const Aws::String &value)
Definition: LocalGatewayRoute.h:243
Aws::EC2::Model::LocalGatewayRoute::operator=
LocalGatewayRoute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LocalGatewayRoute::WithOwnerId
LocalGatewayRoute & WithOwnerId(const Aws::String &value)
Definition: LocalGatewayRoute.h:299
Aws::EC2::Model::LocalGatewayRouteType
LocalGatewayRouteType
Definition: LocalGatewayRouteType.h:17
AWSString.h
Aws::EC2::Model::LocalGatewayRoute::LocalGatewayRoute
LocalGatewayRoute(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LocalGatewayRoute::SetType
void SetType(LocalGatewayRouteType &&value)
Definition: LocalGatewayRoute.h:145
Aws::EC2::Model::LocalGatewayRoute
Definition: LocalGatewayRoute.h:35
Aws::EC2::Model::LocalGatewayRoute::WithDestinationCidrBlock
LocalGatewayRoute & WithDestinationCidrBlock(Aws::String &&value)
Definition: LocalGatewayRoute.h:78
Aws::EC2::Model::LocalGatewayRoute::WithLocalGatewayRouteTableId
LocalGatewayRoute & WithLocalGatewayRouteTableId(const Aws::String &value)
Definition: LocalGatewayRoute.h:217
Aws::EC2::Model::LocalGatewayRouteState
LocalGatewayRouteState
Definition: LocalGatewayRouteState.h:17
Aws::EC2::Model::LocalGatewayRoute::GetOwnerId
const Aws::String & GetOwnerId() const
Definition: LocalGatewayRoute.h:274
Aws::EC2::Model::LocalGatewayRoute::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::LocalGatewayRoute::SetLocalGatewayVirtualInterfaceGroupId
void SetLocalGatewayVirtualInterfaceGroupId(const Aws::String &value)
Definition: LocalGatewayRoute.h:99
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::LocalGatewayRoute::GetDestinationCidrBlock
const Aws::String & GetDestinationCidrBlock() const
Definition: LocalGatewayRoute.h:48
Aws::EC2::Model::LocalGatewayRoute::WithLocalGatewayRouteTableId
LocalGatewayRoute & WithLocalGatewayRouteTableId(const char *value)
Definition: LocalGatewayRoute.h:227
Aws::EC2::Model::LocalGatewayRoute::StateHasBeenSet
bool StateHasBeenSet() const
Definition: LocalGatewayRoute.h:166
Aws::EC2::Model::LocalGatewayRoute::SetState
void SetState(const LocalGatewayRouteState &value)
Definition: LocalGatewayRoute.h:171
Aws::EC2::Model::LocalGatewayRoute::GetType
const LocalGatewayRouteType & GetType() const
Definition: LocalGatewayRoute.h:130
LocalGatewayRouteType.h
Aws::EC2::Model::LocalGatewayRoute::SetOwnerId
void SetOwnerId(Aws::String &&value)
Definition: LocalGatewayRoute.h:289
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::LocalGatewayRoute::SetLocalGatewayRouteTableArn
void SetLocalGatewayRouteTableArn(const char *value)
Definition: LocalGatewayRoute.h:253
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::LocalGatewayRoute::LocalGatewayRoute
LocalGatewayRoute()
Aws::EC2::Model::LocalGatewayRoute::SetLocalGatewayRouteTableId
void SetLocalGatewayRouteTableId(Aws::String &&value)
Definition: LocalGatewayRoute.h:207
Aws::EC2::Model::LocalGatewayRoute::GetLocalGatewayRouteTableArn
const Aws::String & GetLocalGatewayRouteTableArn() const
Definition: LocalGatewayRoute.h:233
Aws::EC2::Model::LocalGatewayRoute::SetLocalGatewayVirtualInterfaceGroupId
void SetLocalGatewayVirtualInterfaceGroupId(const char *value)
Definition: LocalGatewayRoute.h:109
Aws::EC2::Model::LocalGatewayRoute::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
EC2_EXPORTS.h
Aws::EC2::Model::LocalGatewayRoute::WithLocalGatewayRouteTableId
LocalGatewayRoute & WithLocalGatewayRouteTableId(Aws::String &&value)
Definition: LocalGatewayRoute.h:222
Aws::EC2::Model::LocalGatewayRoute::WithState
LocalGatewayRoute & WithState(LocalGatewayRouteState &&value)
Definition: LocalGatewayRoute.h:186
LocalGatewayRouteState.h
Aws::EC2::Model::LocalGatewayRoute::WithType
LocalGatewayRoute & WithType(LocalGatewayRouteType &&value)
Definition: LocalGatewayRoute.h:155