public class AnalyzeDocumentOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
AnalyzeDocumentOptions.Builder
Builder.
|
Modifier and Type | Method and Description |
---|---|
String |
collectionId()
Gets the collectionId.
|
InputStream |
file()
Gets the file.
|
String |
fileContentType()
Gets the fileContentType.
|
String |
filename()
Gets the filename.
|
String |
metadata()
Gets the metadata.
|
AnalyzeDocumentOptions.Builder |
newBuilder()
New builder.
|
String |
projectId()
Gets the projectId.
|
public AnalyzeDocumentOptions.Builder newBuilder()
public String projectId()
The ID of the project. This information can be found from the *Integrate and Deploy* page in Discovery.
public String collectionId()
The ID of the collection.
public InputStream file()
The content of the document to ingest. For maximum supported file size limits, see [the documentation](https://cloud.ibm.com/docs/discovery-data?topic=discovery-data-collections#collections-doc-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()
The maximum supported metadata file size is 1 MB. Metadata parts larger than 1 MB are rejected.
Example: ``` { "Creator": "Johnny Appleseed", "Subject": "Apples" } ```.
Copyright © 2021 IBM Cloud. All rights reserved.