@Generated(value="software.amazon.awssdk:codegen") public final class WorkDocsConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<WorkDocsConfiguration.Builder,WorkDocsConfiguration>
Provides the configuration information to connect to Amazon WorkDocs as your data source.
Amazon WorkDocs connector is available in Oregon, North Virginia, Sydney, Singapore and Ireland regions.
| Modifier and Type | Class and Description |
|---|---|
static interface |
WorkDocsConfiguration.Builder |
| Modifier and Type | Method and Description |
|---|---|
static WorkDocsConfiguration.Builder |
builder() |
Boolean |
crawlComments()
TRUE to include comments on documents in your index. |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<String> |
exclusionPatterns()
A list of regular expression patterns to exclude certain files in your Amazon WorkDocs site repository.
|
List<DataSourceToIndexFieldMapping> |
fieldMappings()
A list of
DataSourceToIndexFieldMapping objects that map Amazon WorkDocs data source attributes or
field names to Amazon Kendra index field names. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasExclusionPatterns()
For responses, this returns true if the service returned a value for the ExclusionPatterns property.
|
boolean |
hasFieldMappings()
For responses, this returns true if the service returned a value for the FieldMappings property.
|
int |
hashCode() |
boolean |
hasInclusionPatterns()
For responses, this returns true if the service returned a value for the InclusionPatterns property.
|
List<String> |
inclusionPatterns()
A list of regular expression patterns to include certain files in your Amazon WorkDocs site repository.
|
String |
organizationId()
The identifier of the directory corresponding to your Amazon WorkDocs site repository.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends WorkDocsConfiguration.Builder> |
serializableBuilderClass() |
WorkDocsConfiguration.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Boolean |
useChangeLog()
TRUE to use the Amazon WorkDocs change log to determine which documents require updating in the
index. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String organizationId()
The identifier of the directory corresponding to your Amazon WorkDocs site repository.
You can find the organization ID in the Directory Service by going to Active Directory, then Directories. Your Amazon WorkDocs site directory has an ID, which is the organization ID. You can also set up a new Amazon WorkDocs directory in the Directory Service console and enable a Amazon WorkDocs site for the directory in the Amazon WorkDocs console.
You can find the organization ID in the Directory Service by going to Active Directory, then Directories. Your Amazon WorkDocs site directory has an ID, which is the organization ID. You can also set up a new Amazon WorkDocs directory in the Directory Service console and enable a Amazon WorkDocs site for the directory in the Amazon WorkDocs console.
public final Boolean crawlComments()
TRUE to include comments on documents in your index. Including comments in your index means each
comment is a document that can be searched on.
The default is set to FALSE.
TRUE to include comments on documents in your index. Including comments in your index means
each comment is a document that can be searched on.
The default is set to FALSE.
public final Boolean useChangeLog()
TRUE to use the Amazon WorkDocs change log to determine which documents require updating in the
index. Depending on the change log's size, it may take longer for Amazon Kendra to use the change log than to
scan all of your documents in Amazon WorkDocs.
TRUE to use the Amazon WorkDocs change log to determine which documents require updating in
the index. Depending on the change log's size, it may take longer for Amazon Kendra to use the change log
than to scan all of your documents in Amazon WorkDocs.public final boolean hasInclusionPatterns()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> inclusionPatterns()
A list of regular expression patterns to include certain files in your Amazon WorkDocs site repository. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasInclusionPatterns() method.
public final boolean hasExclusionPatterns()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> exclusionPatterns()
A list of regular expression patterns to exclude certain files in your Amazon WorkDocs site repository. Files that match the patterns are excluded from the index. Files that don’t match the patterns are included in the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasExclusionPatterns() method.
public final boolean hasFieldMappings()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<DataSourceToIndexFieldMapping> fieldMappings()
A list of DataSourceToIndexFieldMapping objects that map Amazon WorkDocs data source attributes or
field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API
before you map to Amazon WorkDocs fields. For more information, see Mapping data source fields. The Amazon
WorkDocs data source field names must exist in your Amazon WorkDocs custom metadata.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasFieldMappings() method.
DataSourceToIndexFieldMapping objects that map Amazon WorkDocs data source
attributes or field names to Amazon Kendra index field names. To create custom fields, use the
UpdateIndex API before you map to Amazon WorkDocs fields. For more information, see Mapping data source fields.
The Amazon WorkDocs data source field names must exist in your Amazon WorkDocs custom metadata.public WorkDocsConfiguration.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<WorkDocsConfiguration.Builder,WorkDocsConfiguration>public static WorkDocsConfiguration.Builder builder()
public static Class<? extends WorkDocsConfiguration.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.