Class CreateCallOptions

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

public class CreateCallOptions extends Object
The options for creating a call.
  • Constructor Details

    • CreateCallOptions

      public CreateCallOptions(com.azure.communication.common.CommunicationIdentifier source, List<com.azure.communication.common.CommunicationIdentifier> targets, String callbackUrl)
      Constructor
      Parameters:
      source - The source property.
      targets - The targets of the call.
      callbackUrl - The call back URI.
  • Method Details

    • getSource

      public com.azure.communication.common.CommunicationIdentifier getSource()
      Get the source.
      Returns:
      the source value.
    • getTargets

      public List<com.azure.communication.common.CommunicationIdentifier> getTargets()
      Get the targets.
      Returns:
      the targets list.
    • getCallbackUrl

      public String getCallbackUrl()
      Get the call back uri.
      Returns:
      the call back uri.
    • getOperationContext

      public String getOperationContext()
      Get the operationContext: A customer set value used to track the answering of a call.
      Returns:
      the operationContext value.
    • getSourceCallerId

      public String getSourceCallerId()
      Get the source caller Id that's shown to the PSTN participant being invited.
      Returns:
      the sourceCallerId value.
    • getRepeatabilityHeaders

      public RepeatabilityHeaders getRepeatabilityHeaders()
      Get the Repeatability headers configuration.
      Returns:
      the repeatabilityHeaders
    • setOperationContext

      public CreateCallOptions setOperationContext(String operationContext)
      Set the operationContext: A customer set value used to track the answering of a call.
      Parameters:
      operationContext - A customer set value used to track the answering of a call.
      Returns:
      the CreateCallOptions object itself.
    • setSourceCallerId

      public CreateCallOptions setSourceCallerId(String sourceCallerId)
      Set the sourceCallerId.
      Parameters:
      sourceCallerId - The source caller Id that's shown to the PSTN participant being invited. Required only when inviting a PSTN participant.
      Returns:
      the CreateCallOptions object itself.
    • setRepeatabilityHeaders

      public CreateCallOptions setRepeatabilityHeaders(RepeatabilityHeaders repeatabilityHeaders)
      Set the repeatability headers
      Parameters:
      repeatabilityHeaders - The repeatability headers configuration.
      Returns:
      the CreateCallOptions object itself.