Class UpdateDocumentOptions
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class UpdateDocumentOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdateDocumentOptions.BuilderBuilder. -
Method Summary
Modifier and Type Method Description StringcollectionId()Gets the collectionId.StringdocumentId()Gets the documentId.InputStreamfile()Gets the file.StringfileContentType()Gets the fileContentType.Stringfilename()Gets the filename.Stringmetadata()Gets the metadata.UpdateDocumentOptions.BuildernewBuilder()New builder.StringprojectId()Gets the projectId.BooleanxWatsonDiscoveryForce()Gets the xWatsonDiscoveryForce.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a UpdateDocumentOptions builder
-
projectId
Gets the projectId.The ID of the project. This information can be found from the *Integrate and Deploy* page in Discovery.
- Returns:
- the projectId
-
collectionId
Gets the collectionId.The ID of the collection.
- Returns:
- the collectionId
-
documentId
Gets the documentId.The ID of the document.
- Returns:
- the documentId
-
file
Gets the 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).
- Returns:
- the file
-
filename
Gets the filename.The filename for file.
- Returns:
- the filename
-
fileContentType
Gets the fileContentType.The content type of file. Values for this parameter can be obtained from the HttpMediaType class.
- Returns:
- the fileContentType
-
metadata
Gets the metadata.The maximum supported metadata file size is 1 MB. Metadata parts larger than 1 MB are rejected.
Example: ``` { "Creator": "Johnny Appleseed", "Subject": "Apples" } ```.
- Returns:
- the metadata
-
xWatsonDiscoveryForce
Gets the xWatsonDiscoveryForce.When `true`, the uploaded document is added to the collection even if the data for that collection is shared with other collections.
- Returns:
- the xWatsonDiscoveryForce
-