Interface S3DataSourceConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<S3DataSourceConfiguration.Builder,
,S3DataSourceConfiguration> SdkBuilder<S3DataSourceConfiguration.Builder,
,S3DataSourceConfiguration> SdkPojo
- Enclosing class:
S3DataSourceConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionaccessControlListConfiguration
(Consumer<AccessControlListConfiguration.Builder> accessControlListConfiguration) Provides the path to the S3 bucket that contains the user context filtering files for the data source.accessControlListConfiguration
(AccessControlListConfiguration accessControlListConfiguration) Provides the path to the S3 bucket that contains the user context filtering files for the data source.bucketName
(String bucketName) The name of the bucket that contains the documents.documentsMetadataConfiguration
(Consumer<DocumentsMetadataConfiguration.Builder> documentsMetadataConfiguration) Sets the value of the DocumentsMetadataConfiguration property for this object.documentsMetadataConfiguration
(DocumentsMetadataConfiguration documentsMetadataConfiguration) Sets the value of the DocumentsMetadataConfiguration property for this object.exclusionPatterns
(String... exclusionPatterns) A list of glob patterns for documents that should not be indexed.exclusionPatterns
(Collection<String> exclusionPatterns) A list of glob patterns for documents that should not be indexed.inclusionPatterns
(String... inclusionPatterns) A list of glob patterns for documents that should be indexed.inclusionPatterns
(Collection<String> inclusionPatterns) A list of glob patterns for documents that should be indexed.inclusionPrefixes
(String... inclusionPrefixes) A list of S3 prefixes for the documents that should be included in the index.inclusionPrefixes
(Collection<String> inclusionPrefixes) A list of S3 prefixes for the documents that should be included in the index.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
-
bucketName
The name of the bucket that contains the documents.
- Parameters:
bucketName
- The name of the bucket that contains the documents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inclusionPrefixes
A list of S3 prefixes for the documents that should be included in the index.
- Parameters:
inclusionPrefixes
- A list of S3 prefixes for the documents that should be included in the index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inclusionPrefixes
A list of S3 prefixes for the documents that should be included in the index.
- Parameters:
inclusionPrefixes
- A list of S3 prefixes for the documents that should be included in the index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inclusionPatterns
A list of glob patterns for documents that should be indexed. If a document that matches an inclusion pattern also matches an exclusion pattern, the document is not indexed.
Some examples are:
-
*.txt will include all text files in a directory (files with the extension .txt).
-
**/*.txt will include all text files in a directory and its subdirectories.
-
*tax* will include all files in a directory that contain 'tax' in the file name, such as 'tax', 'taxes', 'income_tax'.
- Parameters:
inclusionPatterns
- A list of glob patterns for documents that should be indexed. If a document that matches an inclusion pattern also matches an exclusion pattern, the document is not indexed.Some examples are:
-
*.txt will include all text files in a directory (files with the extension .txt).
-
**/*.txt will include all text files in a directory and its subdirectories.
-
*tax* will include all files in a directory that contain 'tax' in the file name, such as 'tax', 'taxes', 'income_tax'.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
inclusionPatterns
A list of glob patterns for documents that should be indexed. If a document that matches an inclusion pattern also matches an exclusion pattern, the document is not indexed.
Some examples are:
-
*.txt will include all text files in a directory (files with the extension .txt).
-
**/*.txt will include all text files in a directory and its subdirectories.
-
*tax* will include all files in a directory that contain 'tax' in the file name, such as 'tax', 'taxes', 'income_tax'.
- Parameters:
inclusionPatterns
- A list of glob patterns for documents that should be indexed. If a document that matches an inclusion pattern also matches an exclusion pattern, the document is not indexed.Some examples are:
-
*.txt will include all text files in a directory (files with the extension .txt).
-
**/*.txt will include all text files in a directory and its subdirectories.
-
*tax* will include all files in a directory that contain 'tax' in the file name, such as 'tax', 'taxes', 'income_tax'.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
exclusionPatterns
A list of glob patterns for documents that should not be indexed. If a document that matches an inclusion prefix or inclusion pattern also matches an exclusion pattern, the document is not indexed.
Some examples are:
-
*.png , *.jpg will exclude all PNG and JPEG image files in a directory (files with the extensions .png and .jpg).
-
*internal* will exclude all files in a directory that contain 'internal' in the file name, such as 'internal', 'internal_only', 'company_internal'.
-
**/*internal* will exclude all internal-related files in a directory and its subdirectories.
- Parameters:
exclusionPatterns
- A list of glob patterns for documents that should not be indexed. If a document that matches an inclusion prefix or inclusion pattern also matches an exclusion pattern, the document is not indexed.Some examples are:
-
*.png , *.jpg will exclude all PNG and JPEG image files in a directory (files with the extensions .png and .jpg).
-
*internal* will exclude all files in a directory that contain 'internal' in the file name, such as 'internal', 'internal_only', 'company_internal'.
-
**/*internal* will exclude all internal-related files in a directory and its subdirectories.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
exclusionPatterns
A list of glob patterns for documents that should not be indexed. If a document that matches an inclusion prefix or inclusion pattern also matches an exclusion pattern, the document is not indexed.
Some examples are:
-
*.png , *.jpg will exclude all PNG and JPEG image files in a directory (files with the extensions .png and .jpg).
-
*internal* will exclude all files in a directory that contain 'internal' in the file name, such as 'internal', 'internal_only', 'company_internal'.
-
**/*internal* will exclude all internal-related files in a directory and its subdirectories.
- Parameters:
exclusionPatterns
- A list of glob patterns for documents that should not be indexed. If a document that matches an inclusion prefix or inclusion pattern also matches an exclusion pattern, the document is not indexed.Some examples are:
-
*.png , *.jpg will exclude all PNG and JPEG image files in a directory (files with the extensions .png and .jpg).
-
*internal* will exclude all files in a directory that contain 'internal' in the file name, such as 'internal', 'internal_only', 'company_internal'.
-
**/*internal* will exclude all internal-related files in a directory and its subdirectories.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
documentsMetadataConfiguration
S3DataSourceConfiguration.Builder documentsMetadataConfiguration(DocumentsMetadataConfiguration documentsMetadataConfiguration) Sets the value of the DocumentsMetadataConfiguration property for this object.- Parameters:
documentsMetadataConfiguration
- The new value for the DocumentsMetadataConfiguration property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentsMetadataConfiguration
default S3DataSourceConfiguration.Builder documentsMetadataConfiguration(Consumer<DocumentsMetadataConfiguration.Builder> documentsMetadataConfiguration) Sets the value of the DocumentsMetadataConfiguration property for this object. This is a convenience method that creates an instance of theDocumentsMetadataConfiguration.Builder
avoiding the need to create one manually viaDocumentsMetadataConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todocumentsMetadataConfiguration(DocumentsMetadataConfiguration)
.- Parameters:
documentsMetadataConfiguration
- a consumer that will call methods onDocumentsMetadataConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
accessControlListConfiguration
S3DataSourceConfiguration.Builder accessControlListConfiguration(AccessControlListConfiguration accessControlListConfiguration) Provides the path to the S3 bucket that contains the user context filtering files for the data source. For the format of the file, see Access control for S3 data sources.
- Parameters:
accessControlListConfiguration
- Provides the path to the S3 bucket that contains the user context filtering files for the data source. For the format of the file, see Access control for S3 data sources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessControlListConfiguration
default S3DataSourceConfiguration.Builder accessControlListConfiguration(Consumer<AccessControlListConfiguration.Builder> accessControlListConfiguration) Provides the path to the S3 bucket that contains the user context filtering files for the data source. For the format of the file, see Access control for S3 data sources.
This is a convenience method that creates an instance of theAccessControlListConfiguration.Builder
avoiding the need to create one manually viaAccessControlListConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaccessControlListConfiguration(AccessControlListConfiguration)
.- Parameters:
accessControlListConfiguration
- a consumer that will call methods onAccessControlListConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-