Interface SessionMetadata.Builder

Enclosing interface:
SessionMetadata

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

    • description

      SessionMetadata.Builder description(String description)
      Sets the description of the media session.
      Parameters:
      description - the description.
      Returns:
      this Builder instance.
    • custom

      Sets the custom metadata associated with the media session.
      Parameters:
      custom - the custom metadata.
      Returns:
      this Builder instance.
    • sessionId

      SessionMetadata.Builder sessionId(String sessionId)
      Sets the session ID for this media session.
      Parameters:
      sessionId - the session ID.
      Returns:
      this Builder instance.
    • addCustom

      SessionMetadata.Builder addCustom(String key, Object value)
      Adds a custom key-value pair to the metadata.
      Parameters:
      key - the key.
      value - the value.
      Returns:
      this Builder instance.
    • build

      Builds the SessionMetadata instance.
      Returns:
      an immutable SessionMetadata instance.