/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.kendra.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* 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. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class WorkDocsConfiguration implements Serializable, Cloneable, StructuredPojo { /** ** 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. *
*/ private String organizationId; /** *
* 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 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.
*
* 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. *
*/ private java.util.List* 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. *
*/ private java.util.List
* 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.
*
* 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. *
* * @param 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. */ public void setOrganizationId(String organizationId) { this.organizationId = 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. *
* * @return 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. */ public String getOrganizationId() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkDocsConfiguration withOrganizationId(String organizationId) { setOrganizationId(organizationId); return this; } /** *
* 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 void setCrawlComments(Boolean crawlComments) {
this.crawlComments = 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 Boolean getCrawlComments() {
return this.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
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public WorkDocsConfiguration withCrawlComments(Boolean crawlComments) {
setCrawlComments(crawlComments);
return this;
}
/**
*
* 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 Boolean isCrawlComments() {
return this.crawlComments;
}
/**
*
* 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 void setUseChangeLog(Boolean useChangeLog) {
this.useChangeLog = 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 Boolean getUseChangeLog() {
return this.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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public WorkDocsConfiguration withUseChangeLog(Boolean useChangeLog) {
setUseChangeLog(useChangeLog);
return this;
}
/**
*
* 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 Boolean isUseChangeLog() {
return this.useChangeLog;
}
/**
* * 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. *
* * @return 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. */ public java.util.List* 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. *
* * @param 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. */ public void setInclusionPatterns(java.util.Collection* 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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setInclusionPatterns(java.util.Collection)} or {@link #withInclusionPatterns(java.util.Collection)} if * you want to override the existing values. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkDocsConfiguration withInclusionPatterns(String... inclusionPatterns) { if (this.inclusionPatterns == null) { setInclusionPatterns(new java.util.ArrayList* 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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkDocsConfiguration withInclusionPatterns(java.util.Collection* 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. *
* * @return 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. */ public java.util.List* 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. *
* * @param 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. */ public void setExclusionPatterns(java.util.Collection* 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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setExclusionPatterns(java.util.Collection)} or {@link #withExclusionPatterns(java.util.Collection)} if * you want to override the existing values. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkDocsConfiguration withExclusionPatterns(String... exclusionPatterns) { if (this.exclusionPatterns == null) { setExclusionPatterns(new java.util.ArrayList* 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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkDocsConfiguration withExclusionPatterns(java.util.Collection
* 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.
*
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 java.util.List
* 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.
*
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 void setFieldMappings(java.util.Collection
* 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.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setFieldMappings(java.util.Collection)} or {@link #withFieldMappings(java.util.Collection)} if you want * to override the existing values. *
* * @param fieldMappings * A list ofDataSourceToIndexFieldMapping
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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public WorkDocsConfiguration withFieldMappings(DataSourceToIndexFieldMapping... fieldMappings) {
if (this.fieldMappings == null) {
setFieldMappings(new java.util.ArrayList
* 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.
*
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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public WorkDocsConfiguration withFieldMappings(java.util.Collection