@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateDataSourceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateDataSourceRequest() |
Modifier and Type | Method and Description |
---|---|
CreateDataSourceRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientToken()
A token that you provide to identify the request to create a data source connector.
|
DataSourceConfiguration |
getConfiguration()
Configuration information to connect to your data source repository.
|
CustomDocumentEnrichmentConfiguration |
getCustomDocumentEnrichmentConfiguration()
Configuration information for altering document metadata and content during the document ingestion process.
|
String |
getDescription()
A description for the data source connector.
|
String |
getIndexId()
The identifier of the index you want to use with the data source connector.
|
String |
getLanguageCode()
The code for a language.
|
String |
getName()
A name for the data source connector.
|
String |
getRoleArn()
The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources.
|
String |
getSchedule()
Sets the frequency for Amazon Kendra to check the documents in your data source repository and update the index.
|
List<Tag> |
getTags()
A list of key-value pairs that identify or categorize the data source connector.
|
String |
getType()
The type of data source repository.
|
DataSourceVpcConfiguration |
getVpcConfiguration()
Configuration information for an Amazon Virtual Private Cloud to connect to your data source.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
A token that you provide to identify the request to create a data source connector.
|
void |
setConfiguration(DataSourceConfiguration configuration)
Configuration information to connect to your data source repository.
|
void |
setCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfiguration customDocumentEnrichmentConfiguration)
Configuration information for altering document metadata and content during the document ingestion process.
|
void |
setDescription(String description)
A description for the data source connector.
|
void |
setIndexId(String indexId)
The identifier of the index you want to use with the data source connector.
|
void |
setLanguageCode(String languageCode)
The code for a language.
|
void |
setName(String name)
A name for the data source connector.
|
void |
setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources.
|
void |
setSchedule(String schedule)
Sets the frequency for Amazon Kendra to check the documents in your data source repository and update the index.
|
void |
setTags(Collection<Tag> tags)
A list of key-value pairs that identify or categorize the data source connector.
|
void |
setType(String type)
The type of data source repository.
|
void |
setVpcConfiguration(DataSourceVpcConfiguration vpcConfiguration)
Configuration information for an Amazon Virtual Private Cloud to connect to your data source.
|
String |
toString()
Returns a string representation of this object.
|
CreateDataSourceRequest |
withClientToken(String clientToken)
A token that you provide to identify the request to create a data source connector.
|
CreateDataSourceRequest |
withConfiguration(DataSourceConfiguration configuration)
Configuration information to connect to your data source repository.
|
CreateDataSourceRequest |
withCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfiguration customDocumentEnrichmentConfiguration)
Configuration information for altering document metadata and content during the document ingestion process.
|
CreateDataSourceRequest |
withDescription(String description)
A description for the data source connector.
|
CreateDataSourceRequest |
withIndexId(String indexId)
The identifier of the index you want to use with the data source connector.
|
CreateDataSourceRequest |
withLanguageCode(String languageCode)
The code for a language.
|
CreateDataSourceRequest |
withName(String name)
A name for the data source connector.
|
CreateDataSourceRequest |
withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources.
|
CreateDataSourceRequest |
withSchedule(String schedule)
Sets the frequency for Amazon Kendra to check the documents in your data source repository and update the index.
|
CreateDataSourceRequest |
withTags(Collection<Tag> tags)
A list of key-value pairs that identify or categorize the data source connector.
|
CreateDataSourceRequest |
withTags(Tag... tags)
A list of key-value pairs that identify or categorize the data source connector.
|
CreateDataSourceRequest |
withType(DataSourceType type)
The type of data source repository.
|
CreateDataSourceRequest |
withType(String type)
The type of data source repository.
|
CreateDataSourceRequest |
withVpcConfiguration(DataSourceVpcConfiguration vpcConfiguration)
Configuration information for an Amazon Virtual Private Cloud to connect to your data source.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setName(String name)
A name for the data source connector.
name
- A name for the data source connector.public String getName()
A name for the data source connector.
public CreateDataSourceRequest withName(String name)
A name for the data source connector.
name
- A name for the data source connector.public void setIndexId(String indexId)
The identifier of the index you want to use with the data source connector.
indexId
- The identifier of the index you want to use with the data source connector.public String getIndexId()
The identifier of the index you want to use with the data source connector.
public CreateDataSourceRequest withIndexId(String indexId)
The identifier of the index you want to use with the data source connector.
indexId
- The identifier of the index you want to use with the data source connector.public void setType(String type)
The type of data source repository. For example, SHAREPOINT
.
type
- The type of data source repository. For example, SHAREPOINT
.DataSourceType
public String getType()
The type of data source repository. For example, SHAREPOINT
.
SHAREPOINT
.DataSourceType
public CreateDataSourceRequest withType(String type)
The type of data source repository. For example, SHAREPOINT
.
type
- The type of data source repository. For example, SHAREPOINT
.DataSourceType
public CreateDataSourceRequest withType(DataSourceType type)
The type of data source repository. For example, SHAREPOINT
.
type
- The type of data source repository. For example, SHAREPOINT
.DataSourceType
public void setConfiguration(DataSourceConfiguration configuration)
Configuration information to connect to your data source repository.
You can't specify the Configuration
parameter when the Type
parameter is set to
CUSTOM
. If you do, you receive a ValidationException
exception.
The Configuration
parameter is required for all other data sources.
configuration
- Configuration information to connect to your data source repository.
You can't specify the Configuration
parameter when the Type
parameter is set to
CUSTOM
. If you do, you receive a ValidationException
exception.
The Configuration
parameter is required for all other data sources.
public DataSourceConfiguration getConfiguration()
Configuration information to connect to your data source repository.
You can't specify the Configuration
parameter when the Type
parameter is set to
CUSTOM
. If you do, you receive a ValidationException
exception.
The Configuration
parameter is required for all other data sources.
You can't specify the Configuration
parameter when the Type
parameter is set to
CUSTOM
. If you do, you receive a ValidationException
exception.
The Configuration
parameter is required for all other data sources.
public CreateDataSourceRequest withConfiguration(DataSourceConfiguration configuration)
Configuration information to connect to your data source repository.
You can't specify the Configuration
parameter when the Type
parameter is set to
CUSTOM
. If you do, you receive a ValidationException
exception.
The Configuration
parameter is required for all other data sources.
configuration
- Configuration information to connect to your data source repository.
You can't specify the Configuration
parameter when the Type
parameter is set to
CUSTOM
. If you do, you receive a ValidationException
exception.
The Configuration
parameter is required for all other data sources.
public void setVpcConfiguration(DataSourceVpcConfiguration vpcConfiguration)
Configuration information for an Amazon Virtual Private Cloud to connect to your data source. For more information, see Configuring a VPC.
vpcConfiguration
- Configuration information for an Amazon Virtual Private Cloud to connect to your data source. For more
information, see Configuring
a VPC.public DataSourceVpcConfiguration getVpcConfiguration()
Configuration information for an Amazon Virtual Private Cloud to connect to your data source. For more information, see Configuring a VPC.
public CreateDataSourceRequest withVpcConfiguration(DataSourceVpcConfiguration vpcConfiguration)
Configuration information for an Amazon Virtual Private Cloud to connect to your data source. For more information, see Configuring a VPC.
vpcConfiguration
- Configuration information for an Amazon Virtual Private Cloud to connect to your data source. For more
information, see Configuring
a VPC.public void setDescription(String description)
A description for the data source connector.
description
- A description for the data source connector.public String getDescription()
A description for the data source connector.
public CreateDataSourceRequest withDescription(String description)
A description for the data source connector.
description
- A description for the data source connector.public void setSchedule(String schedule)
Sets the frequency for Amazon Kendra to check the documents in your data source repository and update the index.
If you don't set a schedule Amazon Kendra will not periodically update the index. You can call the
StartDataSourceSyncJob
API to update the index.
Specify a cron-
format schedule string or an empty string to indicate that the index is updated on
demand.
You can't specify the Schedule
parameter when the Type
parameter is set to
CUSTOM
. If you do, you receive a ValidationException
exception.
schedule
- Sets the frequency for Amazon Kendra to check the documents in your data source repository and update the
index. If you don't set a schedule Amazon Kendra will not periodically update the index. You can call the
StartDataSourceSyncJob
API to update the index.
Specify a cron-
format schedule string or an empty string to indicate that the index is
updated on demand.
You can't specify the Schedule
parameter when the Type
parameter is set to
CUSTOM
. If you do, you receive a ValidationException
exception.
public String getSchedule()
Sets the frequency for Amazon Kendra to check the documents in your data source repository and update the index.
If you don't set a schedule Amazon Kendra will not periodically update the index. You can call the
StartDataSourceSyncJob
API to update the index.
Specify a cron-
format schedule string or an empty string to indicate that the index is updated on
demand.
You can't specify the Schedule
parameter when the Type
parameter is set to
CUSTOM
. If you do, you receive a ValidationException
exception.
StartDataSourceSyncJob
API to update the index.
Specify a cron-
format schedule string or an empty string to indicate that the index is
updated on demand.
You can't specify the Schedule
parameter when the Type
parameter is set to
CUSTOM
. If you do, you receive a ValidationException
exception.
public CreateDataSourceRequest withSchedule(String schedule)
Sets the frequency for Amazon Kendra to check the documents in your data source repository and update the index.
If you don't set a schedule Amazon Kendra will not periodically update the index. You can call the
StartDataSourceSyncJob
API to update the index.
Specify a cron-
format schedule string or an empty string to indicate that the index is updated on
demand.
You can't specify the Schedule
parameter when the Type
parameter is set to
CUSTOM
. If you do, you receive a ValidationException
exception.
schedule
- Sets the frequency for Amazon Kendra to check the documents in your data source repository and update the
index. If you don't set a schedule Amazon Kendra will not periodically update the index. You can call the
StartDataSourceSyncJob
API to update the index.
Specify a cron-
format schedule string or an empty string to indicate that the index is
updated on demand.
You can't specify the Schedule
parameter when the Type
parameter is set to
CUSTOM
. If you do, you receive a ValidationException
exception.
public void setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources. For more information, see IAM access roles for Amazon Kendra..
You can't specify the RoleArn
parameter when the Type
parameter is set to
CUSTOM
. If you do, you receive a ValidationException
exception.
The RoleArn
parameter is required for all other data sources.
roleArn
- The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required
resources. For more information, see IAM access roles for Amazon
Kendra..
You can't specify the RoleArn
parameter when the Type
parameter is set to
CUSTOM
. If you do, you receive a ValidationException
exception.
The RoleArn
parameter is required for all other data sources.
public String getRoleArn()
The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources. For more information, see IAM access roles for Amazon Kendra..
You can't specify the RoleArn
parameter when the Type
parameter is set to
CUSTOM
. If you do, you receive a ValidationException
exception.
The RoleArn
parameter is required for all other data sources.
You can't specify the RoleArn
parameter when the Type
parameter is set to
CUSTOM
. If you do, you receive a ValidationException
exception.
The RoleArn
parameter is required for all other data sources.
public CreateDataSourceRequest withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources. For more information, see IAM access roles for Amazon Kendra..
You can't specify the RoleArn
parameter when the Type
parameter is set to
CUSTOM
. If you do, you receive a ValidationException
exception.
The RoleArn
parameter is required for all other data sources.
roleArn
- The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required
resources. For more information, see IAM access roles for Amazon
Kendra..
You can't specify the RoleArn
parameter when the Type
parameter is set to
CUSTOM
. If you do, you receive a ValidationException
exception.
The RoleArn
parameter is required for all other data sources.
public List<Tag> getTags()
A list of key-value pairs that identify or categorize the data source connector. You can also use tags to help control access to the data source connector. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.
public void setTags(Collection<Tag> tags)
A list of key-value pairs that identify or categorize the data source connector. You can also use tags to help control access to the data source connector. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.
tags
- A list of key-value pairs that identify or categorize the data source connector. You can also use tags to
help control access to the data source connector. Tag keys and values can consist of Unicode letters,
digits, white space, and any of the following symbols: _ . : / = + - @.public CreateDataSourceRequest withTags(Tag... tags)
A list of key-value pairs that identify or categorize the data source connector. You can also use tags to help control access to the data source connector. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- A list of key-value pairs that identify or categorize the data source connector. You can also use tags to
help control access to the data source connector. Tag keys and values can consist of Unicode letters,
digits, white space, and any of the following symbols: _ . : / = + - @.public CreateDataSourceRequest withTags(Collection<Tag> tags)
A list of key-value pairs that identify or categorize the data source connector. You can also use tags to help control access to the data source connector. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.
tags
- A list of key-value pairs that identify or categorize the data source connector. You can also use tags to
help control access to the data source connector. Tag keys and values can consist of Unicode letters,
digits, white space, and any of the following symbols: _ . : / = + - @.public void setClientToken(String clientToken)
A token that you provide to identify the request to create a data source connector. Multiple calls to the
CreateDataSource
API with the same client token will create only one data source connector.
clientToken
- A token that you provide to identify the request to create a data source connector. Multiple calls to the
CreateDataSource
API with the same client token will create only one data source connector.public String getClientToken()
A token that you provide to identify the request to create a data source connector. Multiple calls to the
CreateDataSource
API with the same client token will create only one data source connector.
CreateDataSource
API with the same client token will create only one data source connector.public CreateDataSourceRequest withClientToken(String clientToken)
A token that you provide to identify the request to create a data source connector. Multiple calls to the
CreateDataSource
API with the same client token will create only one data source connector.
clientToken
- A token that you provide to identify the request to create a data source connector. Multiple calls to the
CreateDataSource
API with the same client token will create only one data source connector.public void setLanguageCode(String languageCode)
The code for a language. This allows you to support a language for all documents when creating the data source connector. English is supported by default. For more information on supported languages, including their codes, see Adding documents in languages other than English.
languageCode
- The code for a language. This allows you to support a language for all documents when creating the data
source connector. English is supported by default. For more information on supported languages, including
their codes, see Adding
documents in languages other than English.public String getLanguageCode()
The code for a language. This allows you to support a language for all documents when creating the data source connector. English is supported by default. For more information on supported languages, including their codes, see Adding documents in languages other than English.
public CreateDataSourceRequest withLanguageCode(String languageCode)
The code for a language. This allows you to support a language for all documents when creating the data source connector. English is supported by default. For more information on supported languages, including their codes, see Adding documents in languages other than English.
languageCode
- The code for a language. This allows you to support a language for all documents when creating the data
source connector. English is supported by default. For more information on supported languages, including
their codes, see Adding
documents in languages other than English.public void setCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfiguration customDocumentEnrichmentConfiguration)
Configuration information for altering document metadata and content during the document ingestion process.
For more information on how to create, modify and delete document metadata, or make other content alterations when you ingest documents into Amazon Kendra, see Customizing document metadata during the ingestion process.
customDocumentEnrichmentConfiguration
- Configuration information for altering document metadata and content during the document ingestion
process.
For more information on how to create, modify and delete document metadata, or make other content alterations when you ingest documents into Amazon Kendra, see Customizing document metadata during the ingestion process.
public CustomDocumentEnrichmentConfiguration getCustomDocumentEnrichmentConfiguration()
Configuration information for altering document metadata and content during the document ingestion process.
For more information on how to create, modify and delete document metadata, or make other content alterations when you ingest documents into Amazon Kendra, see Customizing document metadata during the ingestion process.
For more information on how to create, modify and delete document metadata, or make other content alterations when you ingest documents into Amazon Kendra, see Customizing document metadata during the ingestion process.
public CreateDataSourceRequest withCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfiguration customDocumentEnrichmentConfiguration)
Configuration information for altering document metadata and content during the document ingestion process.
For more information on how to create, modify and delete document metadata, or make other content alterations when you ingest documents into Amazon Kendra, see Customizing document metadata during the ingestion process.
customDocumentEnrichmentConfiguration
- Configuration information for altering document metadata and content during the document ingestion
process.
For more information on how to create, modify and delete document metadata, or make other content alterations when you ingest documents into Amazon Kendra, see Customizing document metadata during the ingestion process.
public String toString()
toString
in class Object
Object.toString()
public CreateDataSourceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()