@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PageClassification extends Object implements Serializable, Cloneable, StructuredPojo
The class assigned to a Page object detected in an input document. Contains information regarding the predicted type/class of a document's page and the page number that the Page object was detected on.
Constructor and Description |
---|
PageClassification() |
Modifier and Type | Method and Description |
---|---|
PageClassification |
clone() |
boolean |
equals(Object obj) |
List<Prediction> |
getPageNumber()
The page number the value was detected on, relative to Amazon Textract's starting position.
|
List<Prediction> |
getPageType()
The class, or document type, assigned to a detected Page object.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPageNumber(Collection<Prediction> pageNumber)
The page number the value was detected on, relative to Amazon Textract's starting position.
|
void |
setPageType(Collection<Prediction> pageType)
The class, or document type, assigned to a detected Page object.
|
String |
toString()
Returns a string representation of this object.
|
PageClassification |
withPageNumber(Collection<Prediction> pageNumber)
The page number the value was detected on, relative to Amazon Textract's starting position.
|
PageClassification |
withPageNumber(Prediction... pageNumber)
The page number the value was detected on, relative to Amazon Textract's starting position.
|
PageClassification |
withPageType(Collection<Prediction> pageType)
The class, or document type, assigned to a detected Page object.
|
PageClassification |
withPageType(Prediction... pageType)
The class, or document type, assigned to a detected Page object.
|
public List<Prediction> getPageType()
The class, or document type, assigned to a detected Page object. The class, or document type, assigned to a detected Page object.
public void setPageType(Collection<Prediction> pageType)
The class, or document type, assigned to a detected Page object. The class, or document type, assigned to a detected Page object.
pageType
- The class, or document type, assigned to a detected Page object. The class, or document type, assigned to
a detected Page object.public PageClassification withPageType(Prediction... pageType)
The class, or document type, assigned to a detected Page object. The class, or document type, assigned to a detected Page object.
NOTE: This method appends the values to the existing list (if any). Use
setPageType(java.util.Collection)
or withPageType(java.util.Collection)
if you want to override
the existing values.
pageType
- The class, or document type, assigned to a detected Page object. The class, or document type, assigned to
a detected Page object.public PageClassification withPageType(Collection<Prediction> pageType)
The class, or document type, assigned to a detected Page object. The class, or document type, assigned to a detected Page object.
pageType
- The class, or document type, assigned to a detected Page object. The class, or document type, assigned to
a detected Page object.public List<Prediction> getPageNumber()
The page number the value was detected on, relative to Amazon Textract's starting position.
public void setPageNumber(Collection<Prediction> pageNumber)
The page number the value was detected on, relative to Amazon Textract's starting position.
pageNumber
- The page number the value was detected on, relative to Amazon Textract's starting position.public PageClassification withPageNumber(Prediction... pageNumber)
The page number the value was detected on, relative to Amazon Textract's starting position.
NOTE: This method appends the values to the existing list (if any). Use
setPageNumber(java.util.Collection)
or withPageNumber(java.util.Collection)
if you want to
override the existing values.
pageNumber
- The page number the value was detected on, relative to Amazon Textract's starting position.public PageClassification withPageNumber(Collection<Prediction> pageNumber)
The page number the value was detected on, relative to Amazon Textract's starting position.
pageNumber
- The page number the value was detected on, relative to Amazon Textract's starting position.public String toString()
toString
in class Object
Object.toString()
public PageClassification clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.