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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ResultSet.BuilderresultSetMetadata(Consumer<ResultSetMetadata.Builder> resultSetMetadata)The metadata that describes the column structure and data types of a table of query results.ResultSet.BuilderresultSetMetadata(ResultSetMetadata resultSetMetadata)The metadata that describes the column structure and data types of a table of query results.ResultSet.Builderrows(Collection<Row> rows)The rows in the table.ResultSet.Builderrows(Consumer<Row.Builder>... rows)The rows in the table.ResultSet.Builderrows(Row... rows)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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
rows
ResultSet.Builder rows(Collection<Row> 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
ResultSet.Builder rows(Row... 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
ResultSet.Builder rows(Consumer<Row.Builder>... rows)
The rows in the table.
This is a convenience method that creates an instance of theRow.Builderavoiding the need to create one manually viaRow.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#rows(List.)
- 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:
#rows(java.util.Collection)
-
resultSetMetadata
ResultSet.Builder resultSetMetadata(ResultSetMetadata 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
default ResultSet.Builder resultSetMetadata(Consumer<ResultSetMetadata.Builder> 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.Builderavoiding the need to create one manually viaResultSetMetadata.builder().When the
Consumercompletes,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:
resultSetMetadata(ResultSetMetadata)
-
-