7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/InstanceSecondaryInterfacePrivateIpAddressRequest.h>
12#include <aws/ec2/model/SecondaryInterfaceType.h>
49 m_deleteOnTerminationHasBeenSet =
true;
50 m_deleteOnTermination = value;
65 m_deviceIndexHasBeenSet =
true;
66 m_deviceIndex = value;
79 return m_privateIpAddresses;
82 template <
typename PrivateIpAddressesT = Aws::Vector<InstanceSecondaryInterfacePrivateIpAddressRequest>>
84 m_privateIpAddressesHasBeenSet =
true;
85 m_privateIpAddresses = std::forward<PrivateIpAddressesT>(value);
87 template <
typename PrivateIpAddressesT = Aws::Vector<InstanceSecondaryInterfacePrivateIpAddressRequest>>
92 template <
typename PrivateIpAddressesT = InstanceSecondaryInterfacePrivateIpAddressRequest>
94 m_privateIpAddressesHasBeenSet =
true;
95 m_privateIpAddresses.emplace_back(std::forward<PrivateIpAddressesT>(value));
108 m_privateIpAddressCountHasBeenSet =
true;
109 m_privateIpAddressCount = value;
123 template <
typename SecondarySubnetIdT = Aws::String>
125 m_secondarySubnetIdHasBeenSet =
true;
126 m_secondarySubnetId = std::forward<SecondarySubnetIdT>(value);
128 template <
typename SecondarySubnetIdT = Aws::String>
142 m_interfaceTypeHasBeenSet =
true;
143 m_interfaceType = value;
159 m_networkCardIndexHasBeenSet =
true;
160 m_networkCardIndex = value;
168 bool m_deleteOnTermination{
false};
170 int m_deviceIndex{0};
174 int m_privateIpAddressCount{0};
180 int m_networkCardIndex{0};
181 bool m_deleteOnTerminationHasBeenSet =
false;
182 bool m_deviceIndexHasBeenSet =
false;
183 bool m_privateIpAddressesHasBeenSet =
false;
184 bool m_privateIpAddressCountHasBeenSet =
false;
185 bool m_secondarySubnetIdHasBeenSet =
false;
186 bool m_interfaceTypeHasBeenSet =
false;
187 bool m_networkCardIndexHasBeenSet =
false;
InstanceSecondaryInterfaceSpecificationRequest & WithInterfaceType(SecondaryInterfaceType value)
void SetPrivateIpAddresses(PrivateIpAddressesT &&value)
InstanceSecondaryInterfaceSpecificationRequest & WithNetworkCardIndex(int value)
bool SecondarySubnetIdHasBeenSet() const
bool GetDeleteOnTermination() const
int GetDeviceIndex() const
InstanceSecondaryInterfaceSpecificationRequest & WithDeviceIndex(int value)
bool DeleteOnTerminationHasBeenSet() const
bool PrivateIpAddressCountHasBeenSet() const
void SetDeleteOnTermination(bool value)
AWS_EC2_API InstanceSecondaryInterfaceSpecificationRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API InstanceSecondaryInterfaceSpecificationRequest()=default
bool InterfaceTypeHasBeenSet() const
void SetSecondarySubnetId(SecondarySubnetIdT &&value)
void SetNetworkCardIndex(int value)
bool PrivateIpAddressesHasBeenSet() const
bool NetworkCardIndexHasBeenSet() const
void SetDeviceIndex(int value)
InstanceSecondaryInterfaceSpecificationRequest & AddPrivateIpAddresses(PrivateIpAddressesT &&value)
int GetNetworkCardIndex() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceSecondaryInterfaceSpecificationRequest & WithDeleteOnTermination(bool value)
bool DeviceIndexHasBeenSet() const
SecondaryInterfaceType GetInterfaceType() const
void SetInterfaceType(SecondaryInterfaceType value)
InstanceSecondaryInterfaceSpecificationRequest & WithPrivateIpAddressCount(int value)
AWS_EC2_API InstanceSecondaryInterfaceSpecificationRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< InstanceSecondaryInterfacePrivateIpAddressRequest > & GetPrivateIpAddresses() const
InstanceSecondaryInterfaceSpecificationRequest & WithPrivateIpAddresses(PrivateIpAddressesT &&value)
int GetPrivateIpAddressCount() const
InstanceSecondaryInterfaceSpecificationRequest & WithSecondarySubnetId(SecondarySubnetIdT &&value)
void SetPrivateIpAddressCount(int value)
const Aws::String & GetSecondarySubnetId() 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