Class FileSource
java.lang.Object
com.azure.communication.callautomation.models.PlaySource
com.azure.communication.callautomation.models.FileSource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PlaySource>
The FileSource model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FileSourcefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FileSource from the JsonReader.getUrl()Get the uri property: Uri for the audio file to be played.Set the uri property: Uri for the audio file to be played.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.communication.callautomation.models.PlaySource
getPlaySourceCacheId, setPlaySourceCacheIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
FileSource
public FileSource()
-
-
Method Details
-
getUrl
Get the uri property: Uri for the audio file to be played.- Returns:
- the uri value.
-
setUrl
Set the uri property: Uri for the audio file to be played.- Parameters:
url- the uri value to set.- Returns:
- the FileSourceInternal object itself.
-
toJson
- Throws:
IOException
-
fromJson
Reads an instance of FileSource from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FileSource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the FileSource.
-