public ServiceNowServiceCatalogConfiguration withFieldMappings(DataSourceToIndexFieldMapping... fieldMappings) {
        if (this.fieldMappings == null) {
            setFieldMappings(new java.util.ArrayList<DataSourceToIndexFieldMapping>(fieldMappings.length));
        }
        for (DataSourceToIndexFieldMapping ele : fieldMappings) {
            this.fieldMappings.add(ele);
        }
        return this;
    }
<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>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setFieldMappings(java.util.Collection)} or {@link #withFieldMappings(java.util.Collection)} if you want
to override the existing values.
</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.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kendra/src/main/java/com/amazonaws/services/kendra/model/ServiceNowServiceCatalogConfiguration.java