public class AddDocumentOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
AddDocumentOptions.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
collectionId |
protected java.lang.String |
environmentId |
protected java.io.InputStream |
file |
protected java.lang.String |
fileContentType |
protected java.lang.String |
filename |
protected java.lang.String |
metadata |
Modifier | Constructor and Description |
---|---|
protected |
AddDocumentOptions(AddDocumentOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
collectionId()
Gets the collectionId.
|
java.lang.String |
environmentId()
Gets the environmentId.
|
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.
|
AddDocumentOptions.Builder |
newBuilder()
New builder.
|
protected java.lang.String environmentId
protected java.lang.String collectionId
protected java.io.InputStream file
protected java.lang.String filename
protected java.lang.String fileContentType
protected java.lang.String metadata
protected AddDocumentOptions(AddDocumentOptions.Builder builder)
public AddDocumentOptions.Builder newBuilder()
public java.lang.String environmentId()
The ID of the environment.
public java.lang.String collectionId()
The ID of the collection.
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" } ```.