/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace kendra { namespace Model { /** *

The configuration information for syncing a Salesforce chatter feed. The * contents of the object comes from the Salesforce FeedItem table.

See * Also:

AWS * API Reference

*/ class SalesforceChatterFeedConfiguration { public: AWS_KENDRA_API SalesforceChatterFeedConfiguration(); AWS_KENDRA_API SalesforceChatterFeedConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_KENDRA_API SalesforceChatterFeedConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the column in the Salesforce FeedItem table that contains the * content to index. Typically this is the Body column.

*/ inline const Aws::String& GetDocumentDataFieldName() const{ return m_documentDataFieldName; } /** *

The name of the column in the Salesforce FeedItem table that contains the * content to index. Typically this is the Body column.

*/ inline bool DocumentDataFieldNameHasBeenSet() const { return m_documentDataFieldNameHasBeenSet; } /** *

The name of the column in the Salesforce FeedItem table that contains the * content to index. Typically this is the Body column.

*/ inline void SetDocumentDataFieldName(const Aws::String& value) { m_documentDataFieldNameHasBeenSet = true; m_documentDataFieldName = value; } /** *

The name of the column in the Salesforce FeedItem table that contains the * content to index. Typically this is the Body column.

*/ inline void SetDocumentDataFieldName(Aws::String&& value) { m_documentDataFieldNameHasBeenSet = true; m_documentDataFieldName = std::move(value); } /** *

The name of the column in the Salesforce FeedItem table that contains the * content to index. Typically this is the Body column.

*/ inline void SetDocumentDataFieldName(const char* value) { m_documentDataFieldNameHasBeenSet = true; m_documentDataFieldName.assign(value); } /** *

The name of the column in the Salesforce FeedItem table that contains the * content to index. Typically this is the Body column.

*/ inline SalesforceChatterFeedConfiguration& WithDocumentDataFieldName(const Aws::String& value) { SetDocumentDataFieldName(value); return *this;} /** *

The name of the column in the Salesforce FeedItem table that contains the * content to index. Typically this is the Body column.

*/ inline SalesforceChatterFeedConfiguration& WithDocumentDataFieldName(Aws::String&& value) { SetDocumentDataFieldName(std::move(value)); return *this;} /** *

The name of the column in the Salesforce FeedItem table that contains the * content to index. Typically this is the Body column.

*/ inline SalesforceChatterFeedConfiguration& WithDocumentDataFieldName(const char* value) { SetDocumentDataFieldName(value); 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.

*/ inline const Aws::String& GetDocumentTitleFieldName() const{ return m_documentTitleFieldName; } /** *

The name of the column in the Salesforce FeedItem table that contains the * title of the document. This is typically the Title column.

*/ inline bool DocumentTitleFieldNameHasBeenSet() const { return m_documentTitleFieldNameHasBeenSet; } /** *

The name of the column in the Salesforce FeedItem table that contains the * title of the document. This is typically the Title column.

*/ inline void SetDocumentTitleFieldName(const Aws::String& value) { m_documentTitleFieldNameHasBeenSet = true; m_documentTitleFieldName = value; } /** *

The name of the column in the Salesforce FeedItem table that contains the * title of the document. This is typically the Title column.

*/ inline void SetDocumentTitleFieldName(Aws::String&& value) { m_documentTitleFieldNameHasBeenSet = true; m_documentTitleFieldName = std::move(value); } /** *

The name of the column in the Salesforce FeedItem table that contains the * title of the document. This is typically the Title column.

*/ inline void SetDocumentTitleFieldName(const char* value) { m_documentTitleFieldNameHasBeenSet = true; m_documentTitleFieldName.assign(value); } /** *

The name of the column in the Salesforce FeedItem table that contains the * title of the document. This is typically the Title column.

*/ inline SalesforceChatterFeedConfiguration& WithDocumentTitleFieldName(const Aws::String& value) { SetDocumentTitleFieldName(value); 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.

*/ inline SalesforceChatterFeedConfiguration& WithDocumentTitleFieldName(Aws::String&& value) { SetDocumentTitleFieldName(std::move(value)); 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.

*/ inline SalesforceChatterFeedConfiguration& WithDocumentTitleFieldName(const char* value) { SetDocumentTitleFieldName(value); return *this;} /** *

Maps fields from a Salesforce chatter feed into Amazon Kendra index * fields.

*/ inline const Aws::Vector& GetFieldMappings() const{ return m_fieldMappings; } /** *

Maps fields from a Salesforce chatter feed into Amazon Kendra index * fields.

*/ inline bool FieldMappingsHasBeenSet() const { return m_fieldMappingsHasBeenSet; } /** *

Maps fields from a Salesforce chatter feed into Amazon Kendra index * fields.

*/ inline void SetFieldMappings(const Aws::Vector& value) { m_fieldMappingsHasBeenSet = true; m_fieldMappings = value; } /** *

Maps fields from a Salesforce chatter feed into Amazon Kendra index * fields.

*/ inline void SetFieldMappings(Aws::Vector&& value) { m_fieldMappingsHasBeenSet = true; m_fieldMappings = std::move(value); } /** *

Maps fields from a Salesforce chatter feed into Amazon Kendra index * fields.

*/ inline SalesforceChatterFeedConfiguration& WithFieldMappings(const Aws::Vector& value) { SetFieldMappings(value); return *this;} /** *

Maps fields from a Salesforce chatter feed into Amazon Kendra index * fields.

*/ inline SalesforceChatterFeedConfiguration& WithFieldMappings(Aws::Vector&& value) { SetFieldMappings(std::move(value)); return *this;} /** *

Maps fields from a Salesforce chatter feed into Amazon Kendra index * fields.

*/ inline SalesforceChatterFeedConfiguration& AddFieldMappings(const DataSourceToIndexFieldMapping& value) { m_fieldMappingsHasBeenSet = true; m_fieldMappings.push_back(value); return *this; } /** *

Maps fields from a Salesforce chatter feed into Amazon Kendra index * fields.

*/ inline SalesforceChatterFeedConfiguration& AddFieldMappings(DataSourceToIndexFieldMapping&& value) { m_fieldMappingsHasBeenSet = true; m_fieldMappings.push_back(std::move(value)); return *this; } /** *

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.

*/ inline const Aws::Vector& GetIncludeFilterTypes() const{ return m_includeFilterTypes; } /** *

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.

*/ inline bool IncludeFilterTypesHasBeenSet() const { return m_includeFilterTypesHasBeenSet; } /** *

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.

*/ inline void SetIncludeFilterTypes(const Aws::Vector& value) { m_includeFilterTypesHasBeenSet = true; m_includeFilterTypes = value; } /** *

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.

*/ inline void SetIncludeFilterTypes(Aws::Vector&& value) { m_includeFilterTypesHasBeenSet = true; m_includeFilterTypes = std::move(value); } /** *

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.

*/ inline SalesforceChatterFeedConfiguration& WithIncludeFilterTypes(const Aws::Vector& value) { SetIncludeFilterTypes(value); return *this;} /** *

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.

*/ inline SalesforceChatterFeedConfiguration& WithIncludeFilterTypes(Aws::Vector&& value) { SetIncludeFilterTypes(std::move(value)); return *this;} /** *

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.

*/ inline SalesforceChatterFeedConfiguration& AddIncludeFilterTypes(const SalesforceChatterFeedIncludeFilterType& value) { m_includeFilterTypesHasBeenSet = true; m_includeFilterTypes.push_back(value); return *this; } /** *

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.

*/ inline SalesforceChatterFeedConfiguration& AddIncludeFilterTypes(SalesforceChatterFeedIncludeFilterType&& value) { m_includeFilterTypesHasBeenSet = true; m_includeFilterTypes.push_back(std::move(value)); return *this; } private: Aws::String m_documentDataFieldName; bool m_documentDataFieldNameHasBeenSet = false; Aws::String m_documentTitleFieldName; bool m_documentTitleFieldNameHasBeenSet = false; Aws::Vector m_fieldMappings; bool m_fieldMappingsHasBeenSet = false; Aws::Vector m_includeFilterTypes; bool m_includeFilterTypesHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws