Class CreateCallOptions

java.lang.Object
com.azure.communication.callingserver.models.CreateCallOptions

public final class CreateCallOptions extends Object
The options for creating a call.
  • 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

      public PhoneNumberIdentifier getAlternateCallerId()
      Get the alternate caller id of the source.
      Returns:
      the alternate caller id object itself.
    • setAlternateCallerId

      public CreateCallOptions setAlternateCallerId(PhoneNumberIdentifier alternateCallerId)
      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

      public String getSubject()
      Get the subject.
      Returns:
      the subject value.
    • setSubject

      public CreateCallOptions setSubject(String subject)
      Set the subject.
      Parameters:
      subject - the subject.
      Returns:
      the CreateCallOptions object itself.
    • getCallbackUri

      public String getCallbackUri()
      Get the subject.
      Returns:
      the subject value.
    • getRequestedMediaTypes

      public List<MediaType> getRequestedMediaTypes()
      Get the requested modalities.
      Returns:
      the requested modalities object itself.
    • getRequestedCallEvents

      public List<EventSubscriptionType> getRequestedCallEvents()
      Get the requested call events to subscribe to.
      Returns:
      the requested call events to subscribe to object itself.