Class CfnFeaturedResultsSetProps.Builder
java.lang.Object
software.amazon.awscdk.services.kendra.CfnFeaturedResultsSetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFeaturedResultsSetProps>
- Enclosing interface:
CfnFeaturedResultsSetProps
@Stability(Stable)
public static final class CfnFeaturedResultsSetProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFeaturedResultsSetProps>
A builder for
CfnFeaturedResultsSetProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnFeaturedResultsSetProps.getDescription()featuredDocuments(List<? extends Object> featuredDocuments) Sets the value ofCfnFeaturedResultsSetProps.getFeaturedDocuments()featuredDocuments(IResolvable featuredDocuments) Sets the value ofCfnFeaturedResultsSetProps.getFeaturedDocuments()featuredResultsSetName(String featuredResultsSetName) Sets the value ofCfnFeaturedResultsSetProps.getFeaturedResultsSetName()Sets the value ofCfnFeaturedResultsSetProps.getIndexId()queryTexts(List<String> queryTexts) Sets the value ofCfnFeaturedResultsSetProps.getQueryTexts()Sets the value ofCfnFeaturedResultsSetProps.getStatus()Sets the value ofCfnFeaturedResultsSetProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
featuredResultsSetName
@Stability(Stable) public CfnFeaturedResultsSetProps.Builder featuredResultsSetName(String featuredResultsSetName) Sets the value ofCfnFeaturedResultsSetProps.getFeaturedResultsSetName()- Parameters:
featuredResultsSetName- A name for the set of featured results. This parameter is required.- Returns:
this
-
indexId
Sets the value ofCfnFeaturedResultsSetProps.getIndexId()- Parameters:
indexId- The identifier of the index that you want to use for featuring results. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnFeaturedResultsSetProps.getDescription()- Parameters:
description- A description for the set of featured results.- Returns:
this
-
featuredDocuments
@Stability(Stable) public CfnFeaturedResultsSetProps.Builder featuredDocuments(IResolvable featuredDocuments) Sets the value ofCfnFeaturedResultsSetProps.getFeaturedDocuments()- Parameters:
featuredDocuments- A list of document IDs for the documents you want to feature at the top of the search results page.- Returns:
this
-
featuredDocuments
@Stability(Stable) public CfnFeaturedResultsSetProps.Builder featuredDocuments(List<? extends Object> featuredDocuments) Sets the value ofCfnFeaturedResultsSetProps.getFeaturedDocuments()- Parameters:
featuredDocuments- A list of document IDs for the documents you want to feature at the top of the search results page.- Returns:
this
-
queryTexts
Sets the value ofCfnFeaturedResultsSetProps.getQueryTexts()- Parameters:
queryTexts- A list of queries for featuring results.- Returns:
this
-
status
Sets the value ofCfnFeaturedResultsSetProps.getStatus()- Parameters:
status- The current status of the set of featured results. When the value is ACTIVE, featured results are ready for use.- Returns:
this
-
tags
Sets the value ofCfnFeaturedResultsSetProps.getTags()- Parameters:
tags- A list of key-value pairs that identify or categorize the featured results set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFeaturedResultsSetProps>- Returns:
- a new instance of
CfnFeaturedResultsSetProps - Throws:
NullPointerException- if any required attribute was not provided
-