Class CfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty>
- Enclosing interface:
CfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty
@Stability(Stable)
public static final class CfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.collectionName(String collectionName) credentialsSecretArn(String credentialsSecretArn) databaseName(String databaseName) endpointServiceName(String endpointServiceName) fieldMapping(IResolvable fieldMapping) textIndexName(String textIndexName) vectorIndexName(String vectorIndexName)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
collectionName
@Stability(Stable) public CfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty.Builder collectionName(String collectionName) - Parameters:
collectionName- The collection name of the knowledge base in MongoDB Atlas.- Returns:
this
-
credentialsSecretArn
@Stability(Stable) public CfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty.Builder credentialsSecretArn(String credentialsSecretArn) Sets the value ofCfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty.getCredentialsSecretArn()- Parameters:
credentialsSecretArn- The Amazon Resource Name (ARN) of the secret that you created in AWS Secrets Manager that contains user credentials for your MongoDB Atlas cluster.- Returns:
this
-
databaseName
@Stability(Stable) public CfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty.Builder databaseName(String databaseName) - Parameters:
databaseName- The database name in your MongoDB Atlas cluster for your knowledge base.- Returns:
this
-
endpoint
@Stability(Stable) public CfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty.Builder endpoint(String endpoint) - Parameters:
endpoint- The endpoint URL of your MongoDB Atlas cluster for your knowledge base.- Returns:
this
-
endpointServiceName
@Stability(Stable) public CfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty.Builder endpointServiceName(String endpointServiceName) Sets the value ofCfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty.getEndpointServiceName()- Parameters:
endpointServiceName- The name of the VPC endpoint service in your account that is connected to your MongoDB Atlas cluster.- Returns:
this
-
fieldMapping
@Stability(Stable) public CfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty.Builder fieldMapping(IResolvable fieldMapping) - Parameters:
fieldMapping- Contains the names of the fields to which to map information about the vector store.- Returns:
this
-
fieldMapping
@Stability(Stable) public CfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty.Builder fieldMapping(CfnKnowledgeBasePropsMixin.MongoDbAtlasFieldMappingProperty fieldMapping) - Parameters:
fieldMapping- Contains the names of the fields to which to map information about the vector store.- Returns:
this
-
textIndexName
@Stability(Stable) public CfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty.Builder textIndexName(String textIndexName) - Parameters:
textIndexName- The name of the text search index in the MongoDB collection. This is required for using the hybrid search feature.- Returns:
this
-
vectorIndexName
@Stability(Stable) public CfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty.Builder vectorIndexName(String vectorIndexName) - Parameters:
vectorIndexName- The name of the MongoDB Atlas vector search index.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty>- Returns:
- a new instance of
CfnKnowledgeBasePropsMixin.MongoDbAtlasConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-