Class FileDetails

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

public final class FileDetails extends Object
The file details for the "file" field.
  • Constructor Details

    • FileDetails

      public FileDetails(com.azure.core.util.BinaryData content, String filename)
      Creates an instance of FileDetails class.
      Parameters:
      content - the content value to set.
      filename - the filename of the file.
  • Method Details

    • getContent

      public com.azure.core.util.BinaryData getContent()
      Get the content property: The content of the file.
      Returns:
      the content value.
    • getFilename

      public String getFilename()
      Get the filename property: The filename of the file.
      Returns:
      the filename value.
    • setFilename

      public FileDetails setFilename(String filename)
      Set the filename property: The filename of the file.
      Parameters:
      filename - the filename value to set.
      Returns:
      the FileDetails object itself.
    • getContentType

      public String getContentType()
      Get the contentType property: The content-type of the file.
      Returns:
      the contentType value.
    • setContentType

      public FileDetails setContentType(String contentType)
      Set the contentType property: The content-type of the file.
      Parameters:
      contentType - the contentType value to set.
      Returns:
      the FileDetails object itself.