AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LocalGatewayRoute.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/AWSString.h>
10#include <aws/ec2/model/LocalGatewayRouteType.h>
11#include <aws/ec2/model/LocalGatewayRouteState.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_EC2_API LocalGatewayRoute();
38 AWS_EC2_API LocalGatewayRoute(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetDestinationCidrBlock() const{ return m_destinationCidrBlock; }
50 inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
51 inline void SetDestinationCidrBlock(const Aws::String& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = value; }
52 inline void SetDestinationCidrBlock(Aws::String&& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = std::move(value); }
53 inline void SetDestinationCidrBlock(const char* value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock.assign(value); }
55 inline LocalGatewayRoute& WithDestinationCidrBlock(Aws::String&& value) { SetDestinationCidrBlock(std::move(value)); return *this;}
56 inline LocalGatewayRoute& WithDestinationCidrBlock(const char* value) { SetDestinationCidrBlock(value); return *this;}
58
60
63 inline const Aws::String& GetLocalGatewayVirtualInterfaceGroupId() const{ return m_localGatewayVirtualInterfaceGroupId; }
64 inline bool LocalGatewayVirtualInterfaceGroupIdHasBeenSet() const { return m_localGatewayVirtualInterfaceGroupIdHasBeenSet; }
65 inline void SetLocalGatewayVirtualInterfaceGroupId(const Aws::String& value) { m_localGatewayVirtualInterfaceGroupIdHasBeenSet = true; m_localGatewayVirtualInterfaceGroupId = value; }
66 inline void SetLocalGatewayVirtualInterfaceGroupId(Aws::String&& value) { m_localGatewayVirtualInterfaceGroupIdHasBeenSet = true; m_localGatewayVirtualInterfaceGroupId = std::move(value); }
67 inline void SetLocalGatewayVirtualInterfaceGroupId(const char* value) { m_localGatewayVirtualInterfaceGroupIdHasBeenSet = true; m_localGatewayVirtualInterfaceGroupId.assign(value); }
72
74
77 inline const LocalGatewayRouteType& GetType() const{ return m_type; }
78 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
79 inline void SetType(const LocalGatewayRouteType& value) { m_typeHasBeenSet = true; m_type = value; }
80 inline void SetType(LocalGatewayRouteType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
81 inline LocalGatewayRoute& WithType(const LocalGatewayRouteType& value) { SetType(value); return *this;}
82 inline LocalGatewayRoute& WithType(LocalGatewayRouteType&& value) { SetType(std::move(value)); return *this;}
84
86
89 inline const LocalGatewayRouteState& GetState() const{ return m_state; }
90 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
91 inline void SetState(const LocalGatewayRouteState& value) { m_stateHasBeenSet = true; m_state = value; }
92 inline void SetState(LocalGatewayRouteState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
93 inline LocalGatewayRoute& WithState(const LocalGatewayRouteState& value) { SetState(value); return *this;}
94 inline LocalGatewayRoute& WithState(LocalGatewayRouteState&& value) { SetState(std::move(value)); return *this;}
96
98
101 inline const Aws::String& GetLocalGatewayRouteTableId() const{ return m_localGatewayRouteTableId; }
102 inline bool LocalGatewayRouteTableIdHasBeenSet() const { return m_localGatewayRouteTableIdHasBeenSet; }
103 inline void SetLocalGatewayRouteTableId(const Aws::String& value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId = value; }
104 inline void SetLocalGatewayRouteTableId(Aws::String&& value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId = std::move(value); }
105 inline void SetLocalGatewayRouteTableId(const char* value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId.assign(value); }
108 inline LocalGatewayRoute& WithLocalGatewayRouteTableId(const char* value) { SetLocalGatewayRouteTableId(value); return *this;}
110
112
115 inline const Aws::String& GetLocalGatewayRouteTableArn() const{ return m_localGatewayRouteTableArn; }
116 inline bool LocalGatewayRouteTableArnHasBeenSet() const { return m_localGatewayRouteTableArnHasBeenSet; }
117 inline void SetLocalGatewayRouteTableArn(const Aws::String& value) { m_localGatewayRouteTableArnHasBeenSet = true; m_localGatewayRouteTableArn = value; }
118 inline void SetLocalGatewayRouteTableArn(Aws::String&& value) { m_localGatewayRouteTableArnHasBeenSet = true; m_localGatewayRouteTableArn = std::move(value); }
119 inline void SetLocalGatewayRouteTableArn(const char* value) { m_localGatewayRouteTableArnHasBeenSet = true; m_localGatewayRouteTableArn.assign(value); }
122 inline LocalGatewayRoute& WithLocalGatewayRouteTableArn(const char* value) { SetLocalGatewayRouteTableArn(value); return *this;}
124
126
130 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
131 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
132 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
133 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
134 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
135 inline LocalGatewayRoute& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
136 inline LocalGatewayRoute& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
137 inline LocalGatewayRoute& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
139
141
144 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
145 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
146 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
147 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
148 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
149 inline LocalGatewayRoute& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
150 inline LocalGatewayRoute& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
151 inline LocalGatewayRoute& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
153
155
158 inline const Aws::String& GetCoipPoolId() const{ return m_coipPoolId; }
159 inline bool CoipPoolIdHasBeenSet() const { return m_coipPoolIdHasBeenSet; }
160 inline void SetCoipPoolId(const Aws::String& value) { m_coipPoolIdHasBeenSet = true; m_coipPoolId = value; }
161 inline void SetCoipPoolId(Aws::String&& value) { m_coipPoolIdHasBeenSet = true; m_coipPoolId = std::move(value); }
162 inline void SetCoipPoolId(const char* value) { m_coipPoolIdHasBeenSet = true; m_coipPoolId.assign(value); }
163 inline LocalGatewayRoute& WithCoipPoolId(const Aws::String& value) { SetCoipPoolId(value); return *this;}
164 inline LocalGatewayRoute& WithCoipPoolId(Aws::String&& value) { SetCoipPoolId(std::move(value)); return *this;}
165 inline LocalGatewayRoute& WithCoipPoolId(const char* value) { SetCoipPoolId(value); return *this;}
167
169
172 inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
173 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
174 inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
175 inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
176 inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
177 inline LocalGatewayRoute& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
178 inline LocalGatewayRoute& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
179 inline LocalGatewayRoute& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
181
183
186 inline const Aws::String& GetDestinationPrefixListId() const{ return m_destinationPrefixListId; }
187 inline bool DestinationPrefixListIdHasBeenSet() const { return m_destinationPrefixListIdHasBeenSet; }
188 inline void SetDestinationPrefixListId(const Aws::String& value) { m_destinationPrefixListIdHasBeenSet = true; m_destinationPrefixListId = value; }
189 inline void SetDestinationPrefixListId(Aws::String&& value) { m_destinationPrefixListIdHasBeenSet = true; m_destinationPrefixListId = std::move(value); }
190 inline void SetDestinationPrefixListId(const char* value) { m_destinationPrefixListIdHasBeenSet = true; m_destinationPrefixListId.assign(value); }
192 inline LocalGatewayRoute& WithDestinationPrefixListId(Aws::String&& value) { SetDestinationPrefixListId(std::move(value)); return *this;}
193 inline LocalGatewayRoute& WithDestinationPrefixListId(const char* value) { SetDestinationPrefixListId(value); return *this;}
195 private:
196
197 Aws::String m_destinationCidrBlock;
198 bool m_destinationCidrBlockHasBeenSet = false;
199
200 Aws::String m_localGatewayVirtualInterfaceGroupId;
201 bool m_localGatewayVirtualInterfaceGroupIdHasBeenSet = false;
202
204 bool m_typeHasBeenSet = false;
205
207 bool m_stateHasBeenSet = false;
208
209 Aws::String m_localGatewayRouteTableId;
210 bool m_localGatewayRouteTableIdHasBeenSet = false;
211
212 Aws::String m_localGatewayRouteTableArn;
213 bool m_localGatewayRouteTableArnHasBeenSet = false;
214
215 Aws::String m_ownerId;
216 bool m_ownerIdHasBeenSet = false;
217
218 Aws::String m_subnetId;
219 bool m_subnetIdHasBeenSet = false;
220
221 Aws::String m_coipPoolId;
222 bool m_coipPoolIdHasBeenSet = false;
223
224 Aws::String m_networkInterfaceId;
225 bool m_networkInterfaceIdHasBeenSet = false;
226
227 Aws::String m_destinationPrefixListId;
228 bool m_destinationPrefixListIdHasBeenSet = false;
229 };
230
231} // namespace Model
232} // namespace EC2
233} // namespace Aws
LocalGatewayRoute & WithType(LocalGatewayRouteType &&value)
LocalGatewayRoute & WithLocalGatewayVirtualInterfaceGroupId(Aws::String &&value)
void SetDestinationCidrBlock(const Aws::String &value)
LocalGatewayRoute & WithNetworkInterfaceId(const char *value)
const Aws::String & GetCoipPoolId() const
void SetLocalGatewayVirtualInterfaceGroupId(const char *value)
LocalGatewayRoute & WithCoipPoolId(const char *value)
void SetLocalGatewayRouteTableId(const char *value)
LocalGatewayRoute & WithNetworkInterfaceId(Aws::String &&value)
void SetDestinationPrefixListId(const char *value)
LocalGatewayRoute & WithLocalGatewayVirtualInterfaceGroupId(const Aws::String &value)
void SetDestinationPrefixListId(Aws::String &&value)
LocalGatewayRoute & WithSubnetId(const Aws::String &value)
const Aws::String & GetSubnetId() const
LocalGatewayRoute & WithLocalGatewayVirtualInterfaceGroupId(const char *value)
const LocalGatewayRouteState & GetState() const
LocalGatewayRoute & WithNetworkInterfaceId(const Aws::String &value)
bool LocalGatewayVirtualInterfaceGroupIdHasBeenSet() const
void SetOwnerId(const Aws::String &value)
const Aws::String & GetLocalGatewayVirtualInterfaceGroupId() const
void SetLocalGatewayVirtualInterfaceGroupId(Aws::String &&value)
LocalGatewayRoute & WithCoipPoolId(Aws::String &&value)
LocalGatewayRoute & WithDestinationCidrBlock(const Aws::String &value)
LocalGatewayRoute & WithOwnerId(const char *value)
void SetLocalGatewayRouteTableArn(const char *value)
LocalGatewayRoute & WithLocalGatewayRouteTableId(Aws::String &&value)
LocalGatewayRoute & WithType(const LocalGatewayRouteType &value)
void SetSubnetId(const Aws::String &value)
void SetCoipPoolId(Aws::String &&value)
LocalGatewayRoute & WithDestinationCidrBlock(const char *value)
const Aws::String & GetLocalGatewayRouteTableId() const
void SetDestinationCidrBlock(const char *value)
void SetState(LocalGatewayRouteState &&value)
const Aws::String & GetOwnerId() const
LocalGatewayRoute & WithLocalGatewayRouteTableId(const Aws::String &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 SetType(const LocalGatewayRouteType &value)
LocalGatewayRoute & WithState(LocalGatewayRouteState &&value)
void SetNetworkInterfaceId(const char *value)
LocalGatewayRoute & WithDestinationPrefixListId(Aws::String &&value)
void SetLocalGatewayRouteTableId(Aws::String &&value)
LocalGatewayRoute & WithLocalGatewayRouteTableArn(const Aws::String &value)
void SetSubnetId(Aws::String &&value)
void SetLocalGatewayVirtualInterfaceGroupId(const Aws::String &value)
AWS_EC2_API LocalGatewayRoute(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetLocalGatewayRouteTableId(const Aws::String &value)
const Aws::String & GetDestinationCidrBlock() const
void SetType(LocalGatewayRouteType &&value)
void SetCoipPoolId(const Aws::String &value)
void SetNetworkInterfaceId(Aws::String &&value)
void SetLocalGatewayRouteTableArn(const Aws::String &value)
LocalGatewayRoute & WithSubnetId(Aws::String &&value)
void SetCoipPoolId(const char *value)
const LocalGatewayRouteType & GetType() const
void SetDestinationCidrBlock(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LocalGatewayRoute & WithOwnerId(const Aws::String &value)
LocalGatewayRoute & WithSubnetId(const char *value)
const Aws::String & GetDestinationPrefixListId() const
LocalGatewayRoute & WithDestinationPrefixListId(const Aws::String &value)
void SetState(const LocalGatewayRouteState &value)
void SetLocalGatewayRouteTableArn(Aws::String &&value)
LocalGatewayRoute & WithState(const LocalGatewayRouteState &value)
LocalGatewayRoute & WithDestinationPrefixListId(const char *value)
LocalGatewayRoute & WithLocalGatewayRouteTableArn(const char *value)
LocalGatewayRoute & WithOwnerId(Aws::String &&value)
void SetNetworkInterfaceId(const Aws::String &value)
void SetOwnerId(Aws::String &&value)
LocalGatewayRoute & WithLocalGatewayRouteTableId(const char *value)
LocalGatewayRoute & WithLocalGatewayRouteTableArn(Aws::String &&value)
const Aws::String & GetLocalGatewayRouteTableArn() const
LocalGatewayRoute & WithDestinationCidrBlock(Aws::String &&value)
LocalGatewayRoute & WithCoipPoolId(const Aws::String &value)
void SetDestinationPrefixListId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream