Class CfnDataSourcePropsMixin.SalesforceConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.kendra.CfnDataSourcePropsMixin.SalesforceConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSourcePropsMixin.SalesforceConfigurationProperty>
- Enclosing interface:
CfnDataSourcePropsMixin.SalesforceConfigurationProperty
@Stability(Stable)
public static final class CfnDataSourcePropsMixin.SalesforceConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSourcePropsMixin.SalesforceConfigurationProperty>
A builder for
CfnDataSourcePropsMixin.SalesforceConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.chatterFeedConfiguration(CfnDataSourcePropsMixin.SalesforceChatterFeedConfigurationProperty chatterFeedConfiguration) chatterFeedConfiguration(IResolvable chatterFeedConfiguration) crawlAttachments(Boolean crawlAttachments) crawlAttachments(IResolvable crawlAttachments) excludeAttachmentFilePatterns(List<String> excludeAttachmentFilePatterns) includeAttachmentFilePatterns(List<String> includeAttachmentFilePatterns) knowledgeArticleConfiguration(CfnDataSourcePropsMixin.SalesforceKnowledgeArticleConfigurationProperty knowledgeArticleConfiguration) knowledgeArticleConfiguration(IResolvable knowledgeArticleConfiguration) Sets the value ofCfnDataSourcePropsMixin.SalesforceConfigurationProperty.getSecretArn()Sets the value ofCfnDataSourcePropsMixin.SalesforceConfigurationProperty.getServerUrl()standardObjectAttachmentConfiguration(CfnDataSourcePropsMixin.SalesforceStandardObjectAttachmentConfigurationProperty standardObjectAttachmentConfiguration) standardObjectAttachmentConfiguration(IResolvable standardObjectAttachmentConfiguration) standardObjectConfigurations(List<? extends Object> standardObjectConfigurations) standardObjectConfigurations(IResolvable standardObjectConfigurations)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
chatterFeedConfiguration
@Stability(Stable) public CfnDataSourcePropsMixin.SalesforceConfigurationProperty.Builder chatterFeedConfiguration(IResolvable chatterFeedConfiguration) Sets the value ofCfnDataSourcePropsMixin.SalesforceConfigurationProperty.getChatterFeedConfiguration()- Parameters:
chatterFeedConfiguration- Configuration information for Salesforce chatter feeds.- Returns:
this
-
chatterFeedConfiguration
@Stability(Stable) public CfnDataSourcePropsMixin.SalesforceConfigurationProperty.Builder chatterFeedConfiguration(CfnDataSourcePropsMixin.SalesforceChatterFeedConfigurationProperty chatterFeedConfiguration) Sets the value ofCfnDataSourcePropsMixin.SalesforceConfigurationProperty.getChatterFeedConfiguration()- Parameters:
chatterFeedConfiguration- Configuration information for Salesforce chatter feeds.- Returns:
this
-
crawlAttachments
@Stability(Stable) public CfnDataSourcePropsMixin.SalesforceConfigurationProperty.Builder crawlAttachments(Boolean crawlAttachments) - Parameters:
crawlAttachments- Indicates whether Amazon Kendra should index attachments to Salesforce objects.- Returns:
this
-
crawlAttachments
@Stability(Stable) public CfnDataSourcePropsMixin.SalesforceConfigurationProperty.Builder crawlAttachments(IResolvable crawlAttachments) - Parameters:
crawlAttachments- Indicates whether Amazon Kendra should index attachments to Salesforce objects.- Returns:
this
-
excludeAttachmentFilePatterns
@Stability(Stable) public CfnDataSourcePropsMixin.SalesforceConfigurationProperty.Builder excludeAttachmentFilePatterns(List<String> excludeAttachmentFilePatterns) Sets the value ofCfnDataSourcePropsMixin.SalesforceConfigurationProperty.getExcludeAttachmentFilePatterns()- Parameters:
excludeAttachmentFilePatterns- 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.
- Returns:
this
-
includeAttachmentFilePatterns
@Stability(Stable) public CfnDataSourcePropsMixin.SalesforceConfigurationProperty.Builder includeAttachmentFilePatterns(List<String> includeAttachmentFilePatterns) Sets the value ofCfnDataSourcePropsMixin.SalesforceConfigurationProperty.getIncludeAttachmentFilePatterns()- Parameters:
includeAttachmentFilePatterns- 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.
- Returns:
this
-
knowledgeArticleConfiguration
@Stability(Stable) public CfnDataSourcePropsMixin.SalesforceConfigurationProperty.Builder knowledgeArticleConfiguration(IResolvable knowledgeArticleConfiguration) Sets the value ofCfnDataSourcePropsMixin.SalesforceConfigurationProperty.getKnowledgeArticleConfiguration()- Parameters:
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.- Returns:
this
-
knowledgeArticleConfiguration
@Stability(Stable) public CfnDataSourcePropsMixin.SalesforceConfigurationProperty.Builder knowledgeArticleConfiguration(CfnDataSourcePropsMixin.SalesforceKnowledgeArticleConfigurationProperty knowledgeArticleConfiguration) Sets the value ofCfnDataSourcePropsMixin.SalesforceConfigurationProperty.getKnowledgeArticleConfiguration()- Parameters:
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.- Returns:
this
-
secretArn
@Stability(Stable) public CfnDataSourcePropsMixin.SalesforceConfigurationProperty.Builder secretArn(String secretArn) Sets the value ofCfnDataSourcePropsMixin.SalesforceConfigurationProperty.getSecretArn()- Parameters:
secretArn- The Amazon Resource Name (ARN) of an AWS Secrets Manager secret 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.
- Returns:
this
-
serverUrl
@Stability(Stable) public CfnDataSourcePropsMixin.SalesforceConfigurationProperty.Builder serverUrl(String serverUrl) Sets the value ofCfnDataSourcePropsMixin.SalesforceConfigurationProperty.getServerUrl()- Parameters:
serverUrl- The instance URL for the Salesforce site that you want to index.- Returns:
this
-
standardObjectAttachmentConfiguration
@Stability(Stable) public CfnDataSourcePropsMixin.SalesforceConfigurationProperty.Builder standardObjectAttachmentConfiguration(IResolvable standardObjectAttachmentConfiguration) Sets the value ofCfnDataSourcePropsMixin.SalesforceConfigurationProperty.getStandardObjectAttachmentConfiguration()- Parameters:
standardObjectAttachmentConfiguration- Configuration information for processing attachments to Salesforce standard objects.- Returns:
this
-
standardObjectAttachmentConfiguration
@Stability(Stable) public CfnDataSourcePropsMixin.SalesforceConfigurationProperty.Builder standardObjectAttachmentConfiguration(CfnDataSourcePropsMixin.SalesforceStandardObjectAttachmentConfigurationProperty standardObjectAttachmentConfiguration) Sets the value ofCfnDataSourcePropsMixin.SalesforceConfigurationProperty.getStandardObjectAttachmentConfiguration()- Parameters:
standardObjectAttachmentConfiguration- Configuration information for processing attachments to Salesforce standard objects.- Returns:
this
-
standardObjectConfigurations
@Stability(Stable) public CfnDataSourcePropsMixin.SalesforceConfigurationProperty.Builder standardObjectConfigurations(IResolvable standardObjectConfigurations) Sets the value ofCfnDataSourcePropsMixin.SalesforceConfigurationProperty.getStandardObjectConfigurations()- Parameters:
standardObjectConfigurations- Configuration of the Salesforce standard objects that Amazon Kendra indexes.- Returns:
this
-
standardObjectConfigurations
@Stability(Stable) public CfnDataSourcePropsMixin.SalesforceConfigurationProperty.Builder standardObjectConfigurations(List<? extends Object> standardObjectConfigurations) Sets the value ofCfnDataSourcePropsMixin.SalesforceConfigurationProperty.getStandardObjectConfigurations()- Parameters:
standardObjectConfigurations- Configuration of the Salesforce standard objects that Amazon Kendra indexes.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataSourcePropsMixin.SalesforceConfigurationProperty>- Returns:
- a new instance of
CfnDataSourcePropsMixin.SalesforceConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-