/* * Copyright 2018-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; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* 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. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PageClassification implements Serializable, Cloneable, StructuredPojo { /** ** 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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPageType(java.util.Collection)} or {@link #withPageType(java.util.Collection)} if you want to override * the existing values. *
* * @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 Returns a reference to this object so that method calls can be chained together. */ public PageClassification withPageType(Prediction... pageType) { if (this.pageType == null) { setPageType(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. *
* * @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 Returns a reference to this 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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPageNumber(java.util.Collection)} or {@link #withPageNumber(java.util.Collection)} if you want to * override the existing values. *
* * @param pageNumber * The page number the value was detected on, relative to Amazon Textract's starting position. * @return Returns a reference to this object so that method calls can be chained together. */ public PageClassification withPageNumber(Prediction... pageNumber) { if (this.pageNumber == null) { setPageNumber(new java.util.ArrayList* 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. * @return Returns a reference to this object so that method calls can be chained together. */ public PageClassification withPageNumber(java.util.Collection