@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Geometry extends Object implements Serializable, Cloneable, StructuredPojo
Information about where the following items are located on a document page: detected page, text, key-value pairs, tables, table cells, and selection elements.
| Constructor and Description | 
|---|
| Geometry() | 
| Modifier and Type | Method and Description | 
|---|---|
| Geometry | clone() | 
| boolean | equals(Object obj) | 
| BoundingBox | getBoundingBox()
 An axis-aligned coarse representation of the location of the recognized item on the document page. | 
| List<Point> | getPolygon()
 Within the bounding box, a fine-grained polygon around the recognized item. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setBoundingBox(BoundingBox boundingBox)
 An axis-aligned coarse representation of the location of the recognized item on the document page. | 
| void | setPolygon(Collection<Point> polygon)
 Within the bounding box, a fine-grained polygon around the recognized item. | 
| String | toString()Returns a string representation of this object. | 
| Geometry | withBoundingBox(BoundingBox boundingBox)
 An axis-aligned coarse representation of the location of the recognized item on the document page. | 
| Geometry | withPolygon(Collection<Point> polygon)
 Within the bounding box, a fine-grained polygon around the recognized item. | 
| Geometry | withPolygon(Point... polygon)
 Within the bounding box, a fine-grained polygon around the recognized item. | 
public void setBoundingBox(BoundingBox boundingBox)
An axis-aligned coarse representation of the location of the recognized item on the document page.
boundingBox - An axis-aligned coarse representation of the location of the recognized item on the document page.public BoundingBox getBoundingBox()
An axis-aligned coarse representation of the location of the recognized item on the document page.
public Geometry withBoundingBox(BoundingBox boundingBox)
An axis-aligned coarse representation of the location of the recognized item on the document page.
boundingBox - An axis-aligned coarse representation of the location of the recognized item on the document page.public List<Point> getPolygon()
Within the bounding box, a fine-grained polygon around the recognized item.
public void setPolygon(Collection<Point> polygon)
Within the bounding box, a fine-grained polygon around the recognized item.
polygon - Within the bounding box, a fine-grained polygon around the recognized item.public Geometry withPolygon(Point... polygon)
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
 setPolygon(java.util.Collection) or withPolygon(java.util.Collection) if you want to override
 the existing values.
 
polygon - Within the bounding box, a fine-grained polygon around the recognized item.public Geometry withPolygon(Collection<Point> polygon)
Within the bounding box, a fine-grained polygon around the recognized item.
polygon - Within the bounding box, a fine-grained polygon around the recognized item.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.