/* * 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; /** *
* Information about where the following items are located on a document page: detected page, text, key-value pairs, * tables, table cells, and selection elements. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Geometry implements Serializable, Cloneable, StructuredPojo { /** ** An axis-aligned coarse representation of the location of the recognized item on the document page. *
*/ private BoundingBox boundingBox; /** ** Within the bounding box, a fine-grained polygon around the recognized item. *
*/ private java.util.List* An axis-aligned coarse representation of the location of the recognized item on the document page. *
* * @param boundingBox * An axis-aligned coarse representation of the location of the recognized item on the document page. */ public void setBoundingBox(BoundingBox boundingBox) { this.boundingBox = boundingBox; } /** ** An axis-aligned coarse representation of the location of the recognized item on the document page. *
* * @return An axis-aligned coarse representation of the location of the recognized item on the document page. */ public BoundingBox getBoundingBox() { return this.boundingBox; } /** ** An axis-aligned coarse representation of the location of the recognized item on the document page. *
* * @param boundingBox * An axis-aligned coarse representation of the location of the recognized item on the document page. * @return Returns a reference to this object so that method calls can be chained together. */ public Geometry withBoundingBox(BoundingBox boundingBox) { setBoundingBox(boundingBox); return this; } /** ** Within the bounding box, a fine-grained polygon around the recognized item. *
* * @return Within the bounding box, a fine-grained polygon around the recognized item. */ public java.util.List* Within the bounding box, a fine-grained polygon around the recognized item. *
* * @param polygon * Within the bounding box, a fine-grained polygon around the recognized item. */ public void setPolygon(java.util.Collection* Within the bounding box, a fine-grained polygon around the recognized item. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPolygon(java.util.Collection)} or {@link #withPolygon(java.util.Collection)} if you want to override * the existing values. *
* * @param polygon * Within the bounding box, a fine-grained polygon around the recognized item. * @return Returns a reference to this object so that method calls can be chained together. */ public Geometry withPolygon(Point... polygon) { if (this.polygon == null) { setPolygon(new java.util.ArrayList* Within the bounding box, a fine-grained polygon around the recognized item. *
* * @param polygon * Within the bounding box, a fine-grained polygon around the recognized item. * @return Returns a reference to this object so that method calls can be chained together. */ public Geometry withPolygon(java.util.Collection