com.amazonaws.services.ec2.model
Class NetworkInterface

java.lang.Object
  extended by com.amazonaws.services.ec2.model.NetworkInterface
All Implemented Interfaces:
java.io.Serializable

public class NetworkInterface
extends java.lang.Object
implements java.io.Serializable

Describes a network interface.

See Also:
Serialized Form

Constructor Summary
NetworkInterface()
           
 
Method Summary
 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 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 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 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetworkInterface

public NetworkInterface()
Method Detail

getNetworkInterfaceId

public java.lang.String getNetworkInterfaceId()
The ID of the network interface.

Returns:
The ID of the network interface.

setNetworkInterfaceId

public void setNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.

Parameters:
networkInterfaceId - The ID of the network interface.

withNetworkInterfaceId

public NetworkInterface withNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.

Returns a reference to this object so that method calls can be chained together.

Parameters:
networkInterfaceId - The ID of the network interface.
Returns:
A reference to this updated object so that method calls can be chained together.

getSubnetId

public java.lang.String getSubnetId()
The ID of the subnet.

Returns:
The ID of the subnet.

setSubnetId

public void setSubnetId(java.lang.String subnetId)
The ID of the subnet.

Parameters:
subnetId - The ID of the subnet.

withSubnetId

public NetworkInterface withSubnetId(java.lang.String subnetId)
The ID of the subnet.

Returns a reference to this object so that method calls can be chained together.

Parameters:
subnetId - The ID of the subnet.
Returns:
A reference to this updated object so that method calls can be chained together.

getVpcId

public java.lang.String getVpcId()
The ID of the VPC.

Returns:
The ID of the VPC.

setVpcId

public void setVpcId(java.lang.String vpcId)
The ID of the VPC.

Parameters:
vpcId - The ID of the VPC.

withVpcId

public NetworkInterface withVpcId(java.lang.String vpcId)
The ID of the VPC.

Returns a reference to this object so that method calls can be chained together.

Parameters:
vpcId - The ID of the VPC.
Returns:
A reference to this updated object so that method calls can be chained together.

getAvailabilityZone

public java.lang.String getAvailabilityZone()
The Availability Zone.

Returns:
The Availability Zone.

setAvailabilityZone

public void setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone.

Parameters:
availabilityZone - The Availability Zone.

withAvailabilityZone

public NetworkInterface withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone.

Returns a reference to this object so that method calls can be chained together.

Parameters:
availabilityZone - The Availability Zone.
Returns:
A reference to this updated object so that method calls can be chained together.

getDescription

public java.lang.String getDescription()
A description.

Returns:
A description.

setDescription

public void setDescription(java.lang.String description)
A description.

Parameters:
description - A description.

withDescription

public NetworkInterface withDescription(java.lang.String description)
A description.

Returns a reference to this object so that method calls can be chained together.

Parameters:
description - A description.
Returns:
A reference to this updated object so that method calls can be chained together.

getOwnerId

public java.lang.String getOwnerId()
The AWS account ID of the owner of the network interface.

Returns:
The AWS account ID of the owner of the network interface.

setOwnerId

public void setOwnerId(java.lang.String ownerId)
The AWS account ID of the owner of the network interface.

Parameters:
ownerId - The AWS account ID of the owner of the network interface.

withOwnerId

public NetworkInterface withOwnerId(java.lang.String ownerId)
The AWS account ID of the owner of the network interface.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ownerId - The AWS account ID of the owner of the network interface.
Returns:
A reference to this updated object so that method calls can be chained together.

getRequesterId

public java.lang.String getRequesterId()
The ID of the entity that launched the instance on your behalf (for example, AWS Management Console or Auto Scaling).

Returns:
The ID of the entity that launched the instance on your behalf (for example, AWS Management Console or Auto Scaling).

setRequesterId

public 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).

Parameters:
requesterId - The ID of the entity that launched the instance on your behalf (for example, AWS Management Console or Auto Scaling).

withRequesterId

public 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).

Returns a reference to this object so that method calls can be chained together.

Parameters:
requesterId - The ID of the entity that launched the instance on your behalf (for example, AWS Management Console or Auto Scaling).
Returns:
A reference to this updated object so that method calls can be chained together.

isRequesterManaged

public java.lang.Boolean isRequesterManaged()
Indicates whether the network interface is being managed by AWS.

Returns:
Indicates whether the network interface is being managed by AWS.

setRequesterManaged

