/* * 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; /** *
* Contains the detections for each page analyzed through the Analyze Lending API. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class LendingResult implements Serializable, Cloneable, StructuredPojo { /** ** The page number for a page, with regard to whole submission. *
*/ private Integer page; /** ** The classifier result for a given page. *
*/ private PageClassification pageClassification; /** ** An array of Extraction to hold structured data. e.g. normalized key value pairs instead of raw OCR detections . *
*/ private java.util.List* The page number for a page, with regard to whole submission. *
* * @param page * The page number for a page, with regard to whole submission. */ public void setPage(Integer page) { this.page = page; } /** ** The page number for a page, with regard to whole submission. *
* * @return The page number for a page, with regard to whole submission. */ public Integer getPage() { return this.page; } /** ** The page number for a page, with regard to whole submission. *
* * @param page * The page number for a page, with regard to whole submission. * @return Returns a reference to this object so that method calls can be chained together. */ public LendingResult withPage(Integer page) { setPage(page); return this; } /** ** The classifier result for a given page. *
* * @param pageClassification * The classifier result for a given page. */ public void setPageClassification(PageClassification pageClassification) { this.pageClassification = pageClassification; } /** ** The classifier result for a given page. *
* * @return The classifier result for a given page. */ public PageClassification getPageClassification() { return this.pageClassification; } /** ** The classifier result for a given page. *
* * @param pageClassification * The classifier result for a given page. * @return Returns a reference to this object so that method calls can be chained together. */ public LendingResult withPageClassification(PageClassification pageClassification) { setPageClassification(pageClassification); return this; } /** ** An array of Extraction to hold structured data. e.g. normalized key value pairs instead of raw OCR detections . *
* * @return An array of Extraction to hold structured data. e.g. normalized key value pairs instead of raw OCR * detections . */ public java.util.List* An array of Extraction to hold structured data. e.g. normalized key value pairs instead of raw OCR detections . *
* * @param extractions * An array of Extraction to hold structured data. e.g. normalized key value pairs instead of raw OCR * detections . */ public void setExtractions(java.util.Collection* An array of Extraction to hold structured data. e.g. normalized key value pairs instead of raw OCR detections . *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setExtractions(java.util.Collection)} or {@link #withExtractions(java.util.Collection)} if you want to * override the existing values. *
* * @param extractions * An array of Extraction to hold structured data. e.g. normalized key value pairs instead of raw OCR * detections . * @return Returns a reference to this object so that method calls can be chained together. */ public LendingResult withExtractions(Extraction... extractions) { if (this.extractions == null) { setExtractions(new java.util.ArrayList* An array of Extraction to hold structured data. e.g. normalized key value pairs instead of raw OCR detections . *
* * @param extractions * An array of Extraction to hold structured data. e.g. normalized key value pairs instead of raw OCR * detections . * @return Returns a reference to this object so that method calls can be chained together. */ public LendingResult withExtractions(java.util.Collection