/** * 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 { /** *

Provides the configuration information for indexing a single standard * object.

See Also:

AWS * API Reference

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

The name of the standard object.

*/ inline const SalesforceStandardObjectName& GetName() const{ return m_name; } /** *

The name of the standard object.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the standard object.

*/ inline void SetName(const SalesforceStandardObjectName& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the standard object.

*/ inline void SetName(SalesforceStandardObjectName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the standard object.

*/ inline SalesforceStandardObjectConfiguration& WithName(const SalesforceStandardObjectName& value) { SetName(value); return *this;} /** *

The name of the standard object.

*/ inline SalesforceStandardObjectConfiguration& WithName(SalesforceStandardObjectName&& value) { SetName(std::move(value)); return *this;} /** *

The name of the field in the standard object table that contains the document * contents.

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

The name of the field in the standard object table that contains the document * contents.

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

The name of the field in the standard object table that contains the document * contents.

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

The name of the field in the standard object table that contains the document * contents.

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

The name of the field in the standard object table that contains the document * contents.

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

The name of the field in the standard object table that contains the document * contents.

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

The name of the field in the standard object table that contains the document * contents.

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

The name of the field in the standard object table that contains the document * contents.

*/ inline SalesforceStandardObjectConfiguration& WithDocumentDataFieldName(const char* value) { SetDocumentDataFieldName(value); return *this;} /** *

The name of the field in the standard object table that contains the document * title.

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

The name of the field in the standard object table that contains the document * title.

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

The name of the field in the standard object table that contains the document * title.

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

The name of the field in the standard object table that contains the document * title.

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

The name of the field in the standard object table that contains the document * title.

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

The name of the field in the standard object table that contains the document * title.

*/ inline SalesforceStandardObjectConfiguration& WithDocumentTitleFieldName(const Aws::String& value) { SetDocumentTitleFieldName(value); return *this;} /** *

The name of the field in the standard object table that contains the document * title.

*/ inline SalesforceStandardObjectConfiguration& WithDocumentTitleFieldName(Aws::String&& value) { SetDocumentTitleFieldName(std::move(value)); return *this;} /** *

The name of the field in the standard object table that contains the document * title.

*/ inline SalesforceStandardObjectConfiguration& WithDocumentTitleFieldName(const char* value) { SetDocumentTitleFieldName(value); 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.

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

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.

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

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.

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

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.

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

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.

*/ inline SalesforceStandardObjectConfiguration& WithFieldMappings(const Aws::Vector& value) { SetFieldMappings(value); 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.

*/ inline SalesforceStandardObjectConfiguration& WithFieldMappings(Aws::Vector&& value) { SetFieldMappings(std::move(value)); 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.

*/ inline SalesforceStandardObjectConfiguration& AddFieldMappings(const DataSourceToIndexFieldMapping& value) { m_fieldMappingsHasBeenSet = true; m_fieldMappings.push_back(value); 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.

*/ inline SalesforceStandardObjectConfiguration& AddFieldMappings(DataSourceToIndexFieldMapping&& value) { m_fieldMappingsHasBeenSet = true; m_fieldMappings.push_back(std::move(value)); return *this; } private: SalesforceStandardObjectName m_name; bool m_nameHasBeenSet = false; Aws::String m_documentDataFieldName; bool m_documentDataFieldNameHasBeenSet = false; Aws::String m_documentTitleFieldName; bool m_documentTitleFieldNameHasBeenSet = false; Aws::Vector m_fieldMappings; bool m_fieldMappingsHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws