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