Class CfnDataSourceProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnDataSourceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSourceProps>
- Enclosing interface:
CfnDataSourceProps
@Stability(Stable)
public static final class CfnDataSourceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSourceProps>
A builder for
CfnDataSourceProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.dataDeletionPolicy
(String dataDeletionPolicy) Sets the value ofCfnDataSourceProps.getDataDeletionPolicy()
dataSourceConfiguration
(IResolvable dataSourceConfiguration) Sets the value ofCfnDataSourceProps.getDataSourceConfiguration()
dataSourceConfiguration
(CfnDataSource.DataSourceConfigurationProperty dataSourceConfiguration) Sets the value ofCfnDataSourceProps.getDataSourceConfiguration()
description
(String description) Sets the value ofCfnDataSourceProps.getDescription()
knowledgeBaseId
(String knowledgeBaseId) Sets the value ofCfnDataSourceProps.getKnowledgeBaseId()
Sets the value ofCfnDataSourceProps.getName()
serverSideEncryptionConfiguration
(IResolvable serverSideEncryptionConfiguration) Sets the value ofCfnDataSourceProps.getServerSideEncryptionConfiguration()
serverSideEncryptionConfiguration
(CfnDataSource.ServerSideEncryptionConfigurationProperty serverSideEncryptionConfiguration) Sets the value ofCfnDataSourceProps.getServerSideEncryptionConfiguration()
vectorIngestionConfiguration
(IResolvable vectorIngestionConfiguration) Sets the value ofCfnDataSourceProps.getVectorIngestionConfiguration()
vectorIngestionConfiguration
(CfnDataSource.VectorIngestionConfigurationProperty vectorIngestionConfiguration) Sets the value ofCfnDataSourceProps.getVectorIngestionConfiguration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataSourceConfiguration
@Stability(Stable) public CfnDataSourceProps.Builder dataSourceConfiguration(IResolvable dataSourceConfiguration) Sets the value ofCfnDataSourceProps.getDataSourceConfiguration()
- Parameters:
dataSourceConfiguration
- The connection configuration for the data source. This parameter is required.- Returns:
this
-
dataSourceConfiguration
@Stability(Stable) public CfnDataSourceProps.Builder dataSourceConfiguration(CfnDataSource.DataSourceConfigurationProperty dataSourceConfiguration) Sets the value ofCfnDataSourceProps.getDataSourceConfiguration()
- Parameters:
dataSourceConfiguration
- The connection configuration for the data source. This parameter is required.- Returns:
this
-
knowledgeBaseId
Sets the value ofCfnDataSourceProps.getKnowledgeBaseId()
- Parameters:
knowledgeBaseId
- The unique identifier of the knowledge base to which the data source belongs. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnDataSourceProps.getName()
- Parameters:
name
- The name of the data source. This parameter is required.- Returns:
this
-
dataDeletionPolicy
Sets the value ofCfnDataSourceProps.getDataDeletionPolicy()
- Parameters:
dataDeletionPolicy
- The data deletion policy for the data source.- Returns:
this
-
description
Sets the value ofCfnDataSourceProps.getDescription()
- Parameters:
description
- The description of the data source.- Returns:
this
-
serverSideEncryptionConfiguration
@Stability(Stable) public CfnDataSourceProps.Builder serverSideEncryptionConfiguration(IResolvable serverSideEncryptionConfiguration) Sets the value ofCfnDataSourceProps.getServerSideEncryptionConfiguration()
- Parameters:
serverSideEncryptionConfiguration
- Contains details about the configuration of the server-side encryption.- Returns:
this
-
serverSideEncryptionConfiguration
@Stability(Stable) public CfnDataSourceProps.Builder serverSideEncryptionConfiguration(CfnDataSource.ServerSideEncryptionConfigurationProperty serverSideEncryptionConfiguration) Sets the value ofCfnDataSourceProps.getServerSideEncryptionConfiguration()
- Parameters:
serverSideEncryptionConfiguration
- Contains details about the configuration of the server-side encryption.- Returns:
this
-
vectorIngestionConfiguration
@Stability(Stable) public CfnDataSourceProps.Builder vectorIngestionConfiguration(IResolvable vectorIngestionConfiguration) Sets the value ofCfnDataSourceProps.getVectorIngestionConfiguration()
- Parameters:
vectorIngestionConfiguration
- Contains details about how to ingest the documents in the data source.- Returns:
this
-
vectorIngestionConfiguration
@Stability(Stable) public CfnDataSourceProps.Builder vectorIngestionConfiguration(CfnDataSource.VectorIngestionConfigurationProperty vectorIngestionConfiguration) Sets the value ofCfnDataSourceProps.getVectorIngestionConfiguration()
- Parameters:
vectorIngestionConfiguration
- Contains details about how to ingest the documents in the data source.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataSourceProps>
- Returns:
- a new instance of
CfnDataSourceProps
- Throws:
NullPointerException
- if any required attribute was not provided
-