Interface GoogleDriveConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<GoogleDriveConfiguration.Builder,GoogleDriveConfiguration>,SdkBuilder<GoogleDriveConfiguration.Builder,GoogleDriveConfiguration>,SdkPojo
- Enclosing class:
- GoogleDriveConfiguration
public static interface GoogleDriveConfiguration.Builder extends SdkPojo, CopyableBuilder<GoogleDriveConfiguration.Builder,GoogleDriveConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GoogleDriveConfiguration.BuilderexcludeMimeTypes(String... excludeMimeTypes)A list of MIME types to exclude from the index.GoogleDriveConfiguration.BuilderexcludeMimeTypes(Collection<String> excludeMimeTypes)A list of MIME types to exclude from the index.GoogleDriveConfiguration.BuilderexcludeSharedDrives(String... excludeSharedDrives)A list of identifiers or shared drives to exclude from the index.GoogleDriveConfiguration.BuilderexcludeSharedDrives(Collection<String> excludeSharedDrives)A list of identifiers or shared drives to exclude from the index.GoogleDriveConfiguration.BuilderexcludeUserAccounts(String... excludeUserAccounts)A list of email addresses of the users.GoogleDriveConfiguration.BuilderexcludeUserAccounts(Collection<String> excludeUserAccounts)A list of email addresses of the users.GoogleDriveConfiguration.BuilderexclusionPatterns(String... exclusionPatterns)A list of regular expression patterns to exclude certain items in your Google Drive, including shared drives and users' My Drives.GoogleDriveConfiguration.BuilderexclusionPatterns(Collection<String> exclusionPatterns)A list of regular expression patterns to exclude certain items in your Google Drive, including shared drives and users' My Drives.GoogleDriveConfiguration.BuilderfieldMappings(Collection<DataSourceToIndexFieldMapping> fieldMappings)Maps Google Drive data source attributes or field names to Amazon Kendra index field names.GoogleDriveConfiguration.BuilderfieldMappings(Consumer<DataSourceToIndexFieldMapping.Builder>... fieldMappings)Maps Google Drive data source attributes or field names to Amazon Kendra index field names.GoogleDriveConfiguration.BuilderfieldMappings(DataSourceToIndexFieldMapping... fieldMappings)Maps Google Drive data source attributes or field names to Amazon Kendra index field names.GoogleDriveConfiguration.BuilderinclusionPatterns(String... inclusionPatterns)A list of regular expression patterns to include certain items in your Google Drive, including shared drives and users' My Drives.GoogleDriveConfiguration.BuilderinclusionPatterns(Collection<String> inclusionPatterns)A list of regular expression patterns to include certain items in your Google Drive, including shared drives and users' My Drives.GoogleDriveConfiguration.BuildersecretArn(String secretArn)The Amazon Resource Name (ARN) of a Secrets Managersecret that contains the credentials required to connect to Google Drive.-
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 Detail
-
secretArn
GoogleDriveConfiguration.Builder secretArn(String secretArn)
The Amazon Resource Name (ARN) of a Secrets Managersecret that contains the credentials required to connect to Google Drive. For more information, see Using a Google Workspace Drive data source.
- Parameters:
secretArn- The Amazon Resource Name (ARN) of a Secrets Managersecret that contains the credentials required to connect to Google Drive. For more information, see Using a Google Workspace Drive data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inclusionPatterns
GoogleDriveConfiguration.Builder inclusionPatterns(Collection<String> inclusionPatterns)
A list of regular expression patterns to include certain items in your Google Drive, including shared drives and users' My Drives. Items that match the patterns are included in the index. Items that don't match the patterns are excluded from the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.
- Parameters:
inclusionPatterns- A list of regular expression patterns to include certain items in your Google Drive, including shared drives and users' My Drives. Items that match the patterns are included in the index. Items that don't match the patterns are excluded from the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inclusionPatterns
GoogleDriveConfiguration.Builder inclusionPatterns(String... inclusionPatterns)
A list of regular expression patterns to include certain items in your Google Drive, including shared drives and users' My Drives. Items that match the patterns are included in the index. Items that don't match the patterns are excluded from the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.
- Parameters:
inclusionPatterns- A list of regular expression patterns to include certain items in your Google Drive, including shared drives and users' My Drives. Items that match the patterns are included in the index. Items that don't match the patterns are excluded from the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exclusionPatterns
GoogleDriveConfiguration.Builder exclusionPatterns(Collection<String> exclusionPatterns)
A list of regular expression patterns to exclude certain items in your Google Drive, including shared drives and users' My Drives. Items that match the patterns are excluded from the index. Items that don't match the patterns are included in the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.
- Parameters:
exclusionPatterns- A list of regular expression patterns to exclude certain items in your Google Drive, including shared drives and users' My Drives. Items that match the patterns are excluded from the index. Items that don't match the patterns are included in the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exclusionPatterns
GoogleDriveConfiguration.Builder exclusionPatterns(String... exclusionPatterns)
A list of regular expression patterns to exclude certain items in your Google Drive, including shared drives and users' My Drives. Items that match the patterns are excluded from the index. Items that don't match the patterns are included in the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.
- Parameters:
exclusionPatterns- A list of regular expression patterns to exclude certain items in your Google Drive, including shared drives and users' My Drives. Items that match the patterns are excluded from the index. Items that don't match the patterns are included in the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fieldMappings
GoogleDriveConfiguration.Builder fieldMappings(Collection<DataSourceToIndexFieldMapping> fieldMappings)
Maps Google Drive data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the
UpdateIndexAPI before you map to Google Drive fields. For more information, see Mapping data source fields. The Google Drive data source field names must exist in your Google Drive custom metadata.- Parameters:
fieldMappings- Maps Google Drive data source attributes or field names to Amazon Kendra index field names. To create custom fields, use theUpdateIndexAPI before you map to Google Drive fields. For more information, see Mapping data source fields. The Google Drive data source field names must exist in your Google Drive custom metadata.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fieldMappings
GoogleDriveConfiguration.Builder fieldMappings(DataSourceToIndexFieldMapping... fieldMappings)
Maps Google Drive data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the
UpdateIndexAPI before you map to Google Drive fields. For more information, see Mapping data source fields. The Google Drive data source field names must exist in your Google Drive custom metadata.- Parameters:
fieldMappings- Maps Google Drive data source attributes or field names to Amazon Kendra index field names. To create custom fields, use theUpdateIndexAPI before you map to Google Drive fields. For more information, see Mapping data source fields. The Google Drive data source field names must exist in your Google Drive custom metadata.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fieldMappings
GoogleDriveConfiguration.Builder fieldMappings(Consumer<DataSourceToIndexFieldMapping.Builder>... fieldMappings)
Maps Google Drive data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the
This is a convenience method that creates an instance of theUpdateIndexAPI before you map to Google Drive fields. For more information, see Mapping data source fields. The Google Drive data source field names must exist in your Google Drive custom metadata.DataSourceToIndexFieldMapping.Builderavoiding the need to create one manually viaDataSourceToIndexFieldMapping.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#fieldMappings(List.) - Parameters:
fieldMappings- 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:
#fieldMappings(java.util.Collection)
-
excludeMimeTypes
GoogleDriveConfiguration.Builder excludeMimeTypes(Collection<String> excludeMimeTypes)
A list of MIME types to exclude from the index. All documents matching the specified MIME type are excluded.
For a list of MIME types, see Using a Google Workspace Drive data source.
- Parameters:
excludeMimeTypes- A list of MIME types to exclude from the index. All documents matching the specified MIME type are excluded.For a list of MIME types, see Using a Google Workspace Drive data source.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludeMimeTypes
GoogleDriveConfiguration.Builder excludeMimeTypes(String... excludeMimeTypes)
A list of MIME types to exclude from the index. All documents matching the specified MIME type are excluded.
For a list of MIME types, see Using a Google Workspace Drive data source.
- Parameters:
excludeMimeTypes- A list of MIME types to exclude from the index. All documents matching the specified MIME type are excluded.For a list of MIME types, see Using a Google Workspace Drive data source.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludeUserAccounts
GoogleDriveConfiguration.Builder excludeUserAccounts(Collection<String> excludeUserAccounts)
A list of email addresses of the users. Documents owned by these users are excluded from the index. Documents shared with excluded users are indexed unless they are excluded in another way.
- Parameters:
excludeUserAccounts- A list of email addresses of the users. Documents owned by these users are excluded from the index. Documents shared with excluded users are indexed unless they are excluded in another way.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludeUserAccounts
GoogleDriveConfiguration.Builder excludeUserAccounts(String... excludeUserAccounts)
A list of email addresses of the users. Documents owned by these users are excluded from the index. Documents shared with excluded users are indexed unless they are excluded in another way.
- Parameters:
excludeUserAccounts- A list of email addresses of the users. Documents owned by these users are excluded from the index. Documents shared with excluded users are indexed unless they are excluded in another way.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludeSharedDrives
GoogleDriveConfiguration.Builder excludeSharedDrives(Collection<String> excludeSharedDrives)
A list of identifiers or shared drives to exclude from the index. All files and folders stored on the shared drive are excluded.
- Parameters:
excludeSharedDrives- A list of identifiers or shared drives to exclude from the index. All files and folders stored on the shared drive are excluded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludeSharedDrives
GoogleDriveConfiguration.Builder excludeSharedDrives(String... excludeSharedDrives)
A list of identifiers or shared drives to exclude from the index. All files and folders stored on the shared drive are excluded.
- Parameters:
excludeSharedDrives- A list of identifiers or shared drives to exclude from the index. All files and folders stored on the shared drive are excluded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-