com.amazonaws.services.kendra.model.DataSourceConfiguration Maven / Gradle / Ivy
Show all versions of aws-java-sdk-kendra Show documentation
/*
* Copyright 2019-2024 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 for an Amazon Kendra data source.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DataSourceConfiguration implements Serializable, Cloneable, StructuredPojo {
/**
*
* Provides the configuration information to connect to an Amazon S3 bucket as your data source.
*
*
*
* Amazon Kendra now supports an upgraded Amazon S3 connector.
*
*
* You must now use the TemplateConfiguration object instead of the S3DataSourceConfiguration
object to configure your
* connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as configured.
* However, you won't be able to edit or update them. If you want to edit or update your connector configuration,
* you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using
* the older architecture is scheduled to end by June 2024.
*
*
*/
private S3DataSourceConfiguration s3Configuration;
/**
*
* Provides the configuration information to connect to Microsoft SharePoint as your data source.
*
*/
private SharePointConfiguration sharePointConfiguration;
/**
*
* Provides the configuration information to connect to a database as your data source.
*
*/
private DatabaseConfiguration databaseConfiguration;
/**
*
* Provides the configuration information to connect to Salesforce as your data source.
*
*/
private SalesforceConfiguration salesforceConfiguration;
/**
*
* Provides the configuration information to connect to Microsoft OneDrive as your data source.
*
*/
private OneDriveConfiguration oneDriveConfiguration;
/**
*
* Provides the configuration information to connect to ServiceNow as your data source.
*
*/
private ServiceNowConfiguration serviceNowConfiguration;
/**
*
* Provides the configuration information to connect to Confluence as your data source.
*
*/
private ConfluenceConfiguration confluenceConfiguration;
/**
*
* Provides the configuration information to connect to Google Drive as your data source.
*
*/
private GoogleDriveConfiguration googleDriveConfiguration;
private WebCrawlerConfiguration webCrawlerConfiguration;
/**
*
* Provides the configuration information to connect to Amazon WorkDocs as your data source.
*
*/
private WorkDocsConfiguration workDocsConfiguration;
/**
*
* Provides the configuration information to connect to Amazon FSx as your data source.
*
*
*
* Amazon Kendra now supports an upgraded Amazon FSx Windows connector.
*
*
* You must now use the TemplateConfiguration object instead of the FsxConfiguration
object to configure your
* connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as configured.
* However, you won't be able to edit or update them. If you want to edit or update your connector configuration,
* you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using
* the older architecture is scheduled to end by June 2024.
*
*
*/
private FsxConfiguration fsxConfiguration;
/**
*
* Provides the configuration information to connect to Slack as your data source.
*
*
*
* Amazon Kendra now supports an upgraded Slack connector.
*
*
* You must now use the TemplateConfiguration object instead of the SlackConfiguration
object to configure your
* connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as configured.
* However, you won't be able to edit or update them. If you want to edit or update your connector configuration,
* you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using
* the older architecture is scheduled to end by June 2024.
*
*
*/
private SlackConfiguration slackConfiguration;
/**
*
* Provides the configuration information to connect to Box as your data source.
*
*/
private BoxConfiguration boxConfiguration;
/**
*
* Provides the configuration information to connect to Quip as your data source.
*
*/
private QuipConfiguration quipConfiguration;
/**
*
* Provides the configuration information to connect to Jira as your data source.
*
*/
private JiraConfiguration jiraConfiguration;
/**
*
* Provides the configuration information to connect to GitHub as your data source.
*
*
*
* Amazon Kendra now supports an upgraded GitHub connector.
*
*
* You must now use the TemplateConfiguration object instead of the GitHubConfiguration
object to configure your
* connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as configured.
* However, you won’t be able to edit or update them. If you want to edit or update your connector configuration,
* you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using
* the older architecture is scheduled to end by June 2024.
*
*
*/
private GitHubConfiguration gitHubConfiguration;
/**
*
* Provides the configuration information to connect to Alfresco as your data source.
*
*
*
* Support for AlfrescoConfiguration
ended May 2023. We recommend migrating to or using the Alfresco
* data source template schema / TemplateConfiguration API.
*
*
*/
@Deprecated
private AlfrescoConfiguration alfrescoConfiguration;
/**
*
* Provides a template for the configuration information to connect to your data source.
*
*/
private TemplateConfiguration templateConfiguration;
/**
*
* Provides the configuration information to connect to an Amazon S3 bucket as your data source.
*
*
*
* Amazon Kendra now supports an upgraded Amazon S3 connector.
*
*
* You must now use the TemplateConfiguration object instead of the S3DataSourceConfiguration
object to configure your
* connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as configured.
* However, you won't be able to edit or update them. If you want to edit or update your connector configuration,
* you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using
* the older architecture is scheduled to end by June 2024.
*
*
*
* @param s3Configuration
* Provides the configuration information to connect to an Amazon S3 bucket as your data source.
*
* Amazon Kendra now supports an upgraded Amazon S3 connector.
*
*
* You must now use the TemplateConfiguration object instead of the S3DataSourceConfiguration
object to
* configure your connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as
* configured. However, you won't be able to edit or update them. If you want to edit or update your
* connector configuration, you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors
* configured using the older architecture is scheduled to end by June 2024.
*
*/
public void setS3Configuration(S3DataSourceConfiguration s3Configuration) {
this.s3Configuration = s3Configuration;
}
/**
*
* Provides the configuration information to connect to an Amazon S3 bucket as your data source.
*
*
*
* Amazon Kendra now supports an upgraded Amazon S3 connector.
*
*
* You must now use the TemplateConfiguration object instead of the S3DataSourceConfiguration
object to configure your
* connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as configured.
* However, you won't be able to edit or update them. If you want to edit or update your connector configuration,
* you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using
* the older architecture is scheduled to end by June 2024.
*
*
*
* @return Provides the configuration information to connect to an Amazon S3 bucket as your data source.
*
* Amazon Kendra now supports an upgraded Amazon S3 connector.
*
*
* You must now use the TemplateConfiguration object instead of the S3DataSourceConfiguration
object to
* configure your connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as
* configured. However, you won't be able to edit or update them. If you want to edit or update your
* connector configuration, you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors
* configured using the older architecture is scheduled to end by June 2024.
*
*/
public S3DataSourceConfiguration getS3Configuration() {
return this.s3Configuration;
}
/**
*
* Provides the configuration information to connect to an Amazon S3 bucket as your data source.
*
*
*
* Amazon Kendra now supports an upgraded Amazon S3 connector.
*
*
* You must now use the TemplateConfiguration object instead of the S3DataSourceConfiguration
object to configure your
* connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as configured.
* However, you won't be able to edit or update them. If you want to edit or update your connector configuration,
* you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using
* the older architecture is scheduled to end by June 2024.
*
*
*
* @param s3Configuration
* Provides the configuration information to connect to an Amazon S3 bucket as your data source.
*
* Amazon Kendra now supports an upgraded Amazon S3 connector.
*
*
* You must now use the TemplateConfiguration object instead of the S3DataSourceConfiguration
object to
* configure your connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as
* configured. However, you won't be able to edit or update them. If you want to edit or update your
* connector configuration, you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors
* configured using the older architecture is scheduled to end by June 2024.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataSourceConfiguration withS3Configuration(S3DataSourceConfiguration s3Configuration) {
setS3Configuration(s3Configuration);
return this;
}
/**
*
* Provides the configuration information to connect to Microsoft SharePoint as your data source.
*
*
* @param sharePointConfiguration
* Provides the configuration information to connect to Microsoft SharePoint as your data source.
*/
public void setSharePointConfiguration(SharePointConfiguration sharePointConfiguration) {
this.sharePointConfiguration = sharePointConfiguration;
}
/**
*
* Provides the configuration information to connect to Microsoft SharePoint as your data source.
*
*
* @return Provides the configuration information to connect to Microsoft SharePoint as your data source.
*/
public SharePointConfiguration getSharePointConfiguration() {
return this.sharePointConfiguration;
}
/**
*
* Provides the configuration information to connect to Microsoft SharePoint as your data source.
*
*
* @param sharePointConfiguration
* Provides the configuration information to connect to Microsoft SharePoint as your data source.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataSourceConfiguration withSharePointConfiguration(SharePointConfiguration sharePointConfiguration) {
setSharePointConfiguration(sharePointConfiguration);
return this;
}
/**
*
* Provides the configuration information to connect to a database as your data source.
*
*
* @param databaseConfiguration
* Provides the configuration information to connect to a database as your data source.
*/
public void setDatabaseConfiguration(DatabaseConfiguration databaseConfiguration) {
this.databaseConfiguration = databaseConfiguration;
}
/**
*
* Provides the configuration information to connect to a database as your data source.
*
*
* @return Provides the configuration information to connect to a database as your data source.
*/
public DatabaseConfiguration getDatabaseConfiguration() {
return this.databaseConfiguration;
}
/**
*
* Provides the configuration information to connect to a database as your data source.
*
*
* @param databaseConfiguration
* Provides the configuration information to connect to a database as your data source.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataSourceConfiguration withDatabaseConfiguration(DatabaseConfiguration databaseConfiguration) {
setDatabaseConfiguration(databaseConfiguration);
return this;
}
/**
*
* Provides the configuration information to connect to Salesforce as your data source.
*
*
* @param salesforceConfiguration
* Provides the configuration information to connect to Salesforce as your data source.
*/
public void setSalesforceConfiguration(SalesforceConfiguration salesforceConfiguration) {
this.salesforceConfiguration = salesforceConfiguration;
}
/**
*
* Provides the configuration information to connect to Salesforce as your data source.
*
*
* @return Provides the configuration information to connect to Salesforce as your data source.
*/
public SalesforceConfiguration getSalesforceConfiguration() {
return this.salesforceConfiguration;
}
/**
*
* Provides the configuration information to connect to Salesforce as your data source.
*
*
* @param salesforceConfiguration
* Provides the configuration information to connect to Salesforce as your data source.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataSourceConfiguration withSalesforceConfiguration(SalesforceConfiguration salesforceConfiguration) {
setSalesforceConfiguration(salesforceConfiguration);
return this;
}
/**
*
* Provides the configuration information to connect to Microsoft OneDrive as your data source.
*
*
* @param oneDriveConfiguration
* Provides the configuration information to connect to Microsoft OneDrive as your data source.
*/
public void setOneDriveConfiguration(OneDriveConfiguration oneDriveConfiguration) {
this.oneDriveConfiguration = oneDriveConfiguration;
}
/**
*
* Provides the configuration information to connect to Microsoft OneDrive as your data source.
*
*
* @return Provides the configuration information to connect to Microsoft OneDrive as your data source.
*/
public OneDriveConfiguration getOneDriveConfiguration() {
return this.oneDriveConfiguration;
}
/**
*
* Provides the configuration information to connect to Microsoft OneDrive as your data source.
*
*
* @param oneDriveConfiguration
* Provides the configuration information to connect to Microsoft OneDrive as your data source.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataSourceConfiguration withOneDriveConfiguration(OneDriveConfiguration oneDriveConfiguration) {
setOneDriveConfiguration(oneDriveConfiguration);
return this;
}
/**
*
* Provides the configuration information to connect to ServiceNow as your data source.
*
*
* @param serviceNowConfiguration
* Provides the configuration information to connect to ServiceNow as your data source.
*/
public void setServiceNowConfiguration(ServiceNowConfiguration serviceNowConfiguration) {
this.serviceNowConfiguration = serviceNowConfiguration;
}
/**
*
* Provides the configuration information to connect to ServiceNow as your data source.
*
*
* @return Provides the configuration information to connect to ServiceNow as your data source.
*/
public ServiceNowConfiguration getServiceNowConfiguration() {
return this.serviceNowConfiguration;
}
/**
*
* Provides the configuration information to connect to ServiceNow as your data source.
*
*
* @param serviceNowConfiguration
* Provides the configuration information to connect to ServiceNow as your data source.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataSourceConfiguration withServiceNowConfiguration(ServiceNowConfiguration serviceNowConfiguration) {
setServiceNowConfiguration(serviceNowConfiguration);
return this;
}
/**
*
* Provides the configuration information to connect to Confluence as your data source.
*
*
* @param confluenceConfiguration
* Provides the configuration information to connect to Confluence as your data source.
*/
public void setConfluenceConfiguration(ConfluenceConfiguration confluenceConfiguration) {
this.confluenceConfiguration = confluenceConfiguration;
}
/**
*
* Provides the configuration information to connect to Confluence as your data source.
*
*
* @return Provides the configuration information to connect to Confluence as your data source.
*/
public ConfluenceConfiguration getConfluenceConfiguration() {
return this.confluenceConfiguration;
}
/**
*
* Provides the configuration information to connect to Confluence as your data source.
*
*
* @param confluenceConfiguration
* Provides the configuration information to connect to Confluence as your data source.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataSourceConfiguration withConfluenceConfiguration(ConfluenceConfiguration confluenceConfiguration) {
setConfluenceConfiguration(confluenceConfiguration);
return this;
}
/**
*
* Provides the configuration information to connect to Google Drive as your data source.
*
*
* @param googleDriveConfiguration
* Provides the configuration information to connect to Google Drive as your data source.
*/
public void setGoogleDriveConfiguration(GoogleDriveConfiguration googleDriveConfiguration) {
this.googleDriveConfiguration = googleDriveConfiguration;
}
/**
*
* Provides the configuration information to connect to Google Drive as your data source.
*
*
* @return Provides the configuration information to connect to Google Drive as your data source.
*/
public GoogleDriveConfiguration getGoogleDriveConfiguration() {
return this.googleDriveConfiguration;
}
/**
*
* Provides the configuration information to connect to Google Drive as your data source.
*
*
* @param googleDriveConfiguration
* Provides the configuration information to connect to Google Drive as your data source.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataSourceConfiguration withGoogleDriveConfiguration(GoogleDriveConfiguration googleDriveConfiguration) {
setGoogleDriveConfiguration(googleDriveConfiguration);
return this;
}
/**
* @param webCrawlerConfiguration
*/
public void setWebCrawlerConfiguration(WebCrawlerConfiguration webCrawlerConfiguration) {
this.webCrawlerConfiguration = webCrawlerConfiguration;
}
/**
* @return
*/
public WebCrawlerConfiguration getWebCrawlerConfiguration() {
return this.webCrawlerConfiguration;
}
/**
* @param webCrawlerConfiguration
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataSourceConfiguration withWebCrawlerConfiguration(WebCrawlerConfiguration webCrawlerConfiguration) {
setWebCrawlerConfiguration(webCrawlerConfiguration);
return this;
}
/**
*
* Provides the configuration information to connect to Amazon WorkDocs as your data source.
*
*
* @param workDocsConfiguration
* Provides the configuration information to connect to Amazon WorkDocs as your data source.
*/
public void setWorkDocsConfiguration(WorkDocsConfiguration workDocsConfiguration) {
this.workDocsConfiguration = workDocsConfiguration;
}
/**
*
* Provides the configuration information to connect to Amazon WorkDocs as your data source.
*
*
* @return Provides the configuration information to connect to Amazon WorkDocs as your data source.
*/
public WorkDocsConfiguration getWorkDocsConfiguration() {
return this.workDocsConfiguration;
}
/**
*
* Provides the configuration information to connect to Amazon WorkDocs as your data source.
*
*
* @param workDocsConfiguration
* Provides the configuration information to connect to Amazon WorkDocs as your data source.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataSourceConfiguration withWorkDocsConfiguration(WorkDocsConfiguration workDocsConfiguration) {
setWorkDocsConfiguration(workDocsConfiguration);
return this;
}
/**
*
* Provides the configuration information to connect to Amazon FSx as your data source.
*
*
*
* Amazon Kendra now supports an upgraded Amazon FSx Windows connector.
*
*
* You must now use the TemplateConfiguration object instead of the FsxConfiguration
object to configure your
* connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as configured.
* However, you won't be able to edit or update them. If you want to edit or update your connector configuration,
* you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using
* the older architecture is scheduled to end by June 2024.
*
*
*
* @param fsxConfiguration
* Provides the configuration information to connect to Amazon FSx as your data source.
*
* Amazon Kendra now supports an upgraded Amazon FSx Windows connector.
*
*
* You must now use the TemplateConfiguration object instead of the FsxConfiguration
object to configure your
* connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as
* configured. However, you won't be able to edit or update them. If you want to edit or update your
* connector configuration, you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors
* configured using the older architecture is scheduled to end by June 2024.
*
*/
public void setFsxConfiguration(FsxConfiguration fsxConfiguration) {
this.fsxConfiguration = fsxConfiguration;
}
/**
*
* Provides the configuration information to connect to Amazon FSx as your data source.
*
*
*
* Amazon Kendra now supports an upgraded Amazon FSx Windows connector.
*
*
* You must now use the TemplateConfiguration object instead of the FsxConfiguration
object to configure your
* connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as configured.
* However, you won't be able to edit or update them. If you want to edit or update your connector configuration,
* you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using
* the older architecture is scheduled to end by June 2024.
*
*
*
* @return Provides the configuration information to connect to Amazon FSx as your data source.
*
* Amazon Kendra now supports an upgraded Amazon FSx Windows connector.
*
*
* You must now use the TemplateConfiguration object instead of the FsxConfiguration
object to configure your
* connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as
* configured. However, you won't be able to edit or update them. If you want to edit or update your
* connector configuration, you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors
* configured using the older architecture is scheduled to end by June 2024.
*
*/
public FsxConfiguration getFsxConfiguration() {
return this.fsxConfiguration;
}
/**
*
* Provides the configuration information to connect to Amazon FSx as your data source.
*
*
*
* Amazon Kendra now supports an upgraded Amazon FSx Windows connector.
*
*
* You must now use the TemplateConfiguration object instead of the FsxConfiguration
object to configure your
* connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as configured.
* However, you won't be able to edit or update them. If you want to edit or update your connector configuration,
* you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using
* the older architecture is scheduled to end by June 2024.
*
*
*
* @param fsxConfiguration
* Provides the configuration information to connect to Amazon FSx as your data source.
*
* Amazon Kendra now supports an upgraded Amazon FSx Windows connector.
*
*
* You must now use the TemplateConfiguration object instead of the FsxConfiguration
object to configure your
* connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as
* configured. However, you won't be able to edit or update them. If you want to edit or update your
* connector configuration, you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors
* configured using the older architecture is scheduled to end by June 2024.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataSourceConfiguration withFsxConfiguration(FsxConfiguration fsxConfiguration) {
setFsxConfiguration(fsxConfiguration);
return this;
}
/**
*
* Provides the configuration information to connect to Slack as your data source.
*
*
*
* Amazon Kendra now supports an upgraded Slack connector.
*
*
* You must now use the TemplateConfiguration object instead of the SlackConfiguration
object to configure your
* connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as configured.
* However, you won't be able to edit or update them. If you want to edit or update your connector configuration,
* you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using
* the older architecture is scheduled to end by June 2024.
*
*
*
* @param slackConfiguration
* Provides the configuration information to connect to Slack as your data source.
*
* Amazon Kendra now supports an upgraded Slack connector.
*
*
* You must now use the TemplateConfiguration object instead of the SlackConfiguration
object to configure your
* connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as
* configured. However, you won't be able to edit or update them. If you want to edit or update your
* connector configuration, you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors
* configured using the older architecture is scheduled to end by June 2024.
*
*/
public void setSlackConfiguration(SlackConfiguration slackConfiguration) {
this.slackConfiguration = slackConfiguration;
}
/**
*
* Provides the configuration information to connect to Slack as your data source.
*
*
*
* Amazon Kendra now supports an upgraded Slack connector.
*
*
* You must now use the TemplateConfiguration object instead of the SlackConfiguration
object to configure your
* connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as configured.
* However, you won't be able to edit or update them. If you want to edit or update your connector configuration,
* you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using
* the older architecture is scheduled to end by June 2024.
*
*
*
* @return Provides the configuration information to connect to Slack as your data source.
*
* Amazon Kendra now supports an upgraded Slack connector.
*
*
* You must now use the TemplateConfiguration object instead of the SlackConfiguration
object to configure your
* connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as
* configured. However, you won't be able to edit or update them. If you want to edit or update your
* connector configuration, you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors
* configured using the older architecture is scheduled to end by June 2024.
*
*/
public SlackConfiguration getSlackConfiguration() {
return this.slackConfiguration;
}
/**
*
* Provides the configuration information to connect to Slack as your data source.
*
*
*
* Amazon Kendra now supports an upgraded Slack connector.
*
*
* You must now use the TemplateConfiguration object instead of the SlackConfiguration
object to configure your
* connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as configured.
* However, you won't be able to edit or update them. If you want to edit or update your connector configuration,
* you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using
* the older architecture is scheduled to end by June 2024.
*
*
*
* @param slackConfiguration
* Provides the configuration information to connect to Slack as your data source.
*
* Amazon Kendra now supports an upgraded Slack connector.
*
*
* You must now use the TemplateConfiguration object instead of the SlackConfiguration
object to configure your
* connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as
* configured. However, you won't be able to edit or update them. If you want to edit or update your
* connector configuration, you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors
* configured using the older architecture is scheduled to end by June 2024.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataSourceConfiguration withSlackConfiguration(SlackConfiguration slackConfiguration) {
setSlackConfiguration(slackConfiguration);
return this;
}
/**
*
* Provides the configuration information to connect to Box as your data source.
*
*
* @param boxConfiguration
* Provides the configuration information to connect to Box as your data source.
*/
public void setBoxConfiguration(BoxConfiguration boxConfiguration) {
this.boxConfiguration = boxConfiguration;
}
/**
*
* Provides the configuration information to connect to Box as your data source.
*
*
* @return Provides the configuration information to connect to Box as your data source.
*/
public BoxConfiguration getBoxConfiguration() {
return this.boxConfiguration;
}
/**
*
* Provides the configuration information to connect to Box as your data source.
*
*
* @param boxConfiguration
* Provides the configuration information to connect to Box as your data source.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataSourceConfiguration withBoxConfiguration(BoxConfiguration boxConfiguration) {
setBoxConfiguration(boxConfiguration);
return this;
}
/**
*
* Provides the configuration information to connect to Quip as your data source.
*
*
* @param quipConfiguration
* Provides the configuration information to connect to Quip as your data source.
*/
public void setQuipConfiguration(QuipConfiguration quipConfiguration) {
this.quipConfiguration = quipConfiguration;
}
/**
*
* Provides the configuration information to connect to Quip as your data source.
*
*
* @return Provides the configuration information to connect to Quip as your data source.
*/
public QuipConfiguration getQuipConfiguration() {
return this.quipConfiguration;
}
/**
*
* Provides the configuration information to connect to Quip as your data source.
*
*
* @param quipConfiguration
* Provides the configuration information to connect to Quip as your data source.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataSourceConfiguration withQuipConfiguration(QuipConfiguration quipConfiguration) {
setQuipConfiguration(quipConfiguration);
return this;
}
/**
*
* Provides the configuration information to connect to Jira as your data source.
*
*
* @param jiraConfiguration
* Provides the configuration information to connect to Jira as your data source.
*/
public void setJiraConfiguration(JiraConfiguration jiraConfiguration) {
this.jiraConfiguration = jiraConfiguration;
}
/**
*
* Provides the configuration information to connect to Jira as your data source.
*
*
* @return Provides the configuration information to connect to Jira as your data source.
*/
public JiraConfiguration getJiraConfiguration() {
return this.jiraConfiguration;
}
/**
*
* Provides the configuration information to connect to Jira as your data source.
*
*
* @param jiraConfiguration
* Provides the configuration information to connect to Jira as your data source.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataSourceConfiguration withJiraConfiguration(JiraConfiguration jiraConfiguration) {
setJiraConfiguration(jiraConfiguration);
return this;
}
/**
*
* Provides the configuration information to connect to GitHub as your data source.
*
*
*
* Amazon Kendra now supports an upgraded GitHub connector.
*
*
* You must now use the TemplateConfiguration object instead of the GitHubConfiguration
object to configure your
* connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as configured.
* However, you won’t be able to edit or update them. If you want to edit or update your connector configuration,
* you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using
* the older architecture is scheduled to end by June 2024.
*
*
*
* @param gitHubConfiguration
* Provides the configuration information to connect to GitHub as your data source.
*
* Amazon Kendra now supports an upgraded GitHub connector.
*
*
* You must now use the TemplateConfiguration object instead of the GitHubConfiguration
object to configure your
* connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as
* configured. However, you won’t be able to edit or update them. If you want to edit or update your
* connector configuration, you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors
* configured using the older architecture is scheduled to end by June 2024.
*
*/
public void setGitHubConfiguration(GitHubConfiguration gitHubConfiguration) {
this.gitHubConfiguration = gitHubConfiguration;
}
/**
*
* Provides the configuration information to connect to GitHub as your data source.
*
*
*
* Amazon Kendra now supports an upgraded GitHub connector.
*
*
* You must now use the TemplateConfiguration object instead of the GitHubConfiguration
object to configure your
* connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as configured.
* However, you won’t be able to edit or update them. If you want to edit or update your connector configuration,
* you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using
* the older architecture is scheduled to end by June 2024.
*
*
*
* @return Provides the configuration information to connect to GitHub as your data source.
*
* Amazon Kendra now supports an upgraded GitHub connector.
*
*
* You must now use the TemplateConfiguration object instead of the GitHubConfiguration
object to configure
* your connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as
* configured. However, you won’t be able to edit or update them. If you want to edit or update your
* connector configuration, you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors
* configured using the older architecture is scheduled to end by June 2024.
*
*/
public GitHubConfiguration getGitHubConfiguration() {
return this.gitHubConfiguration;
}
/**
*
* Provides the configuration information to connect to GitHub as your data source.
*
*
*
* Amazon Kendra now supports an upgraded GitHub connector.
*
*
* You must now use the TemplateConfiguration object instead of the GitHubConfiguration
object to configure your
* connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as configured.
* However, you won’t be able to edit or update them. If you want to edit or update your connector configuration,
* you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using
* the older architecture is scheduled to end by June 2024.
*
*
*
* @param gitHubConfiguration
* Provides the configuration information to connect to GitHub as your data source.
*
* Amazon Kendra now supports an upgraded GitHub connector.
*
*
* You must now use the TemplateConfiguration object instead of the GitHubConfiguration
object to configure your
* connector.
*
*
* Connectors configured using the older console and API architecture will continue to function as
* configured. However, you won’t be able to edit or update them. If you want to edit or update your
* connector configuration, you must create a new connector.
*
*
* We recommended migrating your connector workflow to the upgraded version. Support for connectors
* configured using the older architecture is scheduled to end by June 2024.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataSourceConfiguration withGitHubConfiguration(GitHubConfiguration gitHubConfiguration) {
setGitHubConfiguration(gitHubConfiguration);
return this;
}
/**
*
* Provides the configuration information to connect to Alfresco as your data source.
*
*
*
* Support for AlfrescoConfiguration
ended May 2023. We recommend migrating to or using the Alfresco
* data source template schema / TemplateConfiguration API.
*
*
*
* @param alfrescoConfiguration
* Provides the configuration information to connect to Alfresco as your data source.
*
* Support for AlfrescoConfiguration
ended May 2023. We recommend migrating to or using the
* Alfresco data source template schema / TemplateConfiguration API.
*
*/
@Deprecated
public void setAlfrescoConfiguration(AlfrescoConfiguration alfrescoConfiguration) {
this.alfrescoConfiguration = alfrescoConfiguration;
}
/**
*
* Provides the configuration information to connect to Alfresco as your data source.
*
*
*
* Support for AlfrescoConfiguration
ended May 2023. We recommend migrating to or using the Alfresco
* data source template schema / TemplateConfiguration API.
*
*
*
* @return Provides the configuration information to connect to Alfresco as your data source.
*
* Support for AlfrescoConfiguration
ended May 2023. We recommend migrating to or using the
* Alfresco data source template schema / TemplateConfiguration API.
*
*/
@Deprecated
public AlfrescoConfiguration getAlfrescoConfiguration() {
return this.alfrescoConfiguration;
}
/**
*
* Provides the configuration information to connect to Alfresco as your data source.
*
*
*
* Support for AlfrescoConfiguration
ended May 2023. We recommend migrating to or using the Alfresco
* data source template schema / TemplateConfiguration API.
*
*
*
* @param alfrescoConfiguration
* Provides the configuration information to connect to Alfresco as your data source.
*
* Support for AlfrescoConfiguration
ended May 2023. We recommend migrating to or using the
* Alfresco data source template schema / TemplateConfiguration API.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
@Deprecated
public DataSourceConfiguration withAlfrescoConfiguration(AlfrescoConfiguration alfrescoConfiguration) {
setAlfrescoConfiguration(alfrescoConfiguration);
return this;
}
/**
*
* Provides a template for the configuration information to connect to your data source.
*
*
* @param templateConfiguration
* Provides a template for the configuration information to connect to your data source.
*/
public void setTemplateConfiguration(TemplateConfiguration templateConfiguration) {
this.templateConfiguration = templateConfiguration;
}
/**
*
* Provides a template for the configuration information to connect to your data source.
*
*
* @return Provides a template for the configuration information to connect to your data source.
*/
public TemplateConfiguration getTemplateConfiguration() {
return this.templateConfiguration;
}
/**
*
* Provides a template for the configuration information to connect to your data source.
*
*
* @param templateConfiguration
* Provides a template for the configuration information to connect to your data source.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataSourceConfiguration withTemplateConfiguration(TemplateConfiguration templateConfiguration) {
setTemplateConfiguration(templateConfiguration);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getS3Configuration() != null)
sb.append("S3Configuration: ").append(getS3Configuration()).append(",");
if (getSharePointConfiguration() != null)
sb.append("SharePointConfiguration: ").append(getSharePointConfiguration()).append(",");
if (getDatabaseConfiguration() != null)
sb.append("DatabaseConfiguration: ").append(getDatabaseConfiguration()).append(",");
if (getSalesforceConfiguration() != null)
sb.append("SalesforceConfiguration: ").append(getSalesforceConfiguration()).append(",");
if (getOneDriveConfiguration() != null)
sb.append("OneDriveConfiguration: ").append(getOneDriveConfiguration()).append(",");
if (getServiceNowConfiguration() != null)
sb.append("ServiceNowConfiguration: ").append(getServiceNowConfiguration()).append(",");
if (getConfluenceConfiguration() != null)
sb.append("ConfluenceConfiguration: ").append(getConfluenceConfiguration()).append(",");
if (getGoogleDriveConfiguration() != null)
sb.append("GoogleDriveConfiguration: ").append(getGoogleDriveConfiguration()).append(",");
if (getWebCrawlerConfiguration() != null)
sb.append("WebCrawlerConfiguration: ").append(getWebCrawlerConfiguration()).append(",");
if (getWorkDocsConfiguration() != null)
sb.append("WorkDocsConfiguration: ").append(getWorkDocsConfiguration()).append(",");
if (getFsxConfiguration() != null)
sb.append("FsxConfiguration: ").append(getFsxConfiguration()).append(",");
if (getSlackConfiguration() != null)
sb.append("SlackConfiguration: ").append(getSlackConfiguration()).append(",");
if (getBoxConfiguration() != null)
sb.append("BoxConfiguration: ").append(getBoxConfiguration()).append(",");
if (getQuipConfiguration() != null)
sb.append("QuipConfiguration: ").append(getQuipConfiguration()).append(",");
if (getJiraConfiguration() != null)
sb.append("JiraConfiguration: ").append(getJiraConfiguration()).append(",");
if (getGitHubConfiguration() != null)
sb.append("GitHubConfiguration: ").append(getGitHubConfiguration()).append(",");
if (getAlfrescoConfiguration() != null)
sb.append("AlfrescoConfiguration: ").append(getAlfrescoConfiguration()).append(",");
if (getTemplateConfiguration() != null)
sb.append("TemplateConfiguration: ").append(getTemplateConfiguration());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DataSourceConfiguration == false)
return false;
DataSourceConfiguration other = (DataSourceConfiguration) obj;
if (other.getS3Configuration() == null ^ this.getS3Configuration() == null)
return false;
if (other.getS3Configuration() != null && other.getS3Configuration().equals(this.getS3Configuration()) == false)
return false;
if (other.getSharePointConfiguration() == null ^ this.getSharePointConfiguration() == null)
return false;
if (other.getSharePointConfiguration() != null && other.getSharePointConfiguration().equals(this.getSharePointConfiguration()) == false)
return false;
if (other.getDatabaseConfiguration() == null ^ this.getDatabaseConfiguration() == null)
return false;
if (other.getDatabaseConfiguration() != null && other.getDatabaseConfiguration().equals(this.getDatabaseConfiguration()) == false)
return false;
if (other.getSalesforceConfiguration() == null ^ this.getSalesforceConfiguration() == null)
return false;
if (other.getSalesforceConfiguration() != null && other.getSalesforceConfiguration().equals(this.getSalesforceConfiguration()) == false)
return false;
if (other.getOneDriveConfiguration() == null ^ this.getOneDriveConfiguration() == null)
return false;
if (other.getOneDriveConfiguration() != null && other.getOneDriveConfiguration().equals(this.getOneDriveConfiguration()) == false)
return false;
if (other.getServiceNowConfiguration() == null ^ this.getServiceNowConfiguration() == null)
return false;
if (other.getServiceNowConfiguration() != null && other.getServiceNowConfiguration().equals(this.getServiceNowConfiguration()) == false)
return false;
if (other.getConfluenceConfiguration() == null ^ this.getConfluenceConfiguration() == null)
return false;
if (other.getConfluenceConfiguration() != null && other.getConfluenceConfiguration().equals(this.getConfluenceConfiguration()) == false)
return false;
if (other.getGoogleDriveConfiguration() == null ^ this.getGoogleDriveConfiguration() == null)
return false;
if (other.getGoogleDriveConfiguration() != null && other.getGoogleDriveConfiguration().equals(this.getGoogleDriveConfiguration()) == false)
return false;
if (other.getWebCrawlerConfiguration() == null ^ this.getWebCrawlerConfiguration() == null)
return false;
if (other.getWebCrawlerConfiguration() != null && other.getWebCrawlerConfiguration().equals(this.getWebCrawlerConfiguration()) == false)
return false;
if (other.getWorkDocsConfiguration() == null ^ this.getWorkDocsConfiguration() == null)
return false;
if (other.getWorkDocsConfiguration() != null && other.getWorkDocsConfiguration().equals(this.getWorkDocsConfiguration()) == false)
return false;
if (other.getFsxConfiguration() == null ^ this.getFsxConfiguration() == null)
return false;
if (other.getFsxConfiguration() != null && other.getFsxConfiguration().equals(this.getFsxConfiguration()) == false)
return false;
if (other.getSlackConfiguration() == null ^ this.getSlackConfiguration() == null)
return false;
if (other.getSlackConfiguration() != null && other.getSlackConfiguration().equals(this.getSlackConfiguration()) == false)
return false;
if (other.getBoxConfiguration() == null ^ this.getBoxConfiguration() == null)
return false;
if (other.getBoxConfiguration() != null && other.getBoxConfiguration().equals(this.getBoxConfiguration()) == false)
return false;
if (other.getQuipConfiguration() == null ^ this.getQuipConfiguration() == null)
return false;
if (other.getQuipConfiguration() != null && other.getQuipConfiguration().equals(this.getQuipConfiguration()) == false)
return false;
if (other.getJiraConfiguration() == null ^ this.getJiraConfiguration() == null)
return false;
if (other.getJiraConfiguration() != null && other.getJiraConfiguration().equals(this.getJiraConfiguration()) == false)
return false;
if (other.getGitHubConfiguration() == null ^ this.getGitHubConfiguration() == null)
return false;
if (other.getGitHubConfiguration() != null && other.getGitHubConfiguration().equals(this.getGitHubConfiguration()) == false)
return false;
if (other.getAlfrescoConfiguration() == null ^ this.getAlfrescoConfiguration() == null)
return false;
if (other.getAlfrescoConfiguration() != null && other.getAlfrescoConfiguration().equals(this.getAlfrescoConfiguration()) == false)
return false;
if (other.getTemplateConfiguration() == null ^ this.getTemplateConfiguration() == null)
return false;
if (other.getTemplateConfiguration() != null && other.getTemplateConfiguration().equals(this.getTemplateConfiguration()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getS3Configuration() == null) ? 0 : getS3Configuration().hashCode());
hashCode = prime * hashCode + ((getSharePointConfiguration() == null) ? 0 : getSharePointConfiguration().hashCode());
hashCode = prime * hashCode + ((getDatabaseConfiguration() == null) ? 0 : getDatabaseConfiguration().hashCode());
hashCode = prime * hashCode + ((getSalesforceConfiguration() == null) ? 0 : getSalesforceConfiguration().hashCode());
hashCode = prime * hashCode + ((getOneDriveConfiguration() == null) ? 0 : getOneDriveConfiguration().hashCode());
hashCode = prime * hashCode + ((getServiceNowConfiguration() == null) ? 0 : getServiceNowConfiguration().hashCode());
hashCode = prime * hashCode + ((getConfluenceConfiguration() == null) ? 0 : getConfluenceConfiguration().hashCode());
hashCode = prime * hashCode + ((getGoogleDriveConfiguration() == null) ? 0 : getGoogleDriveConfiguration().hashCode());
hashCode = prime * hashCode + ((getWebCrawlerConfiguration() == null) ? 0 : getWebCrawlerConfiguration().hashCode());
hashCode = prime * hashCode + ((getWorkDocsConfiguration() == null) ? 0 : getWorkDocsConfiguration().hashCode());
hashCode = prime * hashCode + ((getFsxConfiguration() == null) ? 0 : getFsxConfiguration().hashCode());
hashCode = prime * hashCode + ((getSlackConfiguration() == null) ? 0 : getSlackConfiguration().hashCode());
hashCode = prime * hashCode + ((getBoxConfiguration() == null) ? 0 : getBoxConfiguration().hashCode());
hashCode = prime * hashCode + ((getQuipConfiguration() == null) ? 0 : getQuipConfiguration().hashCode());
hashCode = prime * hashCode + ((getJiraConfiguration() == null) ? 0 : getJiraConfiguration().hashCode());
hashCode = prime * hashCode + ((getGitHubConfiguration() == null) ? 0 : getGitHubConfiguration().hashCode());
hashCode = prime * hashCode + ((getAlfrescoConfiguration() == null) ? 0 : getAlfrescoConfiguration().hashCode());
hashCode = prime * hashCode + ((getTemplateConfiguration() == null) ? 0 : getTemplateConfiguration().hashCode());
return hashCode;
}
@Override
public DataSourceConfiguration clone() {
try {
return (DataSourceConfiguration) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.kendra.model.transform.DataSourceConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}