@Generated(value="software.amazon.awssdk:codegen") public final class DataSourceToIndexFieldMapping extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DataSourceToIndexFieldMapping.Builder,DataSourceToIndexFieldMapping>
Maps attributes or field names of the documents synced from the data source to Amazon Kendra index field names. You
can set up field mappings for each data source when calling CreateDataSource or UpdateDataSource API. To
create custom fields, use the UpdateIndex API to first create an index field and then map to the data
source field. For more information, see Mapping data source fields.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DataSourceToIndexFieldMapping.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DataSourceToIndexFieldMapping.Builder |
builder() |
String |
dataSourceFieldName()
The name of the field in the data source.
|
String |
dateFieldFormat()
The format for date fields in the data source.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
indexFieldName()
The name of the index field to map to the data source field.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DataSourceToIndexFieldMapping.Builder> |
serializableBuilderClass() |
DataSourceToIndexFieldMapping.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String dataSourceFieldName()
The name of the field in the data source. You must first create the index field using the
UpdateIndex API.
UpdateIndex API.public final String dateFieldFormat()
The format for date fields in the data source. If the field specified in DataSourceFieldName is a
date field, you must specify the date format. If the field is not a date field, an exception is thrown.
DataSourceFieldName
is a date field, you must specify the date format. If the field is not a date field, an exception is
thrown.public final String indexFieldName()
The name of the index field to map to the data source field. The index field type must match the data source field type.
public DataSourceToIndexFieldMapping.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DataSourceToIndexFieldMapping.Builder,DataSourceToIndexFieldMapping>public static DataSourceToIndexFieldMapping.Builder builder()
public static Class<? extends DataSourceToIndexFieldMapping.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.