public class NetworkInterface
extends java.lang.Object
implements java.io.Serializable
Describes a network interface.
| Constructor and Description | 
|---|
| NetworkInterface() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(java.lang.Object obj) | 
| NetworkInterfaceAssociation | getAssociation()The association information for an Elastic IP associated with the
 network interface. | 
| NetworkInterfaceAttachment | getAttachment()The network interface attachment. | 
| java.lang.String | getAvailabilityZone()The Availability Zone. | 
| java.lang.String | getDescription()A description. | 
| java.util.List<GroupIdentifier> | getGroups()Any security groups for the network interface. | 
| java.lang.String | getInterfaceType()The type of interface. | 
| java.lang.String | getMacAddress()The MAC address. | 
| java.lang.String | getNetworkInterfaceId()The ID of the network interface. | 
| java.lang.String | getOwnerId()The AWS account ID of the owner of 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<NetworkInterfacePrivateIpAddress> | getPrivateIpAddresses()The private IP addresses associated with the network interface. | 
| java.lang.String | getRequesterId()The ID of the entity that launched the instance on your behalf (for
 example, AWS Management Console or Auto Scaling). | 
| java.lang.Boolean | getRequesterManaged()Indicates whether the network interface is being managed by AWS. | 
| java.lang.Boolean | getSourceDestCheck()Indicates whether traffic to or from the instance is validated. | 
| java.lang.String | getStatus()The status of the network interface. | 
| java.lang.String | getSubnetId()The ID of the subnet. | 
| java.util.List<Tag> | getTagSet()Any tags assigned to the network interface. | 
| java.lang.String | getVpcId()The ID of the VPC. | 
| int | hashCode() | 
| java.lang.Boolean | isRequesterManaged()Indicates whether the network interface is being managed by AWS. | 
| java.lang.Boolean | isSourceDestCheck()Indicates whether traffic to or from the instance is validated. | 
| void | setAssociation(NetworkInterfaceAssociation association)The association information for an Elastic IP associated with the
 network interface. | 
| void | setAttachment(NetworkInterfaceAttachment attachment)The network interface attachment. | 
| void | setAvailabilityZone(java.lang.String availabilityZone)The Availability Zone. | 
| void | setDescription(java.lang.String description)A description. | 
| void | setGroups(java.util.Collection<GroupIdentifier> groups)Any security groups for the network interface. | 
| void | setInterfaceType(NetworkInterfaceType interfaceType)The type of interface. | 
| void | setInterfaceType(java.lang.String interfaceType)The type of interface. | 
| 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 AWS account ID of the owner of 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<NetworkInterfacePrivateIpAddress> privateIpAddresses)The private IP addresses associated with the network interface. | 
| void | setRequesterId(java.lang.String requesterId)The ID of the entity that launched the instance on your behalf (for
 example, AWS Management Console or Auto Scaling). | 
| void | setRequesterManaged(java.lang.Boolean requesterManaged)Indicates whether the network interface is being managed by AWS. | 
| void | setSourceDestCheck(java.lang.Boolean sourceDestCheck)Indicates whether traffic to or from the instance is validated. | 
| 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 | setTagSet(java.util.Collection<Tag> tagSet)Any tags assigned to the network interface. | 
| 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. | 
| NetworkInterface | withAssociation(NetworkInterfaceAssociation association)The association information for an Elastic IP associated with the
 network interface. | 
| NetworkInterface | withAttachment(NetworkInterfaceAttachment attachment)The network interface attachment. | 
| NetworkInterface | withAvailabilityZone(java.lang.String availabilityZone)The Availability Zone. | 
| NetworkInterface | withDescription(java.lang.String description)A description. | 
| NetworkInterface | withGroups(java.util.Collection<GroupIdentifier> groups)Any security groups for the network interface. | 
| NetworkInterface | withGroups(GroupIdentifier... groups)Any security groups for the network interface. | 
| NetworkInterface | withInterfaceType(NetworkInterfaceType interfaceType)The type of interface. | 
| NetworkInterface | withInterfaceType(java.lang.String interfaceType)The type of interface. | 
| NetworkInterface | withMacAddress(java.lang.String macAddress)The MAC address. | 
| NetworkInterface | withNetworkInterfaceId(java.lang.String networkInterfaceId)The ID of the network interface. | 
| NetworkInterface | withOwnerId(java.lang.String ownerId)The AWS account ID of the owner of the network interface. | 
| NetworkInterface | withPrivateDnsName(java.lang.String privateDnsName)The private DNS name. | 
| NetworkInterface | withPrivateIpAddress(java.lang.String privateIpAddress)The IP address of the network interface within the subnet. | 
| NetworkInterface | withPrivateIpAddresses(java.util.Collection<NetworkInterfacePrivateIpAddress> privateIpAddresses)The private IP addresses associated with the network interface. | 
| NetworkInterface | withPrivateIpAddresses(NetworkInterfacePrivateIpAddress... privateIpAddresses)The private IP addresses associated with the network interface. | 
| NetworkInterface | withRequesterId(java.lang.String requesterId)The ID of the entity that launched the instance on your behalf (for
 example, AWS Management Console or Auto Scaling). | 
