Class CfnIndex.ValueImportanceItemProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kendra.CfnIndex.ValueImportanceItemProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIndex.ValueImportanceItemProperty>
- Enclosing interface:
- CfnIndex.ValueImportanceItemProperty
@Stability(Stable)
public static final class CfnIndex.ValueImportanceItemProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIndex.ValueImportanceItemProperty>
A builder for
CfnIndex.ValueImportanceItemProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnIndex.ValueImportanceItemProperty.getKey()
Sets the value ofCfnIndex.ValueImportanceItemProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the value ofCfnIndex.ValueImportanceItemProperty.getKey()
- Parameters:
key
- The document metadata value used for the search boost.- Returns:
this
-
value
Sets the value ofCfnIndex.ValueImportanceItemProperty.getValue()
- Parameters:
value
- The boost value for a document when the key is part of the metadata of a document.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnIndex.ValueImportanceItemProperty>
- Returns:
- a new instance of
CfnIndex.ValueImportanceItemProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-