public static class EntryModel.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
EntryModel.Builder |
addSentences(SentenceModel sentences)
Adds an sentences to sentences.
|
EntryModel |
build()
Builds a EntryModel.
|
EntryModel.Builder |
id(String id)
Set the id.
|
EntryModel.Builder |
negated(Boolean negated)
Set the negated.
|
EntryModel.Builder |
sentences(List<SentenceModel> sentences)
Set the sentences.
|
public EntryModel build()
public EntryModel.Builder addSentences(SentenceModel sentences)
sentences
- the new sentencespublic EntryModel.Builder id(String id)
id
- the idpublic EntryModel.Builder negated(Boolean negated)
negated
- the negatedpublic EntryModel.Builder sentences(List<SentenceModel> sentences)
sentences
- the sentencesCopyright © 2021 IBM Cloud. All rights reserved.