Interface QueryResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<QueryResponse.Builder,,QueryResponse> SdkBuilder<QueryResponse.Builder,,QueryResponse> SdkPojo,SdkResponse.Builder,TimestreamQueryResponse.Builder
- Enclosing class:
QueryResponse
-
Method Summary
Modifier and TypeMethodDescriptioncolumnInfo(Collection<ColumnInfo> columnInfo) The column data types of the returned result set.columnInfo(Consumer<ColumnInfo.Builder>... columnInfo) The column data types of the returned result set.columnInfo(ColumnInfo... columnInfo) The column data types of the returned result set.A pagination token that can be used again on aQuerycall to get the next set of results.A unique ID for the given query.default QueryResponse.BuilderqueryStatus(Consumer<QueryStatus.Builder> queryStatus) Information about the status of the query, including progress and bytes scanned.queryStatus(QueryStatus queryStatus) Information about the status of the query, including progress and bytes scanned.rows(Collection<Row> rows) The result set rows returned by the query.rows(Consumer<Row.Builder>... rows) The result set rows returned by the query.The result set rows returned by the query.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.timestreamquery.model.TimestreamQueryResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
queryId
A unique ID for the given query.
- Parameters:
queryId- A unique ID for the given query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
A pagination token that can be used again on a
Querycall to get the next set of results.- Parameters:
nextToken- A pagination token that can be used again on aQuerycall to get the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rows
The result set rows returned by the query.
- Parameters:
rows- The result set rows returned by the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rows
The result set rows returned by the query.
- Parameters:
rows- The result set rows returned by the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rows
The result set rows returned by the query.
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 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:
-
columnInfo
The column data types of the returned result set.
- Parameters:
columnInfo- The column data types of the returned result set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
columnInfo
The column data types of the returned result set.
- Parameters:
columnInfo- The column data types of the returned result set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
columnInfo
The column data types of the returned result set.
This is a convenience method that creates an instance of theColumnInfo.Builderavoiding the need to create one manually viaColumnInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocolumnInfo(List<ColumnInfo>).- Parameters:
columnInfo- a consumer that will call methods onColumnInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
queryStatus
Information about the status of the query, including progress and bytes scanned.
- Parameters:
queryStatus- Information about the status of the query, including progress and bytes scanned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryStatus
Information about the status of the query, including progress and bytes scanned.
This is a convenience method that creates an instance of theQueryStatus.Builderavoiding the need to create one manually viaQueryStatus.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toqueryStatus(QueryStatus).- Parameters:
queryStatus- a consumer that will call methods onQueryStatus.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-