Class InstanceNetworkInterface
- java.lang.Object
-
- com.amazonaws.services.ec2.model.InstanceNetworkInterface
-
- All Implemented Interfaces:
Serializable,Cloneable
public class InstanceNetworkInterface extends Object implements Serializable, Cloneable
Describes a network interface.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstanceNetworkInterface()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceNetworkInterfaceclone()booleanequals(Object obj)InstanceNetworkInterfaceAssociationgetAssociation()The association information for an Elastic IP associated with the network interface.InstanceNetworkInterfaceAttachmentgetAttachment()The network interface attachment.StringgetDescription()The description.List<GroupIdentifier>getGroups()One or more security groups.StringgetMacAddress()The MAC address.StringgetNetworkInterfaceId()The ID of the network interface.StringgetOwnerId()The ID of the AWS account that created the network interface.StringgetPrivateDnsName()The private DNS name.StringgetPrivateIpAddress()The IP address of the network interface within the subnet.List<InstancePrivateIpAddress>getPrivateIpAddresses()The private IP addresses associated with the network interface.BooleangetSourceDestCheck()Indicates whether to validate network traffic to or from this network interface.StringgetStatus()The status of the network interface.StringgetSubnetId()The ID of the subnet.StringgetVpcId()The ID of the VPC.inthashCode()BooleanisSourceDestCheck()Indicates whether to validate network traffic to or from this network interface.voidsetAssociation(InstanceNetworkInterfaceAssociation association)The association information for an Elastic IP associated with the network interface.voidsetAttachment(InstanceNetworkInterfaceAttachment attachment)The network interface attachment.voidsetDescription(String description)The description.voidsetGroups(Collection<GroupIdentifier> groups)One or more security groups.voidsetMacAddress(String macAddress)The MAC address.voidsetNetworkInterfaceId(String networkInterfaceId)The ID of the network interface.voidsetOwnerId(String ownerId)The ID of the AWS account that created the network interface.voidsetPrivateDnsName(String privateDnsName)The private DNS name.voidsetPrivateIpAddress(String privateIpAddress)The IP address of the network interface within the subnet.voidsetPrivateIpAddresses(Collection<InstancePrivateIpAddress> privateIpAddresses)The private IP addresses associated with the network interface.voidsetSourceDestCheck(Boolean sourceDestCheck)Indicates whether to validate network traffic to or from this network interface.voidsetStatus(NetworkInterfaceStatus status)The status of the network interface.voidsetStatus(String status)The status of the network interface.voidsetSubnetId(String subnetId)The ID of the subnet.voidsetVpcId(String vpcId)The ID of the VPC.StringtoString()Returns a string representation of this object; useful for testing and debugging.InstanceNetworkInterfacewithAssociation(InstanceNetworkInterfaceAssociation association)The association information for an Elastic IP associated with the network interface.InstanceNetworkInterfacewithAttachment(InstanceNetworkInterfaceAttachment attachment)The network interface attachment.InstanceNetworkInterfacewithDescription(String description)The description.InstanceNetworkInterfacewithGroups(GroupIdentifier... groups)One or more security groups.InstanceNetworkInterfacewithGroups(Collection<GroupIdentifier> groups)One or more security groups.InstanceNetworkInterfacewithMacAddress(String macAddress)The MAC address.InstanceNetworkInterfacewithNetworkInterfaceId(String networkInterfaceId)The ID of the network interface.InstanceNetworkInterfacewithOwnerId(String ownerId)The ID of the AWS account that created the network interface.InstanceNetworkInterfacewithPrivateDnsName(String privateDnsName)The private DNS name.InstanceNetworkInterfacewithPrivateIpAddress(String privateIpAddress)The IP address of the network interface within the subnet.InstanceNetworkInterfacewithPrivateIpAddresses(InstancePrivateIpAddress... privateIpAddresses)The private IP addresses associated with the network interface.InstanceNetworkInterfacewithPrivateIpAddresses(Collection<InstancePrivateIpAddress> privateIpAddresses)The private IP addresses associated with the network interface.InstanceNetworkInterfacewithSourceDestCheck(Boolean sourceDestCheck)Indicates whether to validate network traffic to or from this network interface.InstanceNetworkInterfacewithStatus(NetworkInterfaceStatus status)The status of the network interface.InstanceNetworkInterfacewithStatus(String status)The status of the network interface.InstanceNetworkInterfacewithSubnetId(String subnetId)The ID of the subnet.InstanceNetworkInterfacewithVpcId(String vpcId)The ID of the VPC.
-
-
-
Method Detail
-
setNetworkInterfaceId
public void setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
- Parameters:
networkInterfaceId- The ID of the network interface.
-
getNetworkInterfaceId
public String getNetworkInterfaceId()
The ID of the network interface.
- Returns:
- The ID of the network interface.
-
withNetworkInterfaceId
public InstanceNetworkInterface withNetworkInterfaceId(String networkInterfaceId)
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
public void setSubnetId(String subnetId)
The ID of the subnet.
- Parameters:
subnetId- The ID of the subnet.
-
getSubnetId
public String getSubnetId()
The ID of the subnet.
- Returns:
- The ID of the subnet.
-
withSubnetId
public InstanceNetworkInterface withSubnetId(String subnetId)
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
public void setVpcId(String vpcId)
The ID of the VPC.
- Parameters:
vpcId- The ID of the VPC.
-
getVpcId
public String getVpcId()
The ID of the VPC.
- Returns:
- The ID of the VPC.
-
withVpcId
public InstanceNetworkInterface withVpcId(String vpcId)
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
public void setDescription(String description)
The description.
- Parameters:
description- The description.
-
getDescription
public String getDescription()
The description.
- Returns:
- The description.
-
withDescription
public InstanceNetworkInterface withDescription(String description)
The description.
- Parameters:
description- The description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setOwnerId
public void setOwnerId(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.
-
getOwnerId
public 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.
-
withOwnerId
public InstanceNetworkInterface withOwnerId(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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
public void setStatus(String status)
The status of the network interface.
- Parameters:
status- The status of the network interface.- See Also:
NetworkInterfaceStatus
-
getStatus
public String getStatus()
The status of the network interface.
- Returns:
- The status of the network interface.
- See Also:
NetworkInterfaceStatus
-
withStatus
public InstanceNetworkInterface withStatus(String status)
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:
NetworkInterfaceStatus
-
setStatus
public void setStatus(NetworkInterfaceStatus status)
The status of the network interface.
- Parameters:
status- The status of the network interface.- See Also:
NetworkInterfaceStatus
-
withStatus
public InstanceNetworkInterface withStatus(NetworkInterfaceStatus status)
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:
NetworkInterfaceStatus
-
setMacAddress
public void setMacAddress(String macAddress)
The MAC address.
- Parameters:
macAddress- The MAC address.
-
getMacAddress
public String getMacAddress()
The MAC address.
- Returns:
- The MAC address.
-
withMacAddress
public InstanceNetworkInterface withMacAddress(String macAddress)
The MAC address.
- Parameters:
macAddress- The MAC address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPrivateIpAddress
public void setPrivateIpAddress(String privateIpAddress)
The IP address of the network interface within the subnet.
- Parameters:
privateIpAddress- The IP address of the network interface within the subnet.
-
getPrivateIpAddress
public String getPrivateIpAddress()
The IP address of the network interface within the subnet.
- Returns:
- The IP address of the network interface within the subnet.
-
withPrivateIpAddress
public InstanceNetworkInterface withPrivateIpAddress(String privateIpAddress)
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
public void setPrivateDnsName(String privateDnsName)
The private DNS name.
- Parameters:
privateDnsName- The private DNS name.
-
getPrivateDnsName
public String getPrivateDnsName()
The private DNS name.
- Returns:
- The private DNS name.
-
withPrivateDnsName
public InstanceNetworkInterface withPrivateDnsName(String privateDnsName)
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
public void setSourceDestCheck(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.
-
getSourceDestCheck
public 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.
-
withSourceDestCheck
public InstanceNetworkInterface withSourceDestCheck(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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isSourceDestCheck
public 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.
-
getGroups
public List<GroupIdentifier> getGroups()
One or more security groups.
- Returns:
- One or more security groups.
-
setGroups
public void setGroups(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.
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
public InstanceNetworkInterface withGroups(Collection<GroupIdentifier> groups)
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
public void setAttachment(InstanceNetworkInterfaceAttachment attachment)
The network interface attachment.
- Parameters:
attachment- The network interface attachment.
-
getAttachment
public InstanceNetworkInterfaceAttachment getAttachment()
The network interface attachment.
- Returns:
- The network interface attachment.
-
withAttachment
public InstanceNetworkInterface withAttachment(InstanceNetworkInterfaceAttachment attachment)
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
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.
-
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.
-
withAssociation
public InstanceNetworkInterface withAssociation(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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getPrivateIpAddresses
public 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(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.
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InstanceNetworkInterface clone()
-
-