Interface SearchRelevantContentRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<SearchRelevantContentRequest.Builder,
,SearchRelevantContentRequest> QBusinessRequest.Builder
,SdkBuilder<SearchRelevantContentRequest.Builder,
,SearchRelevantContentRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
SearchRelevantContentRequest
@Mutable
@NotThreadSafe
public static interface SearchRelevantContentRequest.Builder
extends QBusinessRequest.Builder, SdkPojo, CopyableBuilder<SearchRelevantContentRequest.Builder,SearchRelevantContentRequest>
-
Method Summary
Modifier and TypeMethodDescriptionapplicationId
(String applicationId) The unique identifier of the Amazon Q Business application to search.attributeFilter
(Consumer<AttributeFilter.Builder> attributeFilter) Sets the value of the AttributeFilter property for this object.attributeFilter
(AttributeFilter attributeFilter) Sets the value of the AttributeFilter property for this object.contentSource
(Consumer<ContentSource.Builder> contentSource) The source of content to search in.contentSource
(ContentSource contentSource) The source of content to search in.maxResults
(Integer maxResults) The maximum number of results to return.The token for the next set of results.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The text to search for.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.qbusiness.model.QBusinessRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
applicationId
The unique identifier of the Amazon Q Business application to search.
- Parameters:
applicationId
- The unique identifier of the Amazon Q Business application to search.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryText
The text to search for.
- Parameters:
queryText
- The text to search for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentSource
The source of content to search in.
- Parameters:
contentSource
- The source of content to search in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentSource
default SearchRelevantContentRequest.Builder contentSource(Consumer<ContentSource.Builder> contentSource) The source of content to search in.
This is a convenience method that creates an instance of theContentSource.Builder
avoiding the need to create one manually viaContentSource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontentSource(ContentSource)
.- Parameters:
contentSource
- a consumer that will call methods onContentSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
attributeFilter
Sets the value of the AttributeFilter property for this object.- Parameters:
attributeFilter
- The new value for the AttributeFilter property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributeFilter
default SearchRelevantContentRequest.Builder attributeFilter(Consumer<AttributeFilter.Builder> attributeFilter) Sets the value of the AttributeFilter property for this object. This is a convenience method that creates an instance of theAttributeFilter.Builder
avoiding the need to create one manually viaAttributeFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toattributeFilter(AttributeFilter)
.- Parameters:
attributeFilter
- a consumer that will call methods onAttributeFilter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxResults
The maximum number of results to return.
- Parameters:
maxResults
- The maximum number of results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
The token for the next set of results. (You received this token from a previous call.)
- Parameters:
nextToken
- The token for the next set of results. (You received this token from a previous call.)- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
SearchRelevantContentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SearchRelevantContentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-