Interface SearchRelevantContentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<SearchRelevantContentResponse.Builder,
,SearchRelevantContentResponse> QBusinessResponse.Builder
,SdkBuilder<SearchRelevantContentResponse.Builder,
,SearchRelevantContentResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
SearchRelevantContentResponse
@Mutable
@NotThreadSafe
public static interface SearchRelevantContentResponse.Builder
extends QBusinessResponse.Builder, SdkPojo, CopyableBuilder<SearchRelevantContentResponse.Builder,SearchRelevantContentResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token to use to retrieve the next set of results, if there are any.relevantContent
(Collection<RelevantContent> relevantContent) The list of relevant content items found.relevantContent
(Consumer<RelevantContent.Builder>... relevantContent) The list of relevant content items found.relevantContent
(RelevantContent... relevantContent) The list of relevant content items found.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.qbusiness.model.QBusinessResponse.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
-
relevantContent
The list of relevant content items found.
- Parameters:
relevantContent
- The list of relevant content items found.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
relevantContent
The list of relevant content items found.
- Parameters:
relevantContent
- The list of relevant content items found.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
relevantContent
SearchRelevantContentResponse.Builder relevantContent(Consumer<RelevantContent.Builder>... relevantContent) The list of relevant content items found.
This is a convenience method that creates an instance of theRelevantContent.Builder
avoiding the need to create one manually viaRelevantContent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torelevantContent(List<RelevantContent>)
.- Parameters:
relevantContent
- a consumer that will call methods onRelevantContent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token to use to retrieve the next set of results, if there are any.
- Parameters:
nextToken
- The token to use to retrieve the next set of results, if there are any.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-