Interface GetQuerySuggestionsRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<GetQuerySuggestionsRequest.Builder,GetQuerySuggestionsRequest>,KendraRequest.Builder,SdkBuilder<GetQuerySuggestionsRequest.Builder,GetQuerySuggestionsRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- GetQuerySuggestionsRequest
public static interface GetQuerySuggestionsRequest.Builder extends KendraRequest.Builder, SdkPojo, CopyableBuilder<GetQuerySuggestionsRequest.Builder,GetQuerySuggestionsRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GetQuerySuggestionsRequest.BuilderattributeSuggestionsConfig(Consumer<AttributeSuggestionsGetConfig.Builder> attributeSuggestionsConfig)Configuration information for the document fields/attributes that you want to base query suggestions on.GetQuerySuggestionsRequest.BuilderattributeSuggestionsConfig(AttributeSuggestionsGetConfig attributeSuggestionsConfig)Configuration information for the document fields/attributes that you want to base query suggestions on.GetQuerySuggestionsRequest.BuilderindexId(String indexId)The identifier of the index you want to get query suggestions from.GetQuerySuggestionsRequest.BuildermaxSuggestionsCount(Integer maxSuggestionsCount)The maximum number of query suggestions you want to show to your users.GetQuerySuggestionsRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)GetQuerySuggestionsRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)GetQuerySuggestionsRequest.BuilderqueryText(String queryText)The text of a user's query to generate query suggestions.GetQuerySuggestionsRequest.BuildersuggestionTypes(Collection<SuggestionType> suggestionTypes)The suggestions type to base query suggestions on.GetQuerySuggestionsRequest.BuildersuggestionTypes(SuggestionType... suggestionTypes)The suggestions type to base query suggestions on.GetQuerySuggestionsRequest.BuildersuggestionTypesWithStrings(String... suggestionTypes)The suggestions type to base query suggestions on.GetQuerySuggestionsRequest.BuildersuggestionTypesWithStrings(Collection<String> suggestionTypes)The suggestions type to base query suggestions on.-
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.kendra.model.KendraRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
indexId
GetQuerySuggestionsRequest.Builder indexId(String indexId)
The identifier of the index you want to get query suggestions from.
- Parameters:
indexId- The identifier of the index you want to get query suggestions from.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryText
GetQuerySuggestionsRequest.Builder queryText(String queryText)
The text of a user's query to generate query suggestions.
A query is suggested if the query prefix matches what a user starts to type as their query.
Amazon Kendra does not show any suggestions if a user types fewer than two characters or more than 60 characters. A query must also have at least one search result and contain at least one word of more than four characters.
- Parameters:
queryText- The text of a user's query to generate query suggestions.A query is suggested if the query prefix matches what a user starts to type as their query.
Amazon Kendra does not show any suggestions if a user types fewer than two characters or more than 60 characters. A query must also have at least one search result and contain at least one word of more than four characters.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxSuggestionsCount
GetQuerySuggestionsRequest.Builder maxSuggestionsCount(Integer maxSuggestionsCount)
The maximum number of query suggestions you want to show to your users.
- Parameters:
maxSuggestionsCount- The maximum number of query suggestions you want to show to your users.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
suggestionTypesWithStrings
GetQuerySuggestionsRequest.Builder suggestionTypesWithStrings(Collection<String> suggestionTypes)
The suggestions type to base query suggestions on. The suggestion types are query history or document fields/attributes. You can set one type or the other.
If you set query history as your suggestions type, Amazon Kendra suggests queries relevant to your users based on popular queries in the query history.
If you set document fields/attributes as your suggestions type, Amazon Kendra suggests queries relevant to your users based on the contents of document fields.
- Parameters:
suggestionTypes- The suggestions type to base query suggestions on. The suggestion types are query history or document fields/attributes. You can set one type or the other.If you set query history as your suggestions type, Amazon Kendra suggests queries relevant to your users based on popular queries in the query history.
If you set document fields/attributes as your suggestions type, Amazon Kendra suggests queries relevant to your users based on the contents of document fields.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
suggestionTypesWithStrings
GetQuerySuggestionsRequest.Builder suggestionTypesWithStrings(String... suggestionTypes)
The suggestions type to base query suggestions on. The suggestion types are query history or document fields/attributes. You can set one type or the other.
If you set query history as your suggestions type, Amazon Kendra suggests queries relevant to your users based on popular queries in the query history.
If you set document fields/attributes as your suggestions type, Amazon Kendra suggests queries relevant to your users based on the contents of document fields.
- Parameters:
suggestionTypes- The suggestions type to base query suggestions on. The suggestion types are query history or document fields/attributes. You can set one type or the other.If you set query history as your suggestions type, Amazon Kendra suggests queries relevant to your users based on popular queries in the query history.
If you set document fields/attributes as your suggestions type, Amazon Kendra suggests queries relevant to your users based on the contents of document fields.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
suggestionTypes
GetQuerySuggestionsRequest.Builder suggestionTypes(Collection<SuggestionType> suggestionTypes)
The suggestions type to base query suggestions on. The suggestion types are query history or document fields/attributes. You can set one type or the other.
If you set query history as your suggestions type, Amazon Kendra suggests queries relevant to your users based on popular queries in the query history.
If you set document fields/attributes as your suggestions type, Amazon Kendra suggests queries relevant to your users based on the contents of document fields.
- Parameters:
suggestionTypes- The suggestions type to base query suggestions on. The suggestion types are query history or document fields/attributes. You can set one type or the other.If you set query history as your suggestions type, Amazon Kendra suggests queries relevant to your users based on popular queries in the query history.
If you set document fields/attributes as your suggestions type, Amazon Kendra suggests queries relevant to your users based on the contents of document fields.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
suggestionTypes
GetQuerySuggestionsRequest.Builder suggestionTypes(SuggestionType... suggestionTypes)
The suggestions type to base query suggestions on. The suggestion types are query history or document fields/attributes. You can set one type or the other.
If you set query history as your suggestions type, Amazon Kendra suggests queries relevant to your users based on popular queries in the query history.
If you set document fields/attributes as your suggestions type, Amazon Kendra suggests queries relevant to your users based on the contents of document fields.
- Parameters:
suggestionTypes- The suggestions type to base query suggestions on. The suggestion types are query history or document fields/attributes. You can set one type or the other.If you set query history as your suggestions type, Amazon Kendra suggests queries relevant to your users based on popular queries in the query history.
If you set document fields/attributes as your suggestions type, Amazon Kendra suggests queries relevant to your users based on the contents of document fields.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributeSuggestionsConfig
GetQuerySuggestionsRequest.Builder attributeSuggestionsConfig(AttributeSuggestionsGetConfig attributeSuggestionsConfig)
Configuration information for the document fields/attributes that you want to base query suggestions on.
- Parameters:
attributeSuggestionsConfig- Configuration information for the document fields/attributes that you want to base query suggestions on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributeSuggestionsConfig
default GetQuerySuggestionsRequest.Builder attributeSuggestionsConfig(Consumer<AttributeSuggestionsGetConfig.Builder> attributeSuggestionsConfig)
Configuration information for the document fields/attributes that you want to base query suggestions on.
This is a convenience method that creates an instance of theAttributeSuggestionsGetConfig.Builderavoiding the need to create one manually viaAttributeSuggestionsGetConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toattributeSuggestionsConfig(AttributeSuggestionsGetConfig).- Parameters:
attributeSuggestionsConfig- a consumer that will call methods onAttributeSuggestionsGetConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
attributeSuggestionsConfig(AttributeSuggestionsGetConfig)
-
overrideConfiguration
GetQuerySuggestionsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
GetQuerySuggestionsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-