Class CfnDataSource.DataSourceToIndexFieldMappingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kendra.CfnDataSource.DataSourceToIndexFieldMappingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.DataSourceToIndexFieldMappingProperty>
- Enclosing interface:
CfnDataSource.DataSourceToIndexFieldMappingProperty
@Stability(Stable)
public static final class CfnDataSource.DataSourceToIndexFieldMappingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.DataSourceToIndexFieldMappingProperty>
A builder for
CfnDataSource.DataSourceToIndexFieldMappingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dataSourceFieldName(String dataSourceFieldName) dateFieldFormat(String dateFieldFormat) Sets the value ofCfnDataSource.DataSourceToIndexFieldMappingProperty.getDateFieldFormat()indexFieldName(String indexFieldName) Sets the value ofCfnDataSource.DataSourceToIndexFieldMappingProperty.getIndexFieldName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataSourceFieldName
@Stability(Stable) public CfnDataSource.DataSourceToIndexFieldMappingProperty.Builder dataSourceFieldName(String dataSourceFieldName) - Parameters:
dataSourceFieldName- The name of the field in the data source. This parameter is required. You must first create the index field using theUpdateIndexAPI.- Returns:
this
-
indexFieldName
@Stability(Stable) public CfnDataSource.DataSourceToIndexFieldMappingProperty.Builder indexFieldName(String indexFieldName) Sets the value ofCfnDataSource.DataSourceToIndexFieldMappingProperty.getIndexFieldName()- Parameters:
indexFieldName- The name of the index field to map to the data source field. This parameter is required. The index field type must match the data source field type.- Returns:
this
-
dateFieldFormat
@Stability(Stable) public CfnDataSource.DataSourceToIndexFieldMappingProperty.Builder dateFieldFormat(String dateFieldFormat) Sets the value ofCfnDataSource.DataSourceToIndexFieldMappingProperty.getDateFieldFormat()- Parameters:
dateFieldFormat- The format for date fields in the data source. If the field specified inDataSourceFieldNameis a date field, you must specify the date format. If the field is not a date field, an exception is thrown.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataSource.DataSourceToIndexFieldMappingProperty>- Returns:
- a new instance of
CfnDataSource.DataSourceToIndexFieldMappingProperty - Throws:
NullPointerException- if any required attribute was not provided
-