| NetworkInterface | withRequesterManaged(java.lang.Boolean requesterManaged)Indicates whether the network interface is being managed by AWS. | 
| NetworkInterface | withSourceDestCheck(java.lang.Boolean sourceDestCheck)Indicates whether traffic to or from the instance is validated. | 
| NetworkInterface | withStatus(NetworkInterfaceStatus status)The status of the network interface. | 
| NetworkInterface | withStatus(java.lang.String status)The status of the network interface. | 
| NetworkInterface | withSubnetId(java.lang.String subnetId)The ID of the subnet. | 
| NetworkInterface | withTagSet(java.util.Collection<Tag> tagSet)Any tags assigned to the network interface. | 
| NetworkInterface | withTagSet(Tag... tagSet)Any tags assigned to the network interface. | 
| NetworkInterface | 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 NetworkInterface 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 NetworkInterface 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 NetworkInterface 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 getAvailabilityZone()
public void setAvailabilityZone(java.lang.String availabilityZone)
availabilityZone - The Availability Zone.public NetworkInterface withAvailabilityZone(java.lang.String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone - The Availability Zone.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - A description.public NetworkInterface withDescription(java.lang.String description)
Returns a reference to this object so that method calls can be chained together.
description - A description.public java.lang.String getOwnerId()
public void setOwnerId(java.lang.String ownerId)
ownerId - The AWS account ID of the owner of the network interface.public NetworkInterface withOwnerId(java.lang.String ownerId)
Returns a reference to this object so that method calls can be chained together.
ownerId - The AWS account ID of the owner of the network interface.public java.lang.String getRequesterId()
public void setRequesterId(java.lang.String requesterId)
requesterId - The ID of the entity that launched the instance on your behalf (for
         example, AWS Management Console or Auto Scaling).public NetworkInterface withRequesterId(java.lang.String requesterId)
Returns a reference to this object so that method calls can be chained together.
requesterId - The ID of the entity that launched the instance on your behalf (for
         example, AWS Management Console or Auto Scaling).public java.lang.Boolean isRequesterManaged()
public void setRequesterManaged(java.lang.Boolean requesterManaged)
requesterManaged - Indicates whether the network interface is being managed by AWS.public NetworkInterface withRequesterManaged(java.lang.Boolean requesterManaged)
Returns a reference to this object so that method calls can be chained together.
requesterManaged - Indicates whether the network interface is being managed by AWS.public java.lang.Boolean getRequesterManaged()
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 NetworkInterface 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 NetworkInterface 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 NetworkInterface 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 NetworkInterface 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 NetworkInterface 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 traffic to or from the instance is validated.public NetworkInterface withSourceDestCheck(java.lang.Boolean sourceDestCheck)
Returns a reference to this object so that method calls can be chained together.
sourceDestCheck - Indicates whether traffic to or from the instance is validated.public java.lang.Boolean getSourceDestCheck()
public java.util.List<GroupIdentifier> getGroups()
public void setGroups(java.util.Collection<GroupIdentifier> groups)
groups - Any security groups for the network interface.public NetworkInterface withGroups(GroupIdentifier... groups)
Returns a reference to this object so that method calls can be chained together.
groups - Any security groups for the network interface.public NetworkInterface withGroups(java.util.Collection<GroupIdentifier> groups)
Returns a reference to this object so that method calls can be chained together.
groups - Any security groups for the network interface.public NetworkInterfaceAttachment getAttachment()
public void setAttachment(NetworkInterfaceAttachment attachment)
attachment - The network interface attachment.public NetworkInterface withAttachment(NetworkInterfaceAttachment attachment)
Returns a reference to this object so that method calls can be chained together.
attachment - The network interface attachment.public NetworkInterfaceAssociation getAssociation()
public void setAssociation(NetworkInterfaceAssociation association)
association - The association information for an Elastic IP associated with the
         network interface.public NetworkInterface withAssociation(NetworkInterfaceAssociation 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<Tag> getTagSet()
public void setTagSet(java.util.Collection<Tag> tagSet)
tagSet - Any tags assigned to the network interface.public NetworkInterface withTagSet(Tag... tagSet)
Returns a reference to this object so that method calls can be chained together.
tagSet - Any tags assigned to the network interface.public NetworkInterface withTagSet(java.util.Collection<Tag> tagSet)
Returns a reference to this object so that method calls can be chained together.
tagSet - Any tags assigned to the network interface.public java.util.List<NetworkInterfacePrivateIpAddress> getPrivateIpAddresses()
public void setPrivateIpAddresses(java.util.Collection<NetworkInterfacePrivateIpAddress> privateIpAddresses)
privateIpAddresses - The private IP addresses associated with the network interface.public NetworkInterface withPrivateIpAddresses(NetworkInterfacePrivateIpAddress... 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 NetworkInterface withPrivateIpAddresses(java.util.Collection<NetworkInterfacePrivateIpAddress> 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 getInterfaceType()
 Constraints:
 Allowed Values: interface, natGateway
NetworkInterfaceTypepublic void setInterfaceType(java.lang.String interfaceType)
 Constraints:
 Allowed Values: interface, natGateway
interfaceType - The type of interface.NetworkInterfaceTypepublic NetworkInterface withInterfaceType(java.lang.String interfaceType)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: interface, natGateway
interfaceType - The type of interface.NetworkInterfaceTypepublic void setInterfaceType(NetworkInterfaceType interfaceType)
 Constraints:
 Allowed Values: interface, natGateway
interfaceType - The type of interface.NetworkInterfaceTypepublic NetworkInterface withInterfaceType(NetworkInterfaceType interfaceType)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: interface, natGateway
interfaceType - The type of interface.NetworkInterfaceTypepublic 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