public class DocumentClass
extends java.lang.Object
implements java.io.Serializable
Specifies the class that categorizes the document being analyzed
Constructor and Description |
---|
DocumentClass() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
The name of the class.
|
java.lang.Float |
getScore()
The confidence score that Amazon Comprehend has this class correctly
attributed.
|
int |
hashCode() |
void |
setName(java.lang.String name)
The name of the class.
|
void |
setScore(java.lang.Float score)
The confidence score that Amazon Comprehend has this class correctly
attributed.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DocumentClass |
withName(java.lang.String name)
The name of the class.
|
DocumentClass |
withScore(java.lang.Float score)
The confidence score that Amazon Comprehend has this class correctly
attributed.
|
public java.lang.String getName()
The name of the class.
Constraints:
Length: 1 -
The name of the class.
public void setName(java.lang.String name)
The name of the class.
Constraints:
Length: 1 -
name
- The name of the class.
public DocumentClass withName(java.lang.String name)
The name of the class.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
name
- The name of the class.
public java.lang.Float getScore()
The confidence score that Amazon Comprehend has this class correctly attributed.
The confidence score that Amazon Comprehend has this class correctly attributed.
public void setScore(java.lang.Float score)
The confidence score that Amazon Comprehend has this class correctly attributed.
score
- The confidence score that Amazon Comprehend has this class correctly attributed.
public DocumentClass withScore(java.lang.Float score)
The confidence score that Amazon Comprehend has this class correctly attributed.
Returns a reference to this object so that method calls can be chained together.
score
- The confidence score that Amazon Comprehend has this class correctly attributed.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.