Class CreateCallOptions
java.lang.Object
com.azure.communication.callautomation.models.CreateCallOptions
The options for creating a call.
-
Constructor Summary
ConstructorDescriptionCreateCallOptions
(com.azure.communication.common.CommunicationIdentifier source, List<com.azure.communication.common.CommunicationIdentifier> targets, String callbackUrl) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGet the call back uri.Get the operationContext: A customer set value used to track the answering of a call.Get the Repeatability headers configuration.com.azure.communication.common.CommunicationIdentifier
Get the source.Get the source caller Id that's shown to the PSTN participant being invited.List<com.azure.communication.common.CommunicationIdentifier>
Get the targets.setOperationContext
(String operationContext) Set the operationContext: A customer set value used to track the answering of a call.setRepeatabilityHeaders
(RepeatabilityHeaders repeatabilityHeaders) Set the repeatability headerssetSourceCallerId
(String sourceCallerId) Set the sourceCallerId.
-
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
Get the targets.- Returns:
- the targets list.
-
getCallbackUrl
Get the call back uri.- Returns:
- the call back uri.
-
getOperationContext
Get the operationContext: A customer set value used to track the answering of a call.- Returns:
- the operationContext value.
-
getSourceCallerId
Get the source caller Id that's shown to the PSTN participant being invited.- Returns:
- the sourceCallerId value.
-
getRepeatabilityHeaders
Get the Repeatability headers configuration.- Returns:
- the repeatabilityHeaders
-
setOperationContext
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
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
Set the repeatability headers- Parameters:
repeatabilityHeaders
- The repeatability headers configuration.- Returns:
- the CreateCallOptions object itself.
-