Class IntDeviceConfig.Builder

  • Enclosing class:
    IntDeviceConfig

    public static final class IntDeviceConfig.Builder
    extends java.lang.Object
    An IntConfig object builder.
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • withCollectorIp

        public IntDeviceConfig.Builder withCollectorIp​(IpAddress collectorIp)
        Assigns a collector IP address to the IntConfig object.
        Parameters:
        collectorIp - IP address of the collector
        Returns:
        an IntConfig builder
      • withCollectorPort

        public IntDeviceConfig.Builder withCollectorPort​(TpPort collectorPort)
        Assigns a collector UDP port to the IntConfig object.
        Parameters:
        collectorPort - UDP port number of the collector
        Returns:
        an IntConfig builder
      • withCollectorNextHopMac

        public IntDeviceConfig.Builder withCollectorNextHopMac​(MacAddress collectorNextHopMac)
        Assigns a MAC address of the next hop to the collector to the IntConfig object.
        Parameters:
        collectorNextHopMac - MAC address of the collector
        Returns:
        an IntConfig builder
      • withSinkIp

        public IntDeviceConfig.Builder withSinkIp​(IpAddress sinkIp)
        Assigns an IP address of the sink device to the IntConfig object.
        Parameters:
        sinkIp - sink device's IP address
        Returns:
        an IntConfig builder
      • withSinkMac

        public IntDeviceConfig.Builder withSinkMac​(MacAddress sinkMac)
        Assigns a MAC address of the sink device to the IntConfig object.
        Parameters:
        sinkMac - sink device's MAC address
        Returns:
        an IntConfig builder
      • enabled

        public IntDeviceConfig.Builder enabled​(boolean enabled)
        Assigns the status of INT. True to enable INT functionality, false otherwise.
        Parameters:
        enabled - the status of INT
        Returns:
        an IntConfig builder
      • build

        public IntDeviceConfig build()
        Builds the IntConfig object.
        Returns:
        an IntConfig object