Interface NetworkInterface.Builder

  • Method Details

    • ipv4Address

      NetworkInterface.Builder ipv4Address(String ipv4Address)

      The Internet Protocol version 4 (IPv4) address of the interface.

      Parameters:
      ipv4Address - The Internet Protocol version 4 (IPv4) address of the interface.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • macAddress

      NetworkInterface.Builder macAddress(String macAddress)

      The Media Access Control (MAC) address of the interface.

      This is currently unsupported and will not be returned in output.

      Parameters:
      macAddress - The Media Access Control (MAC) address of the interface.

      This is currently unsupported and will not be returned in output.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ipv6Address

      NetworkInterface.Builder ipv6Address(String ipv6Address)

      The Internet Protocol version 6 (IPv6) address of the interface.

      This element returns IPv6 addresses for all gateway types except FSx File Gateway.

      Parameters:
      ipv6Address - The Internet Protocol version 6 (IPv6) address of the interface.

      This element returns IPv6 addresses for all gateway types except FSx File Gateway.

      Returns:
      Returns a reference to this object so that method calls can be chained together.