Interface FeaturedResultsSet.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<FeaturedResultsSet.Builder,FeaturedResultsSet>,SdkBuilder<FeaturedResultsSet.Builder,FeaturedResultsSet>,SdkPojo
- Enclosing class:
- FeaturedResultsSet
public static interface FeaturedResultsSet.Builder extends SdkPojo, CopyableBuilder<FeaturedResultsSet.Builder,FeaturedResultsSet>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FeaturedResultsSet.BuildercreationTimestamp(Long creationTimestamp)The Unix timestamp when the set of featured results was created.FeaturedResultsSet.Builderdescription(String description)The description for the set of featured results.FeaturedResultsSet.BuilderfeaturedDocuments(Collection<FeaturedDocument> featuredDocuments)The list of document IDs for the documents you want to feature at the top of the search results page.FeaturedResultsSet.BuilderfeaturedDocuments(Consumer<FeaturedDocument.Builder>... featuredDocuments)The list of document IDs for the documents you want to feature at the top of the search results page.FeaturedResultsSet.BuilderfeaturedDocuments(FeaturedDocument... featuredDocuments)The list of document IDs for the documents you want to feature at the top of the search results page.FeaturedResultsSet.BuilderfeaturedResultsSetId(String featuredResultsSetId)The identifier of the set of featured results.FeaturedResultsSet.BuilderfeaturedResultsSetName(String featuredResultsSetName)The name for the set of featured results.FeaturedResultsSet.BuilderlastUpdatedTimestamp(Long lastUpdatedTimestamp)The Unix timestamp when the set of featured results was last updated.FeaturedResultsSet.BuilderqueryTexts(String... queryTexts)The list of queries for featuring results.FeaturedResultsSet.BuilderqueryTexts(Collection<String> queryTexts)The list of queries for featuring results.FeaturedResultsSet.Builderstatus(String status)The current status of the set of featured results.FeaturedResultsSet.Builderstatus(FeaturedResultsSetStatus status)The current status of the set of featured 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 Detail
-
featuredResultsSetId
FeaturedResultsSet.Builder featuredResultsSetId(String featuredResultsSetId)
The identifier of the set of featured results.
- Parameters:
featuredResultsSetId- The identifier of the set of featured results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
featuredResultsSetName
FeaturedResultsSet.Builder featuredResultsSetName(String featuredResultsSetName)
The name for the set of featured results.
- Parameters:
featuredResultsSetName- The name for the set of featured results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
FeaturedResultsSet.Builder description(String description)
The description for the set of featured results.
- Parameters:
description- The description for the set of featured results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
FeaturedResultsSet.Builder status(String status)
The current status of the set of featured results. When the value is
ACTIVE, featured results are ready for use. You can still configure your settings before setting the status toACTIVE. You can set the status toACTIVEorINACTIVEusing the UpdateFeaturedResultsSet API. The queries you specify for featured results must be unique per featured results set for each index, whether the status isACTIVEorINACTIVE.- Parameters:
status- The current status of the set of featured results. When the value isACTIVE, featured results are ready for use. You can still configure your settings before setting the status toACTIVE. You can set the status toACTIVEorINACTIVEusing the UpdateFeaturedResultsSet API. The queries you specify for featured results must be unique per featured results set for each index, whether the status isACTIVEorINACTIVE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FeaturedResultsSetStatus,FeaturedResultsSetStatus
-
status
FeaturedResultsSet.Builder status(FeaturedResultsSetStatus status)
The current status of the set of featured results. When the value is
ACTIVE, featured results are ready for use. You can still configure your settings before setting the status toACTIVE. You can set the status toACTIVEorINACTIVEusing the UpdateFeaturedResultsSet API. The queries you specify for featured results must be unique per featured results set for each index, whether the status isACTIVEorINACTIVE.- Parameters:
status- The current status of the set of featured results. When the value isACTIVE, featured results are ready for use. You can still configure your settings before setting the status toACTIVE. You can set the status toACTIVEorINACTIVEusing the UpdateFeaturedResultsSet API. The queries you specify for featured results must be unique per featured results set for each index, whether the status isACTIVEorINACTIVE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FeaturedResultsSetStatus,FeaturedResultsSetStatus
-
queryTexts
FeaturedResultsSet.Builder queryTexts(Collection<String> queryTexts)
The list of queries for featuring results.
Specific queries are mapped to specific documents for featuring in the results. If a query contains an exact match, then one or more specific documents are featured in the results. The exact match applies to the full query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically rank results?' will not render the featured results. Featured results are designed for specific queries, rather than queries that are too broad in scope.
- Parameters:
queryTexts- The list of queries for featuring results.Specific queries are mapped to specific documents for featuring in the results. If a query contains an exact match, then one or more specific documents are featured in the results. The exact match applies to the full query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically rank results?' will not render the featured results. Featured results are designed for specific queries, rather than queries that are too broad in scope.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryTexts
FeaturedResultsSet.Builder queryTexts(String... queryTexts)
The list of queries for featuring results.
Specific queries are mapped to specific documents for featuring in the results. If a query contains an exact match, then one or more specific documents are featured in the results. The exact match applies to the full query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically rank results?' will not render the featured results. Featured results are designed for specific queries, rather than queries that are too broad in scope.
- Parameters:
queryTexts- The list of queries for featuring results.Specific queries are mapped to specific documents for featuring in the results. If a query contains an exact match, then one or more specific documents are featured in the results. The exact match applies to the full query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically rank results?' will not render the featured results. Featured results are designed for specific queries, rather than queries that are too broad in scope.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
featuredDocuments
FeaturedResultsSet.Builder featuredDocuments(Collection<FeaturedDocument> featuredDocuments)
The list of document IDs for the documents you want to feature at the top of the search results page. You can use the Query API to search for specific documents with their document IDs included in the result items, or you can use the console.
You can add up to four featured documents. You can request to increase this limit by contacting Support.
Specific queries are mapped to specific documents for featuring in the results. If a query contains an exact match, then one or more specific documents are featured in the results. The exact match applies to the full query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically rank results?' will not render the featured results. Featured results are designed for specific queries, rather than queries that are too broad in scope.
- Parameters:
featuredDocuments- The list of document IDs for the documents you want to feature at the top of the search results page. You can use the Query API to search for specific documents with their document IDs included in the result items, or you can use the console.You can add up to four featured documents. You can request to increase this limit by contacting Support.
Specific queries are mapped to specific documents for featuring in the results. If a query contains an exact match, then one or more specific documents are featured in the results. The exact match applies to the full query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically rank results?' will not render the featured results. Featured results are designed for specific queries, rather than queries that are too broad in scope.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
featuredDocuments
FeaturedResultsSet.Builder featuredDocuments(FeaturedDocument... featuredDocuments)
The list of document IDs for the documents you want to feature at the top of the search results page. You can use the Query API to search for specific documents with their document IDs included in the result items, or you can use the console.
You can add up to four featured documents. You can request to increase this limit by contacting Support.
Specific queries are mapped to specific documents for featuring in the results. If a query contains an exact match, then one or more specific documents are featured in the results. The exact match applies to the full query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically rank results?' will not render the featured results. Featured results are designed for specific queries, rather than queries that are too broad in scope.
- Parameters:
featuredDocuments- The list of document IDs for the documents you want to feature at the top of the search results page. You can use the Query API to search for specific documents with their document IDs included in the result items, or you can use the console.You can add up to four featured documents. You can request to increase this limit by contacting Support.
Specific queries are mapped to specific documents for featuring in the results. If a query contains an exact match, then one or more specific documents are featured in the results. The exact match applies to the full query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically rank results?' will not render the featured results. Featured results are designed for specific queries, rather than queries that are too broad in scope.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
featuredDocuments
FeaturedResultsSet.Builder featuredDocuments(Consumer<FeaturedDocument.Builder>... featuredDocuments)
The list of document IDs for the documents you want to feature at the top of the search results page. You can use the Query API to search for specific documents with their document IDs included in the result items, or you can use the console.
You can add up to four featured documents. You can request to increase this limit by contacting Support.
Specific queries are mapped to specific documents for featuring in the results. If a query contains an exact match, then one or more specific documents are featured in the results. The exact match applies to the full query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically rank results?' will not render the featured results. Featured results are designed for specific queries, rather than queries that are too broad in scope.
This is a convenience method that creates an instance of theFeaturedDocument.Builderavoiding the need to create one manually viaFeaturedDocument.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#featuredDocuments(List.) - Parameters:
featuredDocuments- a consumer that will call methods onFeaturedDocument.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#featuredDocuments(java.util.Collection)
-
lastUpdatedTimestamp
FeaturedResultsSet.Builder lastUpdatedTimestamp(Long lastUpdatedTimestamp)
The Unix timestamp when the set of featured results was last updated.
- Parameters:
lastUpdatedTimestamp- The Unix timestamp when the set of featured results was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationTimestamp
FeaturedResultsSet.Builder creationTimestamp(Long creationTimestamp)
The Unix timestamp when the set of featured results was created.
- Parameters:
creationTimestamp- The Unix timestamp when the set of featured results was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-