Class CreateCallOptions
java.lang.Object
com.azure.communication.callingserver.models.CreateCallOptions
The options for creating a call.
-
Constructor Summary
ConstructorDescriptionCreateCallOptions
(String callbackUri, List<MediaType> requestedMediaTypes, List<EventSubscriptionType> requestedCallEvents) Initializes a new instance of CreateCallOptions. -
Method Summary
Modifier and TypeMethodDescriptionGet the alternate caller id of the source.Get the subject.Get the requested call events to subscribe to.Get the requested modalities.Get the subject.setAlternateCallerId
(PhoneNumberIdentifier alternateCallerId) Set the alternate caller id of the source to be used when target is phone number.setSubject
(String subject) Set the subject.
-
Constructor Details
-
CreateCallOptions
public CreateCallOptions(String callbackUri, List<MediaType> requestedMediaTypes, List<EventSubscriptionType> requestedCallEvents) Initializes a new instance of CreateCallOptions.- Parameters:
callbackUri
- the callback URI.requestedMediaTypes
- the requested media types.requestedCallEvents
- the requested call events to subscribe to.- Throws:
IllegalArgumentException
- if any parameters are null.
-
-
Method Details
-
getAlternateCallerId
Get the alternate caller id of the source.- Returns:
- the alternate caller id object itself.
-
setAlternateCallerId
Set the alternate caller id of the source to be used when target is phone number.- Parameters:
alternateCallerId
- the alternate caller id value to set.- Returns:
- the CreateCallOptions object itself.
-
getSubject
Get the subject.- Returns:
- the subject value.
-
setSubject
Set the subject.- Parameters:
subject
- the subject.- Returns:
- the CreateCallOptions object itself.
-
getCallbackUri
Get the subject.- Returns:
- the subject value.
-
getRequestedMediaTypes
Get the requested modalities.- Returns:
- the requested modalities object itself.
-
getRequestedCallEvents
Get the requested call events to subscribe to.- Returns:
- the requested call events to subscribe to object itself.
-