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 | Field and Description |
---|---|
protected java.lang.String |
collectionId |
protected java.lang.String |
documentId |
protected java.io.InputStream |
file |
protected java.lang.String |
fileContentType |
protected java.lang.String |
filename |
protected java.lang.String |
metadata |
protected java.lang.String |
projectId |
protected java.lang.Boolean |
xWatsonDiscoveryForce |
Modifier | Constructor and Description |
---|---|
protected |
UpdateDocumentOptions(UpdateDocumentOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
collectionId()
Gets the collectionId.
|
java.lang.String |
documentId()
Gets the documentId.
|
java.io.InputStream |
file()
Gets the file.
|
java.lang.String |
fileContentType()
Gets the fileContentType.
|
java.lang.String |
filename()
Gets the filename.
|
java.lang.String |
metadata()
Gets the metadata.
|
UpdateDocumentOptions.Builder |
newBuilder()
New builder.
|
java.lang.String |
projectId()
Gets the projectId.
|
java.lang.Boolean |
xWatsonDiscoveryForce()
Gets the xWatsonDiscoveryForce.
|
protected java.lang.String projectId
protected java.lang.String collectionId
protected java.lang.String documentId
protected java.io.InputStream file
protected java.lang.String filename
protected java.lang.String fileContentType
protected java.lang.String metadata
protected java.lang.Boolean xWatsonDiscoveryForce
protected UpdateDocumentOptions(UpdateDocumentOptions.Builder builder)
public UpdateDocumentOptions.Builder newBuilder()
public java.lang.String projectId()
The ID of the project. This information can be found from the deploy page of the Discovery administrative tooling.
public java.lang.String collectionId()
The ID of the collection.
public java.lang.String documentId()
The ID of the document.
public java.io.InputStream file()
The content of the document to ingest. The maximum supported file size when adding a file to a collection is 50 megabytes, the maximum supported file size when testing a configuration is 1 megabyte. Files larger than the supported size are rejected.
public java.lang.String filename()
The filename for file.
public java.lang.String fileContentType()
The content type of file. Values for this parameter can be obtained from the HttpMediaType class.
public java.lang.String metadata()
The maximum supported metadata file size is 1 MB. Metadata parts larger than 1 MB are rejected. Example: ``` { "Creator": "Johnny Appleseed", "Subject": "Apples" } ```.
public java.lang.Boolean xWatsonDiscoveryForce()
When `true`, the uploaded document is added to the collection even if the data for that collection is shared with other collections.