/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides the configuration information to connect to Salesforce as your data
* source.See Also:
AWS
* API Reference
The instance URL for the Salesforce site that you want to index.
*/ inline const Aws::String& GetServerUrl() const{ return m_serverUrl; } /** *The instance URL for the Salesforce site that you want to index.
*/ inline bool ServerUrlHasBeenSet() const { return m_serverUrlHasBeenSet; } /** *The instance URL for the Salesforce site that you want to index.
*/ inline void SetServerUrl(const Aws::String& value) { m_serverUrlHasBeenSet = true; m_serverUrl = value; } /** *The instance URL for the Salesforce site that you want to index.
*/ inline void SetServerUrl(Aws::String&& value) { m_serverUrlHasBeenSet = true; m_serverUrl = std::move(value); } /** *The instance URL for the Salesforce site that you want to index.
*/ inline void SetServerUrl(const char* value) { m_serverUrlHasBeenSet = true; m_serverUrl.assign(value); } /** *The instance URL for the Salesforce site that you want to index.
*/ inline SalesforceConfiguration& WithServerUrl(const Aws::String& value) { SetServerUrl(value); return *this;} /** *The instance URL for the Salesforce site that you want to index.
*/ inline SalesforceConfiguration& WithServerUrl(Aws::String&& value) { SetServerUrl(std::move(value)); return *this;} /** *The instance URL for the Salesforce site that you want to index.
*/ inline SalesforceConfiguration& WithServerUrl(const char* value) { SetServerUrl(value); return *this;} /** *The Amazon Resource Name (ARN) of an Secrets Managersecret that contains the * key/value pairs required to connect to your Salesforce instance. The secret must * contain a JSON structure with the following keys:
authenticationUrl - The OAUTH endpoint that Amazon Kendra connects to get an * OAUTH token.
consumerKey - The application public key * generated when you created your Salesforce application.
consumerSecret - The application private key generated when you created your * Salesforce application.
password - The password associated * with the user logging in to the Salesforce instance.
securityToken - The token associated with the user logging in to the * Salesforce instance.
username - The user name of the user * logging in to the Salesforce instance.
The Amazon Resource Name (ARN) of an Secrets Managersecret that contains the * key/value pairs required to connect to your Salesforce instance. The secret must * contain a JSON structure with the following keys:
authenticationUrl - The OAUTH endpoint that Amazon Kendra connects to get an * OAUTH token.
consumerKey - The application public key * generated when you created your Salesforce application.
consumerSecret - The application private key generated when you created your * Salesforce application.
password - The password associated * with the user logging in to the Salesforce instance.
securityToken - The token associated with the user logging in to the * Salesforce instance.
username - The user name of the user * logging in to the Salesforce instance.
The Amazon Resource Name (ARN) of an Secrets Managersecret that contains the * key/value pairs required to connect to your Salesforce instance. The secret must * contain a JSON structure with the following keys:
authenticationUrl - The OAUTH endpoint that Amazon Kendra connects to get an * OAUTH token.
consumerKey - The application public key * generated when you created your Salesforce application.
consumerSecret - The application private key generated when you created your * Salesforce application.
password - The password associated * with the user logging in to the Salesforce instance.
securityToken - The token associated with the user logging in to the * Salesforce instance.
username - The user name of the user * logging in to the Salesforce instance.
The Amazon Resource Name (ARN) of an Secrets Managersecret that contains the * key/value pairs required to connect to your Salesforce instance. The secret must * contain a JSON structure with the following keys:
authenticationUrl - The OAUTH endpoint that Amazon Kendra connects to get an * OAUTH token.
consumerKey - The application public key * generated when you created your Salesforce application.
consumerSecret - The application private key generated when you created your * Salesforce application.
password - The password associated * with the user logging in to the Salesforce instance.
securityToken - The token associated with the user logging in to the * Salesforce instance.
username - The user name of the user * logging in to the Salesforce instance.
The Amazon Resource Name (ARN) of an Secrets Managersecret that contains the * key/value pairs required to connect to your Salesforce instance. The secret must * contain a JSON structure with the following keys:
authenticationUrl - The OAUTH endpoint that Amazon Kendra connects to get an * OAUTH token.
consumerKey - The application public key * generated when you created your Salesforce application.
consumerSecret - The application private key generated when you created your * Salesforce application.
password - The password associated * with the user logging in to the Salesforce instance.
securityToken - The token associated with the user logging in to the * Salesforce instance.
username - The user name of the user * logging in to the Salesforce instance.
The Amazon Resource Name (ARN) of an Secrets Managersecret that contains the * key/value pairs required to connect to your Salesforce instance. The secret must * contain a JSON structure with the following keys:
authenticationUrl - The OAUTH endpoint that Amazon Kendra connects to get an * OAUTH token.
consumerKey - The application public key * generated when you created your Salesforce application.
consumerSecret - The application private key generated when you created your * Salesforce application.
password - The password associated * with the user logging in to the Salesforce instance.
securityToken - The token associated with the user logging in to the * Salesforce instance.
username - The user name of the user * logging in to the Salesforce instance.
The Amazon Resource Name (ARN) of an Secrets Managersecret that contains the * key/value pairs required to connect to your Salesforce instance. The secret must * contain a JSON structure with the following keys:
authenticationUrl - The OAUTH endpoint that Amazon Kendra connects to get an * OAUTH token.
consumerKey - The application public key * generated when you created your Salesforce application.
consumerSecret - The application private key generated when you created your * Salesforce application.
password - The password associated * with the user logging in to the Salesforce instance.
securityToken - The token associated with the user logging in to the * Salesforce instance.
username - The user name of the user * logging in to the Salesforce instance.
The Amazon Resource Name (ARN) of an Secrets Managersecret that contains the * key/value pairs required to connect to your Salesforce instance. The secret must * contain a JSON structure with the following keys:
authenticationUrl - The OAUTH endpoint that Amazon Kendra connects to get an * OAUTH token.
consumerKey - The application public key * generated when you created your Salesforce application.
consumerSecret - The application private key generated when you created your * Salesforce application.
password - The password associated * with the user logging in to the Salesforce instance.
securityToken - The token associated with the user logging in to the * Salesforce instance.
username - The user name of the user * logging in to the Salesforce instance.
Configuration of the Salesforce standard objects that Amazon Kendra * indexes.
*/ inline const Aws::VectorConfiguration of the Salesforce standard objects that Amazon Kendra * indexes.
*/ inline bool StandardObjectConfigurationsHasBeenSet() const { return m_standardObjectConfigurationsHasBeenSet; } /** *Configuration of the Salesforce standard objects that Amazon Kendra * indexes.
*/ inline void SetStandardObjectConfigurations(const Aws::VectorConfiguration of the Salesforce standard objects that Amazon Kendra * indexes.
*/ inline void SetStandardObjectConfigurations(Aws::VectorConfiguration of the Salesforce standard objects that Amazon Kendra * indexes.
*/ inline SalesforceConfiguration& WithStandardObjectConfigurations(const Aws::VectorConfiguration of the Salesforce standard objects that Amazon Kendra * indexes.
*/ inline SalesforceConfiguration& WithStandardObjectConfigurations(Aws::VectorConfiguration of the Salesforce standard objects that Amazon Kendra * indexes.
*/ inline SalesforceConfiguration& AddStandardObjectConfigurations(const SalesforceStandardObjectConfiguration& value) { m_standardObjectConfigurationsHasBeenSet = true; m_standardObjectConfigurations.push_back(value); return *this; } /** *Configuration of the Salesforce standard objects that Amazon Kendra * indexes.
*/ inline SalesforceConfiguration& AddStandardObjectConfigurations(SalesforceStandardObjectConfiguration&& value) { m_standardObjectConfigurationsHasBeenSet = true; m_standardObjectConfigurations.push_back(std::move(value)); return *this; } /** *Configuration information for the knowledge article types that Amazon Kendra * indexes. Amazon Kendra indexes standard knowledge articles and the standard * fields of knowledge articles, or the custom fields of custom knowledge articles, * but not both.
*/ inline const SalesforceKnowledgeArticleConfiguration& GetKnowledgeArticleConfiguration() const{ return m_knowledgeArticleConfiguration; } /** *Configuration information for the knowledge article types that Amazon Kendra * indexes. Amazon Kendra indexes standard knowledge articles and the standard * fields of knowledge articles, or the custom fields of custom knowledge articles, * but not both.
*/ inline bool KnowledgeArticleConfigurationHasBeenSet() const { return m_knowledgeArticleConfigurationHasBeenSet; } /** *Configuration information for the knowledge article types that Amazon Kendra * indexes. Amazon Kendra indexes standard knowledge articles and the standard * fields of knowledge articles, or the custom fields of custom knowledge articles, * but not both.
*/ inline void SetKnowledgeArticleConfiguration(const SalesforceKnowledgeArticleConfiguration& value) { m_knowledgeArticleConfigurationHasBeenSet = true; m_knowledgeArticleConfiguration = value; } /** *Configuration information for the knowledge article types that Amazon Kendra * indexes. Amazon Kendra indexes standard knowledge articles and the standard * fields of knowledge articles, or the custom fields of custom knowledge articles, * but not both.
*/ inline void SetKnowledgeArticleConfiguration(SalesforceKnowledgeArticleConfiguration&& value) { m_knowledgeArticleConfigurationHasBeenSet = true; m_knowledgeArticleConfiguration = std::move(value); } /** *Configuration information for the knowledge article types that Amazon Kendra * indexes. Amazon Kendra indexes standard knowledge articles and the standard * fields of knowledge articles, or the custom fields of custom knowledge articles, * but not both.
*/ inline SalesforceConfiguration& WithKnowledgeArticleConfiguration(const SalesforceKnowledgeArticleConfiguration& value) { SetKnowledgeArticleConfiguration(value); return *this;} /** *Configuration information for the knowledge article types that Amazon Kendra * indexes. Amazon Kendra indexes standard knowledge articles and the standard * fields of knowledge articles, or the custom fields of custom knowledge articles, * but not both.
*/ inline SalesforceConfiguration& WithKnowledgeArticleConfiguration(SalesforceKnowledgeArticleConfiguration&& value) { SetKnowledgeArticleConfiguration(std::move(value)); return *this;} /** *Configuration information for Salesforce chatter feeds.
*/ inline const SalesforceChatterFeedConfiguration& GetChatterFeedConfiguration() const{ return m_chatterFeedConfiguration; } /** *Configuration information for Salesforce chatter feeds.
*/ inline bool ChatterFeedConfigurationHasBeenSet() const { return m_chatterFeedConfigurationHasBeenSet; } /** *Configuration information for Salesforce chatter feeds.
*/ inline void SetChatterFeedConfiguration(const SalesforceChatterFeedConfiguration& value) { m_chatterFeedConfigurationHasBeenSet = true; m_chatterFeedConfiguration = value; } /** *Configuration information for Salesforce chatter feeds.
*/ inline void SetChatterFeedConfiguration(SalesforceChatterFeedConfiguration&& value) { m_chatterFeedConfigurationHasBeenSet = true; m_chatterFeedConfiguration = std::move(value); } /** *Configuration information for Salesforce chatter feeds.
*/ inline SalesforceConfiguration& WithChatterFeedConfiguration(const SalesforceChatterFeedConfiguration& value) { SetChatterFeedConfiguration(value); return *this;} /** *Configuration information for Salesforce chatter feeds.
*/ inline SalesforceConfiguration& WithChatterFeedConfiguration(SalesforceChatterFeedConfiguration&& value) { SetChatterFeedConfiguration(std::move(value)); return *this;} /** *Indicates whether Amazon Kendra should index attachments to Salesforce * objects.
*/ inline bool GetCrawlAttachments() const{ return m_crawlAttachments; } /** *Indicates whether Amazon Kendra should index attachments to Salesforce * objects.
*/ inline bool CrawlAttachmentsHasBeenSet() const { return m_crawlAttachmentsHasBeenSet; } /** *Indicates whether Amazon Kendra should index attachments to Salesforce * objects.
*/ inline void SetCrawlAttachments(bool value) { m_crawlAttachmentsHasBeenSet = true; m_crawlAttachments = value; } /** *Indicates whether Amazon Kendra should index attachments to Salesforce * objects.
*/ inline SalesforceConfiguration& WithCrawlAttachments(bool value) { SetCrawlAttachments(value); return *this;} /** *Configuration information for processing attachments to Salesforce standard * objects.
*/ inline const SalesforceStandardObjectAttachmentConfiguration& GetStandardObjectAttachmentConfiguration() const{ return m_standardObjectAttachmentConfiguration; } /** *Configuration information for processing attachments to Salesforce standard * objects.
*/ inline bool StandardObjectAttachmentConfigurationHasBeenSet() const { return m_standardObjectAttachmentConfigurationHasBeenSet; } /** *Configuration information for processing attachments to Salesforce standard * objects.
*/ inline void SetStandardObjectAttachmentConfiguration(const SalesforceStandardObjectAttachmentConfiguration& value) { m_standardObjectAttachmentConfigurationHasBeenSet = true; m_standardObjectAttachmentConfiguration = value; } /** *Configuration information for processing attachments to Salesforce standard * objects.
*/ inline void SetStandardObjectAttachmentConfiguration(SalesforceStandardObjectAttachmentConfiguration&& value) { m_standardObjectAttachmentConfigurationHasBeenSet = true; m_standardObjectAttachmentConfiguration = std::move(value); } /** *Configuration information for processing attachments to Salesforce standard * objects.
*/ inline SalesforceConfiguration& WithStandardObjectAttachmentConfiguration(const SalesforceStandardObjectAttachmentConfiguration& value) { SetStandardObjectAttachmentConfiguration(value); return *this;} /** *Configuration information for processing attachments to Salesforce standard * objects.
*/ inline SalesforceConfiguration& WithStandardObjectAttachmentConfiguration(SalesforceStandardObjectAttachmentConfiguration&& value) { SetStandardObjectAttachmentConfiguration(std::move(value)); return *this;} /** *A list of regular expression patterns to include certain documents in your * Salesforce. Documents that match the patterns are included in the index. * Documents that don't match the patterns are excluded from the index. If a * document matches both an inclusion and exclusion pattern, the exclusion pattern * takes precedence and the document isn't included in the index.
The * pattern is applied to the name of the attached file.
*/ inline const Aws::VectorA list of regular expression patterns to include certain documents in your * Salesforce. Documents that match the patterns are included in the index. * Documents that don't match the patterns are excluded from the index. If a * document matches both an inclusion and exclusion pattern, the exclusion pattern * takes precedence and the document isn't included in the index.
The * pattern is applied to the name of the attached file.
*/ inline bool IncludeAttachmentFilePatternsHasBeenSet() const { return m_includeAttachmentFilePatternsHasBeenSet; } /** *A list of regular expression patterns to include certain documents in your * Salesforce. Documents that match the patterns are included in the index. * Documents that don't match the patterns are excluded from the index. If a * document matches both an inclusion and exclusion pattern, the exclusion pattern * takes precedence and the document isn't included in the index.
The * pattern is applied to the name of the attached file.
*/ inline void SetIncludeAttachmentFilePatterns(const Aws::VectorA list of regular expression patterns to include certain documents in your * Salesforce. Documents that match the patterns are included in the index. * Documents that don't match the patterns are excluded from the index. If a * document matches both an inclusion and exclusion pattern, the exclusion pattern * takes precedence and the document isn't included in the index.
The * pattern is applied to the name of the attached file.
*/ inline void SetIncludeAttachmentFilePatterns(Aws::VectorA list of regular expression patterns to include certain documents in your * Salesforce. Documents that match the patterns are included in the index. * Documents that don't match the patterns are excluded from the index. If a * document matches both an inclusion and exclusion pattern, the exclusion pattern * takes precedence and the document isn't included in the index.
The * pattern is applied to the name of the attached file.
*/ inline SalesforceConfiguration& WithIncludeAttachmentFilePatterns(const Aws::VectorA list of regular expression patterns to include certain documents in your * Salesforce. Documents that match the patterns are included in the index. * Documents that don't match the patterns are excluded from the index. If a * document matches both an inclusion and exclusion pattern, the exclusion pattern * takes precedence and the document isn't included in the index.
The * pattern is applied to the name of the attached file.
*/ inline SalesforceConfiguration& WithIncludeAttachmentFilePatterns(Aws::VectorA list of regular expression patterns to include certain documents in your * Salesforce. Documents that match the patterns are included in the index. * Documents that don't match the patterns are excluded from the index. If a * document matches both an inclusion and exclusion pattern, the exclusion pattern * takes precedence and the document isn't included in the index.
The * pattern is applied to the name of the attached file.
*/ inline SalesforceConfiguration& AddIncludeAttachmentFilePatterns(const Aws::String& value) { m_includeAttachmentFilePatternsHasBeenSet = true; m_includeAttachmentFilePatterns.push_back(value); return *this; } /** *A list of regular expression patterns to include certain documents in your * Salesforce. Documents that match the patterns are included in the index. * Documents that don't match the patterns are excluded from the index. If a * document matches both an inclusion and exclusion pattern, the exclusion pattern * takes precedence and the document isn't included in the index.
The * pattern is applied to the name of the attached file.
*/ inline SalesforceConfiguration& AddIncludeAttachmentFilePatterns(Aws::String&& value) { m_includeAttachmentFilePatternsHasBeenSet = true; m_includeAttachmentFilePatterns.push_back(std::move(value)); return *this; } /** *A list of regular expression patterns to include certain documents in your * Salesforce. Documents that match the patterns are included in the index. * Documents that don't match the patterns are excluded from the index. If a * document matches both an inclusion and exclusion pattern, the exclusion pattern * takes precedence and the document isn't included in the index.
The * pattern is applied to the name of the attached file.
*/ inline SalesforceConfiguration& AddIncludeAttachmentFilePatterns(const char* value) { m_includeAttachmentFilePatternsHasBeenSet = true; m_includeAttachmentFilePatterns.push_back(value); return *this; } /** *A list of regular expression patterns to exclude certain documents in your * Salesforce. Documents that match the patterns are excluded from the index. * Documents that don't match the patterns are included in the index. If a document * matches both an inclusion and exclusion pattern, the exclusion pattern takes * precedence and the document isn't included in the index.
The pattern is * applied to the name of the attached file.
*/ inline const Aws::VectorA list of regular expression patterns to exclude certain documents in your * Salesforce. Documents that match the patterns are excluded from the index. * Documents that don't match the patterns are included in the index. If a document * matches both an inclusion and exclusion pattern, the exclusion pattern takes * precedence and the document isn't included in the index.
The pattern is * applied to the name of the attached file.
*/ inline bool ExcludeAttachmentFilePatternsHasBeenSet() const { return m_excludeAttachmentFilePatternsHasBeenSet; } /** *A list of regular expression patterns to exclude certain documents in your * Salesforce. Documents that match the patterns are excluded from the index. * Documents that don't match the patterns are included in the index. If a document * matches both an inclusion and exclusion pattern, the exclusion pattern takes * precedence and the document isn't included in the index.
The pattern is * applied to the name of the attached file.
*/ inline void SetExcludeAttachmentFilePatterns(const Aws::VectorA list of regular expression patterns to exclude certain documents in your * Salesforce. Documents that match the patterns are excluded from the index. * Documents that don't match the patterns are included in the index. If a document * matches both an inclusion and exclusion pattern, the exclusion pattern takes * precedence and the document isn't included in the index.
The pattern is * applied to the name of the attached file.
*/ inline void SetExcludeAttachmentFilePatterns(Aws::VectorA list of regular expression patterns to exclude certain documents in your * Salesforce. Documents that match the patterns are excluded from the index. * Documents that don't match the patterns are included in the index. If a document * matches both an inclusion and exclusion pattern, the exclusion pattern takes * precedence and the document isn't included in the index.
The pattern is * applied to the name of the attached file.
*/ inline SalesforceConfiguration& WithExcludeAttachmentFilePatterns(const Aws::VectorA list of regular expression patterns to exclude certain documents in your * Salesforce. Documents that match the patterns are excluded from the index. * Documents that don't match the patterns are included in the index. If a document * matches both an inclusion and exclusion pattern, the exclusion pattern takes * precedence and the document isn't included in the index.
The pattern is * applied to the name of the attached file.
*/ inline SalesforceConfiguration& WithExcludeAttachmentFilePatterns(Aws::VectorA list of regular expression patterns to exclude certain documents in your * Salesforce. Documents that match the patterns are excluded from the index. * Documents that don't match the patterns are included in the index. If a document * matches both an inclusion and exclusion pattern, the exclusion pattern takes * precedence and the document isn't included in the index.
The pattern is * applied to the name of the attached file.
*/ inline SalesforceConfiguration& AddExcludeAttachmentFilePatterns(const Aws::String& value) { m_excludeAttachmentFilePatternsHasBeenSet = true; m_excludeAttachmentFilePatterns.push_back(value); return *this; } /** *A list of regular expression patterns to exclude certain documents in your * Salesforce. Documents that match the patterns are excluded from the index. * Documents that don't match the patterns are included in the index. If a document * matches both an inclusion and exclusion pattern, the exclusion pattern takes * precedence and the document isn't included in the index.
The pattern is * applied to the name of the attached file.
*/ inline SalesforceConfiguration& AddExcludeAttachmentFilePatterns(Aws::String&& value) { m_excludeAttachmentFilePatternsHasBeenSet = true; m_excludeAttachmentFilePatterns.push_back(std::move(value)); return *this; } /** *A list of regular expression patterns to exclude certain documents in your * Salesforce. Documents that match the patterns are excluded from the index. * Documents that don't match the patterns are included in the index. If a document * matches both an inclusion and exclusion pattern, the exclusion pattern takes * precedence and the document isn't included in the index.
The pattern is * applied to the name of the attached file.
*/ inline SalesforceConfiguration& AddExcludeAttachmentFilePatterns(const char* value) { m_excludeAttachmentFilePatternsHasBeenSet = true; m_excludeAttachmentFilePatterns.push_back(value); return *this; } private: Aws::String m_serverUrl; bool m_serverUrlHasBeenSet = false; Aws::String m_secretArn; bool m_secretArnHasBeenSet = false; Aws::Vector