Class TransferCallToParticipantOptions

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

public final class TransferCallToParticipantOptions extends Object
The options for adding participants.
  • Constructor Details

    • TransferCallToParticipantOptions

      public TransferCallToParticipantOptions(CommunicationIdentifier targetParticipant)
      Constructor
      Parameters:
      targetParticipant - CommunicationIdentifier contains information for TransferTarget(to whom the call is transferred).
    • TransferCallToParticipantOptions

      public TransferCallToParticipantOptions(CommunicationUserIdentifier targetParticipant)
      Constructor
      Parameters:
      targetParticipant - CommunicationUserIdentifier contains information for TransferTarget(to whom the call is transferred).
    • TransferCallToParticipantOptions

      public TransferCallToParticipantOptions(PhoneNumberIdentifier targetParticipant)
      Constructor
      Parameters:
      targetParticipant - PhoneNumberIdentifier contains information for TransferTarget(to whom the call is transferred).
    • TransferCallToParticipantOptions

      public TransferCallToParticipantOptions(MicrosoftTeamsUserIdentifier targetParticipant)
      Constructor
      Parameters:
      targetParticipant - MicrosoftTeamsUserIdentifier contains information for TransferTarget(to whom the call is transferred).
  • Method Details

    • getOperationContext

      public String getOperationContext()
      Get the operationContext.
      Returns:
      the operationContext
    • setOperationContext

      public TransferCallToParticipantOptions setOperationContext(String operationContext)
      Set the operationContext.
      Parameters:
      operationContext - the operationContext to set
      Returns:
      the TransferCallToParticipantOptions object itself.
    • getTransferee

      public CommunicationIdentifier getTransferee()
      Get the participant who is being transferred away.
      Returns:
      the transferee
    • setTransferee

      public TransferCallToParticipantOptions setTransferee(CommunicationIdentifier transferee)
      Set the participant who is being transferred away.
      Parameters:
      transferee - the participant who is being transferred away
      Returns:
      the TransferCallToParticipantOptions object itself.
    • getTargetParticipant

      public CommunicationIdentifier getTargetParticipant()
      Get the transfer target to whom the call is transferred
      Returns:
      a CommunicationIdentifier with information to transfer target
    • getCustomCallingContext

      public CustomCallingContext getCustomCallingContext()
      get custom context
      Returns:
      custom context
    • getOperationCallbackUrl

      public String getOperationCallbackUrl()
      Get the overridden call back URL override for operation.
      Returns:
      the operationCallbackUrl
    • setOperationCallbackUrl

      public TransferCallToParticipantOptions setOperationCallbackUrl(String operationCallbackUrl)
      Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation. This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.
      Parameters:
      operationCallbackUrl - the operationCallbackUrl to set
      Returns:
      the TransferCallToParticipantOptions object itself.
    • getSourceCallerIdNumber

      public PhoneNumberIdentifier getSourceCallerIdNumber()
      Get the sourceCallerIdNumber.
      Returns:
      the sourceCallerIdNumber
    • setSourceCallerIdNumber

      public TransferCallToParticipantOptions setSourceCallerIdNumber(PhoneNumberIdentifier sourceCallerIdNumber)
      Set the sourceCallerIdNumber.
      Parameters:
      sourceCallerIdNumber - the sourceCallerIdNumber to set
      Returns:
      the TransferCallToParticipantOptions object itself.