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