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.
|
String |
environmentId()
Gets the environmentId.
|
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.
|
public UpdateDocumentOptions.Builder newBuilder()
public String environmentId()
The ID of the environment.
public String collectionId()
The ID of the collection.
public String documentId()
The ID of the document.
public 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 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()
The maximum supported metadata file size is 1 MB. Metadata parts larger than 1 MB are rejected. Example: ``` { "Creator": "Johnny Appleseed", "Subject": "Apples" } ```.
Copyright © 2022 IBM Cloud. All rights reserved.