Interface ListStatementsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListStatementsResponse.Builder,
,ListStatementsResponse> RedshiftDataResponse.Builder
,SdkBuilder<ListStatementsResponse.Builder,
,ListStatementsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListStatementsResponse
@Mutable
@NotThreadSafe
public static interface ListStatementsResponse.Builder
extends RedshiftDataResponse.Builder, SdkPojo, CopyableBuilder<ListStatementsResponse.Builder,ListStatementsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionA value that indicates the starting point for the next set of response records in a subsequent request.statements
(Collection<StatementData> statements) The SQL statements.statements
(Consumer<StatementData.Builder>... statements) The SQL statements.statements
(StatementData... statements) The SQL statements.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 Details
-
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.
-
statements
The SQL statements.
- Parameters:
statements
- The SQL statements.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statements
The SQL statements.
- Parameters:
statements
- The SQL statements.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statements
The SQL statements.
This is a convenience method that creates an instance of theStatementData.Builder
avoiding the need to create one manually viaStatementData.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatements(List<StatementData>)
.- Parameters:
statements
- a consumer that will call methods onStatementData.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-