Class CfnKnowledgeBasePropsMixin.OpenSearchServerlessConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnKnowledgeBasePropsMixin.OpenSearchServerlessConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKnowledgeBasePropsMixin.OpenSearchServerlessConfigurationProperty>
- Enclosing interface:
CfnKnowledgeBasePropsMixin.OpenSearchServerlessConfigurationProperty
@Stability(Stable)
public static final class CfnKnowledgeBasePropsMixin.OpenSearchServerlessConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKnowledgeBasePropsMixin.OpenSearchServerlessConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.collectionArn(String collectionArn) fieldMapping(IResolvable fieldMapping) vectorIndexName(String vectorIndexName)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
collectionArn
@Stability(Stable) public CfnKnowledgeBasePropsMixin.OpenSearchServerlessConfigurationProperty.Builder collectionArn(String collectionArn) Sets the value ofCfnKnowledgeBasePropsMixin.OpenSearchServerlessConfigurationProperty.getCollectionArn()- Parameters:
collectionArn- The Amazon Resource Name (ARN) of the OpenSearch Service vector store.- Returns:
this
-
fieldMapping
@Stability(Stable) public CfnKnowledgeBasePropsMixin.OpenSearchServerlessConfigurationProperty.Builder fieldMapping(IResolvable fieldMapping) Sets the value ofCfnKnowledgeBasePropsMixin.OpenSearchServerlessConfigurationProperty.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.OpenSearchServerlessConfigurationProperty.Builder fieldMapping(CfnKnowledgeBasePropsMixin.OpenSearchServerlessFieldMappingProperty fieldMapping) Sets the value ofCfnKnowledgeBasePropsMixin.OpenSearchServerlessConfigurationProperty.getFieldMapping()- Parameters:
fieldMapping- Contains the names of the fields to which to map information about the vector store.- Returns:
this
-
vectorIndexName
@Stability(Stable) public CfnKnowledgeBasePropsMixin.OpenSearchServerlessConfigurationProperty.Builder vectorIndexName(String vectorIndexName) Sets the value ofCfnKnowledgeBasePropsMixin.OpenSearchServerlessConfigurationProperty.getVectorIndexName()- Parameters:
vectorIndexName- The name of the vector store.- Returns:
this
-
build
@Stability(Stable) public CfnKnowledgeBasePropsMixin.OpenSearchServerlessConfigurationProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnKnowledgeBasePropsMixin.OpenSearchServerlessConfigurationProperty>- Returns:
- a new instance of
CfnKnowledgeBasePropsMixin.OpenSearchServerlessConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-