Interface CreateDataSourceRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateDataSourceRequest.Builder,CreateDataSourceRequest>,QBusinessRequest.Builder,SdkBuilder<CreateDataSourceRequest.Builder,CreateDataSourceRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateDataSourceRequest
public static interface CreateDataSourceRequest.Builder extends QBusinessRequest.Builder, SdkPojo, CopyableBuilder<CreateDataSourceRequest.Builder,CreateDataSourceRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateDataSourceRequest.BuilderapplicationId(String applicationId)The identifier of the Amazon Q application the data source will be attached to.CreateDataSourceRequest.BuilderclientToken(String clientToken)A token you provide to identify a request to create a data source connector.CreateDataSourceRequest.Builderconfiguration(Document configuration)Configuration information to connect to your data source repository.CreateDataSourceRequest.Builderdescription(String description)A description for the data source connector.CreateDataSourceRequest.BuilderdisplayName(String displayName)A name for the data source connector.default CreateDataSourceRequest.BuilderdocumentEnrichmentConfiguration(Consumer<DocumentEnrichmentConfiguration.Builder> documentEnrichmentConfiguration)Sets the value of the DocumentEnrichmentConfiguration property for this object.CreateDataSourceRequest.BuilderdocumentEnrichmentConfiguration(DocumentEnrichmentConfiguration documentEnrichmentConfiguration)Sets the value of the DocumentEnrichmentConfiguration property for this object.CreateDataSourceRequest.BuilderindexId(String indexId)The identifier of the index that you want to use with the data source connector.CreateDataSourceRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateDataSourceRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateDataSourceRequest.BuilderroleArn(String roleArn)The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources.CreateDataSourceRequest.BuildersyncSchedule(String syncSchedule)Sets the frequency for Amazon Q to check the documents in your data source repository and update your index.CreateDataSourceRequest.Buildertags(Collection<Tag> tags)A list of key-value pairs that identify or categorize the data source connector.CreateDataSourceRequest.Buildertags(Consumer<Tag.Builder>... tags)A list of key-value pairs that identify or categorize the data source connector.CreateDataSourceRequest.Buildertags(Tag... tags)A list of key-value pairs that identify or categorize the data source connector.default CreateDataSourceRequest.BuildervpcConfiguration(Consumer<DataSourceVpcConfiguration.Builder> vpcConfiguration)Configuration information for an Amazon VPC (Virtual Private Cloud) to connect to your data source.CreateDataSourceRequest.BuildervpcConfiguration(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, sdkFields
-
-
-
-
Method Detail
-
applicationId
CreateDataSourceRequest.Builder applicationId(String applicationId)
The identifier of the Amazon Q application the data source will be attached to.
- Parameters:
applicationId- The identifier of the Amazon Q application the data source will be attached to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
CreateDataSourceRequest.Builder clientToken(String clientToken)
A token you provide to identify a request to create a data source connector. Multiple calls to the
CreateDataSourceAPI 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 theCreateDataSourceAPI 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.
-
configuration
CreateDataSourceRequest.Builder configuration(Document configuration)
Configuration information to connect to your data source repository. For configuration templates for your specific data source, see Supported connectors.
- Parameters:
configuration- Configuration information to connect to your data source repository. For configuration templates for your specific data source, see Supported connectors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
CreateDataSourceRequest.Builder description(String 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.
-
displayName
CreateDataSourceRequest.Builder displayName(String 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.
-
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.Builderavoiding the need to create one manually viaDocumentEnrichmentConfiguration.builder().When the
Consumercompletes,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:
documentEnrichmentConfiguration(DocumentEnrichmentConfiguration)
-
indexId
CreateDataSourceRequest.Builder indexId(String 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.
-
roleArn
CreateDataSourceRequest.Builder roleArn(String 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.
-
syncSchedule
CreateDataSourceRequest.Builder syncSchedule(String syncSchedule)
Sets the frequency for Amazon Q to check the documents in your data source repository and update your index. If you don't set a schedule, Amazon Q 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 theScheduleparameter when theTypeparameter is set toCUSTOM. If you do, you receive aValidationExceptionexception.- Parameters:
syncSchedule- Sets the frequency for Amazon Q to check the documents in your data source repository and update your index. If you don't set a schedule, Amazon Q 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 theScheduleparameter when theTypeparameter is set toCUSTOM. If you do, you receive aValidationExceptionexception.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateDataSourceRequest.Builder tags(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: _ . : / = + - @.
- 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
CreateDataSourceRequest.Builder tags(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: _ . : / = + - @.
- 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
CreateDataSourceRequest.Builder tags(Consumer<Tag.Builder>... 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.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - 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:
#tags(java.util.Collection)
-
vpcConfiguration
CreateDataSourceRequest.Builder vpcConfiguration(DataSourceVpcConfiguration 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 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 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 connectors.
This is a convenience method that creates an instance of theDataSourceVpcConfiguration.Builderavoiding the need to create one manually viaDataSourceVpcConfiguration.builder().When the
Consumercompletes,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:
vpcConfiguration(DataSourceVpcConfiguration)
-
overrideConfiguration
CreateDataSourceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateDataSourceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-