Interface AttributeSuggestionsGetConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AttributeSuggestionsGetConfig.Builder,
,AttributeSuggestionsGetConfig> SdkBuilder<AttributeSuggestionsGetConfig.Builder,
,AttributeSuggestionsGetConfig> SdkPojo
- Enclosing class:
AttributeSuggestionsGetConfig
-
Method Summary
Modifier and TypeMethodDescriptionadditionalResponseAttributes
(String... additionalResponseAttributes) The list of additional document field/attribute keys or field names to include in the response.additionalResponseAttributes
(Collection<String> additionalResponseAttributes) The list of additional document field/attribute keys or field names to include in the response.attributeFilter
(Consumer<AttributeFilter.Builder> attributeFilter) Filters the search results based on document fields/attributes.attributeFilter
(AttributeFilter attributeFilter) Filters the search results based on document fields/attributes.suggestionAttributes
(String... suggestionAttributes) The list of document field/attribute keys or field names to use for query suggestions.suggestionAttributes
(Collection<String> suggestionAttributes) The list of document field/attribute keys or field names to use for query suggestions.userContext
(Consumer<UserContext.Builder> userContext) Applies user context filtering so that only users who are given access to certain documents see these document in their search results.userContext
(UserContext userContext) Applies user context filtering so that only users who are given access to certain documents see these document in their search results.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
suggestionAttributes
The list of document field/attribute keys or field names to use for query suggestions. If the content within any of the fields match what your user starts typing as their query, then the field content is returned as a query suggestion.
- Parameters:
suggestionAttributes
- The list of document field/attribute keys or field names to use for query suggestions. If the content within any of the fields match what your user starts typing as their query, then the field content is returned as a query suggestion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
suggestionAttributes
The list of document field/attribute keys or field names to use for query suggestions. If the content within any of the fields match what your user starts typing as their query, then the field content is returned as a query suggestion.
- Parameters:
suggestionAttributes
- The list of document field/attribute keys or field names to use for query suggestions. If the content within any of the fields match what your user starts typing as their query, then the field content is returned as a query suggestion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalResponseAttributes
AttributeSuggestionsGetConfig.Builder additionalResponseAttributes(Collection<String> additionalResponseAttributes) The list of additional document field/attribute keys or field names to include in the response. You can use additional fields to provide extra information in the response. Additional fields are not used to based suggestions on.
- Parameters:
additionalResponseAttributes
- The list of additional document field/attribute keys or field names to include in the response. You can use additional fields to provide extra information in the response. Additional fields are not used to based suggestions on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalResponseAttributes
AttributeSuggestionsGetConfig.Builder additionalResponseAttributes(String... additionalResponseAttributes) The list of additional document field/attribute keys or field names to include in the response. You can use additional fields to provide extra information in the response. Additional fields are not used to based suggestions on.
- Parameters:
additionalResponseAttributes
- The list of additional document field/attribute keys or field names to include in the response. You can use additional fields to provide extra information in the response. Additional fields are not used to based suggestions on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributeFilter
Filters the search results based on document fields/attributes.
- Parameters:
attributeFilter
- Filters the search results based on document fields/attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributeFilter
default AttributeSuggestionsGetConfig.Builder attributeFilter(Consumer<AttributeFilter.Builder> attributeFilter) Filters the search results based on document fields/attributes.
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:
-
userContext
Applies user context filtering so that only users who are given access to certain documents see these document in their search results.
- Parameters:
userContext
- Applies user context filtering so that only users who are given access to certain documents see these document in their search results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userContext
default AttributeSuggestionsGetConfig.Builder userContext(Consumer<UserContext.Builder> userContext) Applies user context filtering so that only users who are given access to certain documents see these document in their search results.
This is a convenience method that creates an instance of theUserContext.Builder
avoiding the need to create one manually viaUserContext.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed touserContext(UserContext)
.- Parameters:
userContext
- a consumer that will call methods onUserContext.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-