java.lang.Object
com.azure.communication.callautomation.models.PlaySource
com.azure.communication.callautomation.models.FileSource
All Implemented Interfaces:
com.azure.json.JsonSerializable<PlaySource>

public final class FileSource extends PlaySource
The FileSource model.
  • Constructor Details

    • FileSource

      public FileSource()
  • Method Details

    • getUrl

      public String getUrl()
      Get the uri property: Uri for the audio file to be played.
      Returns:
      the uri value.
    • setUrl

      public FileSource setUrl(String url)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Throws:
      IOException
    • fromJson

      public static FileSource fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.