Interface SalesforceStandardKnowledgeArticleTypeConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SalesforceStandardKnowledgeArticleTypeConfiguration.Builder,
,SalesforceStandardKnowledgeArticleTypeConfiguration> SdkBuilder<SalesforceStandardKnowledgeArticleTypeConfiguration.Builder,
,SalesforceStandardKnowledgeArticleTypeConfiguration> SdkPojo
- Enclosing class:
SalesforceStandardKnowledgeArticleTypeConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondocumentDataFieldName
(String documentDataFieldName) The name of the field that contains the document data to index.documentTitleFieldName
(String documentTitleFieldName) The name of the field that contains the document title.fieldMappings
(Collection<DataSourceToIndexFieldMapping> fieldMappings) Maps attributes or field names of the knowledge article to Amazon Kendra index field names.fieldMappings
(Consumer<DataSourceToIndexFieldMapping.Builder>... fieldMappings) Maps attributes or field names of the knowledge article to Amazon Kendra index field names.fieldMappings
(DataSourceToIndexFieldMapping... fieldMappings) Maps attributes or field names of the knowledge article to Amazon Kendra index field names.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
documentDataFieldName
SalesforceStandardKnowledgeArticleTypeConfiguration.Builder documentDataFieldName(String documentDataFieldName) The name of the field that contains the document data to index.
- Parameters:
documentDataFieldName
- The name of the field that contains the document data to index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentTitleFieldName
SalesforceStandardKnowledgeArticleTypeConfiguration.Builder documentTitleFieldName(String documentTitleFieldName) The name of the field that contains the document title.
- Parameters:
documentTitleFieldName
- The name of the field that contains the document title.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fieldMappings
SalesforceStandardKnowledgeArticleTypeConfiguration.Builder fieldMappings(Collection<DataSourceToIndexFieldMapping> fieldMappings) Maps attributes or field names of the knowledge article 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.- Parameters:
fieldMappings
- Maps attributes or field names of the knowledge article to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fieldMappings
SalesforceStandardKnowledgeArticleTypeConfiguration.Builder fieldMappings(DataSourceToIndexFieldMapping... fieldMappings) Maps attributes or field names of the knowledge article 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.- Parameters:
fieldMappings
- Maps attributes or field names of the knowledge article to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fieldMappings
SalesforceStandardKnowledgeArticleTypeConfiguration.Builder fieldMappings(Consumer<DataSourceToIndexFieldMapping.Builder>... fieldMappings) Maps attributes or field names of the knowledge article to Amazon Kendra index field names. To create custom fields, use the
This is a convenience method that creates an instance of theUpdateIndex
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.DataSourceToIndexFieldMapping.Builder
avoiding the need to create one manually viaDataSourceToIndexFieldMapping.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofieldMappings(List<DataSourceToIndexFieldMapping>)
.- Parameters:
fieldMappings
- a consumer that will call methods onDataSourceToIndexFieldMapping.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-