@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateNetworkInterfaceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateNetworkInterfaceRequest>
NOOP
Constructor and Description |
---|
CreateNetworkInterfaceRequest() |
Modifier and Type | Method and Description |
---|---|
CreateNetworkInterfaceRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
ConnectionTrackingSpecificationRequest |
getConnectionTrackingSpecification()
A connection tracking specification for the network interface.
|
String |
getDescription()
A description for the network interface.
|
Request<CreateNetworkInterfaceRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Boolean |
getEnablePrimaryIpv6()
If you’re creating a network interface in a dual-stack or IPv6-only subnet, you have the option to assign a
primary IPv6 IP address.
|
List<String> |
getGroups()
The IDs of one or more security groups.
|
String |
getInterfaceType()
The type of network interface.
|
Integer |
getIpv4PrefixCount()
The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface.
|
List<Ipv4PrefixSpecificationRequest> |
getIpv4Prefixes()
The IPv4 prefixes assigned to the network interface.
|
Integer |
getIpv6AddressCount()
The number of IPv6 addresses to assign to a network interface.
|
List<InstanceIpv6Address> |
getIpv6Addresses()
The IPv6 addresses from the IPv6 CIDR block range of your subnet.
|
Integer |
getIpv6PrefixCount()
The number of IPv6 prefixes that Amazon Web Services automatically assigns to the network interface.
|
List<Ipv6PrefixSpecificationRequest> |
getIpv6Prefixes()
The IPv6 prefixes assigned to the network interface.
|
String |
getPrivateIpAddress()
The primary private IPv4 address of the network interface.
|
List<PrivateIpAddressSpecification> |
getPrivateIpAddresses()
The private IPv4 addresses.
|
Integer |
getSecondaryPrivateIpAddressCount()
The number of secondary private IPv4 addresses to assign to a network interface.
|
String |
getSubnetId()
The ID of the subnet to associate with the network interface.
|
List<TagSpecification> |
getTagSpecifications()
The tags to apply to the new network interface.
|
int |
hashCode() |
Boolean |
isEnablePrimaryIpv6()
If you’re creating a network interface in a dual-stack or IPv6-only subnet, you have the option to assign a
primary IPv6 IP address.
|
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
void |
setConnectionTrackingSpecification(ConnectionTrackingSpecificationRequest connectionTrackingSpecification)
A connection tracking specification for the network interface.
|
void |
setDescription(String description)
A description for the network interface.
|
void |
setEnablePrimaryIpv6(Boolean enablePrimaryIpv6)
If you’re creating a network interface in a dual-stack or IPv6-only subnet, you have the option to assign a
primary IPv6 IP address.
|
void |
setGroups(Collection<String> groups)
The IDs of one or more security groups.
|
void |
setInterfaceType(String interfaceType)
The type of network interface.
|
void |
setIpv4PrefixCount(Integer ipv4PrefixCount)
The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface.
|
void |
setIpv4Prefixes(Collection<Ipv4PrefixSpecificationRequest> ipv4Prefixes)
The IPv4 prefixes assigned to the network interface.
|
void |
setIpv6AddressCount(Integer ipv6AddressCount)
The number of IPv6 addresses to assign to a network interface.
|
void |
setIpv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
The IPv6 addresses from the IPv6 CIDR block range of your subnet.
|
void |
setIpv6PrefixCount(Integer ipv6PrefixCount)
The number of IPv6 prefixes that Amazon Web Services automatically assigns to the network interface.
|
void |
setIpv6Prefixes(Collection<Ipv6PrefixSpecificationRequest> ipv6Prefixes)
The IPv6 prefixes assigned to the network interface.
|
void |
setPrivateIpAddress(String privateIpAddress)
The primary private IPv4 address of the network interface.
|
void |
setPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
The private IPv4 addresses.
|
void |
setSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IPv4 addresses to assign to a network interface.
|
void |
setSubnetId(String subnetId)
The ID of the subnet to associate with the network interface.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the new network interface.
|
String |
toString()
Returns a string representation of this object.
|
CreateNetworkInterfaceRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
CreateNetworkInterfaceRequest |
withConnectionTrackingSpecification(ConnectionTrackingSpecificationRequest connectionTrackingSpecification)
A connection tracking specification for the network interface.
|
CreateNetworkInterfaceRequest |
withDescription(String description)
A description for the network interface.
|
CreateNetworkInterfaceRequest |
withEnablePrimaryIpv6(Boolean enablePrimaryIpv6)
If you’re creating a network interface in a dual-stack or IPv6-only subnet, you have the option to assign a
primary IPv6 IP address.
|
CreateNetworkInterfaceRequest |
withGroups(Collection<String> groups)
The IDs of one or more security groups.
|
CreateNetworkInterfaceRequest |
withGroups(String... groups)
The IDs of one or more security groups.
|
CreateNetworkInterfaceRequest |
withInterfaceType(NetworkInterfaceCreationType interfaceType)
The type of network interface.
|
CreateNetworkInterfaceRequest |
withInterfaceType(String interfaceType)
The type of network interface.
|
CreateNetworkInterfaceRequest |
withIpv4PrefixCount(Integer ipv4PrefixCount)
The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface.
|
CreateNetworkInterfaceRequest |
withIpv4Prefixes(Collection<Ipv4PrefixSpecificationRequest> ipv4Prefixes)
The IPv4 prefixes assigned to the network interface.
|
CreateNetworkInterfaceRequest |
withIpv4Prefixes(Ipv4PrefixSpecificationRequest... ipv4Prefixes)
The IPv4 prefixes assigned to the network interface.
|
CreateNetworkInterfaceRequest |
withIpv6AddressCount(Integer ipv6AddressCount)
The number of IPv6 addresses to assign to a network interface.
|
CreateNetworkInterfaceRequest |
withIpv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
The IPv6 addresses from the IPv6 CIDR block range of your subnet.
|
CreateNetworkInterfaceRequest |
withIpv6Addresses(InstanceIpv6Address... ipv6Addresses)
The IPv6 addresses from the IPv6 CIDR block range of your subnet.
|
CreateNetworkInterfaceRequest |
withIpv6PrefixCount(Integer ipv6PrefixCount)
The number of IPv6 prefixes that Amazon Web Services automatically assigns to the network interface.
|
CreateNetworkInterfaceRequest |
withIpv6Prefixes(Collection<Ipv6PrefixSpecificationRequest> ipv6Prefixes)
The IPv6 prefixes assigned to the network interface.
|
CreateNetworkInterfaceRequest |
withIpv6Prefixes(Ipv6PrefixSpecificationRequest... ipv6Prefixes)
The IPv6 prefixes assigned to the network interface.
|
CreateNetworkInterfaceRequest |
withPrivateIpAddress(String privateIpAddress)
The primary private IPv4 address of the network interface.
|
CreateNetworkInterfaceRequest |
withPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
The private IPv4 addresses.
|
CreateNetworkInterfaceRequest |
withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
The private IPv4 addresses.
|
CreateNetworkInterfaceRequest |
withSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IPv4 addresses to assign to a network interface.
|
CreateNetworkInterfaceRequest |
withSubnetId(String subnetId)
The ID of the subnet to associate with the network interface.
|
CreateNetworkInterfaceRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the new network interface.
|
CreateNetworkInterfaceRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the new network interface.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setDescription(String description)
A description for the network interface.
description
- A description for the network interface.public String getDescription()
A description for the network interface.
public CreateNetworkInterfaceRequest withDescription(String description)
A description for the network interface.
description
- A description for the network interface.public List<String> getGroups()
The IDs of one or more security groups.
public void setGroups(Collection<String> groups)
The IDs of one or more security groups.
groups
- The IDs of one or more security groups.public CreateNetworkInterfaceRequest withGroups(String... groups)
The IDs of one or more security groups.
NOTE: This method appends the values to the existing list (if any). Use
setGroups(java.util.Collection)
or withGroups(java.util.Collection)
if you want to override the
existing values.
groups
- The IDs of one or more security groups.public CreateNetworkInterfaceRequest withGroups(Collection<String> groups)
The IDs of one or more security groups.
groups
- The IDs of one or more security groups.public void setIpv6AddressCount(Integer ipv6AddressCount)
The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range.
You can't specify a count of IPv6 addresses using this parameter if you've specified one of the following: specific IPv6 addresses, specific IPv6 prefixes, or a count of IPv6 prefixes.
If your subnet has the AssignIpv6AddressOnCreation
attribute set, you can override that setting by
specifying 0 as the IPv6 address count.
ipv6AddressCount
- The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6
addresses from the subnet range.
You can't specify a count of IPv6 addresses using this parameter if you've specified one of the following: specific IPv6 addresses, specific IPv6 prefixes, or a count of IPv6 prefixes.
If your subnet has the AssignIpv6AddressOnCreation
attribute set, you can override that
setting by specifying 0 as the IPv6 address count.
public Integer getIpv6AddressCount()
The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range.
You can't specify a count of IPv6 addresses using this parameter if you've specified one of the following: specific IPv6 addresses, specific IPv6 prefixes, or a count of IPv6 prefixes.
If your subnet has the AssignIpv6AddressOnCreation
attribute set, you can override that setting by
specifying 0 as the IPv6 address count.
You can't specify a count of IPv6 addresses using this parameter if you've specified one of the following: specific IPv6 addresses, specific IPv6 prefixes, or a count of IPv6 prefixes.
If your subnet has the AssignIpv6AddressOnCreation
attribute set, you can override that
setting by specifying 0 as the IPv6 address count.
public CreateNetworkInterfaceRequest withIpv6AddressCount(Integer ipv6AddressCount)
The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range.
You can't specify a count of IPv6 addresses using this parameter if you've specified one of the following: specific IPv6 addresses, specific IPv6 prefixes, or a count of IPv6 prefixes.
If your subnet has the AssignIpv6AddressOnCreation
attribute set, you can override that setting by
specifying 0 as the IPv6 address count.
ipv6AddressCount
- The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6
addresses from the subnet range.
You can't specify a count of IPv6 addresses using this parameter if you've specified one of the following: specific IPv6 addresses, specific IPv6 prefixes, or a count of IPv6 prefixes.
If your subnet has the AssignIpv6AddressOnCreation
attribute set, you can override that
setting by specifying 0 as the IPv6 address count.
public List<InstanceIpv6Address> getIpv6Addresses()
The IPv6 addresses from the IPv6 CIDR block range of your subnet.
You can't specify IPv6 addresses using this parameter if you've specified one of the following: a count of IPv6 addresses, specific IPv6 prefixes, or a count of IPv6 prefixes.
You can't specify IPv6 addresses using this parameter if you've specified one of the following: a count of IPv6 addresses, specific IPv6 prefixes, or a count of IPv6 prefixes.
public void setIpv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
The IPv6 addresses from the IPv6 CIDR block range of your subnet.
You can't specify IPv6 addresses using this parameter if you've specified one of the following: a count of IPv6 addresses, specific IPv6 prefixes, or a count of IPv6 prefixes.
ipv6Addresses
- The IPv6 addresses from the IPv6 CIDR block range of your subnet.
You can't specify IPv6 addresses using this parameter if you've specified one of the following: a count of IPv6 addresses, specific IPv6 prefixes, or a count of IPv6 prefixes.
public CreateNetworkInterfaceRequest withIpv6Addresses(InstanceIpv6Address... ipv6Addresses)
The IPv6 addresses from the IPv6 CIDR block range of your subnet.
You can't specify IPv6 addresses using this parameter if you've specified one of the following: a count of IPv6 addresses, specific IPv6 prefixes, or a count of IPv6 prefixes.
NOTE: This method appends the values to the existing list (if any). Use
setIpv6Addresses(java.util.Collection)
or withIpv6Addresses(java.util.Collection)
if you want
to override the existing values.
ipv6Addresses
- The IPv6 addresses from the IPv6 CIDR block range of your subnet.
You can't specify IPv6 addresses using this parameter if you've specified one of the following: a count of IPv6 addresses, specific IPv6 prefixes, or a count of IPv6 prefixes.
public CreateNetworkInterfaceRequest withIpv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
The IPv6 addresses from the IPv6 CIDR block range of your subnet.
You can't specify IPv6 addresses using this parameter if you've specified one of the following: a count of IPv6 addresses, specific IPv6 prefixes, or a count of IPv6 prefixes.
ipv6Addresses
- The IPv6 addresses from the IPv6 CIDR block range of your subnet.
You can't specify IPv6 addresses using this parameter if you've specified one of the following: a count of IPv6 addresses, specific IPv6 prefixes, or a count of IPv6 prefixes.
public void setPrivateIpAddress(String privateIpAddress)
The primary private IPv4 address of the network interface. If you don't specify an IPv4 address, Amazon EC2
selects one for you from the subnet's IPv4 CIDR range. If you specify an IP address, you cannot indicate any IP
addresses specified in privateIpAddresses
as primary (only one IP address can be designated as
primary).
privateIpAddress
- The primary private IPv4 address of the network interface. If you don't specify an IPv4 address, Amazon
EC2 selects one for you from the subnet's IPv4 CIDR range. If you specify an IP address, you cannot
indicate any IP addresses specified in privateIpAddresses
as primary (only one IP address can
be designated as primary).public String getPrivateIpAddress()
The primary private IPv4 address of the network interface. If you don't specify an IPv4 address, Amazon EC2
selects one for you from the subnet's IPv4 CIDR range. If you specify an IP address, you cannot indicate any IP
addresses specified in privateIpAddresses
as primary (only one IP address can be designated as
primary).
privateIpAddresses
as primary (only one IP address
can be designated as primary).public CreateNetworkInterfaceRequest withPrivateIpAddress(String privateIpAddress)
The primary private IPv4 address of the network interface. If you don't specify an IPv4 address, Amazon EC2
selects one for you from the subnet's IPv4 CIDR range. If you specify an IP address, you cannot indicate any IP
addresses specified in privateIpAddresses
as primary (only one IP address can be designated as
primary).
privateIpAddress
- The primary private IPv4 address of the network interface. If you don't specify an IPv4 address, Amazon
EC2 selects one for you from the subnet's IPv4 CIDR range. If you specify an IP address, you cannot
indicate any IP addresses specified in privateIpAddresses
as primary (only one IP address can
be designated as primary).public List<PrivateIpAddressSpecification> getPrivateIpAddresses()
The private IPv4 addresses.
You can't specify private IPv4 addresses if you've specified one of the following: a count of private IPv4 addresses, specific IPv4 prefixes, or a count of IPv4 prefixes.
You can't specify private IPv4 addresses if you've specified one of the following: a count of private IPv4 addresses, specific IPv4 prefixes, or a count of IPv4 prefixes.
public void setPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
The private IPv4 addresses.
You can't specify private IPv4 addresses if you've specified one of the following: a count of private IPv4 addresses, specific IPv4 prefixes, or a count of IPv4 prefixes.
privateIpAddresses
- The private IPv4 addresses.
You can't specify private IPv4 addresses if you've specified one of the following: a count of private IPv4 addresses, specific IPv4 prefixes, or a count of IPv4 prefixes.
public CreateNetworkInterfaceRequest withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
The private IPv4 addresses.
You can't specify private IPv4 addresses if you've specified one of the following: a count of private IPv4 addresses, specific IPv4 prefixes, or a count of IPv4 prefixes.
NOTE: This method appends the values to the existing list (if any). Use
setPrivateIpAddresses(java.util.Collection)
or withPrivateIpAddresses(java.util.Collection)
if
you want to override the existing values.
privateIpAddresses
- The private IPv4 addresses.
You can't specify private IPv4 addresses if you've specified one of the following: a count of private IPv4 addresses, specific IPv4 prefixes, or a count of IPv4 prefixes.
public CreateNetworkInterfaceRequest withPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
The private IPv4 addresses.
You can't specify private IPv4 addresses if you've specified one of the following: a count of private IPv4 addresses, specific IPv4 prefixes, or a count of IPv4 prefixes.
privateIpAddresses
- The private IPv4 addresses.
You can't specify private IPv4 addresses if you've specified one of the following: a count of private IPv4 addresses, specific IPv4 prefixes, or a count of IPv4 prefixes.
public void setSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IPv4 addresses to assign to a network interface. When you specify a number of
secondary IPv4 addresses, Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR range. You can't
specify this option and specify more than one private IP address using privateIpAddresses
.
You can't specify a count of private IPv4 addresses if you've specified one of the following: specific private IPv4 addresses, specific IPv4 prefixes, or a count of IPv4 prefixes.
secondaryPrivateIpAddressCount
- The number of secondary private IPv4 addresses to assign to a network interface. When you specify a number
of secondary IPv4 addresses, Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR range.
You can't specify this option and specify more than one private IP address using
privateIpAddresses
.
You can't specify a count of private IPv4 addresses if you've specified one of the following: specific private IPv4 addresses, specific IPv4 prefixes, or a count of IPv4 prefixes.
public Integer getSecondaryPrivateIpAddressCount()
The number of secondary private IPv4 addresses to assign to a network interface. When you specify a number of
secondary IPv4 addresses, Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR range. You can't
specify this option and specify more than one private IP address using privateIpAddresses
.
You can't specify a count of private IPv4 addresses if you've specified one of the following: specific private IPv4 addresses, specific IPv4 prefixes, or a count of IPv4 prefixes.
privateIpAddresses
.
You can't specify a count of private IPv4 addresses if you've specified one of the following: specific private IPv4 addresses, specific IPv4 prefixes, or a count of IPv4 prefixes.
public CreateNetworkInterfaceRequest withSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IPv4 addresses to assign to a network interface. When you specify a number of
secondary IPv4 addresses, Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR range. You can't
specify this option and specify more than one private IP address using privateIpAddresses
.
You can't specify a count of private IPv4 addresses if you've specified one of the following: specific private IPv4 addresses, specific IPv4 prefixes, or a count of IPv4 prefixes.
secondaryPrivateIpAddressCount
- The number of secondary private IPv4 addresses to assign to a network interface. When you specify a number
of secondary IPv4 addresses, Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR range.
You can't specify this option and specify more than one private IP address using
privateIpAddresses
.
You can't specify a count of private IPv4 addresses if you've specified one of the following: specific private IPv4 addresses, specific IPv4 prefixes, or a count of IPv4 prefixes.
public List<Ipv4PrefixSpecificationRequest> getIpv4Prefixes()
The IPv4 prefixes assigned to the network interface.
You can't specify IPv4 prefixes if you've specified one of the following: a count of IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
You can't specify IPv4 prefixes if you've specified one of the following: a count of IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
public void setIpv4Prefixes(Collection<Ipv4PrefixSpecificationRequest> ipv4Prefixes)
The IPv4 prefixes assigned to the network interface.
You can't specify IPv4 prefixes if you've specified one of the following: a count of IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
ipv4Prefixes
- The IPv4 prefixes assigned to the network interface.
You can't specify IPv4 prefixes if you've specified one of the following: a count of IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
public CreateNetworkInterfaceRequest withIpv4Prefixes(Ipv4PrefixSpecificationRequest... ipv4Prefixes)
The IPv4 prefixes assigned to the network interface.
You can't specify IPv4 prefixes if you've specified one of the following: a count of IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
NOTE: This method appends the values to the existing list (if any). Use
setIpv4Prefixes(java.util.Collection)
or withIpv4Prefixes(java.util.Collection)
if you want to
override the existing values.
ipv4Prefixes
- The IPv4 prefixes assigned to the network interface.
You can't specify IPv4 prefixes if you've specified one of the following: a count of IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
public CreateNetworkInterfaceRequest withIpv4Prefixes(Collection<Ipv4PrefixSpecificationRequest> ipv4Prefixes)
The IPv4 prefixes assigned to the network interface.
You can't specify IPv4 prefixes if you've specified one of the following: a count of IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
ipv4Prefixes
- The IPv4 prefixes assigned to the network interface.
You can't specify IPv4 prefixes if you've specified one of the following: a count of IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
public void setIpv4PrefixCount(Integer ipv4PrefixCount)
The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface.
You can't specify a count of IPv4 prefixes if you've specified one of the following: specific IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
ipv4PrefixCount
- The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface.
You can't specify a count of IPv4 prefixes if you've specified one of the following: specific IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
public Integer getIpv4PrefixCount()
The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface.
You can't specify a count of IPv4 prefixes if you've specified one of the following: specific IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
You can't specify a count of IPv4 prefixes if you've specified one of the following: specific IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
public CreateNetworkInterfaceRequest withIpv4PrefixCount(Integer ipv4PrefixCount)
The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface.
You can't specify a count of IPv4 prefixes if you've specified one of the following: specific IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
ipv4PrefixCount
- The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface.
You can't specify a count of IPv4 prefixes if you've specified one of the following: specific IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
public List<Ipv6PrefixSpecificationRequest> getIpv6Prefixes()
The IPv6 prefixes assigned to the network interface.
You can't specify IPv6 prefixes if you've specified one of the following: a count of IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
You can't specify IPv6 prefixes if you've specified one of the following: a count of IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
public void setIpv6Prefixes(Collection<Ipv6PrefixSpecificationRequest> ipv6Prefixes)
The IPv6 prefixes assigned to the network interface.
You can't specify IPv6 prefixes if you've specified one of the following: a count of IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
ipv6Prefixes
- The IPv6 prefixes assigned to the network interface.
You can't specify IPv6 prefixes if you've specified one of the following: a count of IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
public CreateNetworkInterfaceRequest withIpv6Prefixes(Ipv6PrefixSpecificationRequest... ipv6Prefixes)
The IPv6 prefixes assigned to the network interface.
You can't specify IPv6 prefixes if you've specified one of the following: a count of IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
NOTE: This method appends the values to the existing list (if any). Use
setIpv6Prefixes(java.util.Collection)
or withIpv6Prefixes(java.util.Collection)
if you want to
override the existing values.
ipv6Prefixes
- The IPv6 prefixes assigned to the network interface.
You can't specify IPv6 prefixes if you've specified one of the following: a count of IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
public CreateNetworkInterfaceRequest withIpv6Prefixes(Collection<Ipv6PrefixSpecificationRequest> ipv6Prefixes)
The IPv6 prefixes assigned to the network interface.
You can't specify IPv6 prefixes if you've specified one of the following: a count of IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
ipv6Prefixes
- The IPv6 prefixes assigned to the network interface.
You can't specify IPv6 prefixes if you've specified one of the following: a count of IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
public void setIpv6PrefixCount(Integer ipv6PrefixCount)
The number of IPv6 prefixes that Amazon Web Services automatically assigns to the network interface.
You can't specify a count of IPv6 prefixes if you've specified one of the following: specific IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
ipv6PrefixCount
- The number of IPv6 prefixes that Amazon Web Services automatically assigns to the network interface.
You can't specify a count of IPv6 prefixes if you've specified one of the following: specific IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
public Integer getIpv6PrefixCount()
The number of IPv6 prefixes that Amazon Web Services automatically assigns to the network interface.
You can't specify a count of IPv6 prefixes if you've specified one of the following: specific IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
You can't specify a count of IPv6 prefixes if you've specified one of the following: specific IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
public CreateNetworkInterfaceRequest withIpv6PrefixCount(Integer ipv6PrefixCount)
The number of IPv6 prefixes that Amazon Web Services automatically assigns to the network interface.
You can't specify a count of IPv6 prefixes if you've specified one of the following: specific IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
ipv6PrefixCount
- The number of IPv6 prefixes that Amazon Web Services automatically assigns to the network interface.
You can't specify a count of IPv6 prefixes if you've specified one of the following: specific IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
public void setInterfaceType(String interfaceType)
The type of network interface. The default is interface
.
The only supported values are interface
, efa
, and trunk
.
interfaceType
- The type of network interface. The default is interface
.
The only supported values are interface
, efa
, and trunk
.
NetworkInterfaceCreationType
public String getInterfaceType()
The type of network interface. The default is interface
.
The only supported values are interface
, efa
, and trunk
.
interface
.
The only supported values are interface
, efa
, and trunk
.
NetworkInterfaceCreationType
public CreateNetworkInterfaceRequest withInterfaceType(String interfaceType)
The type of network interface. The default is interface
.
The only supported values are interface
, efa
, and trunk
.
interfaceType
- The type of network interface. The default is interface
.
The only supported values are interface
, efa
, and trunk
.
NetworkInterfaceCreationType
public CreateNetworkInterfaceRequest withInterfaceType(NetworkInterfaceCreationType interfaceType)
The type of network interface. The default is interface
.
The only supported values are interface
, efa
, and trunk
.
interfaceType
- The type of network interface. The default is interface
.
The only supported values are interface
, efa
, and trunk
.
NetworkInterfaceCreationType
public void setSubnetId(String subnetId)
The ID of the subnet to associate with the network interface.
subnetId
- The ID of the subnet to associate with the network interface.public String getSubnetId()
The ID of the subnet to associate with the network interface.
public CreateNetworkInterfaceRequest withSubnetId(String subnetId)
The ID of the subnet to associate with the network interface.
subnetId
- The ID of the subnet to associate with the network interface.public List<TagSpecification> getTagSpecifications()
The tags to apply to the new network interface.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the new network interface.
tagSpecifications
- The tags to apply to the new network interface.public CreateNetworkInterfaceRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the new network interface.
NOTE: This method appends the values to the existing list (if any). Use
setTagSpecifications(java.util.Collection)
or withTagSpecifications(java.util.Collection)
if
you want to override the existing values.
tagSpecifications
- The tags to apply to the new network interface.public CreateNetworkInterfaceRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the new network interface.
tagSpecifications
- The tags to apply to the new network interface.public void setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see Ensuring idempotency.public String getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
public CreateNetworkInterfaceRequest withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see Ensuring idempotency.public void setEnablePrimaryIpv6(Boolean enablePrimaryIpv6)
If you’re creating a network interface in a dual-stack or IPv6-only subnet, you have the option to assign a primary IPv6 IP address. A primary IPv6 address is an IPv6 GUA address associated with an ENI that you have enabled to use a primary IPv6 address. Use this option if the instance that this ENI will be attached to relies on its IPv6 address not changing. Amazon Web Services will automatically assign an IPv6 address associated with the ENI attached to your instance to be the primary IPv6 address. Once you enable an IPv6 GUA address to be a primary IPv6, you cannot disable it. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. If you have multiple IPv6 addresses associated with an ENI attached to your instance and you enable a primary IPv6 address, the first IPv6 GUA address associated with the ENI becomes the primary IPv6 address.
enablePrimaryIpv6
- If you’re creating a network interface in a dual-stack or IPv6-only subnet, you have the option to assign
a primary IPv6 IP address. A primary IPv6 address is an IPv6 GUA address associated with an ENI that you
have enabled to use a primary IPv6 address. Use this option if the instance that this ENI will be attached
to relies on its IPv6 address not changing. Amazon Web Services will automatically assign an IPv6 address
associated with the ENI attached to your instance to be the primary IPv6 address. Once you enable an IPv6
GUA address to be a primary IPv6, you cannot disable it. When you enable an IPv6 GUA address to be a
primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or
the network interface is detached. If you have multiple IPv6 addresses associated with an ENI attached to
your instance and you enable a primary IPv6 address, the first IPv6 GUA address associated with the ENI
becomes the primary IPv6 address.public Boolean getEnablePrimaryIpv6()
If you’re creating a network interface in a dual-stack or IPv6-only subnet, you have the option to assign a primary IPv6 IP address. A primary IPv6 address is an IPv6 GUA address associated with an ENI that you have enabled to use a primary IPv6 address. Use this option if the instance that this ENI will be attached to relies on its IPv6 address not changing. Amazon Web Services will automatically assign an IPv6 address associated with the ENI attached to your instance to be the primary IPv6 address. Once you enable an IPv6 GUA address to be a primary IPv6, you cannot disable it. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. If you have multiple IPv6 addresses associated with an ENI attached to your instance and you enable a primary IPv6 address, the first IPv6 GUA address associated with the ENI becomes the primary IPv6 address.
public CreateNetworkInterfaceRequest withEnablePrimaryIpv6(Boolean enablePrimaryIpv6)
If you’re creating a network interface in a dual-stack or IPv6-only subnet, you have the option to assign a primary IPv6 IP address. A primary IPv6 address is an IPv6 GUA address associated with an ENI that you have enabled to use a primary IPv6 address. Use this option if the instance that this ENI will be attached to relies on its IPv6 address not changing. Amazon Web Services will automatically assign an IPv6 address associated with the ENI attached to your instance to be the primary IPv6 address. Once you enable an IPv6 GUA address to be a primary IPv6, you cannot disable it. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. If you have multiple IPv6 addresses associated with an ENI attached to your instance and you enable a primary IPv6 address, the first IPv6 GUA address associated with the ENI becomes the primary IPv6 address.
enablePrimaryIpv6
- If you’re creating a network interface in a dual-stack or IPv6-only subnet, you have the option to assign
a primary IPv6 IP address. A primary IPv6 address is an IPv6 GUA address associated with an ENI that you
have enabled to use a primary IPv6 address. Use this option if the instance that this ENI will be attached
to relies on its IPv6 address not changing. Amazon Web Services will automatically assign an IPv6 address
associated with the ENI attached to your instance to be the primary IPv6 address. Once you enable an IPv6
GUA address to be a primary IPv6, you cannot disable it. When you enable an IPv6 GUA address to be a
primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or
the network interface is detached. If you have multiple IPv6 addresses associated with an ENI attached to
your instance and you enable a primary IPv6 address, the first IPv6 GUA address associated with the ENI
becomes the primary IPv6 address.public Boolean isEnablePrimaryIpv6()
If you’re creating a network interface in a dual-stack or IPv6-only subnet, you have the option to assign a primary IPv6 IP address. A primary IPv6 address is an IPv6 GUA address associated with an ENI that you have enabled to use a primary IPv6 address. Use this option if the instance that this ENI will be attached to relies on its IPv6 address not changing. Amazon Web Services will automatically assign an IPv6 address associated with the ENI attached to your instance to be the primary IPv6 address. Once you enable an IPv6 GUA address to be a primary IPv6, you cannot disable it. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. If you have multiple IPv6 addresses associated with an ENI attached to your instance and you enable a primary IPv6 address, the first IPv6 GUA address associated with the ENI becomes the primary IPv6 address.
public void setConnectionTrackingSpecification(ConnectionTrackingSpecificationRequest connectionTrackingSpecification)
A connection tracking specification for the network interface.
connectionTrackingSpecification
- A connection tracking specification for the network interface.public ConnectionTrackingSpecificationRequest getConnectionTrackingSpecification()
A connection tracking specification for the network interface.
public CreateNetworkInterfaceRequest withConnectionTrackingSpecification(ConnectionTrackingSpecificationRequest connectionTrackingSpecification)
A connection tracking specification for the network interface.
connectionTrackingSpecification
- A connection tracking specification for the network interface.public Request<CreateNetworkInterfaceRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateNetworkInterfaceRequest>
public String toString()
toString
in class Object
Object.toString()
public CreateNetworkInterfaceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()