public class InstanceNetworkInterfaceSpecification extends Object implements Serializable
Describes a network interface.
Constructor and Description |
---|
InstanceNetworkInterfaceSpecification() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Boolean |
getAssociatePublicIpAddress()
Indicates whether to auto-assign a public IP address to an instance 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 index of the device on the instance for the network interface
attachment.
|
List<String> |
getGroups()
The IDs of the security groups for the network interface.
|
String |
getNetworkInterfaceId()
The ID of the network interface.
|
String |
getPrivateIpAddress()
The private IP address of the network interface.
|
List<PrivateIpAddressSpecification> |
getPrivateIpAddresses()
One or more private IP addresses to assign to the network interface.
|
Integer |
getSecondaryPrivateIpAddressCount()
The number of secondary private IP addresses.
|
String |
getSubnetId()
The ID of the subnet associated with the network string.
|
int |
hashCode() |
Boolean |
isAssociatePublicIpAddress()
Indicates whether to auto-assign a public IP address to an instance 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 auto-assign a public IP address to an instance 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 index of the device on the instance for the network interface
attachment.
|
void |
setGroups(Collection<String> groups)
The IDs of the security groups for the network interface.
|
void |
setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
void |
setPrivateIpAddress(String privateIpAddress)
The private IP address of the network interface.
|
void |
setPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
One or more private IP addresses to assign to the network interface.
|
void |
setSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IP addresses.
|
void |
setSubnetId(String subnetId)
The ID of the subnet associated with the network string.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceNetworkInterfaceSpecification |
withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Indicates whether to auto-assign a public IP address to an instance 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 index of the device on the instance for the network interface
attachment.
|
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 |
withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
InstanceNetworkInterfaceSpecification |
withPrivateIpAddress(String privateIpAddress)
The private IP address of the network interface.
|
InstanceNetworkInterfaceSpecification |
withPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
One or more private IP addresses to assign to the network interface.
|
InstanceNetworkInterfaceSpecification |
withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
One or more private IP addresses to assign to the network interface.
|
InstanceNetworkInterfaceSpecification |
withSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IP addresses.
|
InstanceNetworkInterfaceSpecification |
withSubnetId(String subnetId)
The ID of the subnet associated with the network string.
|
public InstanceNetworkInterfaceSpecification()
public String getNetworkInterfaceId()
public void setNetworkInterfaceId(String networkInterfaceId)
networkInterfaceId
- The ID of the network interface.public InstanceNetworkInterfaceSpecification withNetworkInterfaceId(String networkInterfaceId)
Returns a reference to this object so that method calls can be chained together.
networkInterfaceId
- The ID of the network interface.public Integer getDeviceIndex()
public void setDeviceIndex(Integer deviceIndex)
deviceIndex
- The index of the device on the instance for the network interface
attachment.public InstanceNetworkInterfaceSpecification withDeviceIndex(Integer deviceIndex)
Returns a reference to this object so that method calls can be chained together.
deviceIndex
- The index of the device on the instance for the network interface
attachment.public String getSubnetId()
public void setSubnetId(String subnetId)
subnetId
- The ID of the subnet associated with the network string.public InstanceNetworkInterfaceSpecification withSubnetId(String subnetId)
Returns a reference to this object so that method calls can be chained together.
subnetId
- The ID of the subnet associated with the network string.public String getDescription()
public void setDescription(String description)
description
- The description of the network interface.public InstanceNetworkInterfaceSpecification withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
description
- The description of the network interface.public String getPrivateIpAddress()
public void setPrivateIpAddress(String privateIpAddress)
privateIpAddress
- The private IP address of the network interface.public InstanceNetworkInterfaceSpecification withPrivateIpAddress(String privateIpAddress)
Returns a reference to this object so that method calls can be chained together.
privateIpAddress
- The private IP address of the network interface.public List<String> getGroups()
public void setGroups(Collection<String> groups)
groups
- The IDs of the security groups for the network interface.public InstanceNetworkInterfaceSpecification withGroups(String... groups)
Returns a reference to this object so that method calls can be chained together.
groups
- The IDs of the security groups for the network interface.public InstanceNetworkInterfaceSpecification withGroups(Collection<String> groups)
Returns a reference to this object so that method calls can be chained together.
groups
- The IDs of the security groups for the network interface.public Boolean isDeleteOnTermination()
true
, the interface is deleted when the
instance is terminated.true
, the interface is deleted when the
instance is terminated.public void setDeleteOnTermination(Boolean deleteOnTermination)
true
, the interface is deleted when the
instance is terminated.deleteOnTermination
- If set to true
, the interface is deleted when the
instance is terminated.public InstanceNetworkInterfaceSpecification withDeleteOnTermination(Boolean deleteOnTermination)
true
, the interface is deleted when the
instance is terminated.
Returns a reference to this object so that method calls can be chained together.
deleteOnTermination
- If set to true
, the interface is deleted when the
instance is terminated.public Boolean getDeleteOnTermination()
true
, the interface is deleted when the
instance is terminated.true
, the interface is deleted when the
instance is terminated.public List<PrivateIpAddressSpecification> getPrivateIpAddresses()
public void setPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
privateIpAddresses
- One or more private IP addresses to assign to the network interface.public InstanceNetworkInterfaceSpecification withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
Returns a reference to this object so that method calls can be chained together.
privateIpAddresses
- One or more private IP addresses to assign to the network interface.public InstanceNetworkInterfaceSpecification withPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
Returns a reference to this object so that method calls can be chained together.
privateIpAddresses
- One or more private IP addresses to assign to the network interface.public Integer getSecondaryPrivateIpAddressCount()
public void setSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
secondaryPrivateIpAddressCount
- The number of secondary private IP addresses.public InstanceNetworkInterfaceSpecification withSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
Returns a reference to this object so that method calls can be chained together.
secondaryPrivateIpAddressCount
- The number of secondary private IP addresses.public Boolean isAssociatePublicIpAddress()
public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
associatePublicIpAddress
- Indicates whether to auto-assign a public IP address to an instance in
a VPC. This public IP address can be assigned to the network interface
for eth0 only when you launch the instance. You must create the
network interface instead of using an existing network interface for
eth0, and you must not specify more than one network interface.public InstanceNetworkInterfaceSpecification withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Returns a reference to this object so that method calls can be chained together.
associatePublicIpAddress
- Indicates whether to auto-assign a public IP address to an instance in
a VPC. This public IP address can be assigned to the network interface
for eth0 only when you launch the instance. You must create the
network interface instead of using an existing network interface for
eth0, and you must not specify more than one network interface.public Boolean getAssociatePublicIpAddress()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.