Interface GetDataSourceResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetDataSourceResponse.Builder,GetDataSourceResponse>,QBusinessResponse.Builder,SdkBuilder<GetDataSourceResponse.Builder,GetDataSourceResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetDataSourceResponse
public static interface GetDataSourceResponse.Builder extends QBusinessResponse.Builder, SdkPojo, CopyableBuilder<GetDataSourceResponse.Builder,GetDataSourceResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetDataSourceResponse.BuilderapplicationId(String applicationId)The identifier of the Amazon Q Business application.GetDataSourceResponse.Builderconfiguration(Document configuration)The details of how the data source connector is configured.GetDataSourceResponse.BuildercreatedAt(Instant createdAt)The Unix timestamp when the data source connector was created.GetDataSourceResponse.BuilderdataSourceArn(String dataSourceArn)The Amazon Resource Name (ARN) of the data source.GetDataSourceResponse.BuilderdataSourceId(String dataSourceId)The identifier of the data source connector.GetDataSourceResponse.Builderdescription(String description)The description for the data source connector.GetDataSourceResponse.BuilderdisplayName(String displayName)The name for the data source connector.default GetDataSourceResponse.BuilderdocumentEnrichmentConfiguration(Consumer<DocumentEnrichmentConfiguration.Builder> documentEnrichmentConfiguration)Sets the value of the DocumentEnrichmentConfiguration property for this object.GetDataSourceResponse.BuilderdocumentEnrichmentConfiguration(DocumentEnrichmentConfiguration documentEnrichmentConfiguration)Sets the value of the DocumentEnrichmentConfiguration property for this object.default GetDataSourceResponse.Buildererror(Consumer<ErrorDetail.Builder> error)When theStatusfield value isFAILED, theErrorMessagefield contains a description of the error that caused the data source connector to fail.GetDataSourceResponse.Buildererror(ErrorDetail error)When theStatusfield value isFAILED, theErrorMessagefield contains a description of the error that caused the data source connector to fail.GetDataSourceResponse.BuilderindexId(String indexId)The identifier of the index linked to the data source connector.GetDataSourceResponse.BuilderroleArn(String roleArn)The Amazon Resource Name (ARN) of the role with permission to access the data source and required resources.GetDataSourceResponse.Builderstatus(String status)The current status of the data source connector.GetDataSourceResponse.Builderstatus(DataSourceStatus status)The current status of the data source connector.GetDataSourceResponse.BuildersyncSchedule(String syncSchedule)The schedule for Amazon Q Business to update the index.GetDataSourceResponse.Buildertype(String type)The type of the data source connector.GetDataSourceResponse.BuilderupdatedAt(Instant updatedAt)The Unix timestamp when the data source connector was last updated.default GetDataSourceResponse.BuildervpcConfiguration(Consumer<DataSourceVpcConfiguration.Builder> vpcConfiguration)Configuration information for an Amazon VPC (Virtual Private Cloud) to connect to your data source.GetDataSourceResponse.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.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, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
applicationId
GetDataSourceResponse.Builder applicationId(String 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
GetDataSourceResponse.Builder indexId(String 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
GetDataSourceResponse.Builder dataSourceId(String 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
GetDataSourceResponse.Builder dataSourceArn(String 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
GetDataSourceResponse.Builder displayName(String 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
GetDataSourceResponse.Builder type(String 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
GetDataSourceResponse.Builder configuration(Document 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
GetDataSourceResponse.Builder vpcConfiguration(DataSourceVpcConfiguration 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.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)
-
createdAt
GetDataSourceResponse.Builder createdAt(Instant 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
GetDataSourceResponse.Builder updatedAt(Instant 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
GetDataSourceResponse.Builder description(String 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
GetDataSourceResponse.Builder status(String status)
The current status of the data source connector. When the
Statusfield value isFAILED, theErrorMessagefield 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 theStatusfield value isFAILED, theErrorMessagefield 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:
DataSourceStatus,DataSourceStatus
-
status
GetDataSourceResponse.Builder status(DataSourceStatus status)
The current status of the data source connector. When the
Statusfield value isFAILED, theErrorMessagefield 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 theStatusfield value isFAILED, theErrorMessagefield 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:
DataSourceStatus,DataSourceStatus
-
syncSchedule
GetDataSourceResponse.Builder syncSchedule(String 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
GetDataSourceResponse.Builder roleArn(String 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
GetDataSourceResponse.Builder error(ErrorDetail error)
When the
Statusfield value isFAILED, theErrorMessagefield contains a description of the error that caused the data source connector to fail.- Parameters:
error- When theStatusfield value isFAILED, theErrorMessagefield 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
default GetDataSourceResponse.Builder error(Consumer<ErrorDetail.Builder> error)
When the
This is a convenience method that creates an instance of theStatusfield value isFAILED, theErrorMessagefield contains a description of the error that caused the data source connector to fail.ErrorDetail.Builderavoiding the need to create one manually viaErrorDetail.builder().When the
Consumercompletes,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:
error(ErrorDetail)
-
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.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)
-
-