Class AddParticipantsOptions
java.lang.Object
com.azure.communication.callautomation.models.AddParticipantsOptions
The options for adding participants.
-
Constructor Summary
ConstructorDescriptionAddParticipantsOptions
(List<com.azure.communication.common.CommunicationIdentifier> participants) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGet the invitationTimeoutInSeconds.Get the operationContext.List<com.azure.communication.common.CommunicationIdentifier>
Get the participants.Get the Repeatability headers configuration.com.azure.communication.common.PhoneNumberIdentifier
Get the sourceCallerId.setInvitationTimeout
(Duration invitationTimeout) Set the invitationTimeoutInSeconds.setOperationContext
(String operationContext) Set the operationContext.setRepeatabilityHeaders
(RepeatabilityHeaders repeatabilityHeaders) Set the repeatability headerssetSourceCallerId
(com.azure.communication.common.PhoneNumberIdentifier sourceCallerId) Set the sourceCallerId.
-
Constructor Details
-
AddParticipantsOptions
public AddParticipantsOptions(List<com.azure.communication.common.CommunicationIdentifier> participants) Constructor- Parameters:
participants
- The list of participants to invite.
-
-
Method Details
-
getParticipants
Get the participants.- Returns:
- the list of participants to be added
-
getOperationContext
Get the operationContext.- Returns:
- the operationContext
-
getSourceCallerId
public com.azure.communication.common.PhoneNumberIdentifier getSourceCallerId()Get the sourceCallerId.- Returns:
- the sourceCallerId phone identifier.
-
getInvitationTimeout
Get the invitationTimeoutInSeconds.- Returns:
- the Invitation Timeout In Seconds
-
getRepeatabilityHeaders
Get the Repeatability headers configuration.- Returns:
- the repeatabilityHeaders
-
setRepeatabilityHeaders
Set the repeatability headers- Parameters:
repeatabilityHeaders
- The repeatability headers configuration.- Returns:
- the AddParticipantsOptions object itself.
-
setOperationContext
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
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.
-