Class UploadFileRequest

java.lang.Object
com.azure.ai.openai.assistants.models.UploadFileRequest

public final class UploadFileRequest extends Object
The UploadFileRequest model.
  • Constructor Details

    • UploadFileRequest

      public UploadFileRequest(FileDetails file, FilePurpose purpose)
      Creates an instance of UploadFileRequest class.
      Parameters:
      file - the file value to set.
      purpose - the purpose value to set.
  • Method Details

    • getFile

      public FileDetails getFile()
      Get the file property: The file data (not filename) to upload.
      Returns:
      the file value.
    • getPurpose

      public FilePurpose getPurpose()
      Get the purpose property: The intended purpose of the file.
      Returns:
      the purpose value.
    • getFilename

      public String getFilename()
      Get the filename property: A filename to associate with the uploaded data.
      Returns:
      the filename value.
    • setFilename

      public UploadFileRequest setFilename(String filename)
      Set the filename property: A filename to associate with the uploaded data.
      Parameters:
      filename - the filename value to set.
      Returns:
      the UploadFileRequest object itself.