public static class GetSearchMatchesOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String corpus,
String documentId,
Float minScore)
Instantiates a new builder with required properties.
|
public GetSearchMatchesOptions build()
public GetSearchMatchesOptions.Builder addCuis(String cuis)
cuis
- the new cuispublic GetSearchMatchesOptions.Builder addText(String text)
text
- the new textpublic GetSearchMatchesOptions.Builder addTypes(String types)
types
- the new typespublic GetSearchMatchesOptions.Builder addAttributes(String attributes)
attributes
- the new attributespublic GetSearchMatchesOptions.Builder addValues(String values)
values
- the new valuespublic GetSearchMatchesOptions.Builder addNluRelations(String nluRelations)
nluRelations
- the new nluRelationspublic GetSearchMatchesOptions.Builder corpus(String corpus)
corpus
- the corpuspublic GetSearchMatchesOptions.Builder documentId(String documentId)
documentId
- the documentIdpublic GetSearchMatchesOptions.Builder minScore(Float minScore)
minScore
- the minScorepublic GetSearchMatchesOptions.Builder cuis(List<String> cuis)
cuis
- the cuispublic GetSearchMatchesOptions.Builder text(List<String> text)
text
- the textpublic GetSearchMatchesOptions.Builder types(List<String> types)
types
- the typespublic GetSearchMatchesOptions.Builder attributes(List<String> attributes)
attributes
- the attributespublic GetSearchMatchesOptions.Builder values(List<String> values)
values
- the valuespublic GetSearchMatchesOptions.Builder nluRelations(List<String> nluRelations)
nluRelations
- the nluRelationspublic GetSearchMatchesOptions.Builder limit(long limit)
limit
- the limitpublic GetSearchMatchesOptions.Builder searchTagBegin(String searchTagBegin)
searchTagBegin
- the searchTagBeginpublic GetSearchMatchesOptions.Builder searchTagEnd(String searchTagEnd)
searchTagEnd
- the searchTagEndpublic GetSearchMatchesOptions.Builder relatedTagBegin(String relatedTagBegin)
relatedTagBegin
- the relatedTagBeginpublic GetSearchMatchesOptions.Builder relatedTagEnd(String relatedTagEnd)
relatedTagEnd
- the relatedTagEndpublic GetSearchMatchesOptions.Builder fields(String fields)
fields
- the fieldsCopyright © 2021 IBM Cloud. All rights reserved.