@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Trait extends Object implements Serializable, Cloneable, StructuredPojo
Provides contextual information about the extracted entity.
| Constructor and Description |
|---|
Trait() |
| Modifier and Type | Method and Description |
|---|---|
Trait |
clone() |
boolean |
equals(Object obj) |
String |
getName()
Provides a name or contextual description about the trait.
|
Float |
getScore()
The level of confidence that Amazon Comprehend Medical has in the accuracy of this trait.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setName(String name)
Provides a name or contextual description about the trait.
|
void |
setScore(Float score)
The level of confidence that Amazon Comprehend Medical has in the accuracy of this trait.
|
String |
toString()
Returns a string representation of this object.
|
Trait |
withName(AttributeName name)
Provides a name or contextual description about the trait.
|
Trait |
withName(String name)
Provides a name or contextual description about the trait.
|
Trait |
withScore(Float score)
The level of confidence that Amazon Comprehend Medical has in the accuracy of this trait.
|
public void setName(String name)
Provides a name or contextual description about the trait.
name - Provides a name or contextual description about the trait.AttributeNamepublic String getName()
Provides a name or contextual description about the trait.
AttributeNamepublic Trait withName(String name)
Provides a name or contextual description about the trait.
name - Provides a name or contextual description about the trait.AttributeNamepublic Trait withName(AttributeName name)
Provides a name or contextual description about the trait.
name - Provides a name or contextual description about the trait.AttributeNamepublic void setScore(Float score)
The level of confidence that Amazon Comprehend Medical has in the accuracy of this trait.
score - The level of confidence that Amazon Comprehend Medical has in the accuracy of this trait.public Float getScore()
The level of confidence that Amazon Comprehend Medical has in the accuracy of this trait.
public Trait withScore(Float score)
The level of confidence that Amazon Comprehend Medical has in the accuracy of this trait.
score - The level of confidence that Amazon Comprehend Medical has in the accuracy of this trait.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.