AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename DestinationCidrBlockT = Aws::String>
52 void SetDestinationCidrBlock(DestinationCidrBlockT&& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = std::forward<DestinationCidrBlockT>(value); }
53 template<typename DestinationCidrBlockT = Aws::String>
54 LocalGatewayRoute& WithDestinationCidrBlock(DestinationCidrBlockT&& value) { SetDestinationCidrBlock(std::forward<DestinationCidrBlockT>(value)); return *this;}
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) { m_localGatewayVirtualInterfaceGroupIdHasBeenSet = true; m_localGatewayVirtualInterfaceGroupId = std::forward<LocalGatewayVirtualInterfaceGroupIdT>(value); }
65 template<typename LocalGatewayVirtualInterfaceGroupIdT = Aws::String>
66 LocalGatewayRoute& WithLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT&& value) { SetLocalGatewayVirtualInterfaceGroupId(std::forward<LocalGatewayVirtualInterfaceGroupIdT>(value)); return *this;}
68
70
73 inline LocalGatewayRouteType GetType() const { return m_type; }
74 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
75 inline void SetType(LocalGatewayRouteType value) { m_typeHasBeenSet = true; m_type = value; }
76 inline LocalGatewayRoute& WithType(LocalGatewayRouteType value) { SetType(value); return *this;}
78
80
83 inline LocalGatewayRouteState GetState() const { return m_state; }
84 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
85 inline void SetState(LocalGatewayRouteState value) { m_stateHasBeenSet = true; m_state = value; }
86 inline LocalGatewayRoute& WithState(LocalGatewayRouteState value) { SetState(value); return *this;}
88
90
93 inline const Aws::String& GetLocalGatewayRouteTableId() const { return m_localGatewayRouteTableId; }
94 inline bool LocalGatewayRouteTableIdHasBeenSet() const { return m_localGatewayRouteTableIdHasBeenSet; }
95 template<typename LocalGatewayRouteTableIdT = Aws::String>
96 void SetLocalGatewayRouteTableId(LocalGatewayRouteTableIdT&& value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId = std::forward<LocalGatewayRouteTableIdT>(value); }
97 template<typename LocalGatewayRouteTableIdT = Aws::String>
98 LocalGatewayRoute& WithLocalGatewayRouteTableId(LocalGatewayRouteTableIdT&& value) { SetLocalGatewayRouteTableId(std::forward<LocalGatewayRouteTableIdT>(value)); return *this;}
100
102
105 inline const Aws::String& GetLocalGatewayRouteTableArn() const { return m_localGatewayRouteTableArn; }
106 inline bool LocalGatewayRouteTableArnHasBeenSet() const { return m_localGatewayRouteTableArnHasBeenSet; }
107 template<typename LocalGatewayRouteTableArnT = Aws::String>
108 void SetLocalGatewayRouteTableArn(LocalGatewayRouteTableArnT&& value) { m_localGatewayRouteTableArnHasBeenSet = true; m_localGatewayRouteTableArn = std::forward<LocalGatewayRouteTableArnT>(value); }
109 template<typename LocalGatewayRouteTableArnT = Aws::String>
110 LocalGatewayRoute& WithLocalGatewayRouteTableArn(LocalGatewayRouteTableArnT&& value) { SetLocalGatewayRouteTableArn(std::forward<LocalGatewayRouteTableArnT>(value)); return *this;}
112
114
118 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
119 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
120 template<typename OwnerIdT = Aws::String>
121 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
122 template<typename OwnerIdT = Aws::String>
123 LocalGatewayRoute& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
125
127
130 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
131 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
132 template<typename SubnetIdT = Aws::String>
133 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
134 template<typename SubnetIdT = Aws::String>
135 LocalGatewayRoute& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
137
139
142 inline const Aws::String& GetCoipPoolId() const { return m_coipPoolId; }
143 inline bool CoipPoolIdHasBeenSet() const { return m_coipPoolIdHasBeenSet; }
144 template<typename CoipPoolIdT = Aws::String>
145 void SetCoipPoolId(CoipPoolIdT&& value) { m_coipPoolIdHasBeenSet = true; m_coipPoolId = std::forward<CoipPoolIdT>(value); }
146 template<typename CoipPoolIdT = Aws::String>
147 LocalGatewayRoute& WithCoipPoolId(CoipPoolIdT&& value) { SetCoipPoolId(std::forward<CoipPoolIdT>(value)); return *this;}
149
151
154 inline const Aws::String& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
155 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
156 template<typename NetworkInterfaceIdT = Aws::String>
157 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value); }
158 template<typename NetworkInterfaceIdT = Aws::String>
159 LocalGatewayRoute& WithNetworkInterfaceId(NetworkInterfaceIdT&& value) { SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value)); return *this;}
161
163
166 inline const Aws::String& GetDestinationPrefixListId() const { return m_destinationPrefixListId; }
167 inline bool DestinationPrefixListIdHasBeenSet() const { return m_destinationPrefixListIdHasBeenSet; }
168 template<typename DestinationPrefixListIdT = Aws::String>
169 void SetDestinationPrefixListId(DestinationPrefixListIdT&& value) { m_destinationPrefixListIdHasBeenSet = true; m_destinationPrefixListId = std::forward<DestinationPrefixListIdT>(value); }
170 template<typename DestinationPrefixListIdT = Aws::String>
171 LocalGatewayRoute& WithDestinationPrefixListId(DestinationPrefixListIdT&& value) { SetDestinationPrefixListId(std::forward<DestinationPrefixListIdT>(value)); return *this;}
173 private:
174
175 Aws::String m_destinationCidrBlock;
176 bool m_destinationCidrBlockHasBeenSet = false;
177
178 Aws::String m_localGatewayVirtualInterfaceGroupId;
179 bool m_localGatewayVirtualInterfaceGroupIdHasBeenSet = false;
180
182 bool m_typeHasBeenSet = false;
183
185 bool m_stateHasBeenSet = false;
186
187 Aws::String m_localGatewayRouteTableId;
188 bool m_localGatewayRouteTableIdHasBeenSet = false;
189
190 Aws::String m_localGatewayRouteTableArn;
191 bool m_localGatewayRouteTableArnHasBeenSet = false;
192
193 Aws::String m_ownerId;
194 bool m_ownerIdHasBeenSet = false;
195
196 Aws::String m_subnetId;
197 bool m_subnetIdHasBeenSet = false;
198
199 Aws::String m_coipPoolId;
200 bool m_coipPoolIdHasBeenSet = false;
201
202 Aws::String m_networkInterfaceId;
203 bool m_networkInterfaceIdHasBeenSet = false;
204
205 Aws::String m_destinationPrefixListId;
206 bool m_destinationPrefixListIdHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace EC2
211} // 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