/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.kendra.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Provides the configuration information for indexing a single standard object. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SalesforceStandardObjectConfiguration implements Serializable, Cloneable, StructuredPojo { /** ** The name of the standard object. *
*/ private String name; /** ** The name of the field in the standard object table that contains the document contents. *
*/ private String documentDataFieldName; /** ** The name of the field in the standard object table that contains the document title. *
*/ private String documentTitleFieldName; /** *
* Maps attributes or field names of the standard object to Amazon Kendra index field names. To create custom
* fields, use the UpdateIndex
API before you map to Salesforce fields. For more information, see Mapping data source fields. The
* Salesforce data source field names must exist in your Salesforce custom metadata.
*
* The name of the standard object. *
* * @param name * The name of the standard object. * @see SalesforceStandardObjectName */ public void setName(String name) { this.name = name; } /** ** The name of the standard object. *
* * @return The name of the standard object. * @see SalesforceStandardObjectName */ public String getName() { return this.name; } /** ** The name of the standard object. *
* * @param name * The name of the standard object. * @return Returns a reference to this object so that method calls can be chained together. * @see SalesforceStandardObjectName */ public SalesforceStandardObjectConfiguration withName(String name) { setName(name); return this; } /** ** The name of the standard object. *
* * @param name * The name of the standard object. * @return Returns a reference to this object so that method calls can be chained together. * @see SalesforceStandardObjectName */ public SalesforceStandardObjectConfiguration withName(SalesforceStandardObjectName name) { this.name = name.toString(); return this; } /** ** The name of the field in the standard object table that contains the document contents. *
* * @param documentDataFieldName * The name of the field in the standard object table that contains the document contents. */ public void setDocumentDataFieldName(String documentDataFieldName) { this.documentDataFieldName = documentDataFieldName; } /** ** The name of the field in the standard object table that contains the document contents. *
* * @return The name of the field in the standard object table that contains the document contents. */ public String getDocumentDataFieldName() { return this.documentDataFieldName; } /** ** The name of the field in the standard object table that contains the document contents. *
* * @param documentDataFieldName * The name of the field in the standard object table that contains the document contents. * @return Returns a reference to this object so that method calls can be chained together. */ public SalesforceStandardObjectConfiguration withDocumentDataFieldName(String documentDataFieldName) { setDocumentDataFieldName(documentDataFieldName); return this; } /** ** The name of the field in the standard object table that contains the document title. *
* * @param documentTitleFieldName * The name of the field in the standard object table that contains the document title. */ public void setDocumentTitleFieldName(String documentTitleFieldName) { this.documentTitleFieldName = documentTitleFieldName; } /** ** The name of the field in the standard object table that contains the document title. *
* * @return The name of the field in the standard object table that contains the document title. */ public String getDocumentTitleFieldName() { return this.documentTitleFieldName; } /** ** The name of the field in the standard object table that contains the document title. *
* * @param documentTitleFieldName * The name of the field in the standard object table that contains the document title. * @return Returns a reference to this object so that method calls can be chained together. */ public SalesforceStandardObjectConfiguration withDocumentTitleFieldName(String documentTitleFieldName) { setDocumentTitleFieldName(documentTitleFieldName); return this; } /** *
* Maps attributes or field names of the standard object to Amazon Kendra index field names. To create custom
* fields, use the UpdateIndex
API before you map to Salesforce fields. For more information, see Mapping data source fields. The
* Salesforce data source field names must exist in your Salesforce custom metadata.
*
UpdateIndex
API before you map to Salesforce fields. For more
* information, see Mapping data
* source fields. The Salesforce data source field names must exist in your Salesforce custom metadata.
*/
public java.util.List
* Maps attributes or field names of the standard object to Amazon Kendra index field names. To create custom
* fields, use the UpdateIndex
API before you map to Salesforce fields. For more information, see Mapping data source fields. The
* Salesforce data source field names must exist in your Salesforce custom metadata.
*
UpdateIndex
API before you map to Salesforce fields. For more information,
* see Mapping data source
* fields. The Salesforce data source field names must exist in your Salesforce custom metadata.
*/
public void setFieldMappings(java.util.Collection
* Maps attributes or field names of the standard object to Amazon Kendra index field names. To create custom
* fields, use the UpdateIndex
API before you map to Salesforce fields. For more information, see Mapping data source fields. The
* Salesforce data source field names must exist in your Salesforce custom metadata.
*
* NOTE: 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. *
* * @param fieldMappings * Maps attributes or field names of the standard object to Amazon Kendra index field names. To create custom * fields, use theUpdateIndex
API before you map to Salesforce fields. For more information,
* see Mapping data source
* fields. The Salesforce data source field names must exist in your Salesforce custom metadata.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SalesforceStandardObjectConfiguration withFieldMappings(DataSourceToIndexFieldMapping... fieldMappings) {
if (this.fieldMappings == null) {
setFieldMappings(new java.util.ArrayList
* Maps attributes or field names of the standard object to Amazon Kendra index field names. To create custom
* fields, use the UpdateIndex
API before you map to Salesforce fields. For more information, see Mapping data source fields. The
* Salesforce data source field names must exist in your Salesforce custom metadata.
*
UpdateIndex
API before you map to Salesforce fields. For more information,
* see Mapping data source
* fields. The Salesforce data source field names must exist in your Salesforce custom metadata.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SalesforceStandardObjectConfiguration withFieldMappings(java.util.Collection