public class NetworkInterface extends Object implements Serializable
Describes a network interface.
Constructor and Description |
---|
NetworkInterface() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
NetworkInterfaceAssociation |
getAssociation()
The association information for an Elastic IP associated with the
network interface.
|
NetworkInterfaceAttachment |
getAttachment()
The network interface attachment.
|
String |
getAvailabilityZone()
The Availability Zone.
|
String |
getDescription()
A description.
|
List<GroupIdentifier> |
getGroups()
Any security groups for the network interface.
|
String |
getMacAddress()
The MAC address.
|
String |
getNetworkInterfaceId()
The ID of the network interface.
|
String |
getOwnerId()
The AWS account ID of the owner of the network interface.
|
String |
getPrivateDnsName()
The private DNS name.
|
String |
getPrivateIpAddress()
The IP address of the network interface within the subnet.
|
List<NetworkInterfacePrivateIpAddress> |
getPrivateIpAddresses()
The private IP addresses associated with the network interface.
|
String |
getRequesterId()
The ID of the entity that launched the instance on your behalf (for
example, AWS Management Console or Auto Scaling).
|
Boolean |
getRequesterManaged()
Indicates whether the network interface is being managed by AWS.
|
Boolean |
getSourceDestCheck()
Indicates whether traffic to or from the instance is validated.
|
String |
getStatus()
The status of the network interface.
|
String |
getSubnetId()
The ID of the subnet.
|
List<Tag> |
getTagSet()
Any tags assigned to the network interface.
|
String |
getVpcId()
The ID of the VPC.
|
int |
hashCode() |
Boolean |
isRequesterManaged()
Indicates whether the network interface is being managed by AWS.
|
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(String availabilityZone)
The Availability Zone.
|
void |
setDescription(String description)
A description.
|
void |
setGroups(Collection<GroupIdentifier> groups)
Any security groups for the network interface.
|
void |
setMacAddress(String macAddress)
The MAC address.
|
void |
setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
void |
setOwnerId(String ownerId)
The AWS account ID of the owner of the network interface.
|
void |
setPrivateDnsName(String privateDnsName)
The private DNS name.
|
void |
setPrivateIpAddress(String privateIpAddress)
The IP address of the network interface within the subnet.
|
void |
setPrivateIpAddresses(Collection<NetworkInterfacePrivateIpAddress> privateIpAddresses)
The private IP addresses associated with the network interface.
|
void |
setRequesterId(String requesterId)
The ID of the entity that launched the instance on your behalf (for
example, AWS Management Console or Auto Scaling).
|
void |
setRequesterManaged(Boolean requesterManaged)
Indicates whether the network interface is being managed by AWS.
|
void |
setSourceDestCheck(Boolean sourceDestCheck)
Indicates whether traffic to or from the instance is validated.
|
void |
setStatus(NetworkInterfaceStatus status)
The status of the network interface.
|
void |
setStatus(String status)
The status of the network interface.
|
void |
setSubnetId(String subnetId)
The ID of the subnet.
|
void |
setTagSet(Collection<Tag> tagSet)
Any tags assigned to the network interface.
|
void |
setVpcId(String vpcId)
The ID of the VPC.
|
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(String availabilityZone)
The Availability Zone.
|
NetworkInterface |
withDescription(String description)
A description.
|
NetworkInterface |
withGroups(Collection<GroupIdentifier> groups)
Any security groups for the network interface.
|
NetworkInterface |
withGroups(GroupIdentifier... groups)
Any security groups for the network interface.
|
NetworkInterface |
withMacAddress(String macAddress)
The MAC address.
|
NetworkInterface |
withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
NetworkInterface |
withOwnerId(String ownerId)
The AWS account ID of the owner of the network interface.
|
NetworkInterface |
withPrivateDnsName(String privateDnsName)
The private DNS name.
|
NetworkInterface |
withPrivateIpAddress(String privateIpAddress)
The IP address of the network interface within the subnet.
|
NetworkInterface |
withPrivateIpAddresses(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(String requesterId)
The ID of the entity that launched the instance on your behalf (for
example, AWS Management Console or Auto Scaling).
|
NetworkInterface |
withRequesterManaged(Boolean requesterManaged)
Indicates whether the network interface is being managed by AWS.
|
NetworkInterface |
withSourceDestCheck(Boolean sourceDestCheck)
Indicates whether traffic to or from the instance is validated.
|
NetworkInterface |
withStatus(NetworkInterfaceStatus status)
The status of the network interface.
|
NetworkInterface |
withStatus(String status)
The status of the network interface.
|
NetworkInterface |
withSubnetId(String subnetId)
The ID of the subnet.
|
NetworkInterface |
withTagSet(Collection<Tag> tagSet)
Any tags assigned to the network interface.
|
NetworkInterface |
withTagSet(Tag... tagSet)
Any tags assigned to the network interface.
|
NetworkInterface |
withVpcId(String vpcId)
The ID of the VPC.
|
public String getNetworkInterfaceId()
public void setNetworkInterfaceId(String networkInterfaceId)
networkInterfaceId
- The ID of the network interface.public NetworkInterface 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 String getSubnetId()
public void setSubnetId(String subnetId)
subnetId
- The ID of the subnet.public NetworkInterface withSubnetId(String subnetId)
Returns a reference to this object so that method calls can be chained together.
subnetId
- The ID of the subnet.public String getVpcId()
public void setVpcId(String vpcId)
vpcId
- The ID of the VPC.public NetworkInterface withVpcId(String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId
- The ID of the VPC.public String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
availabilityZone
- The Availability Zone.public NetworkInterface withAvailabilityZone(String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- The Availability Zone.public String getDescription()
public void setDescription(String description)
description
- A description.public NetworkInterface withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
description
- A description.public String getOwnerId()
public void setOwnerId(String ownerId)
ownerId
- The AWS account ID of the owner of the network interface.public NetworkInterface withOwnerId(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 String getRequesterId()
public void setRequesterId(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(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 Boolean isRequesterManaged()
public void setRequesterManaged(Boolean requesterManaged)
requesterManaged
- Indicates whether the network interface is being managed by AWS.public NetworkInterface withRequesterManaged(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 Boolean getRequesterManaged()
public String getStatus()
Constraints:
Allowed Values: available, attaching, in-use, detaching
NetworkInterfaceStatus
public void setStatus(String status)
Constraints:
Allowed Values: available, attaching, in-use, detaching
status
- The status of the network interface.NetworkInterfaceStatus
public NetworkInterface withStatus(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.NetworkInterfaceStatus
public void setStatus(NetworkInterfaceStatus status)
Constraints:
Allowed Values: available, attaching, in-use, detaching
status
- The status of the network interface.NetworkInterfaceStatus
public 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.NetworkInterfaceStatus
public String getMacAddress()
public void setMacAddress(String macAddress)
macAddress
- The MAC address.public NetworkInterface withMacAddress(String macAddress)
Returns a reference to this object so that method calls can be chained together.
macAddress
- The MAC address.public String getPrivateIpAddress()
public void setPrivateIpAddress(String privateIpAddress)
privateIpAddress
- The IP address of the network interface within the subnet.public NetworkInterface withPrivateIpAddress(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 String getPrivateDnsName()
public void setPrivateDnsName(String privateDnsName)
privateDnsName
- The private DNS name.public NetworkInterface withPrivateDnsName(String privateDnsName)
Returns a reference to this object so that method calls can be chained together.
privateDnsName
- The private DNS name.public Boolean isSourceDestCheck()
public void setSourceDestCheck(Boolean sourceDestCheck)
sourceDestCheck
- Indicates whether traffic to or from the instance is validated.public NetworkInterface withSourceDestCheck(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 Boolean getSourceDestCheck()
public List<GroupIdentifier> getGroups()
public void setGroups(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(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 List<Tag> getTagSet()
public void setTagSet(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(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 List<NetworkInterfacePrivateIpAddress> getPrivateIpAddresses()
public void setPrivateIpAddresses(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(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 String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.