Class CfnDataSource.OneDriveConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kendra.CfnDataSource.OneDriveConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.OneDriveConfigurationProperty>
- Enclosing interface:
CfnDataSource.OneDriveConfigurationProperty
@Stability(Stable)
public static final class CfnDataSource.OneDriveConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.OneDriveConfigurationProperty>
A builder for
CfnDataSource.OneDriveConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.disableLocalGroups
(Boolean disableLocalGroups) Sets the value ofCfnDataSource.OneDriveConfigurationProperty.getDisableLocalGroups()
disableLocalGroups
(IResolvable disableLocalGroups) Sets the value ofCfnDataSource.OneDriveConfigurationProperty.getDisableLocalGroups()
exclusionPatterns
(List<String> exclusionPatterns) Sets the value ofCfnDataSource.OneDriveConfigurationProperty.getExclusionPatterns()
fieldMappings
(List<? extends Object> fieldMappings) Sets the value ofCfnDataSource.OneDriveConfigurationProperty.getFieldMappings()
fieldMappings
(IResolvable fieldMappings) Sets the value ofCfnDataSource.OneDriveConfigurationProperty.getFieldMappings()
inclusionPatterns
(List<String> inclusionPatterns) Sets the value ofCfnDataSource.OneDriveConfigurationProperty.getInclusionPatterns()
oneDriveUsers
(IResolvable oneDriveUsers) Sets the value ofCfnDataSource.OneDriveConfigurationProperty.getOneDriveUsers()
oneDriveUsers
(CfnDataSource.OneDriveUsersProperty oneDriveUsers) Sets the value ofCfnDataSource.OneDriveConfigurationProperty.getOneDriveUsers()
Sets the value ofCfnDataSource.OneDriveConfigurationProperty.getSecretArn()
tenantDomain
(String tenantDomain) Sets the value ofCfnDataSource.OneDriveConfigurationProperty.getTenantDomain()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
oneDriveUsers
@Stability(Stable) public CfnDataSource.OneDriveConfigurationProperty.Builder oneDriveUsers(IResolvable oneDriveUsers) Sets the value ofCfnDataSource.OneDriveConfigurationProperty.getOneDriveUsers()
- Parameters:
oneDriveUsers
- A list of user accounts whose documents should be indexed. This parameter is required.- Returns:
this
-
oneDriveUsers
@Stability(Stable) public CfnDataSource.OneDriveConfigurationProperty.Builder oneDriveUsers(CfnDataSource.OneDriveUsersProperty oneDriveUsers) Sets the value ofCfnDataSource.OneDriveConfigurationProperty.getOneDriveUsers()
- Parameters:
oneDriveUsers
- A list of user accounts whose documents should be indexed. This parameter is required.- Returns:
this
-
secretArn
@Stability(Stable) public CfnDataSource.OneDriveConfigurationProperty.Builder secretArn(String secretArn) Sets the value ofCfnDataSource.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. This parameter is required. 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 CfnDataSource.OneDriveConfigurationProperty.Builder tenantDomain(String tenantDomain) Sets the value ofCfnDataSource.OneDriveConfigurationProperty.getTenantDomain()
- Parameters:
tenantDomain
- The Azure Active Directory domain of the organization. This parameter is required.- Returns:
this
-
disableLocalGroups
@Stability(Stable) public CfnDataSource.OneDriveConfigurationProperty.Builder disableLocalGroups(Boolean disableLocalGroups) Sets the value ofCfnDataSource.OneDriveConfigurationProperty.getDisableLocalGroups()
- Parameters:
disableLocalGroups
-TRUE
to disable local groups information.- Returns:
this
-
disableLocalGroups
@Stability(Stable) public CfnDataSource.OneDriveConfigurationProperty.Builder disableLocalGroups(IResolvable disableLocalGroups) Sets the value ofCfnDataSource.OneDriveConfigurationProperty.getDisableLocalGroups()
- Parameters:
disableLocalGroups
-TRUE
to disable local groups information.- Returns:
this
-
exclusionPatterns
@Stability(Stable) public CfnDataSource.OneDriveConfigurationProperty.Builder exclusionPatterns(List<String> exclusionPatterns) Sets the value ofCfnDataSource.OneDriveConfigurationProperty.getExclusionPatterns()
- 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 CfnDataSource.OneDriveConfigurationProperty.Builder fieldMappings(IResolvable fieldMappings) Sets the value ofCfnDataSource.OneDriveConfigurationProperty.getFieldMappings()
- Parameters:
fieldMappings
- A list ofDataSourceToIndexFieldMapping
objects that map OneDrive data source attributes or field names to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API 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 CfnDataSource.OneDriveConfigurationProperty.Builder fieldMappings(List<? extends Object> fieldMappings) Sets the value ofCfnDataSource.OneDriveConfigurationProperty.getFieldMappings()
- Parameters:
fieldMappings
- A list ofDataSourceToIndexFieldMapping
objects that map OneDrive data source attributes or field names to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API 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 CfnDataSource.OneDriveConfigurationProperty.Builder inclusionPatterns(List<String> inclusionPatterns) Sets the value ofCfnDataSource.OneDriveConfigurationProperty.getInclusionPatterns()
- 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
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataSource.OneDriveConfigurationProperty>
- Returns:
- a new instance of
CfnDataSource.OneDriveConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-