Interface SessionMetadata.Builder
- Enclosing interface:
- SessionMetadata
public static interface SessionMetadata.Builder
Builder interface for creating immutable
SessionMetadata instances.-
Method Summary
Modifier and TypeMethodDescriptionAdds a custom key-value pair to the metadata.build()Builds theSessionMetadatainstance.Sets the custom metadata associated with the media session.description(String description) Sets the description of the media session.Sets the session ID for this media session.
-
Method Details
-
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
Sets the session ID for this media session.- Parameters:
sessionId- the session ID.- Returns:
- this Builder instance.
-
addCustom
Adds a custom key-value pair to the metadata.- Parameters:
key- the key.value- the value.- Returns:
- this Builder instance.
-
build
SessionMetadata build()Builds theSessionMetadatainstance.- Returns:
- an immutable
SessionMetadatainstance.
-