/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.textract.model; import java.io.Serializable; /** *
* 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. *
*/ public class PageClassification implements Serializable { /** ** The class, or document type, assigned to a detected Page object. The * class, or document type, assigned to a detected Page object. *
*/ private java.util.List* The page number the value was detected on, relative to Amazon Textract's * starting position. *
*/ private java.util.List* The class, or document type, assigned to a detected Page object. The * class, or document type, assigned to a detected Page object. *
* * @return* The class, or document type, assigned to a detected Page object. * The class, or document type, assigned to a detected Page object. *
*/ public java.util.List* The class, or document type, assigned to a detected Page object. The * class, or document type, assigned to a detected Page object. *
* * @param pageType* 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(java.util.Collection* The class, or document type, assigned to a detected Page object. The * class, or document type, assigned to a detected Page object. *
** Returns a reference to this object so that method calls can be chained * together. * * @param pageType
* The class, or document type, assigned to a detected Page * object. The class, or document type, assigned to a detected * Page object. *
* @return A reference to this updated object so that method calls can be * chained together. */ public PageClassification withPageType(Prediction... pageType) { if (getPageType() == null) { this.pageType = new java.util.ArrayList* The class, or document type, assigned to a detected Page object. The * class, or document type, assigned to a detected Page object. *
** Returns a reference to this object so that method calls can be chained * together. * * @param pageType
* The class, or document type, assigned to a detected Page * object. The class, or document type, assigned to a detected * Page object. *
* @return A reference to this updated object so that method calls can be * chained together. */ public PageClassification withPageType(java.util.Collection* The page number the value was detected on, relative to Amazon Textract's * starting position. *
* * @return* The page number the value was detected on, relative to Amazon * Textract's starting position. *
*/ public java.util.List* The page number the value was detected on, relative to Amazon Textract's * starting position. *
* * @param pageNumber* The page number the value was detected on, relative to Amazon * Textract's starting position. *
*/ public void setPageNumber(java.util.Collection* The page number the value was detected on, relative to Amazon Textract's * starting position. *
** Returns a reference to this object so that method calls can be chained * together. * * @param pageNumber
* The page number the value was detected on, relative to Amazon * Textract's starting position. *
* @return A reference to this updated object so that method calls can be * chained together. */ public PageClassification withPageNumber(Prediction... pageNumber) { if (getPageNumber() == null) { this.pageNumber = new java.util.ArrayList* The page number the value was detected on, relative to Amazon Textract's * starting position. *
** Returns a reference to this object so that method calls can be chained * together. * * @param pageNumber
* The page number the value was detected on, relative to Amazon * Textract's starting position. *
* @return A reference to this updated object so that method calls can be * chained together. */ public PageClassification withPageNumber(java.util.Collection