public void setRequesterManaged(java.lang.Boolean requesterManaged)
Indicates whether the network interface is being managed by AWS.

Parameters:
requesterManaged - Indicates whether the network interface is being managed by AWS.

withRequesterManaged

public NetworkInterface withRequesterManaged(java.lang.Boolean requesterManaged)
Indicates whether the network interface is being managed by AWS.

Returns a reference to this object so that method calls can be chained together.

Parameters:
requesterManaged - Indicates whether the network interface is being managed by AWS.
Returns:
A reference to this updated object so that method calls can be chained together.

getRequesterManaged

public java.lang.Boolean getRequesterManaged()
Indicates whether the network interface is being managed by AWS.

Returns:
Indicates whether the network interface is being managed by AWS.

getStatus

public java.lang.String getStatus()
The status of the network interface.

Constraints:
Allowed Values: available, attaching, in-use, detaching

Returns:
The status of the network interface.
See Also:
NetworkInterfaceStatus

setStatus

public void setStatus(java.lang.String status)
The status of the network interface.

Constraints:
Allowed Values: available, attaching, in-use, detaching

Parameters:
status - The status of the network interface.
See Also:
NetworkInterfaceStatus

withStatus

public NetworkInterface withStatus(java.lang.String status)
The status of the network interface.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: available, attaching, in-use, detaching

Parameters:
status - The status of the network interface.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
NetworkInterfaceStatus

setStatus

public void setStatus(NetworkInterfaceStatus status)
The status of the network interface.

Constraints:
Allowed Values: available, attaching, in-use, detaching

Parameters:
status - The status of the network interface.
See Also:
NetworkInterfaceStatus

withStatus

public NetworkInterface withStatus(NetworkInterfaceStatus status)
The status of the network interface.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: available, attaching, in-use, detaching

Parameters:
status - The status of the network interface.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
NetworkInterfaceStatus

getMacAddress

public java.lang.String getMacAddress()
The MAC address.

Returns:
The MAC address.

setMacAddress

public void setMacAddress(java.lang.String macAddress)
The MAC address.

Parameters:
macAddress - The MAC address.

withMacAddress

public NetworkInterface withMacAddress(java.lang.String macAddress)
The MAC address.

Returns a reference to this object so that method calls can be chained together.

Parameters:
macAddress - The MAC address.
Returns:
A reference to this updated object so that method calls can be chained together.

getPrivateIpAddress

public java.lang.String getPrivateIpAddress()
The IP address of the network interface within the subnet.

Returns:
The IP address of the network interface within the subnet.

setPrivateIpAddress

public void setPrivateIpAddress(java.lang.String privateIpAddress)
The IP address of the network interface within the subnet.

Parameters:
privateIpAddress - The IP address of the network interface within the subnet.

withPrivateIpAddress

public NetworkInterface withPrivateIpAddress(java.lang.String privateIpAddress)
The IP address of the network interface within the subnet.

Returns a reference to this object so that method calls can be chained together.

Parameters:
privateIpAddress - The IP address of the network interface within the subnet.
Returns:
A reference to this updated object so that method calls can be chained together.

getPrivateDnsName

public java.lang.String getPrivateDnsName()
The private DNS name.

Returns:
The private DNS name.

setPrivateDnsName

public void setPrivateDnsName(java.lang.String privateDnsName)
The private DNS name.

Parameters:
privateDnsName - The private DNS name.

withPrivateDnsName

public NetworkInterface withPrivateDnsName(java.lang.String privateDnsName)
The private DNS name.

Returns a reference to this object so that method calls can be chained together.

Parameters:
privateDnsName - The private DNS name.
Returns:
A reference to this updated object so that method calls can be chained together.

isSourceDestCheck

public java.lang.Boolean isSourceDestCheck()
Indicates whether traffic to or from the instance is validated.

Returns:
Indicates whether traffic to or from the instance is validated.

setSourceDestCheck

public void setSourceDestCheck(java.lang.Boolean sourceDestCheck)
Indicates whether traffic to or from the instance is validated.

Parameters:
sourceDestCheck - Indicates whether traffic to or from the instance is validated.

withSourceDestCheck

public NetworkInterface withSourceDestCheck(java.lang.Boolean sourceDestCheck)
Indicates whether traffic to or from the instance is validated.

Returns a reference to this object so that method calls can be chained together.

Parameters:
sourceDestCheck - Indicates whether traffic to or from the instance is validated.
Returns:
A reference to this updated object so that method calls can be chained together.

