public class NetworkInterface
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a network interface.
Modifier and Type | Field and Description |
---|---|
private NetworkInterfaceAssociation |
association
The association information for an Elastic IP associated with the network
interface.
|
private NetworkInterfaceAttachment |
attachment
The network interface attachment.
|
private java.lang.String |
availabilityZone
The Availability Zone.
|
private java.lang.String |
description
A description.
|
private SdkInternalList<GroupIdentifier> |
groups
Any security groups for the network interface.
|
private java.lang.String |
interfaceType
The type of interface.
|
private java.lang.String |
macAddress
The MAC address.
|
private java.lang.String |
networkInterfaceId
The ID of the network interface.
|
private java.lang.String |
ownerId
The AWS account ID of the owner of the network interface.
|
private java.lang.String |
privateDnsName
The private DNS name.
|
private java.lang.String |
privateIpAddress
The IP address of the network interface within the subnet.
|
private SdkInternalList<NetworkInterfacePrivateIpAddress> |
privateIpAddresses
The private IP addresses associated with the network interface.
|
private java.lang.String |
requesterId
The ID of the entity that launched the instance on your behalf (for
example, AWS Management Console or Auto Scaling).
|
private java.lang.Boolean |
requesterManaged
Indicates whether the network interface is being managed by AWS.
|
private java.lang.Boolean |
sourceDestCheck
Indicates whether traffic to or from the instance is validated.
|
private java.lang.String |
status
The status of the network interface.
|
private java.lang.String |
subnetId
The ID of the subnet.
|
private SdkInternalList<Tag> |
tagSet
Any tags assigned to the network interface.
|
private java.lang.String |
vpcId
The ID of the VPC.
|
Constructor and Description |
---|
NetworkInterface() |
Modifier and Type | Method and Description |
---|---|
NetworkInterface |
clone() |
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.
|
private java.lang.String networkInterfaceId
The ID of the network interface.
private java.lang.String subnetId
The ID of the subnet.
private java.lang.String vpcId
The ID of the VPC.
private java.lang.String availabilityZone
The Availability Zone.
private java.lang.String description
A description.
private java.lang.String ownerId
The AWS account ID of the owner of the network interface.
private java.lang.String requesterId
The ID of the entity that launched the instance on your behalf (for example, AWS Management Console or Auto Scaling).
private java.lang.Boolean requesterManaged
Indicates whether the network interface is being managed by AWS.
private java.lang.String status
The status of the network interface.
private java.lang.String macAddress
The MAC address.
private java.lang.String privateIpAddress
The IP address of the network interface within the subnet.
private java.lang.String privateDnsName
The private DNS name.
private java.lang.Boolean sourceDestCheck
Indicates whether traffic to or from the instance is validated.
private SdkInternalList<GroupIdentifier> groups
Any security groups for the network interface.
private NetworkInterfaceAttachment attachment
The network interface attachment.
private NetworkInterfaceAssociation association
The association information for an Elastic IP associated with the network interface.
private SdkInternalList<Tag> tagSet
Any tags assigned to the network interface.
private SdkInternalList<NetworkInterfacePrivateIpAddress> privateIpAddresses
The private IP addresses associated with the network interface.
private java.lang.String interfaceType
The type of interface.
public void setNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public java.lang.String getNetworkInterfaceId()
The ID of the network interface.
public NetworkInterface withNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public void setSubnetId(java.lang.String subnetId)
The ID of the subnet.
subnetId
- The ID of the subnet.public java.lang.String getSubnetId()
The ID of the subnet.
public NetworkInterface withSubnetId(java.lang.String subnetId)
The ID of the subnet.
subnetId
- The ID of the subnet.public void setVpcId(java.lang.String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public java.lang.String getVpcId()
The ID of the VPC.
public NetworkInterface withVpcId(java.lang.String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public void setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone.
availabilityZone
- The Availability Zone.public java.lang.String getAvailabilityZone()
The Availability Zone.
public NetworkInterface withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone.
availabilityZone
- The Availability Zone.public void setDescription(java.lang.String description)
A description.
description
- A description.public java.lang.String getDescription()
A description.
public NetworkInterface withDescription(java.lang.String description)
A description.
description
- A description.public void setOwnerId(java.lang.String ownerId)
The AWS account ID of the owner of the network interface.
ownerId
- The AWS account ID of the owner of the network interface.public java.lang.String getOwnerId()
The AWS account ID of the owner of the network interface.
public NetworkInterface withOwnerId(java.lang.String ownerId)
The AWS account ID of the owner of the network interface.
ownerId
- The AWS account ID of the owner of the network interface.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).
requesterId
- The ID of the entity that launched the instance on your behalf
(for example, AWS Management Console or Auto Scaling).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).
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).
requesterId
- The ID of the entity that launched the instance on your behalf
(for example, AWS Management Console or Auto Scaling).public void setRequesterManaged(java.lang.Boolean requesterManaged)
Indicates whether the network interface is being managed by AWS.
requesterManaged
- Indicates whether the network interface is being managed by AWS.public java.lang.Boolean getRequesterManaged()
Indicates whether the network interface is being managed by AWS.
public NetworkInterface withRequesterManaged(java.lang.Boolean requesterManaged)
Indicates whether the network interface is being managed by AWS.
requesterManaged
- Indicates whether the network interface is being managed by AWS.public java.lang.Boolean isRequesterManaged()
Indicates whether the network interface is being managed by AWS.
public void setStatus(java.lang.String status)
The status of the network interface.
status
- The status of the network interface.NetworkInterfaceStatus
public java.lang.String getStatus()
The status of the network interface.
NetworkInterfaceStatus
public NetworkInterface withStatus(java.lang.String status)
The status of the network interface.
status
- The status of the network interface.NetworkInterfaceStatus
public void setStatus(NetworkInterfaceStatus status)
The status of the network interface.
status
- The status of the network interface.NetworkInterfaceStatus
public NetworkInterface withStatus(NetworkInterfaceStatus status)
The status of the network interface.
status
- The status of the network interface.NetworkInterfaceStatus
public void setMacAddress(java.lang.String macAddress)
The MAC address.
macAddress
- The MAC address.public java.lang.String getMacAddress()
The MAC address.
public NetworkInterface withMacAddress(java.lang.String macAddress)
The MAC address.
macAddress
- The MAC address.public void setPrivateIpAddress(java.lang.String privateIpAddress)
The IP address of the network interface within the subnet.
privateIpAddress
- The IP address of the network interface within the subnet.public java.lang.String getPrivateIpAddress()
The IP address of the network interface within the subnet.
public NetworkInterface withPrivateIpAddress(java.lang.String privateIpAddress)
The IP address of the network interface within the subnet.
privateIpAddress
- The IP address of the network interface within the subnet.public void setPrivateDnsName(java.lang.String privateDnsName)
The private DNS name.
privateDnsName
- The private DNS name.public java.lang.String getPrivateDnsName()
The private DNS name.
public NetworkInterface withPrivateDnsName(java.lang.String privateDnsName)
The private DNS name.
privateDnsName
- The private DNS name.public void setSourceDestCheck(java.lang.Boolean sourceDestCheck)
Indicates whether traffic to or from the instance is validated.
sourceDestCheck
- Indicates whether traffic to or from the instance is validated.public java.lang.Boolean getSourceDestCheck()
Indicates whether traffic to or from the instance is validated.
public NetworkInterface withSourceDestCheck(java.lang.Boolean sourceDestCheck)
Indicates whether traffic to or from the instance is validated.
sourceDestCheck
- Indicates whether traffic to or from the instance is validated.public java.lang.Boolean isSourceDestCheck()
Indicates whether traffic to or from the instance is validated.
public java.util.List<GroupIdentifier> getGroups()
Any security groups for the network interface.
public void setGroups(java.util.Collection<GroupIdentifier> groups)
Any security groups for the network interface.
groups
- Any security groups for the network interface.public NetworkInterface withGroups(GroupIdentifier... groups)
Any security groups for the network interface.
NOTE: This method appends the values to the existing list (if
any). Use setGroups(java.util.Collection)
or
withGroups(java.util.Collection)
if you want to override the
existing values.
groups
- Any security groups for the network interface.public NetworkInterface withGroups(java.util.Collection<GroupIdentifier> groups)
Any security groups for the network interface.
groups
- Any security groups for the network interface.public void setAttachment(NetworkInterfaceAttachment attachment)
The network interface attachment.
attachment
- The network interface attachment.public NetworkInterfaceAttachment getAttachment()
The network interface attachment.
public NetworkInterface withAttachment(NetworkInterfaceAttachment attachment)
The network interface attachment.
attachment
- The network interface attachment.public void setAssociation(NetworkInterfaceAssociation association)
The association information for an Elastic IP associated with the network interface.
association
- The association information for an Elastic IP associated with the
network interface.public NetworkInterfaceAssociation getAssociation()
The association information for an Elastic IP associated with the network interface.
public NetworkInterface withAssociation(NetworkInterfaceAssociation association)
The association information for an Elastic IP associated with the network interface.
association
- The association information for an Elastic IP associated with the
network interface.public java.util.List<Tag> getTagSet()
Any tags assigned to the network interface.
public void setTagSet(java.util.Collection<Tag> tagSet)
Any tags assigned to the network interface.
tagSet
- Any tags assigned to the network interface.public NetworkInterface withTagSet(Tag... tagSet)
Any tags assigned to the network interface.
NOTE: This method appends the values to the existing list (if
any). Use setTagSet(java.util.Collection)
or
withTagSet(java.util.Collection)
if you want to override the
existing values.
tagSet
- Any tags assigned to the network interface.public NetworkInterface withTagSet(java.util.Collection<Tag> tagSet)
Any tags assigned to the network interface.
tagSet
- Any tags assigned to the network interface.public java.util.List<NetworkInterfacePrivateIpAddress> getPrivateIpAddresses()
The private IP addresses associated with the network interface.
public void setPrivateIpAddresses(java.util.Collection<NetworkInterfacePrivateIpAddress> privateIpAddresses)
The private IP addresses associated with the network interface.
privateIpAddresses
- The private IP addresses associated with the network interface.public NetworkInterface withPrivateIpAddresses(NetworkInterfacePrivateIpAddress... privateIpAddresses)
The private IP addresses associated with the network interface.
NOTE: This method appends the values to the existing list (if
any). Use setPrivateIpAddresses(java.util.Collection)
or
withPrivateIpAddresses(java.util.Collection)
if you want to
override the existing values.
privateIpAddresses
- The private IP addresses associated with the network interface.public NetworkInterface withPrivateIpAddresses(java.util.Collection<NetworkInterfacePrivateIpAddress> privateIpAddresses)
The private IP addresses associated with the network interface.
privateIpAddresses
- The private IP addresses associated with the network interface.public void setInterfaceType(java.lang.String interfaceType)
The type of interface.
interfaceType
- The type of interface.NetworkInterfaceType
public java.lang.String getInterfaceType()
The type of interface.
NetworkInterfaceType
public NetworkInterface withInterfaceType(java.lang.String interfaceType)
The type of interface.
interfaceType
- The type of interface.NetworkInterfaceType
public void setInterfaceType(NetworkInterfaceType interfaceType)
The type of interface.
interfaceType
- The type of interface.NetworkInterfaceType
public NetworkInterface withInterfaceType(NetworkInterfaceType interfaceType)
The type of interface.
interfaceType
- The type of interface.NetworkInterfaceType
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public NetworkInterface clone()
clone
in class java.lang.Object