@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.
|
Integer |
getPage()
Page number where the label occurs.
|
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 |
setPage(Integer page)
Page number where the label occurs.
|
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 |
withPage(Integer page)
Page number where the label occurs.
|
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 void setPage(Integer page)
Page number where the label occurs. This field is present in the response only if your request includes the
Byte parameter.
page - Page number where the label occurs. This field is present in the response only if your request includes
the Byte parameter.public Integer getPage()
Page number where the label occurs. This field is present in the response only if your request includes the
Byte parameter.
Byte parameter.public DocumentLabel withPage(Integer page)
Page number where the label occurs. This field is present in the response only if your request includes the
Byte parameter.
page - Page number where the label occurs. This field is present in the response only if your request includes
the Byte parameter.public String toString()
toString in class ObjectObject.toString()public DocumentLabel clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.