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