com.amazonaws.services.ec2.model
Class InstanceNetworkInterface

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

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

Describes a network interface.

See Also:
Serialized Form

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

Constructor Detail

InstanceNetworkInterface

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

getDescription

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

Returns:
The description.

setDescription

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

Parameters:
description - The description.

withDescription

public InstanceNetworkInterface withDescription(java.lang.String description)
The description.

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

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

getOwnerId

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

Returns:
The ID of the AWS account that created the network interface.

setOwnerId

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

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

withOwnerId

public InstanceNetworkInterface withOwnerId(java.lang.String ownerId)
The ID of the AWS account that created the network interface.

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

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

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 InstanceNetworkInterface 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 InstanceNetworkInterface 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

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 InstanceNetworkInterface 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 InstanceNetworkInterface 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 to validate network traffic to or from this network interface.

Returns:
Indicates whether to validate network traffic to or from this network interface.

setSourceDestCheck

public void setSourceDestCheck(java.lang.Boolean sourceDestCheck)
Indicates whether to validate network traffic to or from this network interface.

Parameters:
sourceDestCheck - Indicates whether to validate network traffic to or from this network interface.

withSourceDestCheck

public InstanceNetworkInterface withSourceDestCheck(java.lang.Boolean sourceDestCheck)
Indicates whether to validate network traffic to or from this network interface.

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

Parameters:
sourceDestCheck - Indicates whether to validate network traffic to or from this network interface.
Returns:
A reference to this updated object so that method calls can be chained together.

getSourceDestCheck

public java.lang.Boolean getSourceDestCheck()
Indicates whether to validate network traffic to or from this network interface.

Returns:
Indicates whether to validate network traffic to or from this network interface.

getGroups

public java.util.List<GroupIdentifier> getGroups()
One or more security groups.

Returns:
One or more security groups.

setGroups

public void setGroups(java.util.Collection<GroupIdentifier> groups)
One or more security groups.

Parameters:
groups - One or more security groups.

withGroups

public InstanceNetworkInterface withGroups(GroupIdentifier... groups)
One or more security groups.

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

Parameters:
groups - One or more security groups.
Returns:
A reference to this updated object so that method calls can be chained together.

withGroups

public InstanceNetworkInterface withGroups(java.util.Collection<GroupIdentifier> groups)
One or more security groups.

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

Parameters:
groups - One or more security groups.
Returns:
A reference to this updated object so that method calls can be chained together.

getAttachment

public InstanceNetworkInterfaceAttachment getAttachment()
The network interface attachment.

Returns:
The network interface attachment.

setAttachment

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

Parameters:
attachment - The network interface attachment.

withAttachment

public InstanceNetworkInterface withAttachment(InstanceNetworkInterfaceAttachment 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 InstanceNetworkInterfaceAssociation 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(InstanceNetworkInterfaceAssociation 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 InstanceNetworkInterface withAssociation(InstanceNetworkInterfaceAssociation 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.

getPrivateIpAddresses

public java.util.List<InstancePrivateIpAddress> 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<InstancePrivateIpAddress> privateIpAddresses)
The private IP addresses associated with the network interface.

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

withPrivateIpAddresses

public InstanceNetworkInterface withPrivateIpAddresses(InstancePrivateIpAddress... 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 InstanceNetworkInterface withPrivateIpAddresses(java.util.Collection<InstancePrivateIpAddress> 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.