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 InstanceNetworkInterface
clone()
boolean
equals(Object obj)
InstanceNetworkInterfaceAssociation
getAssociation()
The association information for an Elastic IP associated with the network interface.InstanceNetworkInterfaceAttachment
getAttachment()
The network interface attachment.String
getDescription()
The description.List<GroupIdentifier>
getGroups()
One or more security groups.String
getMacAddress()
The MAC address.String
getNetworkInterfaceId()
The ID of the network interface.String
getOwnerId()
The ID of the AWS account that created the network interface.String
getPrivateDnsName()
The private DNS name.String
getPrivateIpAddress()
The IP address of the network interface within the subnet.List<InstancePrivateIpAddress>
getPrivateIpAddresses()
The private IP addresses associated with the network interface.Boolean
getSourceDestCheck()
Indicates whether to validate network traffic to or from this network interface.String
getStatus()
The status of the network interface.String
getSubnetId()
The ID of the subnet.String
getVpcId()
The ID of the VPC.int
hashCode()
Boolean
isSourceDestCheck()
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
setStatus(String status)
The status of the network interface.void
setSubnetId(String subnetId)
The ID of the subnet.void
setVpcId(String vpcId)
The ID of the VPC.String
toString()
Returns a string representation of this object; useful for testing and debugging.InstanceNetworkInterface
withAssociation(InstanceNetworkInterfaceAssociation association)
The association information for an Elastic IP associated with the network interface.InstanceNetworkInterface
withAttachment(InstanceNetworkInterfaceAttachment attachment)
The network interface attachment.InstanceNetworkInterface
withDescription(String description)
The description.InstanceNetworkInterface
withGroups(GroupIdentifier... groups)
One or more security groups.InstanceNetworkInterface
withGroups(Collection<GroupIdentifier> groups)
One or more security groups.InstanceNetworkInterface
withMacAddress(String macAddress)
The MAC address.InstanceNetworkInterface
withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.InstanceNetworkInterface
withOwnerId(String ownerId)
The ID of the AWS account that created the network interface.InstanceNetworkInterface
withPrivateDnsName(String privateDnsName)
The private DNS name.InstanceNetworkInterface
withPrivateIpAddress(String privateIpAddress)
The IP address of the network interface within the subnet.InstanceNetworkInterface
withPrivateIpAddresses(InstancePrivateIpAddress... privateIpAddresses)
The private IP addresses associated with the network interface.InstanceNetworkInterface
withPrivateIpAddresses(Collection<InstancePrivateIpAddress> privateIpAddresses)
The private IP addresses associated with the network interface.InstanceNetworkInterface
withSourceDestCheck(Boolean sourceDestCheck)
Indicates whether to validate network traffic to or from this network interface.InstanceNetworkInterface
withStatus(NetworkInterfaceStatus status)
The status of the network interface.InstanceNetworkInterface
withStatus(String status)
The status of the network interface.InstanceNetworkInterface
withSubnetId(String subnetId)
The ID of the subnet.InstanceNetworkInterface
withVpcId(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InstanceNetworkInterface clone()
-
-