Class InstanceNetworkInterface
- 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 description.One or more security groups.The MAC address.The ID of the network interface.The ID of the AWS account that created 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.Indicates whether to validate network traffic to or from this network interface.The status of the network interface.The ID of the subnet.getVpcId()
The ID of the VPC.int
hashCode()
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
(String description) The description.void
setGroups
(Collection<GroupIdentifier> groups) One or more security groups.void
setMacAddress
(String macAddress) The MAC address.void
setNetworkInterfaceId
(String networkInterfaceId) The ID of the network interface.void
setOwnerId
(String ownerId) The ID of the AWS account that created 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<InstancePrivateIpAddress> privateIpAddresses) The private IP addresses associated with the network interface.void
setSourceDestCheck
(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
The status of the network interface.void
setSubnetId
(String subnetId) The ID of the subnet.void
The ID of the VPC.toString()
Returns a string representation of this object; useful for testing and debugging.withAssociation
(InstanceNetworkInterfaceAssociation association) The association information for an Elastic IP associated with the network interface.withAttachment
(InstanceNetworkInterfaceAttachment attachment) The network interface attachment.withDescription
(String description) The description.withGroups
(GroupIdentifier... groups) One or more security groups.withGroups
(Collection<GroupIdentifier> groups) One or more security groups.withMacAddress
(String macAddress) The MAC address.withNetworkInterfaceId
(String networkInterfaceId) The ID of the network interface.withOwnerId
(String ownerId) The ID of the AWS account that created the network interface.withPrivateDnsName
(String privateDnsName) The private DNS name.withPrivateIpAddress
(String privateIpAddress) The IP address of the network interface within the subnet.withPrivateIpAddresses
(InstancePrivateIpAddress... privateIpAddresses) The private IP addresses associated with the network interface.withPrivateIpAddresses
(Collection<InstancePrivateIpAddress> privateIpAddresses) The private IP addresses associated with the network interface.withSourceDestCheck
(Boolean sourceDestCheck) Indicates whether to validate network traffic to or from this network interface.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.The ID of the VPC.
-
Constructor Details
-
InstanceNetworkInterface
public InstanceNetworkInterface()
-
-
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.
-
setDescription
The description.
- Parameters:
description
- The description.
-
getDescription
The description.
- Returns:
- The description.
-
withDescription
The description.
- Parameters:
description
- The description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setOwnerId
The ID of the AWS account that created the network interface.
- Parameters:
ownerId
- The ID of the AWS account that created the network interface.
-
getOwnerId
The ID of the AWS account that created the network interface.
- Returns:
- The ID of the AWS account that created the network interface.
-
withOwnerId
The ID of the AWS account that created the network interface.
- Parameters:
ownerId
- The ID of the AWS account that created the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 to validate network traffic to or from this network interface.
- Parameters:
sourceDestCheck
- Indicates whether to validate network traffic to or from this network interface.
-
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.
-
withSourceDestCheck
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
getGroups
One or more security groups.
- Returns:
- One or more security groups.
-
setGroups
One or more security groups.
- Parameters:
groups
- One or more security groups.
-
withGroups
One or more security groups.
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
- One or more security groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withGroups
One or more security groups.
- Parameters:
groups
- One or more security groups.- 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.
-
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 InstanceNetworkInterface withPrivateIpAddresses(InstancePrivateIpAddress... 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 InstanceNetworkInterface withPrivateIpAddresses(Collection<InstancePrivateIpAddress> 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.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-