Interface BoxConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<BoxConfiguration.Builder,
,BoxConfiguration> SdkBuilder<BoxConfiguration.Builder,
,BoxConfiguration> SdkPojo
- Enclosing class:
BoxConfiguration
-
Method Summary
Modifier and TypeMethodDescriptioncommentFieldMappings
(Collection<DataSourceToIndexFieldMapping> commentFieldMappings) A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of Box comments to Amazon Kendra index field names.commentFieldMappings
(Consumer<DataSourceToIndexFieldMapping.Builder>... commentFieldMappings) A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of Box comments to Amazon Kendra index field names.commentFieldMappings
(DataSourceToIndexFieldMapping... commentFieldMappings) A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of Box comments to Amazon Kendra index field names.crawlComments
(Boolean crawlComments) TRUE
to index comments.crawlTasks
(Boolean crawlTasks) TRUE
to index the contents of tasks.crawlWebLinks
(Boolean crawlWebLinks) TRUE
to index web links.enterpriseId
(String enterpriseId) The identifier of the Box Enterprise platform.exclusionPatterns
(String... exclusionPatterns) A list of regular expression patterns to exclude certain files and folders from your Box platform.exclusionPatterns
(Collection<String> exclusionPatterns) A list of regular expression patterns to exclude certain files and folders from your Box platform.fileFieldMappings
(Collection<DataSourceToIndexFieldMapping> fileFieldMappings) A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of Box files to Amazon Kendra index field names.fileFieldMappings
(Consumer<DataSourceToIndexFieldMapping.Builder>... fileFieldMappings) A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of Box files to Amazon Kendra index field names.fileFieldMappings
(DataSourceToIndexFieldMapping... fileFieldMappings) A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of Box files to Amazon Kendra index field names.inclusionPatterns
(String... inclusionPatterns) A list of regular expression patterns to include certain files and folders in your Box platform.inclusionPatterns
(Collection<String> inclusionPatterns) A list of regular expression patterns to include certain files and folders in your Box platform.The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your Box platform.taskFieldMappings
(Collection<DataSourceToIndexFieldMapping> taskFieldMappings) A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of Box tasks to Amazon Kendra index field names.taskFieldMappings
(Consumer<DataSourceToIndexFieldMapping.Builder>... taskFieldMappings) A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of Box tasks to Amazon Kendra index field names.taskFieldMappings
(DataSourceToIndexFieldMapping... taskFieldMappings) A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of Box tasks to Amazon Kendra index field names.useChangeLog
(Boolean useChangeLog) TRUE
to use the Slack change log to determine which documents require updating in the index.default BoxConfiguration.Builder
vpcConfiguration
(Consumer<DataSourceVpcConfiguration.Builder> vpcConfiguration) Configuration information for an Amazon VPC to connect to your Box.vpcConfiguration
(DataSourceVpcConfiguration vpcConfiguration) Configuration information for an Amazon VPC to connect to your Box.webLinkFieldMappings
(Collection<DataSourceToIndexFieldMapping> webLinkFieldMappings) A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of Box web links to Amazon Kendra index field names.webLinkFieldMappings
(Consumer<DataSourceToIndexFieldMapping.Builder>... webLinkFieldMappings) A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of Box web links to Amazon Kendra index field names.webLinkFieldMappings
(DataSourceToIndexFieldMapping... webLinkFieldMappings) A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of Box web links 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
-
enterpriseId
The identifier of the Box Enterprise platform. You can find the enterprise ID in the Box Developer Console settings or when you create an app in Box and download your authentication credentials. For example, 801234567.
- Parameters:
enterpriseId
- The identifier of the Box Enterprise platform. You can find the enterprise ID in the Box Developer Console settings or when you create an app in Box and download your authentication credentials. For example, 801234567.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secretArn
The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your Box platform. The secret must contain a JSON structure with the following keys:
-
clientID—The identifier of the client OAuth 2.0 authentication application created in Box.
-
clientSecret—A set of characters known only to the OAuth 2.0 authentication application created in Box.
-
publicKeyId—The identifier of the public key contained within an identity certificate.
-
privateKey—A set of characters that make up an encryption key.
-
passphrase—A set of characters that act like a password.
You create an application in Box to generate the keys or credentials required for the secret. For more information, see Using a Box data source.
- Parameters:
secretArn
- The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your Box platform. The secret must contain a JSON structure with the following keys:-
clientID—The identifier of the client OAuth 2.0 authentication application created in Box.
-
clientSecret—A set of characters known only to the OAuth 2.0 authentication application created in Box.
-
publicKeyId—The identifier of the public key contained within an identity certificate.
-
privateKey—A set of characters that make up an encryption key.
-
passphrase—A set of characters that act like a password.
You create an application in Box to generate the keys or credentials required for the secret. For more information, see Using a Box data source.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
useChangeLog
TRUE
to use the Slack change log to determine which documents require updating in the index. Depending on the data source change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents.- Parameters:
useChangeLog
-TRUE
to use the Slack change log to determine which documents require updating in the index. Depending on the data source change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
crawlComments
TRUE
to index comments.- Parameters:
crawlComments
-TRUE
to index comments.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
crawlTasks
TRUE
to index the contents of tasks.- Parameters:
crawlTasks
-TRUE
to index the contents of tasks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
crawlWebLinks
TRUE
to index web links.- Parameters:
crawlWebLinks
-TRUE
to index web links.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fileFieldMappings
BoxConfiguration.Builder fileFieldMappings(Collection<DataSourceToIndexFieldMapping> fileFieldMappings) A list of
DataSourceToIndexFieldMapping
objects that map attributes or field names of Box files to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.- Parameters:
fileFieldMappings
- A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of Box files to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fileFieldMappings
A list of
DataSourceToIndexFieldMapping
objects that map attributes or field names of Box files to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.- Parameters:
fileFieldMappings
- A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of Box files to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fileFieldMappings
BoxConfiguration.Builder fileFieldMappings(Consumer<DataSourceToIndexFieldMapping.Builder>... fileFieldMappings) A list of
This is a convenience method that creates an instance of theDataSourceToIndexFieldMapping
objects that map attributes or field names of Box files to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box 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 tofileFieldMappings(List<DataSourceToIndexFieldMapping>)
.- Parameters:
fileFieldMappings
- 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:
-
taskFieldMappings
BoxConfiguration.Builder taskFieldMappings(Collection<DataSourceToIndexFieldMapping> taskFieldMappings) A list of
DataSourceToIndexFieldMapping
objects that map attributes or field names of Box tasks to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.- Parameters:
taskFieldMappings
- A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of Box tasks to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskFieldMappings
A list of
DataSourceToIndexFieldMapping
objects that map attributes or field names of Box tasks to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.- Parameters:
taskFieldMappings
- A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of Box tasks to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskFieldMappings
BoxConfiguration.Builder taskFieldMappings(Consumer<DataSourceToIndexFieldMapping.Builder>... taskFieldMappings) A list of
This is a convenience method that creates an instance of theDataSourceToIndexFieldMapping
objects that map attributes or field names of Box tasks to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box 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 totaskFieldMappings(List<DataSourceToIndexFieldMapping>)
.- Parameters:
taskFieldMappings
- 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:
-
commentFieldMappings
BoxConfiguration.Builder commentFieldMappings(Collection<DataSourceToIndexFieldMapping> commentFieldMappings) A list of
DataSourceToIndexFieldMapping
objects that map attributes or field names of Box comments to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.- Parameters:
commentFieldMappings
- A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of Box comments to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commentFieldMappings
BoxConfiguration.Builder commentFieldMappings(DataSourceToIndexFieldMapping... commentFieldMappings) A list of
DataSourceToIndexFieldMapping
objects that map attributes or field names of Box comments to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.- Parameters:
commentFieldMappings
- A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of Box comments to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commentFieldMappings
BoxConfiguration.Builder commentFieldMappings(Consumer<DataSourceToIndexFieldMapping.Builder>... commentFieldMappings) A list of
This is a convenience method that creates an instance of theDataSourceToIndexFieldMapping
objects that map attributes or field names of Box comments to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box 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 tocommentFieldMappings(List<DataSourceToIndexFieldMapping>)
.- Parameters:
commentFieldMappings
- 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:
-
webLinkFieldMappings
BoxConfiguration.Builder webLinkFieldMappings(Collection<DataSourceToIndexFieldMapping> webLinkFieldMappings) A list of
DataSourceToIndexFieldMapping
objects that map attributes or field names of Box web links to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.- Parameters:
webLinkFieldMappings
- A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of Box web links to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
webLinkFieldMappings
BoxConfiguration.Builder webLinkFieldMappings(DataSourceToIndexFieldMapping... webLinkFieldMappings) A list of
DataSourceToIndexFieldMapping
objects that map attributes or field names of Box web links to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.- Parameters:
webLinkFieldMappings
- A list ofDataSourceToIndexFieldMapping
objects that map attributes or field names of Box web links to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
webLinkFieldMappings
BoxConfiguration.Builder webLinkFieldMappings(Consumer<DataSourceToIndexFieldMapping.Builder>... webLinkFieldMappings) A list of
This is a convenience method that creates an instance of theDataSourceToIndexFieldMapping
objects that map attributes or field names of Box web links to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box 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 towebLinkFieldMappings(List<DataSourceToIndexFieldMapping>)
.- Parameters:
webLinkFieldMappings
- 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:
-
inclusionPatterns
A list of regular expression patterns to include certain files and folders in your Box platform. Files and folders that match the patterns are included in the index. Files and folders that don't match the patterns are excluded from the index. If a file or folder matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file or folder isn't included in the index.
- Parameters:
inclusionPatterns
- A list of regular expression patterns to include certain files and folders in your Box platform. Files and folders that match the patterns are included in the index. Files and folders that don't match the patterns are excluded from the index. If a file or folder matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file or folder isn't included in the index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inclusionPatterns
A list of regular expression patterns to include certain files and folders in your Box platform. Files and folders that match the patterns are included in the index. Files and folders that don't match the patterns are excluded from the index. If a file or folder matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file or folder isn't included in the index.
- Parameters:
inclusionPatterns
- A list of regular expression patterns to include certain files and folders in your Box platform. Files and folders that match the patterns are included in the index. Files and folders that don't match the patterns are excluded from the index. If a file or folder matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file or folder isn't included in the index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exclusionPatterns
A list of regular expression patterns to exclude certain files and folders from your Box platform. Files and folders that match the patterns are excluded from the index.Files and folders that don't match the patterns are included in the index. If a file or folder matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file or folder isn't included in the index.
- Parameters:
exclusionPatterns
- A list of regular expression patterns to exclude certain files and folders from your Box platform. Files and folders that match the patterns are excluded from the index.Files and folders that don't match the patterns are included in the index. If a file or folder matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file or folder isn't included in the index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exclusionPatterns
A list of regular expression patterns to exclude certain files and folders from your Box platform. Files and folders that match the patterns are excluded from the index.Files and folders that don't match the patterns are included in the index. If a file or folder matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file or folder isn't included in the index.
- Parameters:
exclusionPatterns
- A list of regular expression patterns to exclude certain files and folders from your Box platform. Files and folders that match the patterns are excluded from the index.Files and folders that don't match the patterns are included in the index. If a file or folder matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file or folder isn't included in the index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfiguration
Configuration information for an Amazon VPC to connect to your Box. For more information, see Configuring a VPC.
- Parameters:
vpcConfiguration
- Configuration information for an Amazon VPC to connect to your Box. For more information, see Configuring a VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfiguration
default BoxConfiguration.Builder vpcConfiguration(Consumer<DataSourceVpcConfiguration.Builder> vpcConfiguration) Configuration information for an Amazon VPC to connect to your Box. For more information, see Configuring a VPC.
This is a convenience method that creates an instance of theDataSourceVpcConfiguration.Builder
avoiding the need to create one manually viaDataSourceVpcConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovpcConfiguration(DataSourceVpcConfiguration)
.- Parameters:
vpcConfiguration
- a consumer that will call methods onDataSourceVpcConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-