public class InstanceNetworkInterface
extends java.lang.Object
implements java.io.Serializable
Describes a network interface.
| Constructor and Description | 
|---|
| InstanceNetworkInterface() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(java.lang.Object obj) | 
| InstanceNetworkInterfaceAssociation | getAssociation()The association information for an Elastic IP associated with the
 network interface. | 
| InstanceNetworkInterfaceAttachment | getAttachment()The network interface attachment. | 
| java.lang.String | getDescription()The description. | 
| java.util.List<GroupIdentifier> | getGroups()One or more security groups. | 
| java.lang.String | getMacAddress()The MAC address. | 
| java.lang.String | getNetworkInterfaceId()The ID of the network interface. | 
| java.lang.String | getOwnerId()The ID of the AWS account that created the network interface. | 
| java.lang.String | getPrivateDnsName()The private DNS name. | 
| java.lang.String | getPrivateIpAddress()The IP address of the network interface within the subnet. | 
| java.util.List<InstancePrivateIpAddress> | getPrivateIpAddresses()The private IP addresses associated with the network interface. | 
| java.lang.Boolean | getSourceDestCheck()Indicates whether to validate network traffic to or from this network
 interface. | 
| java.lang.String | getStatus()The status of the network interface. | 
| java.lang.String | getSubnetId()The ID of the subnet. | 
| java.lang.String | getVpcId()The ID of the VPC. | 
| int | hashCode() | 
| java.lang.Boolean | isSourceDestCheck()Indicates whether to validate network traffic to or from this network
 interface. | 
| void | setAssociation(InstanceNetworkInterfaceAssociation association)The association information for an Elastic IP associated with the
 network interface. | 
| void | setAttachment(InstanceNetworkInterfaceAttachment attachment)The network interface attachment. | 
| void | setDescription(java.lang.String description)The description. | 
| void | setGroups(java.util.Collection<GroupIdentifier> groups)One or more security groups. | 
| void | setMacAddress(java.lang.String macAddress)The MAC address. | 
| void | setNetworkInterfaceId(java.lang.String networkInterfaceId)The ID of the network interface. | 
| void | setOwnerId(java.lang.String ownerId)The ID of the AWS account that created the network interface. | 
| void | setPrivateDnsName(java.lang.String privateDnsName)The private DNS name. | 
| void | setPrivateIpAddress(java.lang.String privateIpAddress)The IP address of the network interface within the subnet. | 
| void | setPrivateIpAddresses(java.util.Collection<InstancePrivateIpAddress> privateIpAddresses)The private IP addresses associated with the network interface. | 
| void | setSourceDestCheck(java.lang.Boolean sourceDestCheck)Indicates whether to validate network traffic to or from this network
 interface. | 
| void | setStatus(NetworkInterfaceStatus status)The status of the network interface. | 
| void | setStatus(java.lang.String status)The status of the network interface. | 
| void | setSubnetId(java.lang.String subnetId)The ID of the subnet. | 
| void | setVpcId(java.lang.String vpcId)The ID of the VPC. | 
| java.lang.String | toString()Returns a string representation of this object; useful for testing and
 debugging. | 
| InstanceNetworkInterface | withAssociation(InstanceNetworkInterfaceAssociation association)The association information for an Elastic IP associated with the
 network interface. | 
| InstanceNetworkInterface | withAttachment(InstanceNetworkInterfaceAttachment attachment)The network interface attachment. | 
| InstanceNetworkInterface | withDescription(java.lang.String description)The description. | 
| InstanceNetworkInterface | withGroups(java.util.Collection<GroupIdentifier> groups)One or more security groups. | 
| InstanceNetworkInterface | withGroups(GroupIdentifier... groups)One or more security groups. | 
| InstanceNetworkInterface | withMacAddress(java.lang.String macAddress)The MAC address. | 
| InstanceNetworkInterface | withNetworkInterfaceId(java.lang.String networkInterfaceId)The ID of the network interface. | 
| InstanceNetworkInterface | withOwnerId(java.lang.String ownerId)The ID of the AWS account that created the network interface. | 
| InstanceNetworkInterface | withPrivateDnsName(java.lang.String privateDnsName)The private DNS name. | 
| InstanceNetworkInterface | withPrivateIpAddress(java.lang.String privateIpAddress)The IP address of the network interface within the subnet. | 
| InstanceNetworkInterface | withPrivateIpAddresses(java.util.Collection<InstancePrivateIpAddress> privateIpAddresses)The private IP addresses associated with the network interface. | 
| InstanceNetworkInterface | withPrivateIpAddresses(InstancePrivateIpAddress... privateIpAddresses)The private IP addresses associated with the network interface. | 
| InstanceNetworkInterface | withSourceDestCheck(java.lang.Boolean sourceDestCheck)Indicates whether to validate network traffic to or from this network
 interface. | 
