Class DataFileDetails

java.lang.Object
com.azure.ai.openai.models.DataFileDetails

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

    • DataFileDetails

      public DataFileDetails(com.azure.core.util.BinaryData content)
      Creates an instance of DataFileDetails class.
      Parameters:
      content - the content value to set.
  • 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 DataFileDetails setFilename(String filename)
      Set the filename property: The filename of the file.
      Parameters:
      filename - the filename value to set.
      Returns:
      the DataFileDetails object itself.
    • getContentType

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

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