Interface GetStatementResultV2Response.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetStatementResultV2Response.Builder,GetStatementResultV2Response>,RedshiftDataResponse.Builder,SdkBuilder<GetStatementResultV2Response.Builder,GetStatementResultV2Response>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetStatementResultV2Response
public static interface GetStatementResultV2Response.Builder extends RedshiftDataResponse.Builder, SdkPojo, CopyableBuilder<GetStatementResultV2Response.Builder,GetStatementResultV2Response>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetStatementResultV2Response.BuildercolumnMetadata(Collection<ColumnMetadata> columnMetadata)The properties (metadata) of a column.GetStatementResultV2Response.BuildercolumnMetadata(Consumer<ColumnMetadata.Builder>... columnMetadata)The properties (metadata) of a column.GetStatementResultV2Response.BuildercolumnMetadata(ColumnMetadata... columnMetadata)The properties (metadata) of a column.GetStatementResultV2Response.BuildernextToken(String nextToken)A value that indicates the starting point for the next set of response records in a subsequent request.GetStatementResultV2Response.Builderrecords(Collection<QueryRecords> records)The results of the SQL statement in CSV format.GetStatementResultV2Response.Builderrecords(Consumer<QueryRecords.Builder>... records)The results of the SQL statement in CSV format.GetStatementResultV2Response.Builderrecords(QueryRecords... records)The results of the SQL statement in CSV format.GetStatementResultV2Response.BuilderresultFormat(String resultFormat)The data format of the result of the SQL statement.GetStatementResultV2Response.BuilderresultFormat(ResultFormatString resultFormat)The data format of the result of the SQL statement.GetStatementResultV2Response.BuildertotalNumRows(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, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
columnMetadata
GetStatementResultV2Response.Builder columnMetadata(Collection<ColumnMetadata> 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
GetStatementResultV2Response.Builder columnMetadata(ColumnMetadata... 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
GetStatementResultV2Response.Builder columnMetadata(Consumer<ColumnMetadata.Builder>... columnMetadata)
The properties (metadata) of a column.
This is a convenience method that creates an instance of theColumnMetadata.Builderavoiding the need to create one manually viaColumnMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#columnMetadata(List.) - 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:
#columnMetadata(java.util.Collection)
-
nextToken
GetStatementResultV2Response.Builder nextToken(String 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
GetStatementResultV2Response.Builder records(Collection<QueryRecords> records)
The results of the SQL statement in CSV format.
- Parameters:
records- The results of the SQL statement in CSV format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
GetStatementResultV2Response.Builder records(QueryRecords... records)
The results of the SQL statement in CSV format.
- Parameters:
records- The results of the SQL statement in CSV format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
GetStatementResultV2Response.Builder records(Consumer<QueryRecords.Builder>... records)
The results of the SQL statement in CSV format.
This is a convenience method that creates an instance of theQueryRecords.Builderavoiding the need to create one manually viaQueryRecords.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#records(List.) - Parameters:
records- a consumer that will call methods onQueryRecords.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#records(java.util.Collection)
-
resultFormat
GetStatementResultV2Response.Builder resultFormat(String resultFormat)
The data format of the result of the SQL statement.
- Parameters:
resultFormat- The data format of the result of the SQL statement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResultFormatString,ResultFormatString
-
resultFormat
GetStatementResultV2Response.Builder resultFormat(ResultFormatString resultFormat)
The data format of the result of the SQL statement.
- Parameters:
resultFormat- The data format of the result of the SQL statement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResultFormatString,ResultFormatString
-
totalNumRows
GetStatementResultV2Response.Builder totalNumRows(Long 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
GetStatementResultV2operation 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 theGetStatementResultV2operation needed to page through the results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-