public static class AddCorpusDocumentOptions.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder()
Instantiates a new builder.
|
Builder(java.lang.String corpus)
Instantiates a new builder with required properties.
|
| Modifier and Type | Method and Description |
|---|---|
AddCorpusDocumentOptions.Builder |
accessToken(java.lang.String accessToken)
Set the accessToken.
|
AddCorpusDocumentOptions.Builder |
acdUrl(java.lang.String acdUrl)
Set the acdUrl.
|
AddCorpusDocumentOptions.Builder |
addOtherAnnotators(java.lang.Object otherAnnotators)
Adds an otherAnnotators to otherAnnotators.
|
AddCorpusDocumentOptions.Builder |
apiKey(java.lang.String apiKey)
Set the apiKey.
|
AddCorpusDocumentOptions |
build()
Builds a AddCorpusDocumentOptions.
|
AddCorpusDocumentOptions.Builder |
corpus(java.lang.String corpus)
Set the corpus.
|
AddCorpusDocumentOptions.Builder |
document(java.util.Map<java.lang.String,java.lang.Object> document)
Set the document.
|
AddCorpusDocumentOptions.Builder |
flowId(java.lang.String flowId)
Set the flowId.
|
AddCorpusDocumentOptions.Builder |
otherAnnotators(java.util.List<java.lang.Object> otherAnnotators)
Set the otherAnnotators.
|
public Builder()
public Builder(java.lang.String corpus)
corpus - the corpuspublic AddCorpusDocumentOptions build()
public AddCorpusDocumentOptions.Builder addOtherAnnotators(java.lang.Object otherAnnotators)
otherAnnotators - the new otherAnnotatorspublic AddCorpusDocumentOptions.Builder corpus(java.lang.String corpus)
corpus - the corpuspublic AddCorpusDocumentOptions.Builder document(java.util.Map<java.lang.String,java.lang.Object> document)
document - the documentpublic AddCorpusDocumentOptions.Builder acdUrl(java.lang.String acdUrl)
acdUrl - the acdUrlpublic AddCorpusDocumentOptions.Builder apiKey(java.lang.String apiKey)
apiKey - the apiKeypublic AddCorpusDocumentOptions.Builder flowId(java.lang.String flowId)
flowId - the flowIdpublic AddCorpusDocumentOptions.Builder accessToken(java.lang.String accessToken)
accessToken - the accessTokenpublic AddCorpusDocumentOptions.Builder otherAnnotators(java.util.List<java.lang.Object> otherAnnotators)
otherAnnotators - the otherAnnotatorsCopyright © 2021 IBM Cloud. All rights reserved.