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