@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResultSet extends Object implements Serializable, Cloneable, StructuredPojo
ResultSet contains the results of the request for a single block or list defined on the screen.
Constructor and Description |
---|
ResultSet() |
Modifier and Type | Method and Description |
---|---|
ResultSet |
clone() |
boolean |
equals(Object obj) |
List<ColumnMetadata> |
getHeaders()
List of headers for all the data cells in the block.
|
List<ResultRow> |
getRows()
List of rows returned by the request.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHeaders(Collection<ColumnMetadata> headers)
List of headers for all the data cells in the block.
|
void |
setRows(Collection<ResultRow> rows)
List of rows returned by the request.
|
String |
toString()
Returns a string representation of this object.
|
ResultSet |
withHeaders(Collection<ColumnMetadata> headers)
List of headers for all the data cells in the block.
|
ResultSet |
withHeaders(ColumnMetadata... headers)
List of headers for all the data cells in the block.
|
ResultSet |
withRows(Collection<ResultRow> rows)
List of rows returned by the request.
|
ResultSet |
withRows(ResultRow... rows)
List of rows returned by the request.
|
public List<ColumnMetadata> getHeaders()
List of headers for all the data cells in the block. The header identifies the name and default format of the data cell. Data cells appear in the same order in all rows as defined in the header. The names and formats are not repeated in the rows. If a particular row does not have a value for a data cell, a blank value is used.
For example, a task list that displays the task name, due date and assigned person might have headers [ { "name": "Task Name"}, {"name": "Due Date", "format": "DATE"}, {"name": "Assigned", "format": "CONTACT"} ]. Every row in the result will have the task name as the first item, due date as the second item and assigned person as the third item. If a particular task does not have a due date, that row will still have a blank value in the second element and the assigned person will still be in the third element.
For example, a task list that displays the task name, due date and assigned person might have headers [ { "name": "Task Name"}, {"name": "Due Date", "format": "DATE"}, {"name": "Assigned", "format": "CONTACT"} ]. Every row in the result will have the task name as the first item, due date as the second item and assigned person as the third item. If a particular task does not have a due date, that row will still have a blank value in the second element and the assigned person will still be in the third element.
public void setHeaders(Collection<ColumnMetadata> headers)
List of headers for all the data cells in the block. The header identifies the name and default format of the data cell. Data cells appear in the same order in all rows as defined in the header. The names and formats are not repeated in the rows. If a particular row does not have a value for a data cell, a blank value is used.
For example, a task list that displays the task name, due date and assigned person might have headers [ { "name": "Task Name"}, {"name": "Due Date", "format": "DATE"}, {"name": "Assigned", "format": "CONTACT"} ]. Every row in the result will have the task name as the first item, due date as the second item and assigned person as the third item. If a particular task does not have a due date, that row will still have a blank value in the second element and the assigned person will still be in the third element.
headers
- List of headers for all the data cells in the block. The header identifies the name and default format of
the data cell. Data cells appear in the same order in all rows as defined in the header. The names and
formats are not repeated in the rows. If a particular row does not have a value for a data cell, a blank
value is used.
For example, a task list that displays the task name, due date and assigned person might have headers [ { "name": "Task Name"}, {"name": "Due Date", "format": "DATE"}, {"name": "Assigned", "format": "CONTACT"} ]. Every row in the result will have the task name as the first item, due date as the second item and assigned person as the third item. If a particular task does not have a due date, that row will still have a blank value in the second element and the assigned person will still be in the third element.
public ResultSet withHeaders(ColumnMetadata... headers)
List of headers for all the data cells in the block. The header identifies the name and default format of the data cell. Data cells appear in the same order in all rows as defined in the header. The names and formats are not repeated in the rows. If a particular row does not have a value for a data cell, a blank value is used.
For example, a task list that displays the task name, due date and assigned person might have headers [ { "name": "Task Name"}, {"name": "Due Date", "format": "DATE"}, {"name": "Assigned", "format": "CONTACT"} ]. Every row in the result will have the task name as the first item, due date as the second item and assigned person as the third item. If a particular task does not have a due date, that row will still have a blank value in the second element and the assigned person will still be in the third element.
NOTE: This method appends the values to the existing list (if any). Use
setHeaders(java.util.Collection)
or withHeaders(java.util.Collection)
if you want to override
the existing values.
headers
- List of headers for all the data cells in the block. The header identifies the name and default format of
the data cell. Data cells appear in the same order in all rows as defined in the header. The names and
formats are not repeated in the rows. If a particular row does not have a value for a data cell, a blank
value is used.
For example, a task list that displays the task name, due date and assigned person might have headers [ { "name": "Task Name"}, {"name": "Due Date", "format": "DATE"}, {"name": "Assigned", "format": "CONTACT"} ]. Every row in the result will have the task name as the first item, due date as the second item and assigned person as the third item. If a particular task does not have a due date, that row will still have a blank value in the second element and the assigned person will still be in the third element.
public ResultSet withHeaders(Collection<ColumnMetadata> headers)
List of headers for all the data cells in the block. The header identifies the name and default format of the data cell. Data cells appear in the same order in all rows as defined in the header. The names and formats are not repeated in the rows. If a particular row does not have a value for a data cell, a blank value is used.
For example, a task list that displays the task name, due date and assigned person might have headers [ { "name": "Task Name"}, {"name": "Due Date", "format": "DATE"}, {"name": "Assigned", "format": "CONTACT"} ]. Every row in the result will have the task name as the first item, due date as the second item and assigned person as the third item. If a particular task does not have a due date, that row will still have a blank value in the second element and the assigned person will still be in the third element.
headers
- List of headers for all the data cells in the block. The header identifies the name and default format of
the data cell. Data cells appear in the same order in all rows as defined in the header. The names and
formats are not repeated in the rows. If a particular row does not have a value for a data cell, a blank
value is used.
For example, a task list that displays the task name, due date and assigned person might have headers [ { "name": "Task Name"}, {"name": "Due Date", "format": "DATE"}, {"name": "Assigned", "format": "CONTACT"} ]. Every row in the result will have the task name as the first item, due date as the second item and assigned person as the third item. If a particular task does not have a due date, that row will still have a blank value in the second element and the assigned person will still be in the third element.
public List<ResultRow> getRows()
List of rows returned by the request. Each row has a row Id and a list of data cells in that row. The data cells will be present in the same order as they are defined in the header.
public void setRows(Collection<ResultRow> rows)
List of rows returned by the request. Each row has a row Id and a list of data cells in that row. The data cells will be present in the same order as they are defined in the header.
rows
- List of rows returned by the request. Each row has a row Id and a list of data cells in that row. The data
cells will be present in the same order as they are defined in the header.public ResultSet withRows(ResultRow... rows)
List of rows returned by the request. Each row has a row Id and a list of data cells in that row. The data cells will be present in the same order as they are defined in the header.
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
- List of rows returned by the request. Each row has a row Id and a list of data cells in that row. The data
cells will be present in the same order as they are defined in the header.public ResultSet withRows(Collection<ResultRow> rows)
List of rows returned by the request. Each row has a row Id and a list of data cells in that row. The data cells will be present in the same order as they are defined in the header.
rows
- List of rows returned by the request. Each row has a row Id and a list of data cells in that row. The data
cells will be present in the same order as they are defined in the header.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.