Class CfnDataSource.SalesforceStandardObjectConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kendra.CfnDataSource.SalesforceStandardObjectConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.SalesforceStandardObjectConfigurationProperty>
- Enclosing interface:
CfnDataSource.SalesforceStandardObjectConfigurationProperty
@Stability(Stable)
public static final class CfnDataSource.SalesforceStandardObjectConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.SalesforceStandardObjectConfigurationProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.documentDataFieldName
(String documentDataFieldName) documentTitleFieldName
(String documentTitleFieldName) fieldMappings
(List<? extends Object> fieldMappings) fieldMappings
(IResolvable fieldMappings) Sets the value ofCfnDataSource.SalesforceStandardObjectConfigurationProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
documentDataFieldName
@Stability(Stable) public CfnDataSource.SalesforceStandardObjectConfigurationProperty.Builder documentDataFieldName(String documentDataFieldName) Sets the value ofCfnDataSource.SalesforceStandardObjectConfigurationProperty.getDocumentDataFieldName()
- Parameters:
documentDataFieldName
- The name of the field in the standard object table that contains the document contents. This parameter is required.- Returns:
this
-
name
@Stability(Stable) public CfnDataSource.SalesforceStandardObjectConfigurationProperty.Builder name(String name) Sets the value ofCfnDataSource.SalesforceStandardObjectConfigurationProperty.getName()
- Parameters:
name
- The name of the standard object. This parameter is required.- Returns:
this
-
documentTitleFieldName
@Stability(Stable) public CfnDataSource.SalesforceStandardObjectConfigurationProperty.Builder documentTitleFieldName(String documentTitleFieldName) Sets the value ofCfnDataSource.SalesforceStandardObjectConfigurationProperty.getDocumentTitleFieldName()
- Parameters:
documentTitleFieldName
- The name of the field in the standard object table that contains the document title.- Returns:
this
-
fieldMappings
@Stability(Stable) public CfnDataSource.SalesforceStandardObjectConfigurationProperty.Builder fieldMappings(IResolvable fieldMappings) - Parameters:
fieldMappings
- Maps attributes or field names of the standard object 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:
this
-
fieldMappings
@Stability(Stable) public CfnDataSource.SalesforceStandardObjectConfigurationProperty.Builder fieldMappings(List<? extends Object> fieldMappings) - Parameters:
fieldMappings
- Maps attributes or field names of the standard object 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:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataSource.SalesforceStandardObjectConfigurationProperty>
- Returns:
- a new instance of
CfnDataSource.SalesforceStandardObjectConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-