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/RouteOrigin.h>
11#include <aws/ec2/model/RouteState.h>
50 template<
typename DestinationC
idrBlockT = Aws::String>
51 void SetDestinationCidrBlock(DestinationCidrBlockT&& value) { m_destinationCidrBlockHasBeenSet =
true; m_destinationCidrBlock = std::forward<DestinationCidrBlockT>(value); }
52 template<
typename DestinationC
idrBlockT = Aws::String>
62 template<
typename DestinationIpv6C
idrBlockT = Aws::String>
63 void SetDestinationIpv6CidrBlock(DestinationIpv6CidrBlockT&& value) { m_destinationIpv6CidrBlockHasBeenSet =
true; m_destinationIpv6CidrBlock = std::forward<DestinationIpv6CidrBlockT>(value); }
64 template<
typename DestinationIpv6C
idrBlockT = Aws::String>
74 template<
typename DestinationPrefixListIdT = Aws::String>
75 void SetDestinationPrefixListId(DestinationPrefixListIdT&& value) { m_destinationPrefixListIdHasBeenSet =
true; m_destinationPrefixListId = std::forward<DestinationPrefixListIdT>(value); }
76 template<
typename DestinationPrefixListIdT = Aws::String>
86 template<
typename EgressOnlyInternetGatewayIdT = Aws::String>
87 void SetEgressOnlyInternetGatewayId(EgressOnlyInternetGatewayIdT&& value) { m_egressOnlyInternetGatewayIdHasBeenSet =
true; m_egressOnlyInternetGatewayId = std::forward<EgressOnlyInternetGatewayIdT>(value); }
88 template<
typename EgressOnlyInternetGatewayIdT = Aws::String>
98 template<
typename GatewayIdT = Aws::String>
99 void SetGatewayId(GatewayIdT&& value) { m_gatewayIdHasBeenSet =
true; m_gatewayId = std::forward<GatewayIdT>(value); }
100 template<
typename GatewayIdT = Aws::String>
110 template<
typename InstanceIdT = Aws::String>
111 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet =
true; m_instanceId = std::forward<InstanceIdT>(value); }
112 template<
typename InstanceIdT = Aws::String>
122 template<
typename InstanceOwnerIdT = Aws::String>
123 void SetInstanceOwnerId(InstanceOwnerIdT&& value) { m_instanceOwnerIdHasBeenSet =
true; m_instanceOwnerId = std::forward<InstanceOwnerIdT>(value); }
124 template<
typename InstanceOwnerIdT = Aws::String>
134 template<
typename NatGatewayIdT = Aws::String>
135 void SetNatGatewayId(NatGatewayIdT&& value) { m_natGatewayIdHasBeenSet =
true; m_natGatewayId = std::forward<NatGatewayIdT>(value); }
136 template<
typename NatGatewayIdT = Aws::String>
146 template<
typename TransitGatewayIdT = Aws::String>
147 void SetTransitGatewayId(TransitGatewayIdT&& value) { m_transitGatewayIdHasBeenSet =
true; m_transitGatewayId = std::forward<TransitGatewayIdT>(value); }
148 template<
typename TransitGatewayIdT = Aws::String>
158 template<
typename LocalGatewayIdT = Aws::String>
159 void SetLocalGatewayId(LocalGatewayIdT&& value) { m_localGatewayIdHasBeenSet =
true; m_localGatewayId = std::forward<LocalGatewayIdT>(value); }
160 template<
typename LocalGatewayIdT = Aws::String>
170 template<
typename CarrierGatewayIdT = Aws::String>
171 void SetCarrierGatewayId(CarrierGatewayIdT&& value) { m_carrierGatewayIdHasBeenSet =
true; m_carrierGatewayId = std::forward<CarrierGatewayIdT>(value); }
172 template<
typename CarrierGatewayIdT = Aws::String>
182 template<
typename NetworkInterfaceIdT = Aws::String>
183 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) { m_networkInterfaceIdHasBeenSet =
true; m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value); }
184 template<
typename NetworkInterfaceIdT = Aws::String>
221 template<
typename VpcPeeringConnectionIdT = Aws::String>
222 void SetVpcPeeringConnectionId(VpcPeeringConnectionIdT&& value) { m_vpcPeeringConnectionIdHasBeenSet =
true; m_vpcPeeringConnectionId = std::forward<VpcPeeringConnectionIdT>(value); }
223 template<
typename VpcPeeringConnectionIdT = Aws::String>
233 template<
typename CoreNetworkArnT = Aws::String>
234 void SetCoreNetworkArn(CoreNetworkArnT&& value) { m_coreNetworkArnHasBeenSet =
true; m_coreNetworkArn = std::forward<CoreNetworkArnT>(value); }
235 template<
typename CoreNetworkArnT = Aws::String>
245 template<
typename OdbNetworkArnT = Aws::String>
246 void SetOdbNetworkArn(OdbNetworkArnT&& value) { m_odbNetworkArnHasBeenSet =
true; m_odbNetworkArn = std::forward<OdbNetworkArnT>(value); }
247 template<
typename OdbNetworkArnT = Aws::String>
253 bool m_destinationCidrBlockHasBeenSet =
false;
256 bool m_destinationIpv6CidrBlockHasBeenSet =
false;
259 bool m_destinationPrefixListIdHasBeenSet =
false;
262 bool m_egressOnlyInternetGatewayIdHasBeenSet =
false;
265 bool m_gatewayIdHasBeenSet =
false;
268 bool m_instanceIdHasBeenSet =
false;
271 bool m_instanceOwnerIdHasBeenSet =
false;
274 bool m_natGatewayIdHasBeenSet =
false;
277 bool m_transitGatewayIdHasBeenSet =
false;
280 bool m_localGatewayIdHasBeenSet =
false;
283 bool m_carrierGatewayIdHasBeenSet =
false;
286 bool m_networkInterfaceIdHasBeenSet =
false;
289 bool m_originHasBeenSet =
false;
292 bool m_stateHasBeenSet =
false;
295 bool m_vpcPeeringConnectionIdHasBeenSet =
false;
298 bool m_coreNetworkArnHasBeenSet =
false;
301 bool m_odbNetworkArnHasBeenSet =
false;
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Route & WithInstanceId(InstanceIdT &&value)
Route & WithTransitGatewayId(TransitGatewayIdT &&value)
void SetGatewayId(GatewayIdT &&value)
const Aws::String & GetTransitGatewayId() const
Route & WithOrigin(RouteOrigin value)
Route & WithGatewayId(GatewayIdT &&value)
Route & WithCoreNetworkArn(CoreNetworkArnT &&value)
bool TransitGatewayIdHasBeenSet() const
const Aws::String & GetVpcPeeringConnectionId() const
const Aws::String & GetDestinationPrefixListId() const
void SetLocalGatewayId(LocalGatewayIdT &&value)
void SetDestinationPrefixListId(DestinationPrefixListIdT &&value)
bool CarrierGatewayIdHasBeenSet() const
const Aws::String & GetLocalGatewayId() const
const Aws::String & GetEgressOnlyInternetGatewayId() const
const Aws::String & GetDestinationCidrBlock() const
void SetState(RouteState value)
const Aws::String & GetInstanceId() const
bool CoreNetworkArnHasBeenSet() const
const Aws::String & GetInstanceOwnerId() const
bool DestinationCidrBlockHasBeenSet() const
void SetCarrierGatewayId(CarrierGatewayIdT &&value)
Route & WithNetworkInterfaceId(NetworkInterfaceIdT &&value)
void SetOrigin(RouteOrigin value)
const Aws::String & GetCarrierGatewayId() const
const Aws::String & GetCoreNetworkArn() const
void SetDestinationCidrBlock(DestinationCidrBlockT &&value)
void SetNatGatewayId(NatGatewayIdT &&value)
bool LocalGatewayIdHasBeenSet() const
void SetOdbNetworkArn(OdbNetworkArnT &&value)
bool InstanceIdHasBeenSet() const
RouteOrigin GetOrigin() const
void SetTransitGatewayId(TransitGatewayIdT &&value)
bool StateHasBeenSet() const
const Aws::String & GetNetworkInterfaceId() const
const Aws::String & GetOdbNetworkArn() const
Route & WithDestinationIpv6CidrBlock(DestinationIpv6CidrBlockT &&value)
bool OdbNetworkArnHasBeenSet() const
Route & WithVpcPeeringConnectionId(VpcPeeringConnectionIdT &&value)
bool VpcPeeringConnectionIdHasBeenSet() const
AWS_EC2_API Route(const Aws::Utils::Xml::XmlNode &xmlNode)
bool GatewayIdHasBeenSet() const
void SetNetworkInterfaceId(NetworkInterfaceIdT &&value)
void SetInstanceId(InstanceIdT &&value)
bool InstanceOwnerIdHasBeenSet() const
RouteState GetState() const
Route & WithDestinationCidrBlock(DestinationCidrBlockT &&value)
Route & WithCarrierGatewayId(CarrierGatewayIdT &&value)
const Aws::String & GetGatewayId() const
bool EgressOnlyInternetGatewayIdHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool OriginHasBeenSet() const
bool NatGatewayIdHasBeenSet() const
AWS_EC2_API Route & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Route & WithState(RouteState value)
void SetInstanceOwnerId(InstanceOwnerIdT &&value)
bool DestinationPrefixListIdHasBeenSet() const
bool DestinationIpv6CidrBlockHasBeenSet() const
void SetVpcPeeringConnectionId(VpcPeeringConnectionIdT &&value)
const Aws::String & GetDestinationIpv6CidrBlock() const
void SetDestinationIpv6CidrBlock(DestinationIpv6CidrBlockT &&value)
Route & WithLocalGatewayId(LocalGatewayIdT &&value)
Route & WithEgressOnlyInternetGatewayId(EgressOnlyInternetGatewayIdT &&value)
bool NetworkInterfaceIdHasBeenSet() const
AWS_EC2_API Route()=default
Route & WithNatGatewayId(NatGatewayIdT &&value)
Route & WithInstanceOwnerId(InstanceOwnerIdT &&value)
Route & WithOdbNetworkArn(OdbNetworkArnT &&value)
const Aws::String & GetNatGatewayId() const
void SetEgressOnlyInternetGatewayId(EgressOnlyInternetGatewayIdT &&value)
void SetCoreNetworkArn(CoreNetworkArnT &&value)
Route & WithDestinationPrefixListId(DestinationPrefixListIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream