@Generated(value="software.amazon.awssdk:codegen") public final class ResultSet extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResultSet.Builder,ResultSet>
ResultSet contains the results of the request for a single block or list defined on the screen.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ResultSet.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ResultSet.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasHeaders()
Returns true if the Headers property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasRows()
Returns true if the Rows property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
List<ColumnMetadata> |
headers()
List of headers for all the data cells in the block.
|
List<ResultRow> |
rows()
List of rows returned by the request.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ResultSet.Builder> |
serializableBuilderClass() |
ResultSet.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic boolean hasHeaders()
public List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasHeaders() to see if a value was sent in this field.
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 boolean hasRows()
public List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasRows() to see if a value was sent in this field.
public ResultSet.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ResultSet.Builder,ResultSet>public static ResultSet.Builder builder()
public static Class<? extends ResultSet.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.