Class CfnDataSource.ColumnConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kendra.CfnDataSource.ColumnConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.ColumnConfigurationProperty>
- Enclosing interface:
CfnDataSource.ColumnConfigurationProperty
@Stability(Stable)
public static final class CfnDataSource.ColumnConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.ColumnConfigurationProperty>
A builder for
CfnDataSource.ColumnConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.changeDetectingColumns
(List<String> changeDetectingColumns) Sets the value ofCfnDataSource.ColumnConfigurationProperty.getChangeDetectingColumns()
documentDataColumnName
(String documentDataColumnName) Sets the value ofCfnDataSource.ColumnConfigurationProperty.getDocumentDataColumnName()
documentIdColumnName
(String documentIdColumnName) Sets the value ofCfnDataSource.ColumnConfigurationProperty.getDocumentIdColumnName()
documentTitleColumnName
(String documentTitleColumnName) Sets the value ofCfnDataSource.ColumnConfigurationProperty.getDocumentTitleColumnName()
fieldMappings
(List<? extends Object> fieldMappings) Sets the value ofCfnDataSource.ColumnConfigurationProperty.getFieldMappings()
fieldMappings
(IResolvable fieldMappings) Sets the value ofCfnDataSource.ColumnConfigurationProperty.getFieldMappings()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
changeDetectingColumns
@Stability(Stable) public CfnDataSource.ColumnConfigurationProperty.Builder changeDetectingColumns(List<String> changeDetectingColumns) Sets the value ofCfnDataSource.ColumnConfigurationProperty.getChangeDetectingColumns()
- Parameters:
changeDetectingColumns
- One to five columns that indicate when a document in the database has changed. This parameter is required.- Returns:
this
-
documentDataColumnName
@Stability(Stable) public CfnDataSource.ColumnConfigurationProperty.Builder documentDataColumnName(String documentDataColumnName) Sets the value ofCfnDataSource.ColumnConfigurationProperty.getDocumentDataColumnName()
- Parameters:
documentDataColumnName
- The column that contains the contents of the document. This parameter is required.- Returns:
this
-
documentIdColumnName
@Stability(Stable) public CfnDataSource.ColumnConfigurationProperty.Builder documentIdColumnName(String documentIdColumnName) Sets the value ofCfnDataSource.ColumnConfigurationProperty.getDocumentIdColumnName()
- Parameters:
documentIdColumnName
- The column that provides the document's identifier. This parameter is required.- Returns:
this
-
documentTitleColumnName
@Stability(Stable) public CfnDataSource.ColumnConfigurationProperty.Builder documentTitleColumnName(String documentTitleColumnName) Sets the value ofCfnDataSource.ColumnConfigurationProperty.getDocumentTitleColumnName()
- Parameters:
documentTitleColumnName
- The column that contains the title of the document.- Returns:
this
-
fieldMappings
@Stability(Stable) public CfnDataSource.ColumnConfigurationProperty.Builder fieldMappings(IResolvable fieldMappings) Sets the value ofCfnDataSource.ColumnConfigurationProperty.getFieldMappings()
- Parameters:
fieldMappings
- An array of objects that map database column names to the corresponding fields in an index. You must first create the fields in the index using the UpdateIndex operation.- Returns:
this
-
fieldMappings
@Stability(Stable) public CfnDataSource.ColumnConfigurationProperty.Builder fieldMappings(List<? extends Object> fieldMappings) Sets the value ofCfnDataSource.ColumnConfigurationProperty.getFieldMappings()
- Parameters:
fieldMappings
- An array of objects that map database column names to the corresponding fields in an index. You must first create the fields in the index using the UpdateIndex operation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataSource.ColumnConfigurationProperty>
- Returns:
- a new instance of
CfnDataSource.ColumnConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-