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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/EnaSrdSpecificationRequest.h>
12#include <aws/ec2/model/ConnectionTrackingSpecificationRequest.h>
13#include <aws/ec2/model/InstanceIpv6Address.h>
14#include <aws/ec2/model/PrivateIpAddressSpecification.h>
15#include <aws/ec2/model/Ipv4PrefixSpecificationRequest.h>
16#include <aws/ec2/model/Ipv6PrefixSpecificationRequest.h>
75 inline void SetDeleteOnTermination(
bool value) { m_deleteOnTerminationHasBeenSet =
true; m_deleteOnTermination = value; }
86 template<
typename DescriptionT = Aws::String>
87 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
88 template<
typename DescriptionT = Aws::String>
100 inline void SetDeviceIndex(
int value) { m_deviceIndexHasBeenSet =
true; m_deviceIndex = value; }
111 template<
typename GroupsT = Aws::Vector<Aws::String>>
112 void SetGroups(GroupsT&& value) { m_groupsHasBeenSet =
true; m_groups = std::forward<GroupsT>(value); }
113 template<
typename GroupsT = Aws::Vector<Aws::String>>
115 template<
typename GroupsT = Aws::String>
129 inline void SetIpv6AddressCount(
int value) { m_ipv6AddressCountHasBeenSet =
true; m_ipv6AddressCount = value; }
142 template<
typename Ipv6AddressesT = Aws::Vector<InstanceIpv6Address>>
143 void SetIpv6Addresses(Ipv6AddressesT&& value) { m_ipv6AddressesHasBeenSet =
true; m_ipv6Addresses = std::forward<Ipv6AddressesT>(value); }
144 template<
typename Ipv6AddressesT = Aws::Vector<InstanceIpv6Address>>
146 template<
typename Ipv6AddressesT = InstanceIpv6Address>
158 template<
typename NetworkInterfaceIdT = Aws::String>
159 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) { m_networkInterfaceIdHasBeenSet =
true; m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value); }
160 template<
typename NetworkInterfaceIdT = Aws::String>
174 template<
typename PrivateIpAddressT = Aws::String>
175 void SetPrivateIpAddress(PrivateIpAddressT&& value) { m_privateIpAddressHasBeenSet =
true; m_privateIpAddress = std::forward<PrivateIpAddressT>(value); }
176 template<
typename PrivateIpAddressT = Aws::String>
190 template<
typename PrivateIpAddressesT = Aws::Vector<PrivateIpAddressSpecification>>
191 void SetPrivateIpAddresses(PrivateIpAddressesT&& value) { m_privateIpAddressesHasBeenSet =
true; m_privateIpAddresses = std::forward<PrivateIpAddressesT>(value); }
192 template<
typename PrivateIpAddressesT = Aws::Vector<PrivateIpAddressSpecification>>
194 template<
typename PrivateIpAddressesT = PrivateIpAddressSpecification>
217 template<
typename SubnetIdT = Aws::String>
218 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet =
true; m_subnetId = std::forward<SubnetIdT>(value); }
219 template<
typename SubnetIdT = Aws::String>
247 template<
typename InterfaceTypeT = Aws::String>
248 void SetInterfaceType(InterfaceTypeT&& value) { m_interfaceTypeHasBeenSet =
true; m_interfaceType = std::forward<InterfaceTypeT>(value); }
249 template<
typename InterfaceTypeT = Aws::String>
266 inline void SetNetworkCardIndex(
int value) { m_networkCardIndexHasBeenSet =
true; m_networkCardIndex = value; }
277 template<
typename Ipv4PrefixesT = Aws::Vector<Ipv4PrefixSpecificationRequest>>
278 void SetIpv4Prefixes(Ipv4PrefixesT&& value) { m_ipv4PrefixesHasBeenSet =
true; m_ipv4Prefixes = std::forward<Ipv4PrefixesT>(value); }
279 template<
typename Ipv4PrefixesT = Aws::Vector<Ipv4PrefixSpecificationRequest>>
281 template<
typename Ipv4PrefixesT = Ipv4PrefixSpecificationRequest>
293 inline void SetIpv4PrefixCount(
int value) { m_ipv4PrefixCountHasBeenSet =
true; m_ipv4PrefixCount = value; }
304 template<
typename Ipv6PrefixesT = Aws::Vector<Ipv6PrefixSpecificationRequest>>
305 void SetIpv6Prefixes(Ipv6PrefixesT&& value) { m_ipv6PrefixesHasBeenSet =
true; m_ipv6Prefixes = std::forward<Ipv6PrefixesT>(value); }
306 template<
typename Ipv6PrefixesT = Aws::Vector<Ipv6PrefixSpecificationRequest>>
308 template<
typename Ipv6PrefixesT = Ipv6PrefixSpecificationRequest>
320 inline void SetIpv6PrefixCount(
int value) { m_ipv6PrefixCountHasBeenSet =
true; m_ipv6PrefixCount = value; }
334 inline void SetPrimaryIpv6(
bool value) { m_primaryIpv6HasBeenSet =
true; m_primaryIpv6 = value; }
345 template<
typename EnaSrdSpecificationT = EnaSrdSpecificationRequest>
346 void SetEnaSrdSpecification(EnaSrdSpecificationT&& value) { m_enaSrdSpecificationHasBeenSet =
true; m_enaSrdSpecification = std::forward<EnaSrdSpecificationT>(value); }
347 template<
typename EnaSrdSpecificationT = EnaSrdSpecificationRequest>
361 template<
typename ConnectionTrackingSpecificationT = ConnectionTrackingSpecificationRequest>
362 void SetConnectionTrackingSpecification(ConnectionTrackingSpecificationT&& value) { m_connectionTrackingSpecificationHasBeenSet =
true; m_connectionTrackingSpecification = std::forward<ConnectionTrackingSpecificationT>(value); }
363 template<
typename ConnectionTrackingSpecificationT = ConnectionTrackingSpecificationRequest>
373 inline void SetEnaQueueCount(
int value) { m_enaQueueCountHasBeenSet =
true; m_enaQueueCount = value; }
378 bool m_associatePublicIpAddress{
false};
379 bool m_associatePublicIpAddressHasBeenSet =
false;
381 bool m_deleteOnTermination{
false};
382 bool m_deleteOnTerminationHasBeenSet =
false;
385 bool m_descriptionHasBeenSet =
false;
387 int m_deviceIndex{0};
388 bool m_deviceIndexHasBeenSet =
false;
391 bool m_groupsHasBeenSet =
false;
393 int m_ipv6AddressCount{0};
394 bool m_ipv6AddressCountHasBeenSet =
false;
397 bool m_ipv6AddressesHasBeenSet =
false;
400 bool m_networkInterfaceIdHasBeenSet =
false;
403 bool m_privateIpAddressHasBeenSet =
false;
406 bool m_privateIpAddressesHasBeenSet =
false;
408 int m_secondaryPrivateIpAddressCount{0};
409 bool m_secondaryPrivateIpAddressCountHasBeenSet =
false;
412 bool m_subnetIdHasBeenSet =
false;
414 bool m_associateCarrierIpAddress{
false};
415 bool m_associateCarrierIpAddressHasBeenSet =
false;
418 bool m_interfaceTypeHasBeenSet =
false;
420 int m_networkCardIndex{0};
421 bool m_networkCardIndexHasBeenSet =
false;
424 bool m_ipv4PrefixesHasBeenSet =
false;
426 int m_ipv4PrefixCount{0};
427 bool m_ipv4PrefixCountHasBeenSet =
false;
430 bool m_ipv6PrefixesHasBeenSet =
false;
432 int m_ipv6PrefixCount{0};
433 bool m_ipv6PrefixCountHasBeenSet =
false;
435 bool m_primaryIpv6{
false};
436 bool m_primaryIpv6HasBeenSet =
false;
438 EnaSrdSpecificationRequest m_enaSrdSpecification;
439 bool m_enaSrdSpecificationHasBeenSet =
false;
441 ConnectionTrackingSpecificationRequest m_connectionTrackingSpecification;
442 bool m_connectionTrackingSpecificationHasBeenSet =
false;
444 int m_enaQueueCount{0};
445 bool m_enaQueueCountHasBeenSet =
false;
InstanceNetworkInterfaceSpecification & AddIpv6Addresses(Ipv6AddressesT &&value)
bool GroupsHasBeenSet() const
void SetIpv6Prefixes(Ipv6PrefixesT &&value)
void SetPrivateIpAddresses(PrivateIpAddressesT &&value)
int GetIpv6PrefixCount() const
int GetNetworkCardIndex() const
bool DeviceIndexHasBeenSet() const
void SetGroups(GroupsT &&value)
bool Ipv4PrefixCountHasBeenSet() const
InstanceNetworkInterfaceSpecification & WithSecondaryPrivateIpAddressCount(int value)
InstanceNetworkInterfaceSpecification & AddIpv4Prefixes(Ipv4PrefixesT &&value)
const Aws::Vector< InstanceIpv6Address > & GetIpv6Addresses() const
const Aws::String & GetNetworkInterfaceId() const
int GetDeviceIndex() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
InstanceNetworkInterfaceSpecification & WithIpv6Addresses(Ipv6AddressesT &&value)
InstanceNetworkInterfaceSpecification & WithIpv4PrefixCount(int value)
InstanceNetworkInterfaceSpecification & WithIpv6PrefixCount(int value)
InstanceNetworkInterfaceSpecification & WithEnaSrdSpecification(EnaSrdSpecificationT &&value)
InstanceNetworkInterfaceSpecification & WithInterfaceType(InterfaceTypeT &&value)
InstanceNetworkInterfaceSpecification & WithDescription(DescriptionT &&value)
InstanceNetworkInterfaceSpecification & WithGroups(GroupsT &&value)
InstanceNetworkInterfaceSpecification & WithConnectionTrackingSpecification(ConnectionTrackingSpecificationT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceNetworkInterfaceSpecification & WithIpv6Prefixes(Ipv6PrefixesT &&value)
const Aws::Vector< Ipv4PrefixSpecificationRequest > & GetIpv4Prefixes() const
InstanceNetworkInterfaceSpecification & WithAssociateCarrierIpAddress(bool value)
void SetEnaQueueCount(int value)
void SetDeleteOnTermination(bool value)
bool SecondaryPrivateIpAddressCountHasBeenSet() const
bool GetDeleteOnTermination() const
const ConnectionTrackingSpecificationRequest & GetConnectionTrackingSpecification() const
bool EnaQueueCountHasBeenSet() const
bool Ipv4PrefixesHasBeenSet() const
void SetAssociateCarrierIpAddress(bool value)
bool PrimaryIpv6HasBeenSet() const
InstanceNetworkInterfaceSpecification & WithDeviceIndex(int value)
bool AssociateCarrierIpAddressHasBeenSet() const
InstanceNetworkInterfaceSpecification & WithPrimaryIpv6(bool value)
InstanceNetworkInterfaceSpecification & WithSubnetId(SubnetIdT &&value)
InstanceNetworkInterfaceSpecification & WithPrivateIpAddress(PrivateIpAddressT &&value)
InstanceNetworkInterfaceSpecification & WithIpv4Prefixes(Ipv4PrefixesT &&value)
int GetEnaQueueCount() const
const Aws::String & GetPrivateIpAddress() const
void SetIpv6Addresses(Ipv6AddressesT &&value)
InstanceNetworkInterfaceSpecification & WithIpv6AddressCount(int value)
InstanceNetworkInterfaceSpecification & WithNetworkCardIndex(int value)
InstanceNetworkInterfaceSpecification & AddGroups(GroupsT &&value)
InstanceNetworkInterfaceSpecification & WithPrivateIpAddresses(PrivateIpAddressesT &&value)
void SetSecondaryPrivateIpAddressCount(int value)
const Aws::Vector< Ipv6PrefixSpecificationRequest > & GetIpv6Prefixes() const
void SetConnectionTrackingSpecification(ConnectionTrackingSpecificationT &&value)
InstanceNetworkInterfaceSpecification & WithEnaQueueCount(int value)
void SetIpv6PrefixCount(int value)
AWS_EC2_API InstanceNetworkInterfaceSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPrivateIpAddress(PrivateIpAddressT &&value)
const Aws::String & GetInterfaceType() const
bool Ipv6PrefixCountHasBeenSet() const
InstanceNetworkInterfaceSpecification & AddIpv6Prefixes(Ipv6PrefixesT &&value)
bool GetAssociateCarrierIpAddress() const
bool NetworkInterfaceIdHasBeenSet() const
bool Ipv6AddressCountHasBeenSet() const
bool ConnectionTrackingSpecificationHasBeenSet() const
const Aws::Vector< PrivateIpAddressSpecification > & GetPrivateIpAddresses() const
bool DescriptionHasBeenSet() const
bool PrivateIpAddressesHasBeenSet() const
AWS_EC2_API InstanceNetworkInterfaceSpecification()=default
AWS_EC2_API InstanceNetworkInterfaceSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceNetworkInterfaceSpecification & WithNetworkInterfaceId(NetworkInterfaceIdT &&value)
bool DeleteOnTerminationHasBeenSet() const
void SetInterfaceType(InterfaceTypeT &&value)
const EnaSrdSpecificationRequest & GetEnaSrdSpecification() const
bool SubnetIdHasBeenSet() const
bool InterfaceTypeHasBeenSet() const
void SetDescription(DescriptionT &&value)
const Aws::String & GetSubnetId() const
InstanceNetworkInterfaceSpecification & AddPrivateIpAddresses(PrivateIpAddressesT &&value)
bool GetPrimaryIpv6() const
InstanceNetworkInterfaceSpecification & WithDeleteOnTermination(bool value)
bool GetAssociatePublicIpAddress() const
bool Ipv6PrefixesHasBeenSet() const
const Aws::String & GetDescription() const
void SetAssociatePublicIpAddress(bool value)
void SetDeviceIndex(int value)
void SetNetworkCardIndex(int value)
void SetIpv4PrefixCount(int value)
void SetNetworkInterfaceId(NetworkInterfaceIdT &&value)
bool Ipv6AddressesHasBeenSet() const
void SetSubnetId(SubnetIdT &&value)
bool NetworkCardIndexHasBeenSet() const
void SetIpv4Prefixes(Ipv4PrefixesT &&value)
bool PrivateIpAddressHasBeenSet() const
bool AssociatePublicIpAddressHasBeenSet() const
InstanceNetworkInterfaceSpecification & WithAssociatePublicIpAddress(bool value)
const Aws::Vector< Aws::String > & GetGroups() const
void SetIpv6AddressCount(int value)
int GetIpv4PrefixCount() const
void SetPrimaryIpv6(bool value)
int GetIpv6AddressCount() const
bool EnaSrdSpecificationHasBeenSet() const
void SetEnaSrdSpecification(EnaSrdSpecificationT &&value)
int GetSecondaryPrivateIpAddressCount() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream