@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 |
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 |
getIpv6AddressCount()
A number of IPv6 addresses to assign to the network interface.
|
List<InstanceIpv6Address> |
getIpv6Addresses()
One or more IPv6 addresses to assign to the network interface.
|
String |
getNetworkInterfaceId()
The ID of the network interface.
|
String |
getPrivateIpAddress()
The private IPv4 address of the network interface.
|
List<PrivateIpAddressSpecification> |
getPrivateIpAddresses()
One or more 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 |
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 |
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 |
setIpv6AddressCount(Integer ipv6AddressCount)
A number of IPv6 addresses to assign to the network interface.
|
void |
setIpv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
One or more IPv6 addresses to assign to the network interface.
|
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)
One or more 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 |
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 |
withIpv6AddressCount(Integer ipv6AddressCount)
A number of IPv6 addresses to assign to the network interface.
|
InstanceNetworkInterfaceSpecification |
withIpv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
One or more IPv6 addresses to assign to the network interface.
|
InstanceNetworkInterfaceSpecification |
withIpv6Addresses(InstanceIpv6Address... ipv6Addresses)
One or more IPv6 addresses to assign to the network interface.
|
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)
One or more private IPv4 addresses to assign to the network interface.
|
InstanceNetworkInterfaceSpecification |
withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
One or more 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()
One or more 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)
One or more 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
- One or more 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)
One or more 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
- One or more 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)
One or more 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
- One or more 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.
networkInterfaceId
- The ID of the network interface.public String getNetworkInterfaceId()
The ID of the network interface.
public InstanceNetworkInterfaceSpecification withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.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()
One or more 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)
One or more 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
- One or more 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)
One or more 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
- One or more 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)
One or more 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
- One or more 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 setInterfaceType(String interfaceType)
The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa
. For more
information, see Elastic Fabric
Adapter in the Amazon Elastic Compute Cloud User Guide.
If you are not creating an EFA, specify interface
or omit this parameter.
Valid values: interface
| efa
interfaceType
- The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa
. For
more information, see Elastic
Fabric Adapter in the Amazon Elastic Compute Cloud User Guide.
If you are not creating an EFA, specify interface
or omit this parameter.
Valid values: interface
| efa
public String getInterfaceType()
The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa
. For more
information, see Elastic Fabric
Adapter in the Amazon Elastic Compute Cloud User Guide.
If you are not creating an EFA, specify interface
or omit this parameter.
Valid values: interface
| efa
efa
. For
more information, see Elastic
Fabric Adapter in the Amazon Elastic Compute Cloud User Guide.
If you are not creating an EFA, specify interface
or omit this parameter.
Valid values: interface
| efa
public InstanceNetworkInterfaceSpecification withInterfaceType(String interfaceType)
The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa
. For more
information, see Elastic Fabric
Adapter in the Amazon Elastic Compute Cloud User Guide.
If you are not creating an EFA, specify interface
or omit this parameter.
Valid values: interface
| efa
interfaceType
- The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa
. For
more information, see Elastic
Fabric Adapter in the Amazon Elastic Compute Cloud User Guide.
If you are not creating an EFA, specify interface
or omit this parameter.
Valid values: interface
| efa
public String toString()
toString
in class Object
Object.toString()
public InstanceNetworkInterfaceSpecification clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.