Interface GetStatementResultResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetStatementResultResponse.Builder,
,GetStatementResultResponse> RedshiftDataResponse.Builder
,SdkBuilder<GetStatementResultResponse.Builder,
,GetStatementResultResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetStatementResultResponse
-
Method Summary
Modifier and TypeMethodDescriptioncolumnMetadata
(Collection<ColumnMetadata> columnMetadata) The properties (metadata) of a column.columnMetadata
(Consumer<ColumnMetadata.Builder>... columnMetadata) The properties (metadata) of a column.columnMetadata
(ColumnMetadata... columnMetadata) The properties (metadata) of a column.A value that indicates the starting point for the next set of response records in a subsequent request.records
(Collection<? extends Collection<Field>> records) The results of the SQL statement.records
(Collection<Field>... records) The results of the SQL statement.totalNumRows
(Long totalNumRows) The total number of rows in the result set returned from a query.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.redshiftdata.model.RedshiftDataResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
columnMetadata
The properties (metadata) of a column.
- Parameters:
columnMetadata
- The properties (metadata) of a column.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
columnMetadata
The properties (metadata) of a column.
- Parameters:
columnMetadata
- The properties (metadata) of a column.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
columnMetadata
GetStatementResultResponse.Builder columnMetadata(Consumer<ColumnMetadata.Builder>... columnMetadata) The properties (metadata) of a column.
This is a convenience method that creates an instance of theColumnMetadata.Builder
avoiding the need to create one manually viaColumnMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocolumnMetadata(List<ColumnMetadata>)
.- Parameters:
columnMetadata
- a consumer that will call methods onColumnMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request.
- Parameters:
nextToken
- A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
The results of the SQL statement.
- Parameters:
records
- The results of the SQL statement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
The results of the SQL statement.
- Parameters:
records
- The results of the SQL statement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalNumRows
The total number of rows in the result set returned from a query. You can use this number to estimate the number of calls to the
GetStatementResult
operation needed to page through the results.- Parameters:
totalNumRows
- The total number of rows in the result set returned from a query. You can use this number to estimate the number of calls to theGetStatementResult
operation needed to page through the results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-