UpdateKnowledgeSourceFileRequest Class

  • java.lang.Object
    • com.azure.search.documents.indexes.models.UpdateKnowledgeSourceFileRequest

public final class UpdateKnowledgeSourceFileRequest

Multipart request for updating a file in a File knowledge source.

Constructor Summary

Constructor Description
UpdateKnowledgeSourceFileRequest(FileUploadMetadata metadata, ContentFileDetails content)

Creates an instance of UpdateKnowledgeSourceFileRequest class.

Method Summary

Modifier and Type Method and Description
ContentFileDetails getContent()

Get the content property: The raw file content.

FileUploadMetadata getMetadata()

Get the metadata property: The JSON metadata describing the file.

Methods inherited from java.lang.Object

Constructor Details

UpdateKnowledgeSourceFileRequest

public UpdateKnowledgeSourceFileRequest(FileUploadMetadata metadata, ContentFileDetails content)

Creates an instance of UpdateKnowledgeSourceFileRequest class.

Parameters:

metadata - the metadata value to set.
content - the content value to set.

Method Details

getContent

public ContentFileDetails getContent()

Get the content property: The raw file content.

Returns:

the content value.

getMetadata

public FileUploadMetadata getMetadata()

Get the metadata property: The JSON metadata describing the file.

Returns:

the metadata value.

Applies to