Interface GetQuerySuggestionsRequest.Builder
- All Superinterfaces:
- AwsRequest.Builder,- Buildable,- CopyableBuilder<GetQuerySuggestionsRequest.Builder,,- GetQuerySuggestionsRequest> - KendraRequest.Builder,- SdkBuilder<GetQuerySuggestionsRequest.Builder,,- GetQuerySuggestionsRequest> - SdkPojo,- SdkRequest.Builder
- Enclosing class:
- GetQuerySuggestionsRequest
- 
Method SummaryModifier and TypeMethodDescriptionattributeSuggestionsConfig(Consumer<AttributeSuggestionsGetConfig.Builder> attributeSuggestionsConfig) Configuration information for the document fields/attributes that you want to base query suggestions on.attributeSuggestionsConfig(AttributeSuggestionsGetConfig attributeSuggestionsConfig) Configuration information for the document fields/attributes that you want to base query suggestions on.The identifier of the index you want to get query suggestions from.maxSuggestionsCount(Integer maxSuggestionsCount) The maximum number of query suggestions you want to show to your users.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The text of a user's query to generate query suggestions.suggestionTypes(Collection<SuggestionType> suggestionTypes) The suggestions type to base query suggestions on.suggestionTypes(SuggestionType... suggestionTypes) The suggestions type to base query suggestions on.suggestionTypesWithStrings(String... suggestionTypes) The suggestions type to base query suggestions on.suggestionTypesWithStrings(Collection<String> suggestionTypes) The suggestions type to base query suggestions on.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.BuilderoverrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.services.kendra.model.KendraRequest.BuilderbuildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFields
- 
Method Details- 
indexIdThe 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.
 
- 
queryTextThe 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.
 
- 
maxSuggestionsCountThe 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.
 
- 
suggestionTypesWithStringsThe 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.
 
- 
suggestionTypesWithStringsThe 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.
 
- 
suggestionTypesThe 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.
 
- 
suggestionTypesThe 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.
 
- 
attributeSuggestionsConfigGetQuerySuggestionsRequest.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.
 
- 
attributeSuggestionsConfigdefault 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 on- AttributeSuggestionsGetConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
overrideConfigurationGetQuerySuggestionsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
- overrideConfigurationin interface- AwsRequest.Builder
- Parameters:
- overrideConfiguration- The override configuration.
- Returns:
- This object for method chaining.
 
- 
overrideConfigurationGetQuerySuggestionsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
- overrideConfigurationin interface- AwsRequest.Builder
- Parameters:
- builderConsumer- A- Consumerto which an empty- AwsRequestOverrideConfiguration.Builderwill be given.
- Returns:
- This object for method chaining.
 
 
-