Class CfnDataSourcePropsMixin.OneDriveConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.kendra.CfnDataSourcePropsMixin.OneDriveConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSourcePropsMixin.OneDriveConfigurationProperty>
- Enclosing interface:
CfnDataSourcePropsMixin.OneDriveConfigurationProperty
@Stability(Stable)
public static final class CfnDataSourcePropsMixin.OneDriveConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSourcePropsMixin.OneDriveConfigurationProperty>
A builder for
CfnDataSourcePropsMixin.OneDriveConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.disableLocalGroups(Boolean disableLocalGroups) disableLocalGroups(IResolvable disableLocalGroups) exclusionPatterns(List<String> exclusionPatterns) fieldMappings(List<? extends Object> fieldMappings) Sets the value ofCfnDataSourcePropsMixin.OneDriveConfigurationProperty.getFieldMappings()fieldMappings(IResolvable fieldMappings) Sets the value ofCfnDataSourcePropsMixin.OneDriveConfigurationProperty.getFieldMappings()inclusionPatterns(List<String> inclusionPatterns) oneDriveUsers(CfnDataSourcePropsMixin.OneDriveUsersProperty oneDriveUsers) Sets the value ofCfnDataSourcePropsMixin.OneDriveConfigurationProperty.getOneDriveUsers()oneDriveUsers(IResolvable oneDriveUsers) Sets the value ofCfnDataSourcePropsMixin.OneDriveConfigurationProperty.getOneDriveUsers()Sets the value ofCfnDataSourcePropsMixin.OneDriveConfigurationProperty.getSecretArn()tenantDomain(String tenantDomain) Sets the value ofCfnDataSourcePropsMixin.OneDriveConfigurationProperty.getTenantDomain()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
disableLocalGroups
@Stability(Stable) public CfnDataSourcePropsMixin.OneDriveConfigurationProperty.Builder disableLocalGroups(Boolean disableLocalGroups) - Parameters:
disableLocalGroups-TRUEto disable local groups information.- Returns:
this
-
disableLocalGroups
@Stability(Stable) public CfnDataSourcePropsMixin.OneDriveConfigurationProperty.Builder disableLocalGroups(IResolvable disableLocalGroups) - Parameters:
disableLocalGroups-TRUEto disable local groups information.- Returns:
this
-
exclusionPatterns
@Stability(Stable) public CfnDataSourcePropsMixin.OneDriveConfigurationProperty.Builder exclusionPatterns(List<String> exclusionPatterns) - Parameters:
exclusionPatterns- A list of regular expression patterns to exclude certain documents in your OneDrive. 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 file name.
- Returns:
this
-
fieldMappings
@Stability(Stable) public CfnDataSourcePropsMixin.OneDriveConfigurationProperty.Builder fieldMappings(IResolvable fieldMappings) Sets the value ofCfnDataSourcePropsMixin.OneDriveConfigurationProperty.getFieldMappings()- Parameters:
fieldMappings- A list ofDataSourceToIndexFieldMappingobjects that map OneDrive data source attributes or field names to Amazon Kendra index field names. To create custom fields, use theUpdateIndexAPI before you map to OneDrive fields. For more information, see Mapping data source fields . The OneDrive data source field names must exist in your OneDrive custom metadata.- Returns:
this
-
fieldMappings
@Stability(Stable) public CfnDataSourcePropsMixin.OneDriveConfigurationProperty.Builder fieldMappings(List<? extends Object> fieldMappings) Sets the value ofCfnDataSourcePropsMixin.OneDriveConfigurationProperty.getFieldMappings()- Parameters:
fieldMappings- A list ofDataSourceToIndexFieldMappingobjects that map OneDrive data source attributes or field names to Amazon Kendra index field names. To create custom fields, use theUpdateIndexAPI before you map to OneDrive fields. For more information, see Mapping data source fields . The OneDrive data source field names must exist in your OneDrive custom metadata.- Returns:
this
-
inclusionPatterns
@Stability(Stable) public CfnDataSourcePropsMixin.OneDriveConfigurationProperty.Builder inclusionPatterns(List<String> inclusionPatterns) - Parameters:
inclusionPatterns- A list of regular expression patterns to include certain documents in your OneDrive. 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 file name.
- Returns:
this
-
oneDriveUsers
@Stability(Stable) public CfnDataSourcePropsMixin.OneDriveConfigurationProperty.Builder oneDriveUsers(IResolvable oneDriveUsers) Sets the value ofCfnDataSourcePropsMixin.OneDriveConfigurationProperty.getOneDriveUsers()- Parameters:
oneDriveUsers- A list of user accounts whose documents should be indexed.- Returns:
this
-
oneDriveUsers
@Stability(Stable) public CfnDataSourcePropsMixin.OneDriveConfigurationProperty.Builder oneDriveUsers(CfnDataSourcePropsMixin.OneDriveUsersProperty oneDriveUsers) Sets the value ofCfnDataSourcePropsMixin.OneDriveConfigurationProperty.getOneDriveUsers()- Parameters:
oneDriveUsers- A list of user accounts whose documents should be indexed.- Returns:
this
-
secretArn
@Stability(Stable) public CfnDataSourcePropsMixin.OneDriveConfigurationProperty.Builder secretArn(String secretArn) Sets the value ofCfnDataSourcePropsMixin.OneDriveConfigurationProperty.getSecretArn()- Parameters:
secretArn- The Amazon Resource Name (ARN) of an AWS Secrets Manager secret that contains the user name and password to connect to OneDrive. The user name should be the application ID for the OneDrive application, and the password is the application key for the OneDrive application.- Returns:
this
-
tenantDomain
@Stability(Stable) public CfnDataSourcePropsMixin.OneDriveConfigurationProperty.Builder tenantDomain(String tenantDomain) Sets the value ofCfnDataSourcePropsMixin.OneDriveConfigurationProperty.getTenantDomain()- Parameters:
tenantDomain- The Azure Active Directory domain of the organization.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataSourcePropsMixin.OneDriveConfigurationProperty>- Returns:
- a new instance of
CfnDataSourcePropsMixin.OneDriveConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-