Class CfnDataSourcePropsMixin.WorkDocsConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.kendra.mixins.CfnDataSourcePropsMixin.WorkDocsConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSourcePropsMixin.WorkDocsConfigurationProperty>
- Enclosing interface:
CfnDataSourcePropsMixin.WorkDocsConfigurationProperty
@Stability(Stable)
public static final class CfnDataSourcePropsMixin.WorkDocsConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSourcePropsMixin.WorkDocsConfigurationProperty>
A builder for
CfnDataSourcePropsMixin.WorkDocsConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.crawlComments(Boolean crawlComments) Sets the value ofCfnDataSourcePropsMixin.WorkDocsConfigurationProperty.getCrawlComments()crawlComments(IResolvable crawlComments) Sets the value ofCfnDataSourcePropsMixin.WorkDocsConfigurationProperty.getCrawlComments()exclusionPatterns(List<String> exclusionPatterns) fieldMappings(List<? extends Object> fieldMappings) Sets the value ofCfnDataSourcePropsMixin.WorkDocsConfigurationProperty.getFieldMappings()fieldMappings(IResolvable fieldMappings) Sets the value ofCfnDataSourcePropsMixin.WorkDocsConfigurationProperty.getFieldMappings()inclusionPatterns(List<String> inclusionPatterns) organizationId(String organizationId) useChangeLog(Boolean useChangeLog) Sets the value ofCfnDataSourcePropsMixin.WorkDocsConfigurationProperty.getUseChangeLog()useChangeLog(IResolvable useChangeLog) Sets the value ofCfnDataSourcePropsMixin.WorkDocsConfigurationProperty.getUseChangeLog()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
crawlComments
@Stability(Stable) public CfnDataSourcePropsMixin.WorkDocsConfigurationProperty.Builder crawlComments(Boolean crawlComments) Sets the value ofCfnDataSourcePropsMixin.WorkDocsConfigurationProperty.getCrawlComments()- Parameters:
crawlComments-TRUEto include comments on documents in your index. Including comments in your index means each comment is a document that can be searched on.The default is set to
FALSE.- Returns:
this
-
crawlComments
@Stability(Stable) public CfnDataSourcePropsMixin.WorkDocsConfigurationProperty.Builder crawlComments(IResolvable crawlComments) Sets the value ofCfnDataSourcePropsMixin.WorkDocsConfigurationProperty.getCrawlComments()- Parameters:
crawlComments-TRUEto include comments on documents in your index. Including comments in your index means each comment is a document that can be searched on.The default is set to
FALSE.- Returns:
this
-
exclusionPatterns
@Stability(Stable) public CfnDataSourcePropsMixin.WorkDocsConfigurationProperty.Builder exclusionPatterns(List<String> exclusionPatterns) - Parameters:
exclusionPatterns- A list of regular expression patterns to exclude certain files in your WorkDocs site repository. Files that match the patterns are excluded from the index. Files that don’t match the patterns are included in the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.- Returns:
this
-
fieldMappings
@Stability(Stable) public CfnDataSourcePropsMixin.WorkDocsConfigurationProperty.Builder fieldMappings(IResolvable fieldMappings) Sets the value ofCfnDataSourcePropsMixin.WorkDocsConfigurationProperty.getFieldMappings()- Parameters:
fieldMappings- A list ofDataSourceToIndexFieldMappingobjects that map WorkDocs data source attributes or field names to Amazon Kendra index field names. To create custom fields, use theUpdateIndexAPI before you map to WorkDocs fields. For more information, see Mapping data source fields . The WorkDocs data source field names must exist in your WorkDocs custom metadata.- Returns:
this
-
fieldMappings
@Stability(Stable) public CfnDataSourcePropsMixin.WorkDocsConfigurationProperty.Builder fieldMappings(List<? extends Object> fieldMappings) Sets the value ofCfnDataSourcePropsMixin.WorkDocsConfigurationProperty.getFieldMappings()- Parameters:
fieldMappings- A list ofDataSourceToIndexFieldMappingobjects that map WorkDocs data source attributes or field names to Amazon Kendra index field names. To create custom fields, use theUpdateIndexAPI before you map to WorkDocs fields. For more information, see Mapping data source fields . The WorkDocs data source field names must exist in your WorkDocs custom metadata.- Returns:
this
-
inclusionPatterns
@Stability(Stable) public CfnDataSourcePropsMixin.WorkDocsConfigurationProperty.Builder inclusionPatterns(List<String> inclusionPatterns) - Parameters:
inclusionPatterns- A list of regular expression patterns to include certain files in your WorkDocs site repository. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.- Returns:
this
-
organizationId
@Stability(Stable) public CfnDataSourcePropsMixin.WorkDocsConfigurationProperty.Builder organizationId(String organizationId) - Parameters:
organizationId- The identifier of the directory corresponding to your WorkDocs site repository. You can find the organization ID in the Directory Service by going to Active Directory , then Directories . Your WorkDocs site directory has an ID, which is the organization ID. You can also set up a new WorkDocs directory in the Directory Service console and enable a WorkDocs site for the directory in the WorkDocs console.- Returns:
this
-
useChangeLog
@Stability(Stable) public CfnDataSourcePropsMixin.WorkDocsConfigurationProperty.Builder useChangeLog(Boolean useChangeLog) Sets the value ofCfnDataSourcePropsMixin.WorkDocsConfigurationProperty.getUseChangeLog()- Parameters:
useChangeLog-TRUEto use the WorkDocs change log to determine which documents require updating in the index. Depending on the change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents in WorkDocs.- Returns:
this
-
useChangeLog
@Stability(Stable) public CfnDataSourcePropsMixin.WorkDocsConfigurationProperty.Builder useChangeLog(IResolvable useChangeLog) Sets the value ofCfnDataSourcePropsMixin.WorkDocsConfigurationProperty.getUseChangeLog()- Parameters:
useChangeLog-TRUEto use the WorkDocs change log to determine which documents require updating in the index. Depending on the change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents in WorkDocs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataSourcePropsMixin.WorkDocsConfigurationProperty>- Returns:
- a new instance of
CfnDataSourcePropsMixin.WorkDocsConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-