| InstanceNetworkInterface | withStatus(NetworkInterfaceStatus status)The status of the network interface. | 
| InstanceNetworkInterface | withStatus(java.lang.String status)The status of the network interface. | 
| InstanceNetworkInterface | withSubnetId(java.lang.String subnetId)The ID of the subnet. | 
| InstanceNetworkInterface | withVpcId(java.lang.String vpcId)The ID of the VPC. | 
public java.lang.String getNetworkInterfaceId()
public void setNetworkInterfaceId(java.lang.String networkInterfaceId)
networkInterfaceId - The ID of the network interface.public InstanceNetworkInterface withNetworkInterfaceId(java.lang.String networkInterfaceId)
Returns a reference to this object so that method calls can be chained together.
networkInterfaceId - The ID of the network interface.public java.lang.String getSubnetId()
public void setSubnetId(java.lang.String subnetId)
subnetId - The ID of the subnet.public InstanceNetworkInterface withSubnetId(java.lang.String subnetId)
Returns a reference to this object so that method calls can be chained together.
subnetId - The ID of the subnet.public java.lang.String getVpcId()
public void setVpcId(java.lang.String vpcId)
vpcId - The ID of the VPC.public InstanceNetworkInterface withVpcId(java.lang.String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId - The ID of the VPC.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - The description.public InstanceNetworkInterface withDescription(java.lang.String description)
Returns a reference to this object so that method calls can be chained together.
description - The description.public java.lang.String getOwnerId()
public void setOwnerId(java.lang.String ownerId)
ownerId - The ID of the AWS account that created the network interface.public InstanceNetworkInterface withOwnerId(java.lang.String ownerId)
Returns a reference to this object so that method calls can be chained together.
ownerId - The ID of the AWS account that created the network interface.public java.lang.String getStatus()
 Constraints:
 Allowed Values: available, attaching, in-use, detaching
NetworkInterfaceStatuspublic void setStatus(java.lang.String status)
 Constraints:
 Allowed Values: available, attaching, in-use, detaching
status - The status of the network interface.NetworkInterfaceStatuspublic InstanceNetworkInterface withStatus(java.lang.String status)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: available, attaching, in-use, detaching
status - The status of the network interface.NetworkInterfaceStatuspublic void setStatus(NetworkInterfaceStatus status)
 Constraints:
 Allowed Values: available, attaching, in-use, detaching
status - The status of the network interface.NetworkInterfaceStatuspublic InstanceNetworkInterface withStatus(NetworkInterfaceStatus status)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: available, attaching, in-use, detaching
status - The status of the network interface.NetworkInterfaceStatuspublic java.lang.String getMacAddress()
public void setMacAddress(java.lang.String macAddress)
macAddress - The MAC address.public InstanceNetworkInterface withMacAddress(java.lang.String macAddress)
Returns a reference to this object so that method calls can be chained together.
macAddress - The MAC address.public java.lang.String getPrivateIpAddress()
public void setPrivateIpAddress(java.lang.String privateIpAddress)
privateIpAddress - The IP address of the network interface within the subnet.public InstanceNetworkInterface withPrivateIpAddress(java.lang.String privateIpAddress)
Returns a reference to this object so that method calls can be chained together.
privateIpAddress - The IP address of the network interface within the subnet.public java.lang.String getPrivateDnsName()
public void setPrivateDnsName(java.lang.String privateDnsName)
privateDnsName - The private DNS name.public InstanceNetworkInterface withPrivateDnsName(java.lang.String privateDnsName)
Returns a reference to this object so that method calls can be chained together.
privateDnsName - The private DNS name.public java.lang.Boolean isSourceDestCheck()
public void setSourceDestCheck(java.lang.Boolean sourceDestCheck)
sourceDestCheck - Indicates whether to validate network traffic to or from this network
         interface.public InstanceNetworkInterface withSourceDestCheck(java.lang.Boolean sourceDestCheck)
Returns a reference to this object so that method calls can be chained together.
sourceDestCheck - Indicates whether to validate network traffic to or from this network
         interface.public java.lang.Boolean getSourceDestCheck()
public java.util.List<GroupIdentifier> getGroups()
public void setGroups(java.util.Collection<GroupIdentifier> groups)
groups - One or more security groups.public InstanceNetworkInterface withGroups(GroupIdentifier... groups)
Returns a reference to this object so that method calls can be chained together.
groups - One or more security groups.public InstanceNetworkInterface withGroups(java.util.Collection<GroupIdentifier> groups)
Returns a reference to this object so that method calls can be chained together.
groups - One or more security groups.public InstanceNetworkInterfaceAttachment getAttachment()
public void setAttachment(InstanceNetworkInterfaceAttachment attachment)
attachment - The network interface attachment.public InstanceNetworkInterface withAttachment(InstanceNetworkInterfaceAttachment attachment)
Returns a reference to this object so that method calls can be chained together.
attachment - The network interface attachment.public InstanceNetworkInterfaceAssociation getAssociation()
public void setAssociation(InstanceNetworkInterfaceAssociation association)
association - The association information for an Elastic IP associated with the
         network interface.public InstanceNetworkInterface withAssociation(InstanceNetworkInterfaceAssociation association)
Returns a reference to this object so that method calls can be chained together.
association - The association information for an Elastic IP associated with the
         network interface.public java.util.List<InstancePrivateIpAddress> getPrivateIpAddresses()
public void setPrivateIpAddresses(java.util.Collection<InstancePrivateIpAddress> privateIpAddresses)
privateIpAddresses - The private IP addresses associated with the network interface.public InstanceNetworkInterface withPrivateIpAddresses(InstancePrivateIpAddress... privateIpAddresses)
Returns a reference to this object so that method calls can be chained together.
privateIpAddresses - The private IP addresses associated with the network interface.public InstanceNetworkInterface withPrivateIpAddresses(java.util.Collection<InstancePrivateIpAddress> privateIpAddresses)
Returns a reference to this object so that method calls can be chained together.
privateIpAddresses - The private IP addresses associated with the network interface.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object