Interface GetDataSourceResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetDataSourceResponse.Builder,
,GetDataSourceResponse> QBusinessResponse.Builder
,SdkBuilder<GetDataSourceResponse.Builder,
,GetDataSourceResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetDataSourceResponse
-
Method Summary
Modifier and TypeMethodDescriptionapplicationId
(String applicationId) The identifier of the Amazon Q Business application.configuration
(Document configuration) The details of how the data source connector is configured.The Unix timestamp when the data source connector was created.dataSourceArn
(String dataSourceArn) The Amazon Resource Name (ARN) of the data source.dataSourceId
(String dataSourceId) The identifier of the data source connector.description
(String description) The description for the data source connector.displayName
(String displayName) The name for the data source connector.default GetDataSourceResponse.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.default GetDataSourceResponse.Builder
error
(Consumer<ErrorDetail.Builder> error) When theStatus
field value isFAILED
, theErrorMessage
field contains a description of the error that caused the data source connector to fail.error
(ErrorDetail error) When theStatus
field value isFAILED
, theErrorMessage
field contains a description of the error that caused the data source connector to fail.The identifier of the index linked to the data source connector.default GetDataSourceResponse.Builder
mediaExtractionConfiguration
(Consumer<MediaExtractionConfiguration.Builder> mediaExtractionConfiguration) The configuration for extracting information from media in documents for the data source.mediaExtractionConfiguration
(MediaExtractionConfiguration mediaExtractionConfiguration) The configuration for extracting information from media in documents for the data source.The Amazon Resource Name (ARN) of the role with permission to access the data source and required resources.The current status of the data source connector.status
(DataSourceStatus status) The current status of the data source connector.syncSchedule
(String syncSchedule) The schedule for Amazon Q Business to update the index.The type of the data source connector.The Unix timestamp when the data source connector was last updated.default GetDataSourceResponse.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.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.qbusiness.model.QBusinessResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
applicationId
The identifier of the Amazon Q Business application.
- Parameters:
applicationId
- The identifier of the Amazon Q Business application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
indexId
The identifier of the index linked to the data source connector.
- Parameters:
indexId
- The identifier of the index linked to the data source connector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSourceId
The identifier of the data source connector.
- Parameters:
dataSourceId
- The identifier of the data source connector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSourceArn
The Amazon Resource Name (ARN) of the data source.
- Parameters:
dataSourceArn
- The Amazon Resource Name (ARN) of the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
displayName
The name for the data source connector.
- Parameters:
displayName
- The name for the data source connector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The type of the data source connector. For example,
S3
.- Parameters:
type
- The type of the data source connector. For example,S3
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
The details of how the data source connector is configured.
- Parameters:
configuration
- The details of how the data source connector is configured.- 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.
- Parameters:
vpcConfiguration
- Configuration information for an Amazon VPC (Virtual Private Cloud) to connect to your data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfiguration
default GetDataSourceResponse.Builder vpcConfiguration(Consumer<DataSourceVpcConfiguration.Builder> vpcConfiguration) Configuration information for an Amazon VPC (Virtual Private Cloud) to connect to your data source.
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:
-
createdAt
The Unix timestamp when the data source connector was created.
- Parameters:
createdAt
- The Unix timestamp when the data source connector was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The Unix timestamp when the data source connector was last updated.
- Parameters:
updatedAt
- The Unix timestamp when the data source connector was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description for the data source connector.
- Parameters:
description
- The description for the data source connector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The current status of the data source connector. When the
Status
field value isFAILED
, theErrorMessage
field contains a description of the error that caused the data source connector to fail.- Parameters:
status
- The current status of the data source connector. When theStatus
field value isFAILED
, theErrorMessage
field contains a description of the error that caused the data source connector to fail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the data source connector. When the
Status
field value isFAILED
, theErrorMessage
field contains a description of the error that caused the data source connector to fail.- Parameters:
status
- The current status of the data source connector. When theStatus
field value isFAILED
, theErrorMessage
field contains a description of the error that caused the data source connector to fail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
syncSchedule
The schedule for Amazon Q Business to update the index.
- Parameters:
syncSchedule
- The schedule for Amazon Q Business to update the index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
The Amazon Resource Name (ARN) of the role with permission to access the data source and required resources.
- Parameters:
roleArn
- The Amazon Resource Name (ARN) of the 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.
-
error
When the
Status
field value isFAILED
, theErrorMessage
field contains a description of the error that caused the data source connector to fail.- Parameters:
error
- When theStatus
field value isFAILED
, theErrorMessage
field contains a description of the error that caused the data source connector to fail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
When the
This is a convenience method that creates an instance of theStatus
field value isFAILED
, theErrorMessage
field contains a description of the error that caused the data source connector to fail.ErrorDetail.Builder
avoiding the need to create one manually viaErrorDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerror(ErrorDetail)
.- Parameters:
error
- a consumer that will call methods onErrorDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
documentEnrichmentConfiguration
GetDataSourceResponse.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 GetDataSourceResponse.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
GetDataSourceResponse.Builder mediaExtractionConfiguration(MediaExtractionConfiguration mediaExtractionConfiguration) The configuration for extracting information from media in documents for the data source.
- Parameters:
mediaExtractionConfiguration
- The configuration for extracting information from media in documents for the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mediaExtractionConfiguration
default GetDataSourceResponse.Builder mediaExtractionConfiguration(Consumer<MediaExtractionConfiguration.Builder> mediaExtractionConfiguration) The configuration for extracting information from media in documents for the data source.
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:
-