Package com.oracle.bmc.ailanguage.model
Class RelationEntity.Builder
- java.lang.Object
-
- com.oracle.bmc.ailanguage.model.RelationEntity.Builder
-
- Enclosing class:
- RelationEntity
public static class RelationEntity.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RelationEntity
build()
RelationEntity.Builder
copy(RelationEntity model)
RelationEntity.Builder
id(String id)
id of the relationRelationEntity.Builder
objectId(String objectId)
Object entity of the relation.RelationEntity.Builder
score(Double score)
Score or confidence for detected entity.RelationEntity.Builder
subjectId(String subjectId)
Subject entity of the relation.RelationEntity.Builder
type(String type)
Type of relation between subject entity and object entity.
-
-
-
Method Detail
-
id
public RelationEntity.Builder id(String id)
id of the relation- Parameters:
id
- the value to set- Returns:
- this builder
-
subjectId
public RelationEntity.Builder subjectId(String subjectId)
Subject entity of the relation.eg,MEDICINE_NAME, EXAMINATION
- Parameters:
subjectId
- the value to set- Returns:
- this builder
-
objectId
public RelationEntity.Builder objectId(String objectId)
Object entity of the relation.eg, MEDICINE_DOSAGE, MEDICINE_DURATION, MEASUREMENT
- Parameters:
objectId
- the value to set- Returns:
- this builder
-
type
public RelationEntity.Builder type(String type)
Type of relation between subject entity and object entity.eg,EXAMINATION_MEASUREMENT, FREQUENCY, DOSAGE
- Parameters:
type
- the value to set- Returns:
- this builder
-
score
public RelationEntity.Builder score(Double score)
Score or confidence for detected entity.- Parameters:
score
- the value to set- Returns:
- this builder
-
build
public RelationEntity build()
-
copy
public RelationEntity.Builder copy(RelationEntity model)
-
-