Class CfnIndexPropsMixin.DocumentMetadataConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.kendra.CfnIndexPropsMixin.DocumentMetadataConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIndexPropsMixin.DocumentMetadataConfigurationProperty>
- Enclosing interface:
CfnIndexPropsMixin.DocumentMetadataConfigurationProperty
@Stability(Stable)
public static final class CfnIndexPropsMixin.DocumentMetadataConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIndexPropsMixin.DocumentMetadataConfigurationProperty>
A builder for
CfnIndexPropsMixin.DocumentMetadataConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnIndexPropsMixin.DocumentMetadataConfigurationProperty.getName()relevance(CfnIndexPropsMixin.RelevanceProperty relevance) Sets the value ofCfnIndexPropsMixin.DocumentMetadataConfigurationProperty.getRelevance()relevance(IResolvable relevance) Sets the value ofCfnIndexPropsMixin.DocumentMetadataConfigurationProperty.getRelevance()Sets the value ofCfnIndexPropsMixin.DocumentMetadataConfigurationProperty.getSearch()search(IResolvable search) Sets the value ofCfnIndexPropsMixin.DocumentMetadataConfigurationProperty.getSearch()Sets the value ofCfnIndexPropsMixin.DocumentMetadataConfigurationProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
@Stability(Stable) public CfnIndexPropsMixin.DocumentMetadataConfigurationProperty.Builder name(String name) Sets the value ofCfnIndexPropsMixin.DocumentMetadataConfigurationProperty.getName()- Parameters:
name- The name of the index field.- Returns:
this
-
relevance
@Stability(Stable) public CfnIndexPropsMixin.DocumentMetadataConfigurationProperty.Builder relevance(IResolvable relevance) Sets the value ofCfnIndexPropsMixin.DocumentMetadataConfigurationProperty.getRelevance()- Parameters:
relevance- Provides tuning parameters to determine how the field affects the search results.- Returns:
this
-
relevance
@Stability(Stable) public CfnIndexPropsMixin.DocumentMetadataConfigurationProperty.Builder relevance(CfnIndexPropsMixin.RelevanceProperty relevance) Sets the value ofCfnIndexPropsMixin.DocumentMetadataConfigurationProperty.getRelevance()- Parameters:
relevance- Provides tuning parameters to determine how the field affects the search results.- Returns:
this
-
search
@Stability(Stable) public CfnIndexPropsMixin.DocumentMetadataConfigurationProperty.Builder search(IResolvable search) Sets the value ofCfnIndexPropsMixin.DocumentMetadataConfigurationProperty.getSearch()- Parameters:
search- Provides information about how the field is used during a search.- Returns:
this
-
search
@Stability(Stable) public CfnIndexPropsMixin.DocumentMetadataConfigurationProperty.Builder search(CfnIndexPropsMixin.SearchProperty search) Sets the value ofCfnIndexPropsMixin.DocumentMetadataConfigurationProperty.getSearch()- Parameters:
search- Provides information about how the field is used during a search.- Returns:
this
-
type
@Stability(Stable) public CfnIndexPropsMixin.DocumentMetadataConfigurationProperty.Builder type(String type) Sets the value ofCfnIndexPropsMixin.DocumentMetadataConfigurationProperty.getType()- Parameters:
type- The data type of the index field.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnIndexPropsMixin.DocumentMetadataConfigurationProperty>- Returns:
- a new instance of
CfnIndexPropsMixin.DocumentMetadataConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-