public static class GetSimilarConceptsOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(java.lang.String corpus,
java.lang.String nameOrId,
java.util.List<java.lang.String> returnOntologies)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
GetSimilarConceptsOptions.Builder |
addReturnOntologies(java.lang.String returnOntologies)
Adds an returnOntologies to returnOntologies.
|
GetSimilarConceptsOptions |
build()
Builds a GetSimilarConceptsOptions.
|
GetSimilarConceptsOptions.Builder |
corpus(java.lang.String corpus)
Set the corpus.
|
GetSimilarConceptsOptions.Builder |
limit(long limit)
Set the limit.
|
GetSimilarConceptsOptions.Builder |
nameOrId(java.lang.String nameOrId)
Set the nameOrId.
|
GetSimilarConceptsOptions.Builder |
ontology(java.lang.String ontology)
Set the ontology.
|
GetSimilarConceptsOptions.Builder |
returnOntologies(java.util.List<java.lang.String> returnOntologies)
Set the returnOntologies.
|
public Builder()
public Builder(java.lang.String corpus, java.lang.String nameOrId, java.util.List<java.lang.String> returnOntologies)
corpus
- the corpusnameOrId
- the nameOrIdreturnOntologies
- the returnOntologiespublic GetSimilarConceptsOptions build()
public GetSimilarConceptsOptions.Builder addReturnOntologies(java.lang.String returnOntologies)
returnOntologies
- the new returnOntologiespublic GetSimilarConceptsOptions.Builder corpus(java.lang.String corpus)
corpus
- the corpuspublic GetSimilarConceptsOptions.Builder nameOrId(java.lang.String nameOrId)
nameOrId
- the nameOrIdpublic GetSimilarConceptsOptions.Builder returnOntologies(java.util.List<java.lang.String> returnOntologies)
returnOntologies
- the returnOntologiespublic GetSimilarConceptsOptions.Builder ontology(java.lang.String ontology)
ontology
- the ontologypublic GetSimilarConceptsOptions.Builder limit(long limit)
limit
- the limitCopyright © 2022 IBM Cloud. All rights reserved.