@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GoogleDriveConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Provides configuration information for data sources that connect to Google Drive.
Constructor and Description |
---|
GoogleDriveConfiguration() |
Modifier and Type | Method and Description |
---|---|
GoogleDriveConfiguration |
clone() |
boolean |
equals(Object obj) |
List<String> |
getExcludeMimeTypes()
A list of MIME types to exclude from the index.
|
List<String> |
getExcludeSharedDrives()
A list of identifiers or shared drives to exclude from the index.
|
List<String> |
getExcludeUserAccounts()
A list of email addresses of the users.
|
List<String> |
getExclusionPatterns()
A list of regular expression patterns that apply to the path on Google Drive.
|
List<DataSourceToIndexFieldMapping> |
getFieldMappings()
Defines mapping between a field in the Google Drive and a Amazon Kendra index field.
|
List<String> |
getInclusionPatterns()
A list of regular expression patterns that apply to path on Google Drive.
|
String |
getSecretArn()
The Amazon Resource Name (ARN) of a Secrets Managersecret that contains the credentials required to connect to
Google Drive.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setExcludeMimeTypes(Collection<String> excludeMimeTypes)
A list of MIME types to exclude from the index.
|
void |
setExcludeSharedDrives(Collection<String> excludeSharedDrives)
A list of identifiers or shared drives to exclude from the index.
|
void |
setExcludeUserAccounts(Collection<String> excludeUserAccounts)
A list of email addresses of the users.
|
void |
setExclusionPatterns(Collection<String> exclusionPatterns)
A list of regular expression patterns that apply to the path on Google Drive.
|
void |
setFieldMappings(Collection<DataSourceToIndexFieldMapping> fieldMappings)
Defines mapping between a field in the Google Drive and a Amazon Kendra index field.
|
void |
setInclusionPatterns(Collection<String> inclusionPatterns)
A list of regular expression patterns that apply to path on Google Drive.
|
void |
setSecretArn(String secretArn)
The Amazon Resource Name (ARN) of a Secrets Managersecret that contains the credentials required to connect to
Google Drive.
|
String |
toString()
Returns a string representation of this object.
|
GoogleDriveConfiguration |
withExcludeMimeTypes(Collection<String> excludeMimeTypes)
A list of MIME types to exclude from the index.
|
GoogleDriveConfiguration |
withExcludeMimeTypes(String... excludeMimeTypes)
A list of MIME types to exclude from the index.
|
GoogleDriveConfiguration |
withExcludeSharedDrives(Collection<String> excludeSharedDrives)
A list of identifiers or shared drives to exclude from the index.
|
GoogleDriveConfiguration |
withExcludeSharedDrives(String... excludeSharedDrives)
A list of identifiers or shared drives to exclude from the index.
|
GoogleDriveConfiguration |
withExcludeUserAccounts(Collection<String> excludeUserAccounts)
A list of email addresses of the users.
|
GoogleDriveConfiguration |
withExcludeUserAccounts(String... excludeUserAccounts)
A list of email addresses of the users.
|
GoogleDriveConfiguration |
withExclusionPatterns(Collection<String> exclusionPatterns)
A list of regular expression patterns that apply to the path on Google Drive.
|
GoogleDriveConfiguration |
withExclusionPatterns(String... exclusionPatterns)
A list of regular expression patterns that apply to the path on Google Drive.
|
GoogleDriveConfiguration |
withFieldMappings(Collection<DataSourceToIndexFieldMapping> fieldMappings)
Defines mapping between a field in the Google Drive and a Amazon Kendra index field.
|
GoogleDriveConfiguration |
withFieldMappings(DataSourceToIndexFieldMapping... fieldMappings)
Defines mapping between a field in the Google Drive and a Amazon Kendra index field.
|
GoogleDriveConfiguration |
withInclusionPatterns(Collection<String> inclusionPatterns)
A list of regular expression patterns that apply to path on Google Drive.
|
GoogleDriveConfiguration |
withInclusionPatterns(String... inclusionPatterns)
A list of regular expression patterns that apply to path on Google Drive.
|
GoogleDriveConfiguration |
withSecretArn(String secretArn)
The Amazon Resource Name (ARN) of a Secrets Managersecret that contains the credentials required to connect to
Google Drive.
|
public void setSecretArn(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.
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.public String getSecretArn()
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.
public GoogleDriveConfiguration withSecretArn(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.
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.public List<String> getInclusionPatterns()
A list of regular expression patterns that apply to path on Google Drive. Items that match the pattern are included in the index from both shared drives and users' My Drives. Items that don't match the pattern are excluded from the index. If an item matches both an inclusion pattern and an exclusion pattern, it is excluded from the index.
public void setInclusionPatterns(Collection<String> inclusionPatterns)
A list of regular expression patterns that apply to path on Google Drive. Items that match the pattern are included in the index from both shared drives and users' My Drives. Items that don't match the pattern are excluded from the index. If an item matches both an inclusion pattern and an exclusion pattern, it is excluded from the index.
inclusionPatterns
- A list of regular expression patterns that apply to path on Google Drive. Items that match the pattern are
included in the index from both shared drives and users' My Drives. Items that don't match the pattern are
excluded from the index. If an item matches both an inclusion pattern and an exclusion pattern, it is
excluded from the index.public GoogleDriveConfiguration withInclusionPatterns(String... inclusionPatterns)
A list of regular expression patterns that apply to path on Google Drive. Items that match the pattern are included in the index from both shared drives and users' My Drives. Items that don't match the pattern are excluded from the index. If an item matches both an inclusion pattern and an exclusion pattern, it is excluded from the index.
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 regular expression patterns that apply to path on Google Drive. Items that match the pattern are
included in the index from both shared drives and users' My Drives. Items that don't match the pattern are
excluded from the index. If an item matches both an inclusion pattern and an exclusion pattern, it is
excluded from the index.public GoogleDriveConfiguration withInclusionPatterns(Collection<String> inclusionPatterns)
A list of regular expression patterns that apply to path on Google Drive. Items that match the pattern are included in the index from both shared drives and users' My Drives. Items that don't match the pattern are excluded from the index. If an item matches both an inclusion pattern and an exclusion pattern, it is excluded from the index.
inclusionPatterns
- A list of regular expression patterns that apply to path on Google Drive. Items that match the pattern are
included in the index from both shared drives and users' My Drives. Items that don't match the pattern are
excluded from the index. If an item matches both an inclusion pattern and an exclusion pattern, it is
excluded from the index.public List<String> getExclusionPatterns()
A list of regular expression patterns that apply to the path on Google Drive. Items that match the pattern are excluded from the index from both shared drives and users' My Drives. Items that don't match the pattern are included in the index. If an item matches both an exclusion pattern and an inclusion pattern, it is excluded from the index.
public void setExclusionPatterns(Collection<String> exclusionPatterns)
A list of regular expression patterns that apply to the path on Google Drive. Items that match the pattern are excluded from the index from both shared drives and users' My Drives. Items that don't match the pattern are included in the index. If an item matches both an exclusion pattern and an inclusion pattern, it is excluded from the index.
exclusionPatterns
- A list of regular expression patterns that apply to the path on Google Drive. Items that match the pattern
are excluded from the index from both shared drives and users' My Drives. Items that don't match the
pattern are included in the index. If an item matches both an exclusion pattern and an inclusion pattern,
it is excluded from the index.public GoogleDriveConfiguration withExclusionPatterns(String... exclusionPatterns)
A list of regular expression patterns that apply to the path on Google Drive. Items that match the pattern are excluded from the index from both shared drives and users' My Drives. Items that don't match the pattern are included in the index. If an item matches both an exclusion pattern and an inclusion pattern, it is excluded from the index.
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 regular expression patterns that apply to the path on Google Drive. Items that match the pattern
are excluded from the index from both shared drives and users' My Drives. Items that don't match the
pattern are included in the index. If an item matches both an exclusion pattern and an inclusion pattern,
it is excluded from the index.public GoogleDriveConfiguration withExclusionPatterns(Collection<String> exclusionPatterns)
A list of regular expression patterns that apply to the path on Google Drive. Items that match the pattern are excluded from the index from both shared drives and users' My Drives. Items that don't match the pattern are included in the index. If an item matches both an exclusion pattern and an inclusion pattern, it is excluded from the index.
exclusionPatterns
- A list of regular expression patterns that apply to the path on Google Drive. Items that match the pattern
are excluded from the index from both shared drives and users' My Drives. Items that don't match the
pattern are included in the index. If an item matches both an exclusion pattern and an inclusion pattern,
it is excluded from the index.public List<DataSourceToIndexFieldMapping> getFieldMappings()
Defines mapping between a field in the Google Drive and a Amazon Kendra index field.
If you are using the console, you can define index fields when creating the mapping. If you are using the API,
you must first create the field using the UpdateIndex
operation.
If you are using the console, you can define index fields when creating the mapping. If you are using the
API, you must first create the field using the UpdateIndex
operation.
public void setFieldMappings(Collection<DataSourceToIndexFieldMapping> fieldMappings)
Defines mapping between a field in the Google Drive and a Amazon Kendra index field.
If you are using the console, you can define index fields when creating the mapping. If you are using the API,
you must first create the field using the UpdateIndex
operation.
fieldMappings
- Defines mapping between a field in the Google Drive and a Amazon Kendra index field.
If you are using the console, you can define index fields when creating the mapping. If you are using the
API, you must first create the field using the UpdateIndex
operation.
public GoogleDriveConfiguration withFieldMappings(DataSourceToIndexFieldMapping... fieldMappings)
Defines mapping between a field in the Google Drive and a Amazon Kendra index field.
If you are using the console, you can define index fields when creating the mapping. If you are using the API,
you must first create the field using the UpdateIndex
operation.
NOTE: This method appends the values to the existing list (if any). Use
setFieldMappings(java.util.Collection)
or withFieldMappings(java.util.Collection)
if you want
to override the existing values.
fieldMappings
- Defines mapping between a field in the Google Drive and a Amazon Kendra index field.
If you are using the console, you can define index fields when creating the mapping. If you are using the
API, you must first create the field using the UpdateIndex
operation.
public GoogleDriveConfiguration withFieldMappings(Collection<DataSourceToIndexFieldMapping> fieldMappings)
Defines mapping between a field in the Google Drive and a Amazon Kendra index field.
If you are using the console, you can define index fields when creating the mapping. If you are using the API,
you must first create the field using the UpdateIndex
operation.
fieldMappings
- Defines mapping between a field in the Google Drive and a Amazon Kendra index field.
If you are using the console, you can define index fields when creating the mapping. If you are using the
API, you must first create the field using the UpdateIndex
operation.
public List<String> getExcludeMimeTypes()
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.
For a list of MIME types, see Using a Google Workspace Drive data source.
public void setExcludeMimeTypes(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.
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.
public GoogleDriveConfiguration withExcludeMimeTypes(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.
NOTE: This method appends the values to the existing list (if any). Use
setExcludeMimeTypes(java.util.Collection)
or withExcludeMimeTypes(java.util.Collection)
if you
want to override the existing values.
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.
public GoogleDriveConfiguration withExcludeMimeTypes(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.
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.
public List<String> getExcludeUserAccounts()
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.
public void setExcludeUserAccounts(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.
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.public GoogleDriveConfiguration withExcludeUserAccounts(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.
NOTE: This method appends the values to the existing list (if any). Use
setExcludeUserAccounts(java.util.Collection)
or withExcludeUserAccounts(java.util.Collection)
if you want to override the existing values.
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.public GoogleDriveConfiguration withExcludeUserAccounts(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.
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.public List<String> getExcludeSharedDrives()
A list of identifiers or shared drives to exclude from the index. All files and folders stored on the shared drive are excluded.
public void setExcludeSharedDrives(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.
excludeSharedDrives
- A list of identifiers or shared drives to exclude from the index. All files and folders stored on the
shared drive are excluded.public GoogleDriveConfiguration withExcludeSharedDrives(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.
NOTE: This method appends the values to the existing list (if any). Use
setExcludeSharedDrives(java.util.Collection)
or withExcludeSharedDrives(java.util.Collection)
if you want to override the existing values.
excludeSharedDrives
- A list of identifiers or shared drives to exclude from the index. All files and folders stored on the
shared drive are excluded.public GoogleDriveConfiguration withExcludeSharedDrives(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.
excludeSharedDrives
- A list of identifiers or shared drives to exclude from the index. All files and folders stored on the
shared drive are excluded.public String toString()
toString
in class Object
Object.toString()
public GoogleDriveConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.