Interface Connection.Builder

Enclosing interface:
Connection

public static interface Connection.Builder
Builder interface for creating immutable Connection instances.
  • Method Details

    • mediaSourceIp

      Connection.Builder mediaSourceIp(String mediaSourceIp)
      Sets the media source IP address of the connection.
      Parameters:
      mediaSourceIp - the media source IP address.
      Returns:
      this Builder instance.
    • mediaSourcePort

      Connection.Builder mediaSourcePort(Integer mediaSourcePort)
      Sets the media source port number of the connection.
      Parameters:
      mediaSourcePort - the media source port number.
      Returns:
      this Builder instance.
    • mediaReceiverIp

      Connection.Builder mediaReceiverIp(String mediaReceiverIp)
      Sets the MFE IP address of the connection.
      Parameters:
      mediaReceiverIp - the MFE IP address.
      Returns:
      this Builder instance.
    • mediaReceiverPort

      Connection.Builder mediaReceiverPort(Integer mediaReceiverPort)
      Sets the MFE port number of the connection.
      Parameters:
      mediaReceiverPort - the MFE port number.
      Returns:
      this Builder instance.
    • destinationIp

      Connection.Builder destinationIp(String destinationIp)
      Sets the destination IP address of the connection.
      Parameters:
      destinationIp - the destination IP address.
      Returns:
      this Builder instance.
    • destinationPort

      Connection.Builder destinationPort(Integer destinationPort)
      Sets the destination port number of the connection.
      Parameters:
      destinationPort - the destination port number.
      Returns:
      this Builder instance.
    • url

      Sets the URL associated with the connection.
      Parameters:
      url - the URL.
      Returns:
      this Builder instance.
    • authToken

      Connection.Builder authToken(String authToken)
      Sets the authentication token associated with the connection.
      Parameters:
      authToken - the authentication token.
      Returns:
      this Builder instance.
    • build

      Connection build()
      Builds the Connection instance.
      Returns:
      an immutable Connection instance.