@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceNetworkInterfaceSpecification extends Object implements Serializable, Cloneable
Describes a network interface.
Constructor and Description |
---|
InstanceNetworkInterfaceSpecification() |
Modifier and Type | Method and Description |
---|---|
InstanceNetworkInterfaceSpecification |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAssociateCarrierIpAddress()
Indicates whether to assign a carrier IP address to the network interface.
|
Boolean |
getAssociatePublicIpAddress()
Indicates whether to assign a public IPv4 address to an instance you launch in a VPC.
|
Boolean |
getDeleteOnTermination()
If set to
true , the interface is deleted when the instance is terminated. |
String |
getDescription()
The description of the network interface.
|
Integer |
getDeviceIndex()
The position of the network interface in the attachment order.
|
List<String> |
getGroups()
The IDs of the security groups for the network interface.
|
String |
getInterfaceType()
The type of network interface.
|
Integer |
getIpv4PrefixCount()
The number of IPv4 delegated prefixes to be automatically assigned to the network interface.
|
List<Ipv4PrefixSpecificationRequest> |
getIpv4Prefixes()
The IPv4 delegated prefixes to be assigned to the network interface.
|
Integer |
getIpv6AddressCount()
A number of IPv6 addresses to assign to the network interface.
|
List<InstanceIpv6Address> |
getIpv6Addresses()
The IPv6 addresses to assign to the network interface.
|
Integer |
getIpv6PrefixCount()
The number of IPv6 delegated prefixes to be automatically assigned to the network interface.
|
List<Ipv6PrefixSpecificationRequest> |
getIpv6Prefixes()
The IPv6 delegated prefixes to be assigned to the network interface.
|
Integer |
getNetworkCardIndex()
The index of the network card.
|
String |
getNetworkInterfaceId()
The ID of the network interface.
|
String |
getPrivateIpAddress()
The private IPv4 address of the network interface.
|
List<PrivateIpAddressSpecification> |
getPrivateIpAddresses()
The private IPv4 addresses to assign to the network interface.
|
Integer |
getSecondaryPrivateIpAddressCount()
The number of secondary private IPv4 addresses.
|
String |
getSubnetId()
The ID of the subnet associated with the network interface.
|
int |
hashCode() |
Boolean |
isAssociateCarrierIpAddress()
Indicates whether to assign a carrier IP address to the network interface.
|
Boolean |
isAssociatePublicIpAddress()
Indicates whether to assign a public IPv4 address to an instance you launch in a VPC.
|
Boolean |
isDeleteOnTermination()
If set to
true , the interface is deleted when the instance is terminated. |
void |
setAssociateCarrierIpAddress(Boolean associateCarrierIpAddress)
Indicates whether to assign a carrier IP address to the network interface.
|
void |
setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Indicates whether to assign a public IPv4 address to an instance you launch in a VPC.
|
void |
setDeleteOnTermination(Boolean deleteOnTermination)
If set to
true , the interface is deleted when the instance is terminated. |
void |
setDescription(String description)
The description of the network interface.
|
void |
setDeviceIndex(Integer deviceIndex)
The position of the network interface in the attachment order.
|
void |
setGroups(Collection<String> groups)
The IDs of the security groups for the network interface.
|
void |
setInterfaceType(String interfaceType)
The type of network interface.
|
void |
setIpv4PrefixCount(Integer ipv4PrefixCount)
The number of IPv4 delegated prefixes to be automatically assigned to the network interface.
|
void |
setIpv4Prefixes(Collection<Ipv4PrefixSpecificationRequest> ipv4Prefixes)
The IPv4 delegated prefixes to be assigned to the network interface.
|
void |
setIpv6AddressCount(Integer ipv6AddressCount)
A number of IPv6 addresses to assign to the network interface.
|
void |
setIpv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
The IPv6 addresses to assign to the network interface.
|
void |
setIpv6PrefixCount(Integer ipv6PrefixCount)
The number of IPv6 delegated prefixes to be automatically assigned to the network interface.
|
void |
setIpv6Prefixes(Collection<Ipv6PrefixSpecificationRequest> ipv6Prefixes)
The IPv6 delegated prefixes to be assigned to the network interface.
|
void |
setNetworkCardIndex(Integer networkCardIndex)
The index of the network card.
|
void |
setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
void |
setPrivateIpAddress(String privateIpAddress)
The private IPv4 address of the network interface.
|
void |
setPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
The private IPv4 addresses to assign to the network interface.
|
void |
setSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IPv4 addresses.
|
void |
setSubnetId(String subnetId)
The ID of the subnet associated with the network interface.
|
String |
toString()
Returns a string representation of this object.
|
InstanceNetworkInterfaceSpecification |
withAssociateCarrierIpAddress(Boolean associateCarrierIpAddress)
Indicates whether to assign a carrier IP address to the network interface.
|
InstanceNetworkInterfaceSpecification |
withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Indicates whether to assign a public IPv4 address to an instance you launch in a VPC.
|
InstanceNetworkInterfaceSpecification |
withDeleteOnTermination(Boolean deleteOnTermination)
If set to
true , the interface is deleted when the instance is terminated. |
InstanceNetworkInterfaceSpecification |
withDescription(String description)
The description of the network interface.
|
InstanceNetworkInterfaceSpecification |
withDeviceIndex(Integer deviceIndex)
The position of the network interface in the attachment order.
|
InstanceNetworkInterfaceSpecification |
withGroups(Collection<String> groups)
The IDs of the security groups for the network interface.
|
InstanceNetworkInterfaceSpecification |
withGroups(String... groups)
The IDs of the security groups for the network interface.
|
InstanceNetworkInterfaceSpecification |
withInterfaceType(String interfaceType)
The type of network interface.
|
InstanceNetworkInterfaceSpecification |
withIpv4PrefixCount(Integer ipv4PrefixCount)
The number of IPv4 delegated prefixes to be automatically assigned to the network interface.
|
InstanceNetworkInterfaceSpecification |
withIpv4Prefixes(Collection<Ipv4PrefixSpecificationRequest> ipv4Prefixes)
The IPv4 delegated prefixes to be assigned to the network interface.
|
InstanceNetworkInterfaceSpecification |
withIpv4Prefixes(Ipv4PrefixSpecificationRequest... ipv4Prefixes)
The IPv4 delegated prefixes to be assigned to the network interface.
|
InstanceNetworkInterfaceSpecification |
withIpv6AddressCount(Integer ipv6AddressCount)
A number of IPv6 addresses to assign to the network interface.
|
InstanceNetworkInterfaceSpecification |
withIpv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
The IPv6 addresses to assign to the network interface.
|
InstanceNetworkInterfaceSpecification |
withIpv6Addresses(InstanceIpv6Address... ipv6Addresses)
The IPv6 addresses to assign to the network interface.
|
InstanceNetworkInterfaceSpecification |
withIpv6PrefixCount(Integer ipv6PrefixCount)
The number of IPv6 delegated prefixes to be automatically assigned to the network interface.
|
InstanceNetworkInterfaceSpecification |
withIpv6Prefixes(Collection<Ipv6PrefixSpecificationRequest> ipv6Prefixes)
The IPv6 delegated prefixes to be assigned to the network interface.
|
InstanceNetworkInterfaceSpecification |
withIpv6Prefixes(Ipv6PrefixSpecificationRequest... ipv6Prefixes)
The IPv6 delegated prefixes to be assigned to the network interface.
|
InstanceNetworkInterfaceSpecification |
withNetworkCardIndex(Integer networkCardIndex)
The index of the network card.
|
InstanceNetworkInterfaceSpecification |
withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
InstanceNetworkInterfaceSpecification |
withPrivateIpAddress(String privateIpAddress)
The private IPv4 address of the network interface.
|
InstanceNetworkInterfaceSpecification |
withPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
The private IPv4 addresses to assign to the network interface.
|
InstanceNetworkInterfaceSpecification |
withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
The private IPv4 addresses to assign to the network interface.
|
InstanceNetworkInterfaceSpecification |
withSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IPv4 addresses.
|
InstanceNetworkInterfaceSpecification |
withSubnetId(String subnetId)
The ID of the subnet associated with the network interface.
|
public InstanceNetworkInterfaceSpecification()
public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can
only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an
existing one. You cannot specify more than one network interface in the request. If launching into a default
subnet, the default value is true
.
associatePublicIpAddress
- Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP
address can only be assigned to a network interface for eth0, and can only be assigned to a new network
interface, not an existing one. You cannot specify more than one network interface in the request. If
launching into a default subnet, the default value is true
.public Boolean getAssociatePublicIpAddress()
Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can
only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an
existing one. You cannot specify more than one network interface in the request. If launching into a default
subnet, the default value is true
.
true
.public InstanceNetworkInterfaceSpecification withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can
only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an
existing one. You cannot specify more than one network interface in the request. If launching into a default
subnet, the default value is true
.
associatePublicIpAddress
- Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP
address can only be assigned to a network interface for eth0, and can only be assigned to a new network
interface, not an existing one. You cannot specify more than one network interface in the request. If
launching into a default subnet, the default value is true
.public Boolean isAssociatePublicIpAddress()
Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can
only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an
existing one. You cannot specify more than one network interface in the request. If launching into a default
subnet, the default value is true
.
true
.public void setDeleteOnTermination(Boolean deleteOnTermination)
If set to true
, the interface is deleted when the instance is terminated. You can specify
true
only if creating a new network interface when launching an instance.
deleteOnTermination
- If set to true
, the interface is deleted when the instance is terminated. You can specify
true
only if creating a new network interface when launching an instance.public Boolean getDeleteOnTermination()
If set to true
, the interface is deleted when the instance is terminated. You can specify
true
only if creating a new network interface when launching an instance.
true
, the interface is deleted when the instance is terminated. You can specify
true
only if creating a new network interface when launching an instance.public InstanceNetworkInterfaceSpecification withDeleteOnTermination(Boolean deleteOnTermination)
If set to true
, the interface is deleted when the instance is terminated. You can specify
true
only if creating a new network interface when launching an instance.
deleteOnTermination
- If set to true
, the interface is deleted when the instance is terminated. You can specify
true
only if creating a new network interface when launching an instance.public Boolean isDeleteOnTermination()
If set to true
, the interface is deleted when the instance is terminated. You can specify
true
only if creating a new network interface when launching an instance.
true
, the interface is deleted when the instance is terminated. You can specify
true
only if creating a new network interface when launching an instance.public void setDescription(String description)
The description of the network interface. Applies only if creating a network interface when launching an instance.
description
- The description of the network interface. Applies only if creating a network interface when launching an
instance.public String getDescription()
The description of the network interface. Applies only if creating a network interface when launching an instance.
public InstanceNetworkInterfaceSpecification withDescription(String description)
The description of the network interface. Applies only if creating a network interface when launching an instance.
description
- The description of the network interface. Applies only if creating a network interface when launching an
instance.public void setDeviceIndex(Integer deviceIndex)
The position of the network interface in the attachment order. A primary network interface has a device index of 0.
If you specify a network interface when launching an instance, you must specify the device index.
deviceIndex
- The position of the network interface in the attachment order. A primary network interface has a device
index of 0.
If you specify a network interface when launching an instance, you must specify the device index.
public Integer getDeviceIndex()
The position of the network interface in the attachment order. A primary network interface has a device index of 0.
If you specify a network interface when launching an instance, you must specify the device index.
If you specify a network interface when launching an instance, you must specify the device index.
public InstanceNetworkInterfaceSpecification withDeviceIndex(Integer deviceIndex)
The position of the network interface in the attachment order. A primary network interface has a device index of 0.
If you specify a network interface when launching an instance, you must specify the device index.
deviceIndex
- The position of the network interface in the attachment order. A primary network interface has a device
index of 0.
If you specify a network interface when launching an instance, you must specify the device index.
public List<String> getGroups()
The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.
public void setGroups(Collection<String> groups)
The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.
groups
- The IDs of the security groups for the network interface. Applies only if creating a network interface
when launching an instance.public InstanceNetworkInterfaceSpecification withGroups(String... groups)
The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.
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 the security groups for the network interface. Applies only if creating a network interface
when launching an instance.public InstanceNetworkInterfaceSpecification withGroups(Collection<String> groups)
The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.
groups
- The IDs of the security groups for the network interface. Applies only if creating a network interface
when launching an instance.public void setIpv6AddressCount(Integer ipv6AddressCount)
A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.
ipv6AddressCount
- A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from
the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses
in the same request. You can specify this option if you've specified a minimum number of instances to
launch.public Integer getIpv6AddressCount()
A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.
public InstanceNetworkInterfaceSpecification withIpv6AddressCount(Integer ipv6AddressCount)
A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.
ipv6AddressCount
- A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from
the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses
in the same request. You can specify this option if you've specified a minimum number of instances to
launch.public List<InstanceIpv6Address> getIpv6Addresses()
The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.
public void setIpv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.
ipv6Addresses
- The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to
assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified
a minimum number of instances to launch.public InstanceNetworkInterfaceSpecification withIpv6Addresses(InstanceIpv6Address... ipv6Addresses)
The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.
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 to assign to the network interface. You cannot specify this option and the option to
assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified
a minimum number of instances to launch.public InstanceNetworkInterfaceSpecification withIpv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.
ipv6Addresses
- The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to
assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified
a minimum number of instances to launch.public void setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
If you are creating a Spot Fleet, omit this parameter because you can’t specify a network interface ID in a launch specification.
networkInterfaceId
- The ID of the network interface.
If you are creating a Spot Fleet, omit this parameter because you can’t specify a network interface ID in a launch specification.
public String getNetworkInterfaceId()
The ID of the network interface.
If you are creating a Spot Fleet, omit this parameter because you can’t specify a network interface ID in a launch specification.
If you are creating a Spot Fleet, omit this parameter because you can’t specify a network interface ID in a launch specification.
public InstanceNetworkInterfaceSpecification withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
If you are creating a Spot Fleet, omit this parameter because you can’t specify a network interface ID in a launch specification.
networkInterfaceId
- The ID of the network interface.
If you are creating a Spot Fleet, omit this parameter because you can’t specify a network interface ID in a launch specification.
public void setPrivateIpAddress(String privateIpAddress)
The private IPv4 address of the network interface. Applies only if creating a network interface when launching an instance. You cannot specify this option if you're launching more than one instance in a RunInstances request.
privateIpAddress
- The private IPv4 address of the network interface. Applies only if creating a network interface when
launching an instance. You cannot specify this option if you're launching more than one instance in a RunInstances
request.public String getPrivateIpAddress()
The private IPv4 address of the network interface. Applies only if creating a network interface when launching an instance. You cannot specify this option if you're launching more than one instance in a RunInstances request.
public InstanceNetworkInterfaceSpecification withPrivateIpAddress(String privateIpAddress)
The private IPv4 address of the network interface. Applies only if creating a network interface when launching an instance. You cannot specify this option if you're launching more than one instance in a RunInstances request.
privateIpAddress
- The private IPv4 address of the network interface. Applies only if creating a network interface when
launching an instance. You cannot specify this option if you're launching more than one instance in a RunInstances
request.public List<PrivateIpAddressSpecification> getPrivateIpAddresses()
The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a RunInstances request.
public void setPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a RunInstances request.
privateIpAddresses
- The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be
designated as primary. You cannot specify this option if you're launching more than one instance in a RunInstances
request.public InstanceNetworkInterfaceSpecification withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a RunInstances request.
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 to assign to the network interface. Only one private IPv4 address can be
designated as primary. You cannot specify this option if you're launching more than one instance in a RunInstances
request.public InstanceNetworkInterfaceSpecification withPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a RunInstances request.
privateIpAddresses
- The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be
designated as primary. You cannot specify this option if you're launching more than one instance in a RunInstances
request.public void setSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IPv4 addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option. You cannot specify this option if you're launching more than one instance in a RunInstances request.
secondaryPrivateIpAddressCount
- The number of secondary private IPv4 addresses. You can't specify this option and specify more than one
private IP address using the private IP addresses option. You cannot specify this option if you're
launching more than one instance in a RunInstances
request.public Integer getSecondaryPrivateIpAddressCount()
The number of secondary private IPv4 addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option. You cannot specify this option if you're launching more than one instance in a RunInstances request.
public InstanceNetworkInterfaceSpecification withSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IPv4 addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option. You cannot specify this option if you're launching more than one instance in a RunInstances request.
secondaryPrivateIpAddressCount
- The number of secondary private IPv4 addresses. You can't specify this option and specify more than one
private IP address using the private IP addresses option. You cannot specify this option if you're
launching more than one instance in a RunInstances
request.public void setSubnetId(String subnetId)
The ID of the subnet associated with the network interface. Applies only if creating a network interface when launching an instance.
subnetId
- The ID of the subnet associated with the network interface. Applies only if creating a network interface
when launching an instance.public String getSubnetId()
The ID of the subnet associated with the network interface. Applies only if creating a network interface when launching an instance.
public InstanceNetworkInterfaceSpecification withSubnetId(String subnetId)
The ID of the subnet associated with the network interface. Applies only if creating a network interface when launching an instance.
subnetId
- The ID of the subnet associated with the network interface. Applies only if creating a network interface
when launching an instance.public void setAssociateCarrierIpAddress(Boolean associateCarrierIpAddress)
Indicates whether to assign a carrier IP address to the network interface.
You can only assign a carrier IP address to a network interface that is in a subnet in a Wavelength Zone. For more information about carrier IP addresses, see Carrier IP address in the Amazon Web Services Wavelength Developer Guide.
associateCarrierIpAddress
- Indicates whether to assign a carrier IP address to the network interface.
You can only assign a carrier IP address to a network interface that is in a subnet in a Wavelength Zone. For more information about carrier IP addresses, see Carrier IP address in the Amazon Web Services Wavelength Developer Guide.
public Boolean getAssociateCarrierIpAddress()
Indicates whether to assign a carrier IP address to the network interface.
You can only assign a carrier IP address to a network interface that is in a subnet in a Wavelength Zone. For more information about carrier IP addresses, see Carrier IP address in the Amazon Web Services Wavelength Developer Guide.
You can only assign a carrier IP address to a network interface that is in a subnet in a Wavelength Zone. For more information about carrier IP addresses, see Carrier IP address in the Amazon Web Services Wavelength Developer Guide.
public InstanceNetworkInterfaceSpecification withAssociateCarrierIpAddress(Boolean associateCarrierIpAddress)
Indicates whether to assign a carrier IP address to the network interface.
You can only assign a carrier IP address to a network interface that is in a subnet in a Wavelength Zone. For more information about carrier IP addresses, see Carrier IP address in the Amazon Web Services Wavelength Developer Guide.
associateCarrierIpAddress
- Indicates whether to assign a carrier IP address to the network interface.
You can only assign a carrier IP address to a network interface that is in a subnet in a Wavelength Zone. For more information about carrier IP addresses, see Carrier IP address in the Amazon Web Services Wavelength Developer Guide.
public Boolean isAssociateCarrierIpAddress()
Indicates whether to assign a carrier IP address to the network interface.
You can only assign a carrier IP address to a network interface that is in a subnet in a Wavelength Zone. For more information about carrier IP addresses, see Carrier IP address in the Amazon Web Services Wavelength Developer Guide.
You can only assign a carrier IP address to a network interface that is in a subnet in a Wavelength Zone. For more information about carrier IP addresses, see Carrier IP address in the Amazon Web Services Wavelength Developer Guide.
public void setInterfaceType(String interfaceType)
The type of network interface.
Valid values: interface
| efa
interfaceType
- The type of network interface.
Valid values: interface
| efa
public String getInterfaceType()
The type of network interface.
Valid values: interface
| efa
Valid values: interface
| efa
public InstanceNetworkInterfaceSpecification withInterfaceType(String interfaceType)
The type of network interface.
Valid values: interface
| efa
interfaceType
- The type of network interface.
Valid values: interface
| efa
public void setNetworkCardIndex(Integer networkCardIndex)
The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.
If you are using RequestSpotInstances to create Spot Instances, omit this parameter because you can’t specify the network card index when using this API. To specify the network card index, use RunInstances.
networkCardIndex
- The index of the network card. Some instance types support multiple network cards. The primary network
interface must be assigned to network card index 0. The default is network card index 0.
If you are using RequestSpotInstances to create Spot Instances, omit this parameter because you can’t specify the network card index when using this API. To specify the network card index, use RunInstances.
public Integer getNetworkCardIndex()
The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.
If you are using RequestSpotInstances to create Spot Instances, omit this parameter because you can’t specify the network card index when using this API. To specify the network card index, use RunInstances.
If you are using RequestSpotInstances to create Spot Instances, omit this parameter because you can’t specify the network card index when using this API. To specify the network card index, use RunInstances.
public InstanceNetworkInterfaceSpecification withNetworkCardIndex(Integer networkCardIndex)
The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.
If you are using RequestSpotInstances to create Spot Instances, omit this parameter because you can’t specify the network card index when using this API. To specify the network card index, use RunInstances.
networkCardIndex
- The index of the network card. Some instance types support multiple network cards. The primary network
interface must be assigned to network card index 0. The default is network card index 0.
If you are using RequestSpotInstances to create Spot Instances, omit this parameter because you can’t specify the network card index when using this API. To specify the network card index, use RunInstances.
public List<Ipv4PrefixSpecificationRequest> getIpv4Prefixes()
The IPv4 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option.
Ipv4PrefixCount
option.public void setIpv4Prefixes(Collection<Ipv4PrefixSpecificationRequest> ipv4Prefixes)
The IPv4 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option.
ipv4Prefixes
- The IPv4 delegated prefixes to be assigned to the network interface. You cannot use this option if you use
the Ipv4PrefixCount
option.public InstanceNetworkInterfaceSpecification withIpv4Prefixes(Ipv4PrefixSpecificationRequest... ipv4Prefixes)
The IPv4 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option.
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 delegated prefixes to be assigned to the network interface. You cannot use this option if you use
the Ipv4PrefixCount
option.public InstanceNetworkInterfaceSpecification withIpv4Prefixes(Collection<Ipv4PrefixSpecificationRequest> ipv4Prefixes)
The IPv4 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option.
ipv4Prefixes
- The IPv4 delegated prefixes to be assigned to the network interface. You cannot use this option if you use
the Ipv4PrefixCount
option.public void setIpv4PrefixCount(Integer ipv4PrefixCount)
The number of IPv4 delegated prefixes to be automatically assigned to the network interface. You cannot use this
option if you use the Ipv4Prefix
option.
ipv4PrefixCount
- The number of IPv4 delegated prefixes to be automatically assigned to the network interface. You cannot
use this option if you use the Ipv4Prefix
option.public Integer getIpv4PrefixCount()
The number of IPv4 delegated prefixes to be automatically assigned to the network interface. You cannot use this
option if you use the Ipv4Prefix
option.
Ipv4Prefix
option.public InstanceNetworkInterfaceSpecification withIpv4PrefixCount(Integer ipv4PrefixCount)
The number of IPv4 delegated prefixes to be automatically assigned to the network interface. You cannot use this
option if you use the Ipv4Prefix
option.
ipv4PrefixCount
- The number of IPv4 delegated prefixes to be automatically assigned to the network interface. You cannot
use this option if you use the Ipv4Prefix
option.public List<Ipv6PrefixSpecificationRequest> getIpv6Prefixes()
The IPv6 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv6PrefixCount
option.
Ipv6PrefixCount
option.public void setIpv6Prefixes(Collection<Ipv6PrefixSpecificationRequest> ipv6Prefixes)
The IPv6 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv6PrefixCount
option.
ipv6Prefixes
- The IPv6 delegated prefixes to be assigned to the network interface. You cannot use this option if you use
the Ipv6PrefixCount
option.public InstanceNetworkInterfaceSpecification withIpv6Prefixes(Ipv6PrefixSpecificationRequest... ipv6Prefixes)
The IPv6 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv6PrefixCount
option.
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 delegated prefixes to be assigned to the network interface. You cannot use this option if you use
the Ipv6PrefixCount
option.public InstanceNetworkInterfaceSpecification withIpv6Prefixes(Collection<Ipv6PrefixSpecificationRequest> ipv6Prefixes)
The IPv6 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv6PrefixCount
option.
ipv6Prefixes
- The IPv6 delegated prefixes to be assigned to the network interface. You cannot use this option if you use
the Ipv6PrefixCount
option.public void setIpv6PrefixCount(Integer ipv6PrefixCount)
The number of IPv6 delegated prefixes to be automatically assigned to the network interface. You cannot use this
option if you use the Ipv6Prefix
option.
ipv6PrefixCount
- The number of IPv6 delegated prefixes to be automatically assigned to the network interface. You cannot
use this option if you use the Ipv6Prefix
option.public Integer getIpv6PrefixCount()
The number of IPv6 delegated prefixes to be automatically assigned to the network interface. You cannot use this
option if you use the Ipv6Prefix
option.
Ipv6Prefix
option.public InstanceNetworkInterfaceSpecification withIpv6PrefixCount(Integer ipv6PrefixCount)
The number of IPv6 delegated prefixes to be automatically assigned to the network interface. You cannot use this
option if you use the Ipv6Prefix
option.
ipv6PrefixCount
- The number of IPv6 delegated prefixes to be automatically assigned to the network interface. You cannot
use this option if you use the Ipv6Prefix
option.public String toString()
toString
in class Object
Object.toString()
public InstanceNetworkInterfaceSpecification clone()
Copyright © 2022. All rights reserved.