Interface CreateDataSourceRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateDataSourceRequest.Builder,
,CreateDataSourceRequest> QBusinessRequest.Builder
,SdkBuilder<CreateDataSourceRequest.Builder,
,CreateDataSourceRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateDataSourceRequest
-
Method Summary
Modifier and TypeMethodDescriptionapplicationId
(String applicationId) The identifier of the Amazon Q Business application the data source will be attached to.clientToken
(String clientToken) A token you provide to identify a request to create a data source connector.configuration
(Document configuration) Configuration information to connect your data source repository to Amazon Q Business.description
(String description) A description for the data source connector.displayName
(String displayName) A name for the data source connector.default CreateDataSourceRequest.Builder
documentEnrichmentConfiguration
(Consumer<DocumentEnrichmentConfiguration.Builder> documentEnrichmentConfiguration) Sets the value of the DocumentEnrichmentConfiguration property for this object.documentEnrichmentConfiguration
(DocumentEnrichmentConfiguration documentEnrichmentConfiguration) Sets the value of the DocumentEnrichmentConfiguration property for this object.The identifier of the index that you want to use with the data source connector.default CreateDataSourceRequest.Builder
mediaExtractionConfiguration
(Consumer<MediaExtractionConfiguration.Builder> mediaExtractionConfiguration) The configuration for extracting information from media in documents during ingestion.mediaExtractionConfiguration
(MediaExtractionConfiguration mediaExtractionConfiguration) The configuration for extracting information from media in documents during ingestion.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources.syncSchedule
(String syncSchedule) Sets the frequency for Amazon Q Business to check the documents in your data source repository and update your index.tags
(Collection<Tag> tags) A list of key-value pairs that identify or categorize the data source connector.tags
(Consumer<Tag.Builder>... tags) A list of key-value pairs that identify or categorize the data source connector.A list of key-value pairs that identify or categorize the data source connector.default CreateDataSourceRequest.Builder
vpcConfiguration
(Consumer<DataSourceVpcConfiguration.Builder> vpcConfiguration) Configuration information for an Amazon VPC (Virtual Private Cloud) to connect to your data source.vpcConfiguration
(DataSourceVpcConfiguration vpcConfiguration) Configuration information for an Amazon VPC (Virtual Private Cloud) to connect to your data source.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.qbusiness.model.QBusinessRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
applicationId
The identifier of the Amazon Q Business application the data source will be attached to.
- Parameters:
applicationId
- The identifier of the Amazon Q Business application the data source will be attached to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
indexId
The identifier of the index that you want to use with the data source connector.
- Parameters:
indexId
- The identifier of the index that you want to use with the data source connector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
displayName
A name for the data source connector.
- Parameters:
displayName
- A name for the data source connector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
Configuration information to connect your data source repository to Amazon Q Business. Use this parameter to provide a JSON schema with configuration information specific to your data source connector.
Each data source has a JSON schema provided by Amazon Q Business that you must use. For example, the Amazon S3 and Web Crawler connectors require the following JSON schemas:
You can find configuration templates for your specific data source using the following steps:
-
Navigate to the Supported connectors page in the Amazon Q Business User Guide, and select the data source of your choice.
-
Then, from your specific data source connector page, select Using the API. You will find the JSON schema for your data source, including parameter descriptions, in this section.
- Parameters:
configuration
- Configuration information to connect your data source repository to Amazon Q Business. Use this parameter to provide a JSON schema with configuration information specific to your data source connector.Each data source has a JSON schema provided by Amazon Q Business that you must use. For example, the Amazon S3 and Web Crawler connectors require the following JSON schemas:
You can find configuration templates for your specific data source using the following steps:
-
Navigate to the Supported connectors page in the Amazon Q Business User Guide, and select the data source of your choice.
-
Then, from your specific data source connector page, select Using the API. You will find the JSON schema for your data source, including parameter descriptions, in this section.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
vpcConfiguration
Configuration information for an Amazon VPC (Virtual Private Cloud) to connect to your data source. For more information, see Using Amazon VPC with Amazon Q Business connectors.
- Parameters:
vpcConfiguration
- Configuration information for an Amazon VPC (Virtual Private Cloud) to connect to your data source. For more information, see Using Amazon VPC with Amazon Q Business connectors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfiguration
default CreateDataSourceRequest.Builder vpcConfiguration(Consumer<DataSourceVpcConfiguration.Builder> vpcConfiguration) Configuration information for an Amazon VPC (Virtual Private Cloud) to connect to your data source. For more information, see Using Amazon VPC with Amazon Q Business connectors.
This is a convenience method that creates an instance of theDataSourceVpcConfiguration.Builder
avoiding the need to create one manually viaDataSourceVpcConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovpcConfiguration(DataSourceVpcConfiguration)
.- Parameters:
vpcConfiguration
- a consumer that will call methods onDataSourceVpcConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
A description for the data source connector.
- Parameters:
description
- A description for the data source connector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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: _ . : / = + - @.
- Parameters:
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: _ . : / = + - @.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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: _ . : / = + - @.
- Parameters:
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: _ . : / = + - @.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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: _ . : / = + - @.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
syncSchedule
Sets the frequency for Amazon Q Business to check the documents in your data source repository and update your index. If you don't set a schedule, Amazon Q Business won't periodically 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 theSchedule
parameter when theType
parameter is set toCUSTOM
. If you do, you receive aValidationException
exception.- Parameters:
syncSchedule
- Sets the frequency for Amazon Q Business to check the documents in your data source repository and update your index. If you don't set a schedule, Amazon Q Business won't periodically 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 theSchedule
parameter when theType
parameter is set toCUSTOM
. If you do, you receive aValidationException
exception.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources.
- Parameters:
roleArn
- The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
A token you provide to identify a 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.- Parameters:
clientToken
- A token you provide to identify a request to create a data source connector. Multiple calls to theCreateDataSource
API with the same client token will create only one data source connector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentEnrichmentConfiguration
CreateDataSourceRequest.Builder documentEnrichmentConfiguration(DocumentEnrichmentConfiguration documentEnrichmentConfiguration) Sets the value of the DocumentEnrichmentConfiguration property for this object.- Parameters:
documentEnrichmentConfiguration
- The new value for the DocumentEnrichmentConfiguration property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentEnrichmentConfiguration
default CreateDataSourceRequest.Builder documentEnrichmentConfiguration(Consumer<DocumentEnrichmentConfiguration.Builder> documentEnrichmentConfiguration) Sets the value of the DocumentEnrichmentConfiguration property for this object. This is a convenience method that creates an instance of theDocumentEnrichmentConfiguration.Builder
avoiding the need to create one manually viaDocumentEnrichmentConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todocumentEnrichmentConfiguration(DocumentEnrichmentConfiguration)
.- Parameters:
documentEnrichmentConfiguration
- a consumer that will call methods onDocumentEnrichmentConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
mediaExtractionConfiguration
CreateDataSourceRequest.Builder mediaExtractionConfiguration(MediaExtractionConfiguration mediaExtractionConfiguration) The configuration for extracting information from media in documents during ingestion.
- Parameters:
mediaExtractionConfiguration
- The configuration for extracting information from media in documents during ingestion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mediaExtractionConfiguration
default CreateDataSourceRequest.Builder mediaExtractionConfiguration(Consumer<MediaExtractionConfiguration.Builder> mediaExtractionConfiguration) The configuration for extracting information from media in documents during ingestion.
This is a convenience method that creates an instance of theMediaExtractionConfiguration.Builder
avoiding the need to create one manually viaMediaExtractionConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomediaExtractionConfiguration(MediaExtractionConfiguration)
.- Parameters:
mediaExtractionConfiguration
- a consumer that will call methods onMediaExtractionConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateDataSourceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateDataSourceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-