@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TableExcerpt extends Object implements Serializable, Cloneable, StructuredPojo
An excerpt from a table within a document. The table excerpt displays up to five columns and three rows, depending on how many table cells are relevant to the query and how many columns are available in the original table. The top most relevant cell is displayed in the table excerpt, along with the next most relevant cells.
Constructor and Description |
---|
TableExcerpt() |
Modifier and Type | Method and Description |
---|---|
TableExcerpt |
clone() |
boolean |
equals(Object obj) |
List<TableRow> |
getRows()
A list of rows in the table excerpt.
|
Integer |
getTotalNumberOfRows()
A count of the number of rows in the original table within the document.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setRows(Collection<TableRow> rows)
A list of rows in the table excerpt.
|
void |
setTotalNumberOfRows(Integer totalNumberOfRows)
A count of the number of rows in the original table within the document.
|
String |
toString()
Returns a string representation of this object.
|
TableExcerpt |
withRows(Collection<TableRow> rows)
A list of rows in the table excerpt.
|
TableExcerpt |
withRows(TableRow... rows)
A list of rows in the table excerpt.
|
TableExcerpt |
withTotalNumberOfRows(Integer totalNumberOfRows)
A count of the number of rows in the original table within the document.
|
public List<TableRow> getRows()
A list of rows in the table excerpt.
public void setRows(Collection<TableRow> rows)
A list of rows in the table excerpt.
rows
- A list of rows in the table excerpt.public TableExcerpt withRows(TableRow... rows)
A list of rows in the table excerpt.
NOTE: This method appends the values to the existing list (if any). Use
setRows(java.util.Collection)
or withRows(java.util.Collection)
if you want to override the
existing values.
rows
- A list of rows in the table excerpt.public TableExcerpt withRows(Collection<TableRow> rows)
A list of rows in the table excerpt.
rows
- A list of rows in the table excerpt.public void setTotalNumberOfRows(Integer totalNumberOfRows)
A count of the number of rows in the original table within the document.
totalNumberOfRows
- A count of the number of rows in the original table within the document.public Integer getTotalNumberOfRows()
A count of the number of rows in the original table within the document.
public TableExcerpt withTotalNumberOfRows(Integer totalNumberOfRows)
A count of the number of rows in the original table within the document.
totalNumberOfRows
- A count of the number of rows in the original table within the document.public String toString()
toString
in class Object
Object.toString()
public TableExcerpt clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.