Class AddParticipantsOptions

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

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

    • AddParticipantsOptions

      public AddParticipantsOptions(List<com.azure.communication.common.CommunicationIdentifier> participants)
      Constructor
      Parameters:
      participants - The list of participants to invite.
  • Method Details

    • getParticipants

      public List<com.azure.communication.common.CommunicationIdentifier> getParticipants()
      Get the participants.
      Returns:
      the list of participants to be added
    • getOperationContext

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

      public com.azure.communication.common.PhoneNumberIdentifier getSourceCallerId()
      Get the sourceCallerId.
      Returns:
      the sourceCallerId phone identifier.
    • getInvitationTimeout

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

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

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

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

      public AddParticipantsOptions setSourceCallerId(com.azure.communication.common.PhoneNumberIdentifier sourceCallerId)
      Set the sourceCallerId.
      Parameters:
      sourceCallerId - Set the source caller Id that's shown to the PSTN participant being invited. Required only when inviting a PSTN participant.
      Returns:
      the AddParticipantsOptions object itself.
    • setInvitationTimeout

      public AddParticipantsOptions 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 AddParticipantsOptions object itself.