/* * 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; /** *
* The configuration information for syncing a Salesforce chatter feed. The contents of the object comes from the * Salesforce FeedItem table. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SalesforceChatterFeedConfiguration implements Serializable, Cloneable, StructuredPojo { /** *
* The name of the column in the Salesforce FeedItem table that contains the content to index. Typically this is the
* Body
column.
*
* The name of the column in the Salesforce FeedItem table that contains the title of the document. This is
* typically the Title
column.
*
* Maps fields from a Salesforce chatter feed into Amazon Kendra index fields. *
*/ private java.util.List
* Filters the documents in the feed based on status of the user. When you specify ACTIVE_USERS
only
* documents from users who have an active account are indexed. When you specify STANDARD_USER
only
* documents for Salesforce standard users are documented. You can specify both.
*
* The name of the column in the Salesforce FeedItem table that contains the content to index. Typically this is the
* Body
column.
*
Body
column.
*/
public void setDocumentDataFieldName(String documentDataFieldName) {
this.documentDataFieldName = documentDataFieldName;
}
/**
*
* The name of the column in the Salesforce FeedItem table that contains the content to index. Typically this is the
* Body
column.
*
Body
column.
*/
public String getDocumentDataFieldName() {
return this.documentDataFieldName;
}
/**
*
* The name of the column in the Salesforce FeedItem table that contains the content to index. Typically this is the
* Body
column.
*
Body
column.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SalesforceChatterFeedConfiguration withDocumentDataFieldName(String documentDataFieldName) {
setDocumentDataFieldName(documentDataFieldName);
return this;
}
/**
*
* The name of the column in the Salesforce FeedItem table that contains the title of the document. This is
* typically the Title
column.
*
Title
column.
*/
public void setDocumentTitleFieldName(String documentTitleFieldName) {
this.documentTitleFieldName = documentTitleFieldName;
}
/**
*
* The name of the column in the Salesforce FeedItem table that contains the title of the document. This is
* typically the Title
column.
*
Title
column.
*/
public String getDocumentTitleFieldName() {
return this.documentTitleFieldName;
}
/**
*
* The name of the column in the Salesforce FeedItem table that contains the title of the document. This is
* typically the Title
column.
*
Title
column.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SalesforceChatterFeedConfiguration withDocumentTitleFieldName(String documentTitleFieldName) {
setDocumentTitleFieldName(documentTitleFieldName);
return this;
}
/**
* * Maps fields from a Salesforce chatter feed into Amazon Kendra index fields. *
* * @return Maps fields from a Salesforce chatter feed into Amazon Kendra index fields. */ public java.util.List* Maps fields from a Salesforce chatter feed into Amazon Kendra index fields. *
* * @param fieldMappings * Maps fields from a Salesforce chatter feed into Amazon Kendra index fields. */ public void setFieldMappings(java.util.Collection* Maps fields from a Salesforce chatter feed into Amazon Kendra index fields. *
** 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 fields from a Salesforce chatter feed into Amazon Kendra index fields. * @return Returns a reference to this object so that method calls can be chained together. */ public SalesforceChatterFeedConfiguration withFieldMappings(DataSourceToIndexFieldMapping... fieldMappings) { if (this.fieldMappings == null) { setFieldMappings(new java.util.ArrayList* Maps fields from a Salesforce chatter feed into Amazon Kendra index fields. *
* * @param fieldMappings * Maps fields from a Salesforce chatter feed into Amazon Kendra index fields. * @return Returns a reference to this object so that method calls can be chained together. */ public SalesforceChatterFeedConfiguration withFieldMappings(java.util.Collection
* Filters the documents in the feed based on status of the user. When you specify ACTIVE_USERS
only
* documents from users who have an active account are indexed. When you specify STANDARD_USER
only
* documents for Salesforce standard users are documented. You can specify both.
*
ACTIVE_USERS
* only documents from users who have an active account are indexed. When you specify
* STANDARD_USER
only documents for Salesforce standard users are documented. You can specify
* both.
* @see SalesforceChatterFeedIncludeFilterType
*/
public java.util.List
* Filters the documents in the feed based on status of the user. When you specify ACTIVE_USERS
only
* documents from users who have an active account are indexed. When you specify STANDARD_USER
only
* documents for Salesforce standard users are documented. You can specify both.
*
ACTIVE_USERS
* only documents from users who have an active account are indexed. When you specify
* STANDARD_USER
only documents for Salesforce standard users are documented. You can specify
* both.
* @see SalesforceChatterFeedIncludeFilterType
*/
public void setIncludeFilterTypes(java.util.Collection
* Filters the documents in the feed based on status of the user. When you specify ACTIVE_USERS
only
* documents from users who have an active account are indexed. When you specify STANDARD_USER
only
* documents for Salesforce standard users are documented. You can specify both.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setIncludeFilterTypes(java.util.Collection)} or {@link #withIncludeFilterTypes(java.util.Collection)} if * you want to override the existing values. *
* * @param includeFilterTypes * Filters the documents in the feed based on status of the user. When you specifyACTIVE_USERS
* only documents from users who have an active account are indexed. When you specify
* STANDARD_USER
only documents for Salesforce standard users are documented. You can specify
* both.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SalesforceChatterFeedIncludeFilterType
*/
public SalesforceChatterFeedConfiguration withIncludeFilterTypes(String... includeFilterTypes) {
if (this.includeFilterTypes == null) {
setIncludeFilterTypes(new java.util.ArrayList
* Filters the documents in the feed based on status of the user. When you specify ACTIVE_USERS
only
* documents from users who have an active account are indexed. When you specify STANDARD_USER
only
* documents for Salesforce standard users are documented. You can specify both.
*
ACTIVE_USERS
* only documents from users who have an active account are indexed. When you specify
* STANDARD_USER
only documents for Salesforce standard users are documented. You can specify
* both.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SalesforceChatterFeedIncludeFilterType
*/
public SalesforceChatterFeedConfiguration withIncludeFilterTypes(java.util.Collection
* Filters the documents in the feed based on status of the user. When you specify ACTIVE_USERS
only
* documents from users who have an active account are indexed. When you specify STANDARD_USER
only
* documents for Salesforce standard users are documented. You can specify both.
*
ACTIVE_USERS
* only documents from users who have an active account are indexed. When you specify
* STANDARD_USER
only documents for Salesforce standard users are documented. You can specify
* both.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SalesforceChatterFeedIncludeFilterType
*/
public SalesforceChatterFeedConfiguration withIncludeFilterTypes(SalesforceChatterFeedIncludeFilterType... includeFilterTypes) {
java.util.ArrayList