public class UpdateDocumentOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
UpdateDocumentOptions.Builder
Builder.
|
Modifier and Type | Method and Description |
---|---|
String |
collectionId()
Gets the collectionId.
|
String |
documentId()
Gets the documentId.
|
InputStream |
file()
Gets the file.
|
String |
fileContentType()
Gets the fileContentType.
|
String |
filename()
Gets the filename.
|
String |
metadata()
Gets the metadata.
|
UpdateDocumentOptions.Builder |
newBuilder()
New builder.
|
String |
projectId()
Gets the projectId.
|
Boolean |
xWatsonDiscoveryForce()
Gets the xWatsonDiscoveryForce.
|
public UpdateDocumentOptions.Builder newBuilder()
public String projectId()
The Universally Unique Identifier (UUID) of the project. This information can be found from the *Integrate and Deploy* page in Discovery.
public String collectionId()
The Universally Unique Identifier (UUID) of the collection.
public String documentId()
The ID of the document.
public InputStream file()
**Add a document**: The content of the document to ingest. For the supported file types and maximum supported file size limits when adding a document, see [the documentation](/docs/discovery-data?topic=discovery-data-collections#supportedfiletypes).
**Analyze a document**: The content of the document to analyze but not ingest. Only the `application/json` content type is supported by the Analyze API. For maximum supported file size limits, see [the product documentation](/docs/discovery-data?topic=discovery-data-analyzeapi#analyzeapi-limits).
public String filename()
The filename for file.
public String fileContentType()
The content type of file. Values for this parameter can be obtained from the HttpMediaType class.
public String metadata()
Add information about the file that you want to include in the response.
The maximum supported metadata file size is 1 MB. Metadata parts larger than 1 MB are rejected.
Example:
``` { "filename": "favorites2.json", "file_type": "json" }.
public Boolean xWatsonDiscoveryForce()
When `true`, the uploaded document is added to the collection even if the data for that collection is shared with other collections.
Copyright © 2024 IBM Cloud. All rights reserved.