public static interface QueryResponse.Builder extends TimestreamQueryResponse.Builder, SdkPojo, CopyableBuilder<QueryResponse.Builder,QueryResponse>
| Modifier and Type | Method and Description |
|---|---|
QueryResponse.Builder |
columnInfo(Collection<ColumnInfo> columnInfo)
The column data types of the returned result set.
|
QueryResponse.Builder |
columnInfo(ColumnInfo... columnInfo)
The column data types of the returned result set.
|
QueryResponse.Builder |
columnInfo(Consumer<ColumnInfo.Builder>... columnInfo)
The column data types of the returned result set.
|
QueryResponse.Builder |
nextToken(String nextToken)
A pagination token that can be used again on a
Query call to get the next set of results. |
QueryResponse.Builder |
queryId(String queryId)
A unique ID for the given query.
|
default QueryResponse.Builder |
queryStatus(Consumer<QueryStatus.Builder> queryStatus)
Information about the status of the query, including progress and bytes scanned.
|
QueryResponse.Builder |
queryStatus(QueryStatus queryStatus)
Information about the status of the query, including progress and bytes scanned.
|
QueryResponse.Builder |
rows(Collection<Row> rows)
The result set rows returned by the query.
|
QueryResponse.Builder |
rows(Consumer<Row.Builder>... rows)
The result set rows returned by the query.
|
QueryResponse.Builder |
rows(Row... rows)
The result set rows returned by the query.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildQueryResponse.Builder queryId(String queryId)
A unique ID for the given query.
queryId - A unique ID for the given query.QueryResponse.Builder nextToken(String nextToken)
A pagination token that can be used again on a Query call to get the next set of results.
nextToken - A pagination token that can be used again on a Query call to get the next set of results.QueryResponse.Builder rows(Collection<Row> rows)
The result set rows returned by the query.
rows - The result set rows returned by the query.QueryResponse.Builder rows(Row... rows)
The result set rows returned by the query.
rows - The result set rows returned by the query.QueryResponse.Builder rows(Consumer<Row.Builder>... rows)
The result set rows returned by the query.
This is a convenience method that creates an instance of theRow.Builder avoiding the need to create one
manually via Row.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #rows(List.
rows - a consumer that will call methods on
Row.Builder#rows(java.util.Collection)
QueryResponse.Builder columnInfo(Collection<ColumnInfo> columnInfo)
The column data types of the returned result set.
columnInfo - The column data types of the returned result set.QueryResponse.Builder columnInfo(ColumnInfo... columnInfo)
The column data types of the returned result set.
columnInfo - The column data types of the returned result set.QueryResponse.Builder columnInfo(Consumer<ColumnInfo.Builder>... columnInfo)
The column data types of the returned result set.
This is a convenience method that creates an instance of theColumnInfo.Builder avoiding the need to create
one manually via ColumnInfo.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #columnInfo(List.
columnInfo - a consumer that will call methods on
ColumnInfo.Builder#columnInfo(java.util.Collection) QueryResponse.Builder queryStatus(QueryStatus queryStatus)
Information about the status of the query, including progress and bytes scanned.
queryStatus - Information about the status of the query, including progress and bytes scanned.default QueryResponse.Builder queryStatus(Consumer<QueryStatus.Builder> queryStatus)
Information about the status of the query, including progress and bytes scanned.
This is a convenience method that creates an instance of theQueryStatus.Builder avoiding the need to
create one manually via QueryStatus.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to queryStatus(QueryStatus).
queryStatus - a consumer that will call methods on QueryStatus.BuilderqueryStatus(QueryStatus)Copyright © 2023. All rights reserved.