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