Class AddParticipantOptions

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

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

    • AddParticipantOptions

      public AddParticipantOptions(CallInvite targetParticipant)
      Constructor
      Parameters:
      targetParticipant - target callinvite
  • Method Details

    • getTargetParticipant

      public CallInvite getTargetParticipant()
      Get Information for participant to add
      Returns:
      target callInvite
    • getOperationContext

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

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

      public Duration getInvitationTimeout()
      Get the invitationTimeoutInSeconds.
      Returns:
      the Invitation Timeout In Seconds
    • setOperationContext

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

      public AddParticipantOptions 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 AddParticipantOptions object itself.
    • setInvitationTimeout

      public AddParticipantOptions setInvitationTimeout(Duration invitationTimeout)
      Set the invitationTimeoutInSeconds.
      Parameters:
      invitationTimeout - Set the timeout to wait for the invited participant to pickup. The maximum value of this is 180 seconds.
      Returns:
      the AddParticipantOptions object itself.