Class CfnFeaturedResultsSetMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.kendra.CfnFeaturedResultsSetMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFeaturedResultsSetMixinProps>
- Enclosing interface:
CfnFeaturedResultsSetMixinProps
@Stability(Stable)
public static final class CfnFeaturedResultsSetMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFeaturedResultsSetMixinProps>
A builder for
CfnFeaturedResultsSetMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnFeaturedResultsSetMixinProps.getDescription()featuredDocuments(List<? extends Object> featuredDocuments) Sets the value ofCfnFeaturedResultsSetMixinProps.getFeaturedDocuments()featuredDocuments(IResolvable featuredDocuments) Sets the value ofCfnFeaturedResultsSetMixinProps.getFeaturedDocuments()featuredResultsSetName(String featuredResultsSetName) Sets the value ofCfnFeaturedResultsSetMixinProps.getFeaturedResultsSetName()Sets the value ofCfnFeaturedResultsSetMixinProps.getIndexId()queryTexts(List<String> queryTexts) Sets the value ofCfnFeaturedResultsSetMixinProps.getQueryTexts()Sets the value ofCfnFeaturedResultsSetMixinProps.getStatus()Sets the value ofCfnFeaturedResultsSetMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnFeaturedResultsSetMixinProps.getDescription()- Parameters:
description- A description for the set of featured results.- Returns:
this
-
featuredDocuments
@Stability(Stable) public CfnFeaturedResultsSetMixinProps.Builder featuredDocuments(IResolvable featuredDocuments) Sets the value ofCfnFeaturedResultsSetMixinProps.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 CfnFeaturedResultsSetMixinProps.Builder featuredDocuments(List<? extends Object> featuredDocuments) Sets the value ofCfnFeaturedResultsSetMixinProps.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
-
featuredResultsSetName
@Stability(Stable) public CfnFeaturedResultsSetMixinProps.Builder featuredResultsSetName(String featuredResultsSetName) Sets the value ofCfnFeaturedResultsSetMixinProps.getFeaturedResultsSetName()- Parameters:
featuredResultsSetName- A name for the set of featured results.- Returns:
this
-
indexId
Sets the value ofCfnFeaturedResultsSetMixinProps.getIndexId()- Parameters:
indexId- The identifier of the index that you want to use for featuring results.- Returns:
this
-
queryTexts
@Stability(Stable) public CfnFeaturedResultsSetMixinProps.Builder queryTexts(List<String> queryTexts) Sets the value ofCfnFeaturedResultsSetMixinProps.getQueryTexts()- Parameters:
queryTexts- A list of queries for featuring results.- Returns:
this
-
status
Sets the value ofCfnFeaturedResultsSetMixinProps.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 ofCfnFeaturedResultsSetMixinProps.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<CfnFeaturedResultsSetMixinProps>- Returns:
- a new instance of
CfnFeaturedResultsSetMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-