Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data ResultSet = ResultSet' {
- headers :: [ColumnMetadata]
- rows :: [ResultRow]
- newResultSet :: ResultSet
- resultSet_headers :: Lens' ResultSet [ColumnMetadata]
- resultSet_rows :: Lens' ResultSet [ResultRow]
Documentation
ResultSet contains the results of the request for a single block or list defined on the screen.
See: newResultSet
smart constructor.
ResultSet' | |
|
Instances
Eq ResultSet Source # | |
Show ResultSet Source # | |
Generic ResultSet Source # | |
NFData ResultSet Source # | |
Defined in Amazonka.HoneyCode.Types.ResultSet | |
Hashable ResultSet Source # | |
Defined in Amazonka.HoneyCode.Types.ResultSet | |
FromJSON ResultSet Source # | |
type Rep ResultSet Source # | |
Defined in Amazonka.HoneyCode.Types.ResultSet type Rep ResultSet = D1 ('MetaData "ResultSet" "Amazonka.HoneyCode.Types.ResultSet" "libZSservicesZSamazonka-honeycodeZSamazonka-honeycode" 'False) (C1 ('MetaCons "ResultSet'" 'PrefixI 'True) (S1 ('MetaSel ('Just "headers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [ColumnMetadata]) :*: S1 ('MetaSel ('Just "rows") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [ResultRow]))) |
newResultSet :: ResultSet Source #
Create a value of ResultSet
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:headers:ResultSet'
, resultSet_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.
$sel:rows:ResultSet'
, resultSet_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.
resultSet_headers :: Lens' ResultSet [ColumnMetadata] Source #
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.