public void setFieldMappings(java.util.Collection<DataSourceToIndexFieldMapping> fieldMappings) {
        if (fieldMappings == null) {
            this.fieldMappings = null;
            return;
        }

        this.fieldMappings = new java.util.ArrayList<DataSourceToIndexFieldMapping>(fieldMappings);
    }
<p>
Maps attributes or field names of catalogs to Amazon Kendra index field names. To create custom fields, use the
<code>UpdateIndex</code> API before you map to ServiceNow fields. For more information, see <a
href="https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html">Mapping data source fields</a>. The
ServiceNow data source field names must exist in your ServiceNow custom metadata.
</p>

@param fieldMappings
       Maps attributes or field names of catalogs to Amazon Kendra index field names. To create custom fields,
       use the <code>UpdateIndex</code> API before you map to ServiceNow fields. For more information, see <a
       href="https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html">Mapping data source fields</a>. The
       ServiceNow data source field names must exist in your ServiceNow custom metadata.
aws-java-sdk-kendra/src/main/java/com/amazonaws/services/kendra/model/ServiceNowServiceCatalogConfiguration.java