Class CfnKnowledgeBasePropsMixin.RdsConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnKnowledgeBasePropsMixin.RdsConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKnowledgeBasePropsMixin.RdsConfigurationProperty>
- Enclosing interface:
CfnKnowledgeBasePropsMixin.RdsConfigurationProperty
@Stability(Stable)
public static final class CfnKnowledgeBasePropsMixin.RdsConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKnowledgeBasePropsMixin.RdsConfigurationProperty>
A builder for
CfnKnowledgeBasePropsMixin.RdsConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.credentialsSecretArn(String credentialsSecretArn) databaseName(String databaseName) Sets the value ofCfnKnowledgeBasePropsMixin.RdsConfigurationProperty.getDatabaseName()Sets the value ofCfnKnowledgeBasePropsMixin.RdsConfigurationProperty.getFieldMapping()fieldMapping(IResolvable fieldMapping) Sets the value ofCfnKnowledgeBasePropsMixin.RdsConfigurationProperty.getFieldMapping()resourceArn(String resourceArn) Sets the value ofCfnKnowledgeBasePropsMixin.RdsConfigurationProperty.getResourceArn()Sets the value ofCfnKnowledgeBasePropsMixin.RdsConfigurationProperty.getTableName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
credentialsSecretArn
@Stability(Stable) public CfnKnowledgeBasePropsMixin.RdsConfigurationProperty.Builder credentialsSecretArn(String credentialsSecretArn) - Parameters:
credentialsSecretArn- The Amazon Resource Name (ARN) of the secret that you created in AWS Secrets Manager that is linked to your Amazon RDS database.- Returns:
this
-
databaseName
@Stability(Stable) public CfnKnowledgeBasePropsMixin.RdsConfigurationProperty.Builder databaseName(String databaseName) Sets the value ofCfnKnowledgeBasePropsMixin.RdsConfigurationProperty.getDatabaseName()- Parameters:
databaseName- The name of your Amazon RDS database.- Returns:
this
-
fieldMapping
@Stability(Stable) public CfnKnowledgeBasePropsMixin.RdsConfigurationProperty.Builder fieldMapping(IResolvable fieldMapping) Sets the value ofCfnKnowledgeBasePropsMixin.RdsConfigurationProperty.getFieldMapping()- Parameters:
fieldMapping- Contains the names of the fields to which to map information about the vector store.- Returns:
this
-
fieldMapping
@Stability(Stable) public CfnKnowledgeBasePropsMixin.RdsConfigurationProperty.Builder fieldMapping(CfnKnowledgeBasePropsMixin.RdsFieldMappingProperty fieldMapping) Sets the value ofCfnKnowledgeBasePropsMixin.RdsConfigurationProperty.getFieldMapping()- Parameters:
fieldMapping- Contains the names of the fields to which to map information about the vector store.- Returns:
this
-
resourceArn
@Stability(Stable) public CfnKnowledgeBasePropsMixin.RdsConfigurationProperty.Builder resourceArn(String resourceArn) Sets the value ofCfnKnowledgeBasePropsMixin.RdsConfigurationProperty.getResourceArn()- Parameters:
resourceArn- The Amazon Resource Name (ARN) of the vector store.- Returns:
this
-
tableName
@Stability(Stable) public CfnKnowledgeBasePropsMixin.RdsConfigurationProperty.Builder tableName(String tableName) Sets the value ofCfnKnowledgeBasePropsMixin.RdsConfigurationProperty.getTableName()- Parameters:
tableName- The name of the table in the database.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnKnowledgeBasePropsMixin.RdsConfigurationProperty>- Returns:
- a new instance of
CfnKnowledgeBasePropsMixin.RdsConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-