@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DocumentLabel extends Object implements Serializable, Cloneable, StructuredPojo
Specifies one of the label or labels that categorize the document being analyzed.
Constructor and Description |
---|
DocumentLabel() |
Modifier and Type | Method and Description |
---|---|
DocumentLabel |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the label.
|
Float |
getScore()
The confidence score that Amazon Comprehend has this label correctly attributed.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The name of the label.
|
void |
setScore(Float score)
The confidence score that Amazon Comprehend has this label correctly attributed.
|
String |
toString()
Returns a string representation of this object.
|
DocumentLabel |
withName(String name)
The name of the label.
|
DocumentLabel |
withScore(Float score)
The confidence score that Amazon Comprehend has this label correctly attributed.
|
public void setName(String name)
The name of the label.
name
- The name of the label.public String getName()
The name of the label.
public DocumentLabel withName(String name)
The name of the label.
name
- The name of the label.public void setScore(Float score)
The confidence score that Amazon Comprehend has this label correctly attributed.
score
- The confidence score that Amazon Comprehend has this label correctly attributed.public Float getScore()
The confidence score that Amazon Comprehend has this label correctly attributed.
public DocumentLabel withScore(Float score)
The confidence score that Amazon Comprehend has this label correctly attributed.
score
- The confidence score that Amazon Comprehend has this label correctly attributed.public String toString()
toString
in class Object
Object.toString()
public DocumentLabel clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.