public static class GetRelatedConceptsOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(java.lang.String corpus,
java.lang.String nameOrId,
java.lang.String relationship)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
GetRelatedConceptsOptions.Builder |
addRelationshipAttributes(java.lang.String relationshipAttributes)
Adds an relationshipAttributes to relationshipAttributes.
|
GetRelatedConceptsOptions.Builder |
addSources(java.lang.String sources)
Adds an sources to sources.
|
GetRelatedConceptsOptions |
build()
Builds a GetRelatedConceptsOptions.
|
GetRelatedConceptsOptions.Builder |
corpus(java.lang.String corpus)
Set the corpus.
|
GetRelatedConceptsOptions.Builder |
maxDepth(long maxDepth)
Set the maxDepth.
|
GetRelatedConceptsOptions.Builder |
nameOrId(java.lang.String nameOrId)
Set the nameOrId.
|
GetRelatedConceptsOptions.Builder |
ontology(java.lang.String ontology)
Set the ontology.
|
GetRelatedConceptsOptions.Builder |
recursive(java.lang.Boolean recursive)
Set the recursive.
|
GetRelatedConceptsOptions.Builder |
relationship(java.lang.String relationship)
Set the relationship.
|
GetRelatedConceptsOptions.Builder |
relationshipAttributes(java.util.List<java.lang.String> relationshipAttributes)
Set the relationshipAttributes.
|
GetRelatedConceptsOptions.Builder |
sources(java.util.List<java.lang.String> sources)
Set the sources.
|
GetRelatedConceptsOptions.Builder |
treeLayout(java.lang.Boolean treeLayout)
Set the treeLayout.
|
public Builder()
public Builder(java.lang.String corpus, java.lang.String nameOrId, java.lang.String relationship)
corpus
- the corpusnameOrId
- the nameOrIdrelationship
- the relationshippublic GetRelatedConceptsOptions build()
public GetRelatedConceptsOptions.Builder addRelationshipAttributes(java.lang.String relationshipAttributes)
relationshipAttributes
- the new relationshipAttributespublic GetRelatedConceptsOptions.Builder addSources(java.lang.String sources)
sources
- the new sourcespublic GetRelatedConceptsOptions.Builder corpus(java.lang.String corpus)
corpus
- the corpuspublic GetRelatedConceptsOptions.Builder nameOrId(java.lang.String nameOrId)
nameOrId
- the nameOrIdpublic GetRelatedConceptsOptions.Builder relationship(java.lang.String relationship)
relationship
- the relationshippublic GetRelatedConceptsOptions.Builder ontology(java.lang.String ontology)
ontology
- the ontologypublic GetRelatedConceptsOptions.Builder relationshipAttributes(java.util.List<java.lang.String> relationshipAttributes)
relationshipAttributes
- the relationshipAttributespublic GetRelatedConceptsOptions.Builder sources(java.util.List<java.lang.String> sources)
sources
- the sourcespublic GetRelatedConceptsOptions.Builder recursive(java.lang.Boolean recursive)
recursive
- the recursivepublic GetRelatedConceptsOptions.Builder treeLayout(java.lang.Boolean treeLayout)
treeLayout
- the treeLayoutpublic GetRelatedConceptsOptions.Builder maxDepth(long maxDepth)
maxDepth
- the maxDepthCopyright © 2022 IBM Cloud. All rights reserved.