7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/model/NetworkInterfaceCreationType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/ec2/model/ConnectionTrackingSpecificationRequest.h>
13#include <aws/ec2/model/OperatorRequest.h>
14#include <aws/ec2/model/Ipv4PrefixSpecificationRequest.h>
15#include <aws/ec2/model/Ipv6PrefixSpecificationRequest.h>
16#include <aws/ec2/model/TagSpecification.h>
17#include <aws/ec2/model/PrivateIpAddressSpecification.h>
18#include <aws/ec2/model/InstanceIpv6Address.h>
20#include <aws/core/utils/UUID.h>
58 template<
typename Ipv4PrefixesT = Aws::Vector<Ipv4PrefixSpecificationRequest>>
59 void SetIpv4Prefixes(Ipv4PrefixesT&& value) { m_ipv4PrefixesHasBeenSet =
true; m_ipv4Prefixes = std::forward<Ipv4PrefixesT>(value); }
60 template<
typename Ipv4PrefixesT = Aws::Vector<Ipv4PrefixSpecificationRequest>>
62 template<
typename Ipv4PrefixesT = Ipv4PrefixSpecificationRequest>
75 inline void SetIpv4PrefixCount(
int value) { m_ipv4PrefixCountHasBeenSet =
true; m_ipv4PrefixCount = value; }
87 template<
typename Ipv6PrefixesT = Aws::Vector<Ipv6PrefixSpecificationRequest>>
88 void SetIpv6Prefixes(Ipv6PrefixesT&& value) { m_ipv6PrefixesHasBeenSet =
true; m_ipv6Prefixes = std::forward<Ipv6PrefixesT>(value); }
89 template<
typename Ipv6PrefixesT = Aws::Vector<Ipv6PrefixSpecificationRequest>>
91 template<
typename Ipv6PrefixesT = Ipv6PrefixSpecificationRequest>
104 inline void SetIpv6PrefixCount(
int value) { m_ipv6PrefixCountHasBeenSet =
true; m_ipv6PrefixCount = value; }
128 template<
typename TagSpecificationsT = Aws::Vector<TagSpecification>>
129 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet =
true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
130 template<
typename TagSpecificationsT = Aws::Vector<TagSpecification>>
132 template<
typename TagSpecificationsT = TagSpecification>
145 template<
typename ClientTokenT = Aws::String>
146 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
147 template<
typename ClientTokenT = Aws::String>
169 inline void SetEnablePrimaryIpv6(
bool value) { m_enablePrimaryIpv6HasBeenSet =
true; m_enablePrimaryIpv6 = value; }
179 template<
typename ConnectionTrackingSpecificationT = ConnectionTrackingSpecificationRequest>
180 void SetConnectionTrackingSpecification(ConnectionTrackingSpecificationT&& value) { m_connectionTrackingSpecificationHasBeenSet =
true; m_connectionTrackingSpecification = std::forward<ConnectionTrackingSpecificationT>(value); }
181 template<
typename ConnectionTrackingSpecificationT = ConnectionTrackingSpecificationRequest>
191 template<
typename OperatorT = OperatorRequest>
192 void SetOperator(OperatorT&& value) { m_operatorHasBeenSet =
true; m_operator = std::forward<OperatorT>(value); }
193 template<
typename OperatorT = OperatorRequest>
203 template<
typename SubnetIdT = Aws::String>
204 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet =
true; m_subnetId = std::forward<SubnetIdT>(value); }
205 template<
typename SubnetIdT = Aws::String>
215 template<
typename DescriptionT = Aws::String>
216 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
217 template<
typename DescriptionT = Aws::String>
231 template<
typename PrivateIpAddressT = Aws::String>
232 void SetPrivateIpAddress(PrivateIpAddressT&& value) { m_privateIpAddressHasBeenSet =
true; m_privateIpAddress = std::forward<PrivateIpAddressT>(value); }
233 template<
typename PrivateIpAddressT = Aws::String>
243 template<
typename GroupsT = Aws::Vector<Aws::String>>
244 void SetGroups(GroupsT&& value) { m_groupsHasBeenSet =
true; m_groups = std::forward<GroupsT>(value); }
245 template<
typename GroupsT = Aws::Vector<Aws::String>>
247 template<
typename GroupsT = Aws::String>
259 template<
typename PrivateIpAddressesT = Aws::Vector<PrivateIpAddressSpecification>>
260 void SetPrivateIpAddresses(PrivateIpAddressesT&& value) { m_privateIpAddressesHasBeenSet =
true; m_privateIpAddresses = std::forward<PrivateIpAddressesT>(value); }
261 template<
typename PrivateIpAddressesT = Aws::Vector<PrivateIpAddressSpecification>>
263 template<
typename PrivateIpAddressesT = PrivateIpAddressSpecification>
292 template<
typename Ipv6AddressesT = Aws::Vector<InstanceIpv6Address>>
293 void SetIpv6Addresses(Ipv6AddressesT&& value) { m_ipv6AddressesHasBeenSet =
true; m_ipv6Addresses = std::forward<Ipv6AddressesT>(value); }
294 template<
typename Ipv6AddressesT = Aws::Vector<InstanceIpv6Address>>
296 template<
typename Ipv6AddressesT = InstanceIpv6Address>
312 inline void SetIpv6AddressCount(
int value) { m_ipv6AddressCountHasBeenSet =
true; m_ipv6AddressCount = value; }
325 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
331 bool m_ipv4PrefixesHasBeenSet =
false;
333 int m_ipv4PrefixCount{0};
334 bool m_ipv4PrefixCountHasBeenSet =
false;
337 bool m_ipv6PrefixesHasBeenSet =
false;
339 int m_ipv6PrefixCount{0};
340 bool m_ipv6PrefixCountHasBeenSet =
false;
343 bool m_interfaceTypeHasBeenSet =
false;
346 bool m_tagSpecificationsHasBeenSet =
false;
349 bool m_clientTokenHasBeenSet =
true;
351 bool m_enablePrimaryIpv6{
false};
352 bool m_enablePrimaryIpv6HasBeenSet =
false;
354 ConnectionTrackingSpecificationRequest m_connectionTrackingSpecification;
355 bool m_connectionTrackingSpecificationHasBeenSet =
false;
357 OperatorRequest m_operator;
358 bool m_operatorHasBeenSet =
false;
361 bool m_subnetIdHasBeenSet =
false;
364 bool m_descriptionHasBeenSet =
false;
367 bool m_privateIpAddressHasBeenSet =
false;
370 bool m_groupsHasBeenSet =
false;
373 bool m_privateIpAddressesHasBeenSet =
false;
375 int m_secondaryPrivateIpAddressCount{0};
376 bool m_secondaryPrivateIpAddressCountHasBeenSet =
false;
379 bool m_ipv6AddressesHasBeenSet =
false;
381 int m_ipv6AddressCount{0};
382 bool m_ipv6AddressCountHasBeenSet =
false;
384 bool m_dryRun{
false};
385 bool m_dryRunHasBeenSet =
false;
void SetIpv4PrefixCount(int value)
const Aws::Vector< Aws::String > & GetGroups() const
CreateNetworkInterfaceRequest & WithSecondaryPrivateIpAddressCount(int value)
const Aws::String & GetSubnetId() const
const Aws::String & GetClientToken() const
CreateNetworkInterfaceRequest & WithPrivateIpAddress(PrivateIpAddressT &&value)
const Aws::Vector< PrivateIpAddressSpecification > & GetPrivateIpAddresses() const
void SetIpv6AddressCount(int value)
bool Ipv6AddressCountHasBeenSet() const
bool InterfaceTypeHasBeenSet() const
bool SecondaryPrivateIpAddressCountHasBeenSet() const
bool PrivateIpAddressHasBeenSet() const
bool ClientTokenHasBeenSet() const
void SetPrivateIpAddress(PrivateIpAddressT &&value)
void SetConnectionTrackingSpecification(ConnectionTrackingSpecificationT &&value)
const Aws::Vector< Ipv6PrefixSpecificationRequest > & GetIpv6Prefixes() const
void SetDryRun(bool value)
CreateNetworkInterfaceRequest & AddPrivateIpAddresses(PrivateIpAddressesT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateNetworkInterfaceRequest & WithPrivateIpAddresses(PrivateIpAddressesT &&value)
CreateNetworkInterfaceRequest & WithIpv4PrefixCount(int value)
CreateNetworkInterfaceRequest & WithIpv6AddressCount(int value)
bool TagSpecificationsHasBeenSet() const
void SetIpv6Prefixes(Ipv6PrefixesT &&value)
NetworkInterfaceCreationType GetInterfaceType() const
CreateNetworkInterfaceRequest & WithTagSpecifications(TagSpecificationsT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateNetworkInterfaceRequest & WithOperator(OperatorT &&value)
int GetSecondaryPrivateIpAddressCount() const
bool GetEnablePrimaryIpv6() const
CreateNetworkInterfaceRequest & WithClientToken(ClientTokenT &&value)
CreateNetworkInterfaceRequest & AddIpv4Prefixes(Ipv4PrefixesT &&value)
const ConnectionTrackingSpecificationRequest & GetConnectionTrackingSpecification() const
void SetIpv6PrefixCount(int value)
CreateNetworkInterfaceRequest & WithEnablePrimaryIpv6(bool value)
CreateNetworkInterfaceRequest & WithDryRun(bool value)
bool OperatorHasBeenSet() const
CreateNetworkInterfaceRequest & WithIpv4Prefixes(Ipv4PrefixesT &&value)
const Aws::Vector< InstanceIpv6Address > & GetIpv6Addresses() const
bool DescriptionHasBeenSet() const
const OperatorRequest & GetOperator() const
CreateNetworkInterfaceRequest & WithIpv6PrefixCount(int value)
CreateNetworkInterfaceRequest & WithSubnetId(SubnetIdT &&value)
void SetClientToken(ClientTokenT &&value)
bool Ipv6PrefixCountHasBeenSet() const
const Aws::String & GetPrivateIpAddress() const
bool Ipv4PrefixesHasBeenSet() const
bool ConnectionTrackingSpecificationHasBeenSet() const
CreateNetworkInterfaceRequest & WithIpv6Addresses(Ipv6AddressesT &&value)
CreateNetworkInterfaceRequest & AddIpv6Addresses(Ipv6AddressesT &&value)
int GetIpv4PrefixCount() const
bool Ipv6AddressesHasBeenSet() const
int GetIpv6PrefixCount() const
CreateNetworkInterfaceRequest & AddIpv6Prefixes(Ipv6PrefixesT &&value)
void SetSecondaryPrivateIpAddressCount(int value)
bool Ipv4PrefixCountHasBeenSet() const
CreateNetworkInterfaceRequest & WithInterfaceType(NetworkInterfaceCreationType value)
CreateNetworkInterfaceRequest & WithGroups(GroupsT &&value)
CreateNetworkInterfaceRequest & WithDescription(DescriptionT &&value)
void SetDescription(DescriptionT &&value)
void SetTagSpecifications(TagSpecificationsT &&value)
bool DryRunHasBeenSet() const
CreateNetworkInterfaceRequest & AddTagSpecifications(TagSpecificationsT &&value)
AWS_EC2_API CreateNetworkInterfaceRequest()=default
void SetSubnetId(SubnetIdT &&value)
void SetInterfaceType(NetworkInterfaceCreationType value)
void SetIpv6Addresses(Ipv6AddressesT &&value)
bool SubnetIdHasBeenSet() const
CreateNetworkInterfaceRequest & WithConnectionTrackingSpecification(ConnectionTrackingSpecificationT &&value)
CreateNetworkInterfaceRequest & AddGroups(GroupsT &&value)
void SetGroups(GroupsT &&value)
void SetPrivateIpAddresses(PrivateIpAddressesT &&value)
void SetOperator(OperatorT &&value)
bool PrivateIpAddressesHasBeenSet() const
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
bool Ipv6PrefixesHasBeenSet() const
const Aws::Vector< Ipv4PrefixSpecificationRequest > & GetIpv4Prefixes() const
int GetIpv6AddressCount() const
void SetIpv4Prefixes(Ipv4PrefixesT &&value)
virtual const char * GetServiceRequestName() const override
void SetEnablePrimaryIpv6(bool value)
const Aws::String & GetDescription() const
bool GroupsHasBeenSet() const
bool EnablePrimaryIpv6HasBeenSet() const
CreateNetworkInterfaceRequest & WithIpv6Prefixes(Ipv6PrefixesT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
NetworkInterfaceCreationType
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector