/* * 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 Slack as your data source. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SlackConfiguration implements Serializable, Cloneable, StructuredPojo { /** ** The identifier of the team in the Slack workspace. For example, T0123456789. *
** You can find your team ID in the URL of the main page of your Slack workspace. When you log in to Slack via a * browser, you are directed to the URL of the main page. For example, * https://app.slack.com/client/T0123456789/.... *
*/ private String teamId; /** ** The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect * to your Slack workspace team. The secret must contain a JSON structure with the following keys: *
** slackToken—The user or bot token created in Slack. For more information on creating a token in Slack, see Authentication * for a Slack data source. *
** Configuration information for an Amazon Virtual Private Cloud to connect to your Slack. For more information, see * Configuring a VPC. *
*/ private DataSourceVpcConfiguration vpcConfiguration; /** ** Specify whether to index public channels, private channels, group messages, and direct messages. You can specify * one or more of these options. *
*/ private java.util.List
* TRUE
to use the Slack change log to determine which documents require updating in the index.
* Depending on the Slack change log's size, it may take longer for Amazon Kendra to use the change log than to scan
* all of your documents in Slack.
*
* TRUE
to index bot messages from your Slack workspace team.
*
* TRUE
to exclude archived messages to index from your Slack workspace team.
*
* The date to start crawling your data from your Slack workspace team. The date must follow this format:
* yyyy-mm-dd
.
*
* The number of hours for change log to look back from when you last synchronized your data. You can look back up * to 7 days or 168 hours. *
*
* Change log updates your index only if new content was added since you last synced your data. Updated or deleted
* content from before you last synced does not get updated in your index. To capture updated or deleted content
* before you last synced, set the LookBackPeriod
to the number of hours you want change log to look
* back.
*
* The list of private channel names from your Slack workspace team. You use this if you want to index specific * private channels, not all private channels. You can also use regular expression patterns to filter private * channels. *
*/ private java.util.List* The list of public channel names to index from your Slack workspace team. You use this if you want to index * specific public channels, not all public channels. You can also use regular expression patterns to filter public * channels. *
*/ private java.util.List* A list of regular expression patterns to include certain attached files in your Slack workspace team. 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 attached files in your Slack workspace team. 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 Slack data source attributes or field names
* to Amazon Kendra index field names. To create custom fields, use the UpdateIndex
API before you map
* to Slack fields. For more information, see Mapping data source fields. The Slack
* data source field names must exist in your Slack custom metadata.
*
* The identifier of the team in the Slack workspace. For example, T0123456789. *
** You can find your team ID in the URL of the main page of your Slack workspace. When you log in to Slack via a * browser, you are directed to the URL of the main page. For example, * https://app.slack.com/client/T0123456789/.... *
* * @param teamId * The identifier of the team in the Slack workspace. For example, T0123456789. ** You can find your team ID in the URL of the main page of your Slack workspace. When you log in to Slack * via a browser, you are directed to the URL of the main page. For example, * https://app.slack.com/client/T0123456789/.... */ public void setTeamId(String teamId) { this.teamId = teamId; } /** *
* The identifier of the team in the Slack workspace. For example, T0123456789. *
** You can find your team ID in the URL of the main page of your Slack workspace. When you log in to Slack via a * browser, you are directed to the URL of the main page. For example, * https://app.slack.com/client/T0123456789/.... *
* * @return The identifier of the team in the Slack workspace. For example, T0123456789. ** You can find your team ID in the URL of the main page of your Slack workspace. When you log in to Slack * via a browser, you are directed to the URL of the main page. For example, * https://app.slack.com/client/T0123456789/.... */ public String getTeamId() { return this.teamId; } /** *
* The identifier of the team in the Slack workspace. For example, T0123456789. *
** You can find your team ID in the URL of the main page of your Slack workspace. When you log in to Slack via a * browser, you are directed to the URL of the main page. For example, * https://app.slack.com/client/T0123456789/.... *
* * @param teamId * The identifier of the team in the Slack workspace. For example, T0123456789. ** You can find your team ID in the URL of the main page of your Slack workspace. When you log in to Slack * via a browser, you are directed to the URL of the main page. For example, * https://app.slack.com/client/T0123456789/.... * @return Returns a reference to this object so that method calls can be chained together. */ public SlackConfiguration withTeamId(String teamId) { setTeamId(teamId); return this; } /** *
* The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect * to your Slack workspace team. The secret must contain a JSON structure with the following keys: *
** slackToken—The user or bot token created in Slack. For more information on creating a token in Slack, see Authentication * for a Slack data source. *
** slackToken—The user or bot token created in Slack. For more information on creating a token in Slack, see * * Authentication for a Slack data source. *
** The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect * to your Slack workspace team. The secret must contain a JSON structure with the following keys: *
** slackToken—The user or bot token created in Slack. For more information on creating a token in Slack, see Authentication * for a Slack data source. *
** slackToken—The user or bot token created in Slack. For more information on creating a token in Slack, see * * Authentication for a Slack data source. *
** The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect * to your Slack workspace team. The secret must contain a JSON structure with the following keys: *
** slackToken—The user or bot token created in Slack. For more information on creating a token in Slack, see Authentication * for a Slack data source. *
** slackToken—The user or bot token created in Slack. For more information on creating a token in Slack, see * * Authentication for a Slack data source. *
** Configuration information for an Amazon Virtual Private Cloud to connect to your Slack. For more information, see * Configuring a VPC. *
* * @param vpcConfiguration * Configuration information for an Amazon Virtual Private Cloud to connect to your Slack. For more * information, see Configuring * a VPC. */ public void setVpcConfiguration(DataSourceVpcConfiguration vpcConfiguration) { this.vpcConfiguration = vpcConfiguration; } /** ** Configuration information for an Amazon Virtual Private Cloud to connect to your Slack. For more information, see * Configuring a VPC. *
* * @return Configuration information for an Amazon Virtual Private Cloud to connect to your Slack. For more * information, see Configuring a VPC. */ public DataSourceVpcConfiguration getVpcConfiguration() { return this.vpcConfiguration; } /** ** Configuration information for an Amazon Virtual Private Cloud to connect to your Slack. For more information, see * Configuring a VPC. *
* * @param vpcConfiguration * Configuration information for an Amazon Virtual Private Cloud to connect to your Slack. For more * information, see Configuring * a VPC. * @return Returns a reference to this object so that method calls can be chained together. */ public SlackConfiguration withVpcConfiguration(DataSourceVpcConfiguration vpcConfiguration) { setVpcConfiguration(vpcConfiguration); return this; } /** ** Specify whether to index public channels, private channels, group messages, and direct messages. You can specify * one or more of these options. *
* * @return Specify whether to index public channels, private channels, group messages, and direct messages. You can * specify one or more of these options. * @see SlackEntity */ public java.util.List* Specify whether to index public channels, private channels, group messages, and direct messages. You can specify * one or more of these options. *
* * @param slackEntityList * Specify whether to index public channels, private channels, group messages, and direct messages. You can * specify one or more of these options. * @see SlackEntity */ public void setSlackEntityList(java.util.Collection* Specify whether to index public channels, private channels, group messages, and direct messages. You can specify * one or more of these options. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSlackEntityList(java.util.Collection)} or {@link #withSlackEntityList(java.util.Collection)} if you * want to override the existing values. *
* * @param slackEntityList * Specify whether to index public channels, private channels, group messages, and direct messages. You can * specify one or more of these options. * @return Returns a reference to this object so that method calls can be chained together. * @see SlackEntity */ public SlackConfiguration withSlackEntityList(String... slackEntityList) { if (this.slackEntityList == null) { setSlackEntityList(new java.util.ArrayList* Specify whether to index public channels, private channels, group messages, and direct messages. You can specify * one or more of these options. *
* * @param slackEntityList * Specify whether to index public channels, private channels, group messages, and direct messages. You can * specify one or more of these options. * @return Returns a reference to this object so that method calls can be chained together. * @see SlackEntity */ public SlackConfiguration withSlackEntityList(java.util.Collection* Specify whether to index public channels, private channels, group messages, and direct messages. You can specify * one or more of these options. *
* * @param slackEntityList * Specify whether to index public channels, private channels, group messages, and direct messages. You can * specify one or more of these options. * @return Returns a reference to this object so that method calls can be chained together. * @see SlackEntity */ public SlackConfiguration withSlackEntityList(SlackEntity... slackEntityList) { java.util.ArrayList
* TRUE
to use the Slack change log to determine which documents require updating in the index.
* Depending on the Slack change log's size, it may take longer for Amazon Kendra to use the change log than to scan
* all of your documents in Slack.
*
TRUE
to use the Slack change log to determine which documents require updating in the index.
* Depending on the Slack change log's size, it may take longer for Amazon Kendra to use the change log than
* to scan all of your documents in Slack.
*/
public void setUseChangeLog(Boolean useChangeLog) {
this.useChangeLog = useChangeLog;
}
/**
*
* TRUE
to use the Slack change log to determine which documents require updating in the index.
* Depending on the Slack change log's size, it may take longer for Amazon Kendra to use the change log than to scan
* all of your documents in Slack.
*
TRUE
to use the Slack change log to determine which documents require updating in the index.
* Depending on the Slack change log's size, it may take longer for Amazon Kendra to use the change log than
* to scan all of your documents in Slack.
*/
public Boolean getUseChangeLog() {
return this.useChangeLog;
}
/**
*
* TRUE
to use the Slack change log to determine which documents require updating in the index.
* Depending on the Slack change log's size, it may take longer for Amazon Kendra to use the change log than to scan
* all of your documents in Slack.
*
TRUE
to use the Slack change log to determine which documents require updating in the index.
* Depending on the Slack change log's size, it may take longer for Amazon Kendra to use the change log than
* to scan all of your documents in Slack.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SlackConfiguration withUseChangeLog(Boolean useChangeLog) {
setUseChangeLog(useChangeLog);
return this;
}
/**
*
* TRUE
to use the Slack change log to determine which documents require updating in the index.
* Depending on the Slack change log's size, it may take longer for Amazon Kendra to use the change log than to scan
* all of your documents in Slack.
*
TRUE
to use the Slack change log to determine which documents require updating in the index.
* Depending on the Slack change log's size, it may take longer for Amazon Kendra to use the change log than
* to scan all of your documents in Slack.
*/
public Boolean isUseChangeLog() {
return this.useChangeLog;
}
/**
*
* TRUE
to index bot messages from your Slack workspace team.
*
TRUE
to index bot messages from your Slack workspace team.
*/
public void setCrawlBotMessage(Boolean crawlBotMessage) {
this.crawlBotMessage = crawlBotMessage;
}
/**
*
* TRUE
to index bot messages from your Slack workspace team.
*
TRUE
to index bot messages from your Slack workspace team.
*/
public Boolean getCrawlBotMessage() {
return this.crawlBotMessage;
}
/**
*
* TRUE
to index bot messages from your Slack workspace team.
*
TRUE
to index bot messages from your Slack workspace team.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SlackConfiguration withCrawlBotMessage(Boolean crawlBotMessage) {
setCrawlBotMessage(crawlBotMessage);
return this;
}
/**
*
* TRUE
to index bot messages from your Slack workspace team.
*
TRUE
to index bot messages from your Slack workspace team.
*/
public Boolean isCrawlBotMessage() {
return this.crawlBotMessage;
}
/**
*
* TRUE
to exclude archived messages to index from your Slack workspace team.
*
TRUE
to exclude archived messages to index from your Slack workspace team.
*/
public void setExcludeArchived(Boolean excludeArchived) {
this.excludeArchived = excludeArchived;
}
/**
*
* TRUE
to exclude archived messages to index from your Slack workspace team.
*
TRUE
to exclude archived messages to index from your Slack workspace team.
*/
public Boolean getExcludeArchived() {
return this.excludeArchived;
}
/**
*
* TRUE
to exclude archived messages to index from your Slack workspace team.
*
TRUE
to exclude archived messages to index from your Slack workspace team.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SlackConfiguration withExcludeArchived(Boolean excludeArchived) {
setExcludeArchived(excludeArchived);
return this;
}
/**
*
* TRUE
to exclude archived messages to index from your Slack workspace team.
*
TRUE
to exclude archived messages to index from your Slack workspace team.
*/
public Boolean isExcludeArchived() {
return this.excludeArchived;
}
/**
*
* The date to start crawling your data from your Slack workspace team. The date must follow this format:
* yyyy-mm-dd
.
*
yyyy-mm-dd
.
*/
public void setSinceCrawlDate(String sinceCrawlDate) {
this.sinceCrawlDate = sinceCrawlDate;
}
/**
*
* The date to start crawling your data from your Slack workspace team. The date must follow this format:
* yyyy-mm-dd
.
*
yyyy-mm-dd
.
*/
public String getSinceCrawlDate() {
return this.sinceCrawlDate;
}
/**
*
* The date to start crawling your data from your Slack workspace team. The date must follow this format:
* yyyy-mm-dd
.
*
yyyy-mm-dd
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SlackConfiguration withSinceCrawlDate(String sinceCrawlDate) {
setSinceCrawlDate(sinceCrawlDate);
return this;
}
/**
* * The number of hours for change log to look back from when you last synchronized your data. You can look back up * to 7 days or 168 hours. *
*
* Change log updates your index only if new content was added since you last synced your data. Updated or deleted
* content from before you last synced does not get updated in your index. To capture updated or deleted content
* before you last synced, set the LookBackPeriod
to the number of hours you want change log to look
* back.
*
* Change log updates your index only if new content was added since you last synced your data. Updated or
* deleted content from before you last synced does not get updated in your index. To capture updated or
* deleted content before you last synced, set the LookBackPeriod
to the number of hours you
* want change log to look back.
*/
public void setLookBackPeriod(Integer lookBackPeriod) {
this.lookBackPeriod = lookBackPeriod;
}
/**
*
* The number of hours for change log to look back from when you last synchronized your data. You can look back up * to 7 days or 168 hours. *
*
* Change log updates your index only if new content was added since you last synced your data. Updated or deleted
* content from before you last synced does not get updated in your index. To capture updated or deleted content
* before you last synced, set the LookBackPeriod
to the number of hours you want change log to look
* back.
*
* Change log updates your index only if new content was added since you last synced your data. Updated or
* deleted content from before you last synced does not get updated in your index. To capture updated or
* deleted content before you last synced, set the LookBackPeriod
to the number of hours you
* want change log to look back.
*/
public Integer getLookBackPeriod() {
return this.lookBackPeriod;
}
/**
*
* The number of hours for change log to look back from when you last synchronized your data. You can look back up * to 7 days or 168 hours. *
*
* Change log updates your index only if new content was added since you last synced your data. Updated or deleted
* content from before you last synced does not get updated in your index. To capture updated or deleted content
* before you last synced, set the LookBackPeriod
to the number of hours you want change log to look
* back.
*
* Change log updates your index only if new content was added since you last synced your data. Updated or
* deleted content from before you last synced does not get updated in your index. To capture updated or
* deleted content before you last synced, set the LookBackPeriod
to the number of hours you
* want change log to look back.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SlackConfiguration withLookBackPeriod(Integer lookBackPeriod) {
setLookBackPeriod(lookBackPeriod);
return this;
}
/**
*
* The list of private channel names from your Slack workspace team. You use this if you want to index specific * private channels, not all private channels. You can also use regular expression patterns to filter private * channels. *
* * @return The list of private channel names from your Slack workspace team. You use this if you want to index * specific private channels, not all private channels. You can also use regular expression patterns to * filter private channels. */ public java.util.List* The list of private channel names from your Slack workspace team. You use this if you want to index specific * private channels, not all private channels. You can also use regular expression patterns to filter private * channels. *
* * @param privateChannelFilter * The list of private channel names from your Slack workspace team. You use this if you want to index * specific private channels, not all private channels. You can also use regular expression patterns to * filter private channels. */ public void setPrivateChannelFilter(java.util.Collection* The list of private channel names from your Slack workspace team. You use this if you want to index specific * private channels, not all private channels. You can also use regular expression patterns to filter private * channels. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPrivateChannelFilter(java.util.Collection)} or {@link #withPrivateChannelFilter(java.util.Collection)} * if you want to override the existing values. *
* * @param privateChannelFilter * The list of private channel names from your Slack workspace team. You use this if you want to index * specific private channels, not all private channels. You can also use regular expression patterns to * filter private channels. * @return Returns a reference to this object so that method calls can be chained together. */ public SlackConfiguration withPrivateChannelFilter(String... privateChannelFilter) { if (this.privateChannelFilter == null) { setPrivateChannelFilter(new java.util.ArrayList* The list of private channel names from your Slack workspace team. You use this if you want to index specific * private channels, not all private channels. You can also use regular expression patterns to filter private * channels. *
* * @param privateChannelFilter * The list of private channel names from your Slack workspace team. You use this if you want to index * specific private channels, not all private channels. You can also use regular expression patterns to * filter private channels. * @return Returns a reference to this object so that method calls can be chained together. */ public SlackConfiguration withPrivateChannelFilter(java.util.Collection* The list of public channel names to index from your Slack workspace team. You use this if you want to index * specific public channels, not all public channels. You can also use regular expression patterns to filter public * channels. *
* * @return The list of public channel names to index from your Slack workspace team. You use this if you want to * index specific public channels, not all public channels. You can also use regular expression patterns to * filter public channels. */ public java.util.List* The list of public channel names to index from your Slack workspace team. You use this if you want to index * specific public channels, not all public channels. You can also use regular expression patterns to filter public * channels. *
* * @param publicChannelFilter * The list of public channel names to index from your Slack workspace team. You use this if you want to * index specific public channels, not all public channels. You can also use regular expression patterns to * filter public channels. */ public void setPublicChannelFilter(java.util.Collection* The list of public channel names to index from your Slack workspace team. You use this if you want to index * specific public channels, not all public channels. You can also use regular expression patterns to filter public * channels. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPublicChannelFilter(java.util.Collection)} or {@link #withPublicChannelFilter(java.util.Collection)} * if you want to override the existing values. *
* * @param publicChannelFilter * The list of public channel names to index from your Slack workspace team. You use this if you want to * index specific public channels, not all public channels. You can also use regular expression patterns to * filter public channels. * @return Returns a reference to this object so that method calls can be chained together. */ public SlackConfiguration withPublicChannelFilter(String... publicChannelFilter) { if (this.publicChannelFilter == null) { setPublicChannelFilter(new java.util.ArrayList* The list of public channel names to index from your Slack workspace team. You use this if you want to index * specific public channels, not all public channels. You can also use regular expression patterns to filter public * channels. *
* * @param publicChannelFilter * The list of public channel names to index from your Slack workspace team. You use this if you want to * index specific public channels, not all public channels. You can also use regular expression patterns to * filter public channels. * @return Returns a reference to this object so that method calls can be chained together. */ public SlackConfiguration withPublicChannelFilter(java.util.Collection* A list of regular expression patterns to include certain attached files in your Slack workspace team. 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 attached files in your Slack workspace team. * 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 attached files in your Slack workspace team. 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 attached files in your Slack workspace team. * 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 attached files in your Slack workspace team. 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 attached files in your Slack workspace team. * 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 SlackConfiguration withInclusionPatterns(String... inclusionPatterns) { if (this.inclusionPatterns == null) { setInclusionPatterns(new java.util.ArrayList* A list of regular expression patterns to include certain attached files in your Slack workspace team. 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 attached files in your Slack workspace team. * 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 SlackConfiguration withInclusionPatterns(java.util.Collection* A list of regular expression patterns to exclude certain attached files in your Slack workspace team. 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 attached files in your Slack workspace team. * 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 attached files in your Slack workspace team. 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 attached files in your Slack workspace team. * 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 attached files in your Slack workspace team. 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 attached files in your Slack workspace team. * 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 SlackConfiguration withExclusionPatterns(String... exclusionPatterns) { if (this.exclusionPatterns == null) { setExclusionPatterns(new java.util.ArrayList* A list of regular expression patterns to exclude certain attached files in your Slack workspace team. 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 attached files in your Slack workspace team. * 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 SlackConfiguration withExclusionPatterns(java.util.Collection
* A list of DataSourceToIndexFieldMapping
objects that map Slack data source attributes or field names
* to Amazon Kendra index field names. To create custom fields, use the UpdateIndex
API before you map
* to Slack fields. For more information, see Mapping data source fields. The Slack
* data source field names must exist in your Slack custom metadata.
*
DataSourceToIndexFieldMapping
objects that map Slack data source attributes or
* field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex
* API before you map to Slack fields. For more information, see Mapping data source fields.
* The Slack data source field names must exist in your Slack custom metadata.
*/
public java.util.List
* A list of DataSourceToIndexFieldMapping
objects that map Slack data source attributes or field names
* to Amazon Kendra index field names. To create custom fields, use the UpdateIndex
API before you map
* to Slack fields. For more information, see Mapping data source fields. The Slack
* data source field names must exist in your Slack custom metadata.
*
DataSourceToIndexFieldMapping
objects that map Slack data source attributes or
* field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex
* API before you map to Slack fields. For more information, see Mapping data source fields. The
* Slack data source field names must exist in your Slack custom metadata.
*/
public void setFieldMappings(java.util.Collection
* A list of DataSourceToIndexFieldMapping
objects that map Slack data source attributes or field names
* to Amazon Kendra index field names. To create custom fields, use the UpdateIndex
API before you map
* to Slack fields. For more information, see Mapping data source fields. The Slack
* data source field names must exist in your Slack 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 Slack data source attributes or
* field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex
* API before you map to Slack fields. For more information, see Mapping data source fields. The
* Slack data source field names must exist in your Slack custom metadata.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SlackConfiguration withFieldMappings(DataSourceToIndexFieldMapping... fieldMappings) {
if (this.fieldMappings == null) {
setFieldMappings(new java.util.ArrayList
* A list of DataSourceToIndexFieldMapping
objects that map Slack data source attributes or field names
* to Amazon Kendra index field names. To create custom fields, use the UpdateIndex
API before you map
* to Slack fields. For more information, see Mapping data source fields. The Slack
* data source field names must exist in your Slack custom metadata.
*
DataSourceToIndexFieldMapping
objects that map Slack data source attributes or
* field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex
* API before you map to Slack fields. For more information, see Mapping data source fields. The
* Slack data source field names must exist in your Slack custom metadata.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SlackConfiguration withFieldMappings(java.util.Collection