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:
  • Constructor Details

    • InstanceNetworkInterface

      public InstanceNetworkInterface()
  • Method Details

    • 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:
    • getStatus

      public String getStatus()

      The status of the network interface.

      Returns:
      The status of the network interface.
      See Also:
    • 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:
    • setStatus

      public void setStatus(NetworkInterfaceStatus status)

      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

      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) or withGroups(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

      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

      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) or withPrivateIpAddresses(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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public InstanceNetworkInterface clone()
      Overrides:
      clone in class Object