getSourceDestCheck

public java.lang.Boolean getSourceDestCheck()
Indicates whether traffic to or from the instance is validated.

Returns:
Indicates whether traffic to or from the instance is validated.

getGroups

public java.util.List<GroupIdentifier> getGroups()
Any security groups for the network interface.

Returns:
Any security groups for the network interface.

setGroups

public void setGroups(java.util.Collection<GroupIdentifier> groups)
Any security groups for the network interface.

Parameters:
groups - Any security groups for the network interface.

withGroups

public NetworkInterface withGroups(GroupIdentifier... groups)
Any security groups for the network interface.

Returns a reference to this object so that method calls can be chained together.

Parameters:
groups - Any security groups for the network interface.
Returns:
A reference to this updated object so that method calls can be chained together.

withGroups

public NetworkInterface withGroups(java.util.Collection<GroupIdentifier> groups)
Any security groups for the network interface.

Returns a reference to this object so that method calls can be chained together.

Parameters:
groups - Any security groups for the network interface.
Returns:
A reference to this updated object so that method calls can be chained together.

getAttachment

public NetworkInterfaceAttachment getAttachment()
The network interface attachment.

Returns:
The network interface attachment.

setAttachment

public void setAttachment(NetworkInterfaceAttachment attachment)
The network interface attachment.

Parameters:
attachment - The network interface attachment.

withAttachment

public NetworkInterface withAttachment(NetworkInterfaceAttachment attachment)
The network interface attachment.

Returns a reference to this object so that method calls can be chained together.

Parameters:
attachment - The network interface attachment.
Returns:
A reference to this updated object so that method calls can be chained together.

getAssociation

public NetworkInterfaceAssociation getAssociation()
The association information for an Elastic IP associated with the network interface.

Returns:
The association information for an Elastic IP associated with the network interface.

setAssociation

public void setAssociation(NetworkInterfaceAssociation association)
The association information for an Elastic IP associated with the network interface.

Parameters:
association - The association information for an Elastic IP associated with the network interface.

withAssociation

public NetworkInterface withAssociation(NetworkInterfaceAssociation association)
The association information for an Elastic IP associated with the network interface.

Returns a reference to this object so that method calls can be chained together.

Parameters:
association - The association information for an Elastic IP associated with the network interface.
Returns:
A reference to this updated object so that method calls can be chained together.

getTagSet

public java.util.List<Tag> getTagSet()
Any tags assigned to the network interface.

Returns:
Any tags assigned to the network interface.

setTagSet

public void setTagSet(java.util.Collection<Tag> tagSet)
Any tags assigned to the network interface.

Parameters:
tagSet - Any tags assigned to the network interface.

withTagSet

public NetworkInterface withTagSet(Tag... tagSet)
Any tags assigned to the network interface.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tagSet - Any tags assigned to the network interface.
Returns:
A reference to this updated object so that method calls can be chained together.

withTagSet

public NetworkInterface withTagSet(java.util.Collection<Tag> tagSet)
Any tags assigned to the network interface.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tagSet - Any tags assigned to the network interface.
Returns:
A reference to this updated object so that method calls can be chained together.

getPrivateIpAddresses

public java.util.List<NetworkInterfacePrivateIpAddress> getPrivateIpAddresses()
The private IP addresses associated with the network interface.

Returns:
The private IP addresses associated with the network interface.

setPrivateIpAddresses

public void setPrivateIpAddresses(java.util.Collection<NetworkInterfacePrivateIpAddress> privateIpAddresses)
The private IP addresses associated with the network interface.

Parameters:
privateIpAddresses - The private IP addresses associated with the network interface.

withPrivateIpAddresses

public NetworkInterface withPrivateIpAddresses(NetworkInterfacePrivateIpAddress... privateIpAddresses)
The private IP addresses associated with the network interface.

Returns a reference to this object so that method calls can be chained together.

Parameters:
privateIpAddresses - The private IP addresses associated with the network interface.
Returns:
A reference to this updated object so that method calls can be chained together.

withPrivateIpAddresses

public NetworkInterface withPrivateIpAddresses(java.util.Collection<NetworkInterfacePrivateIpAddress> privateIpAddresses)
The private IP addresses associated with the network interface.

Returns a reference to this object so that method calls can be chained together.

Parameters:
privateIpAddresses - The private IP addresses associated with the network interface.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.