Interface SearchContentRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<SearchContentRequest.Builder,,SearchContentRequest> SdkBuilder<SearchContentRequest.Builder,,SearchContentRequest> SdkPojo,SdkRequest.Builder,WisdomRequest.Builder
- Enclosing class:
SearchContentRequest
@Mutable
@NotThreadSafe
public static interface SearchContentRequest.Builder
extends WisdomRequest.Builder, SdkPojo, CopyableBuilder<SearchContentRequest.Builder,SearchContentRequest>
-
Method Summary
Modifier and TypeMethodDescriptionknowledgeBaseId(String knowledgeBaseId) The identifier of the knowledge base.maxResults(Integer maxResults) The maximum number of results to return per page.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.default SearchContentRequest.BuildersearchExpression(Consumer<SearchExpression.Builder> searchExpression) The search expression to filter results.searchExpression(SearchExpression searchExpression) The search expression to filter results.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.services.wisdom.model.WisdomRequest.Builder
build
-
Method Details
-
knowledgeBaseId
The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
- Parameters:
knowledgeBaseId- The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
The maximum number of results to return per page.
- Parameters:
maxResults- The maximum number of results to return per page.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
- Parameters:
nextToken- The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchExpression
The search expression to filter results.
- Parameters:
searchExpression- The search expression to filter results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchExpression
default SearchContentRequest.Builder searchExpression(Consumer<SearchExpression.Builder> searchExpression) The search expression to filter results.
This is a convenience method that creates an instance of theSearchExpression.Builderavoiding the need to create one manually viaSearchExpression.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosearchExpression(SearchExpression).- Parameters:
searchExpression- a consumer that will call methods onSearchExpression.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
SearchContentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SearchContentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-