Interface ResultSet.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ResultSet.Builder,
,ResultSet> SdkBuilder<ResultSet.Builder,
,ResultSet> SdkPojo
- Enclosing class:
ResultSet
public static interface ResultSet.Builder
extends SdkPojo, CopyableBuilder<ResultSet.Builder,ResultSet>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResultSet.Builder
resultSetMetadata
(Consumer<ResultSetMetadata.Builder> resultSetMetadata) The metadata that describes the column structure and data types of a table of query results.resultSetMetadata
(ResultSetMetadata resultSetMetadata) The metadata that describes the column structure and data types of a table of query results.rows
(Collection<Row> rows) The rows in the table.rows
(Consumer<Row.Builder>... rows) The rows in the table.The rows in the table.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
rows
The rows in the table.
- Parameters:
rows
- The rows in the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rows
The rows in the table.
- Parameters:
rows
- The rows in the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rows
The rows in the table.
This is a convenience method that creates an instance of theRow.Builder
avoiding the need to create one manually viaRow.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torows(List<Row>)
.- Parameters:
rows
- a consumer that will call methods onRow.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resultSetMetadata
The metadata that describes the column structure and data types of a table of query results.
- Parameters:
resultSetMetadata
- The metadata that describes the column structure and data types of a table of query results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultSetMetadata
The metadata that describes the column structure and data types of a table of query results.
This is a convenience method that creates an instance of theResultSetMetadata.Builder
avoiding the need to create one manually viaResultSetMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresultSetMetadata(ResultSetMetadata)
.- Parameters:
resultSetMetadata
- a consumer that will call methods onResultSetMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-