Class CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kendra.CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty>
- Enclosing interface:
CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty
@Stability(Stable)
public static final class CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.crawlAttachments
(Boolean crawlAttachments) crawlAttachments
(IResolvable crawlAttachments) documentDataFieldName
(String documentDataFieldName) documentTitleFieldName
(String documentTitleFieldName) excludeAttachmentFilePatterns
(List<String> excludeAttachmentFilePatterns) fieldMappings
(List<? extends Object> fieldMappings) fieldMappings
(IResolvable fieldMappings) filterQuery
(String filterQuery) includeAttachmentFilePatterns
(List<String> includeAttachmentFilePatterns)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
documentDataFieldName
@Stability(Stable) public CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder documentDataFieldName(String documentDataFieldName) Sets the value ofCfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.getDocumentDataFieldName()
- Parameters:
documentDataFieldName
- The name of the ServiceNow field that is mapped to the index document contents field in the Amazon Kendra index. This parameter is required.- Returns:
this
-
crawlAttachments
@Stability(Stable) public CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder crawlAttachments(Boolean crawlAttachments) Sets the value ofCfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.getCrawlAttachments()
- Parameters:
crawlAttachments
-TRUE
to index attachments to knowledge articles.- Returns:
this
-
crawlAttachments
@Stability(Stable) public CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder crawlAttachments(IResolvable crawlAttachments) Sets the value ofCfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.getCrawlAttachments()
- Parameters:
crawlAttachments
-TRUE
to index attachments to knowledge articles.- Returns:
this
-
documentTitleFieldName
@Stability(Stable) public CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder documentTitleFieldName(String documentTitleFieldName) Sets the value ofCfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.getDocumentTitleFieldName()
- Parameters:
documentTitleFieldName
- The name of the ServiceNow field that is mapped to the index document title field.- Returns:
this
-
excludeAttachmentFilePatterns
@Stability(Stable) public CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder excludeAttachmentFilePatterns(List<String> excludeAttachmentFilePatterns) Sets the value ofCfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.getExcludeAttachmentFilePatterns()
- Parameters:
excludeAttachmentFilePatterns
- A list of regular expression patterns applied to exclude certain knowledge article attachments. Attachments that match the patterns are excluded from the index. Items that don't match the patterns are included in the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.- Returns:
this
-
fieldMappings
@Stability(Stable) public CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder fieldMappings(IResolvable fieldMappings) - Parameters:
fieldMappings
- Maps attributes or field names of knoweldge articles to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to ServiceNow fields. For more information, see Mapping data source fields . The ServiceNow data source field names must exist in your ServiceNow custom metadata.- Returns:
this
-
fieldMappings
@Stability(Stable) public CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder fieldMappings(List<? extends Object> fieldMappings) - Parameters:
fieldMappings
- Maps attributes or field names of knoweldge articles to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to ServiceNow fields. For more information, see Mapping data source fields . The ServiceNow data source field names must exist in your ServiceNow custom metadata.- Returns:
this
-
filterQuery
@Stability(Stable) public CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder filterQuery(String filterQuery) - Parameters:
filterQuery
- A query that selects the knowledge articles to index. The query can return articles from multiple knowledge bases, and the knowledge bases can be public or private.The query string must be one generated by the ServiceNow console. For more information, see Specifying documents to index with a query .
- Returns:
this
-
includeAttachmentFilePatterns
@Stability(Stable) public CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder includeAttachmentFilePatterns(List<String> includeAttachmentFilePatterns) Sets the value ofCfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.getIncludeAttachmentFilePatterns()
- Parameters:
includeAttachmentFilePatterns
- A list of regular expression patterns applied to include knowledge article attachments. Attachments that match the patterns are included in the index. Items that don't match the patterns are excluded from the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty>
- Returns:
- a new instance of
CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-