Interface QueryAssistantResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<QueryAssistantResponse.Builder,
,QueryAssistantResponse> QConnectResponse.Builder
,SdkBuilder<QueryAssistantResponse.Builder,
,QueryAssistantResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
QueryAssistantResponse
@Mutable
@NotThreadSafe
public static interface QueryAssistantResponse.Builder
extends QConnectResponse.Builder, SdkPojo, CopyableBuilder<QueryAssistantResponse.Builder,QueryAssistantResponse>
-
Method Summary
Modifier and TypeMethodDescriptionIf there are additional results, this is the token for the next set of results.results
(Collection<ResultData> results) The results of the query.results
(Consumer<ResultData.Builder>... results) The results of the query.results
(ResultData... results) The results of the query.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.qconnect.model.QConnectResponse.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
-
results
The results of the query.
- Parameters:
results
- The results of the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
results
The results of the query.
- Parameters:
results
- The results of the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
results
The results of the query.
This is a convenience method that creates an instance of theResultData.Builder
avoiding the need to create one manually viaResultData.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresults(List<ResultData>)
.- Parameters:
results
- a consumer that will call methods onResultData.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
If there are additional results, this is the token for the next set of results.
- Parameters:
nextToken
- If there are additional results, this is the token for the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-