@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class S3DataSourceConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Provides configuration information for a data source to index documents in an Amazon S3 bucket.
Constructor and Description |
---|
S3DataSourceConfiguration() |
Modifier and Type | Method and Description |
---|---|
S3DataSourceConfiguration |
clone() |
boolean |
equals(Object obj) |
AccessControlListConfiguration |
getAccessControlListConfiguration()
Provides the path to the S3 bucket that contains the user context filtering files for the data source.
|
String |
getBucketName()
The name of the bucket that contains the documents.
|
DocumentsMetadataConfiguration |
getDocumentsMetadataConfiguration() |
List<String> |
getExclusionPatterns()
A list of glob patterns for documents that should not be indexed.
|
List<String> |
getInclusionPatterns()
A list of glob patterns for documents that should be indexed.
|
List<String> |
getInclusionPrefixes()
A list of S3 prefixes for the documents that should be included in the index.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccessControlListConfiguration(AccessControlListConfiguration accessControlListConfiguration)
Provides the path to the S3 bucket that contains the user context filtering files for the data source.
|
void |
setBucketName(String bucketName)
The name of the bucket that contains the documents.
|
void |
setDocumentsMetadataConfiguration(DocumentsMetadataConfiguration documentsMetadataConfiguration) |
void |
setExclusionPatterns(Collection<String> exclusionPatterns)
A list of glob patterns for documents that should not be indexed.
|
void |
setInclusionPatterns(Collection<String> inclusionPatterns)
A list of glob patterns for documents that should be indexed.
|
void |
setInclusionPrefixes(Collection<String> inclusionPrefixes)
A list of S3 prefixes for the documents that should be included in the index.
|
String |
toString()
Returns a string representation of this object.
|
S3DataSourceConfiguration |
withAccessControlListConfiguration(AccessControlListConfiguration accessControlListConfiguration)
Provides the path to the S3 bucket that contains the user context filtering files for the data source.
|
S3DataSourceConfiguration |
withBucketName(String bucketName)
The name of the bucket that contains the documents.
|
S3DataSourceConfiguration |
withDocumentsMetadataConfiguration(DocumentsMetadataConfiguration documentsMetadataConfiguration) |
S3DataSourceConfiguration |
withExclusionPatterns(Collection<String> exclusionPatterns)
A list of glob patterns for documents that should not be indexed.
|
S3DataSourceConfiguration |
withExclusionPatterns(String... exclusionPatterns)
A list of glob patterns for documents that should not be indexed.
|
S3DataSourceConfiguration |
withInclusionPatterns(Collection<String> inclusionPatterns)
A list of glob patterns for documents that should be indexed.
|
S3DataSourceConfiguration |
withInclusionPatterns(String... inclusionPatterns)
A list of glob patterns for documents that should be indexed.
|
S3DataSourceConfiguration |
withInclusionPrefixes(Collection<String> inclusionPrefixes)
A list of S3 prefixes for the documents that should be included in the index.
|
S3DataSourceConfiguration |
withInclusionPrefixes(String... inclusionPrefixes)
A list of S3 prefixes for the documents that should be included in the index.
|
public void setBucketName(String bucketName)
The name of the bucket that contains the documents.
bucketName
- The name of the bucket that contains the documents.public String getBucketName()
The name of the bucket that contains the documents.
public S3DataSourceConfiguration withBucketName(String bucketName)
The name of the bucket that contains the documents.
bucketName
- The name of the bucket that contains the documents.public List<String> getInclusionPrefixes()
A list of S3 prefixes for the documents that should be included in the index.
public void setInclusionPrefixes(Collection<String> inclusionPrefixes)
A list of S3 prefixes for the documents that should be included in the index.
inclusionPrefixes
- A list of S3 prefixes for the documents that should be included in the index.public S3DataSourceConfiguration withInclusionPrefixes(String... inclusionPrefixes)
A list of S3 prefixes for the documents that should be included in the index.
NOTE: This method appends the values to the existing list (if any). Use
setInclusionPrefixes(java.util.Collection)
or withInclusionPrefixes(java.util.Collection)
if
you want to override the existing values.
inclusionPrefixes
- A list of S3 prefixes for the documents that should be included in the index.public S3DataSourceConfiguration withInclusionPrefixes(Collection<String> inclusionPrefixes)
A list of S3 prefixes for the documents that should be included in the index.
inclusionPrefixes
- A list of S3 prefixes for the documents that should be included in the index.public List<String> getInclusionPatterns()
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'.
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'.
public void setInclusionPatterns(Collection<String> 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'.
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'.
public S3DataSourceConfiguration withInclusionPatterns(String... 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'.
NOTE: This method appends the values to the existing list (if any). Use
setInclusionPatterns(java.util.Collection)
or withInclusionPatterns(java.util.Collection)
if
you want to override the existing values.
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'.
public S3DataSourceConfiguration withInclusionPatterns(Collection<String> 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'.
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'.
public List<String> getExclusionPatterns()
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.
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.
public void setExclusionPatterns(Collection<String> 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.
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.
public S3DataSourceConfiguration withExclusionPatterns(String... 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.
NOTE: This method appends the values to the existing list (if any). Use
setExclusionPatterns(java.util.Collection)
or withExclusionPatterns(java.util.Collection)
if
you want to override the existing values.
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.
public S3DataSourceConfiguration withExclusionPatterns(Collection<String> 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.
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.
public void setDocumentsMetadataConfiguration(DocumentsMetadataConfiguration documentsMetadataConfiguration)
documentsMetadataConfiguration
- public DocumentsMetadataConfiguration getDocumentsMetadataConfiguration()
public S3DataSourceConfiguration withDocumentsMetadataConfiguration(DocumentsMetadataConfiguration documentsMetadataConfiguration)
documentsMetadataConfiguration
- public void setAccessControlListConfiguration(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.
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.public AccessControlListConfiguration getAccessControlListConfiguration()
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.
public S3DataSourceConfiguration withAccessControlListConfiguration(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.
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.public String toString()
toString
in class Object
Object.toString()
public S3DataSourceConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.