Interface CreateMediaRequest.Builder
- Enclosing interface:
- CreateMediaRequest
public static interface CreateMediaRequest.Builder
Builder interface for creating immutable
CreateMediaRequest instances.-
Method Summary
Modifier and TypeMethodDescriptionaddEgressMediaStream(EgressMediaStream egressMediaStream) Adds an egress media stream to the list of egress media streams.addIngressMediaStream(IngressMediaStream ingressMediaStream) Adds an ingress media stream to the list of ingress media streams.build()Builds theCreateMediaRequestinstance.Sets the call ID associated with the media session.customPipeline(String customPipeline) Sets the custom pipeline configuration for the media session.egressMediaStreams(List<EgressMediaStream> egressMediaStreams) Sets the list of egress media streams associated with the media session.ingressMediaStreams(List<IngressMediaStream> ingressMediaStreams) Sets the list of ingress media streams associated with the media session.mediaSessionId(String mediaSessionId) Sets the media session ID.mediaSessionPurpose(MediaSessionPurpose mediaSessionPurpose) Sets the purpose of the media session.sessionMetadata(SessionMetadata sessionMetadata) Sets the metadata associated with the media session.
-
Method Details
-
mediaSessionId
Sets the media session ID.- Parameters:
mediaSessionId- the media session ID.- Returns:
- this Builder instance.
-
callId
Sets the call ID associated with the media session.- Parameters:
callId- the call ID.- Returns:
- this Builder instance.
-
mediaSessionPurpose
Sets the purpose of the media session.- Parameters:
mediaSessionPurpose- the media session purpose.- Returns:
- this Builder instance.
-
ingressMediaStreams
Sets the list of ingress media streams associated with the media session.- Parameters:
ingressMediaStreams- the list of ingress media streams.- Returns:
- this Builder instance.
-
addIngressMediaStream
Adds an ingress media stream to the list of ingress media streams.- Parameters:
ingressMediaStream- the ingress media stream.- Returns:
- this Builder instance.
-
egressMediaStreams
Sets the list of egress media streams associated with the media session.- Parameters:
egressMediaStreams- the list of egress media streams.- Returns:
- this Builder instance.
-
addEgressMediaStream
Adds an egress media stream to the list of egress media streams.- Parameters:
egressMediaStream- the egress media stream.- Returns:
- this Builder instance.
-
customPipeline
Sets the custom pipeline configuration for the media session.- Parameters:
customPipeline- the custom pipeline configuration.- Returns:
- this Builder instance.
-
sessionMetadata
Sets the metadata associated with the media session.- Parameters:
sessionMetadata- the session metadata.- Returns:
- this Builder instance.
-
build
CreateMediaRequest build()Builds theCreateMediaRequestinstance.- Returns:
- an immutable
CreateMediaRequestinstance.
-