Class CfnKnowledgeBase.OpenSearchManagedClusterConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.OpenSearchManagedClusterConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKnowledgeBase.OpenSearchManagedClusterConfigurationProperty>
- Enclosing interface:
CfnKnowledgeBase.OpenSearchManagedClusterConfigurationProperty
@Stability(Stable)
public static final class CfnKnowledgeBase.OpenSearchManagedClusterConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKnowledgeBase.OpenSearchManagedClusterConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.domainEndpoint(String domainEndpoint) fieldMapping(IResolvable fieldMapping) vectorIndexName(String vectorIndexName)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
domainArn
@Stability(Stable) public CfnKnowledgeBase.OpenSearchManagedClusterConfigurationProperty.Builder domainArn(String domainArn) - Parameters:
domainArn- The Amazon Resource Name (ARN) of the OpenSearch domain. This parameter is required.- Returns:
this
-
domainEndpoint
@Stability(Stable) public CfnKnowledgeBase.OpenSearchManagedClusterConfigurationProperty.Builder domainEndpoint(String domainEndpoint) Sets the value ofCfnKnowledgeBase.OpenSearchManagedClusterConfigurationProperty.getDomainEndpoint()- Parameters:
domainEndpoint- The endpoint URL the OpenSearch domain. This parameter is required.- Returns:
this
-
fieldMapping
@Stability(Stable) public CfnKnowledgeBase.OpenSearchManagedClusterConfigurationProperty.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.OpenSearchManagedClusterConfigurationProperty.Builder fieldMapping(CfnKnowledgeBase.OpenSearchManagedClusterFieldMappingProperty 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.OpenSearchManagedClusterConfigurationProperty.Builder vectorIndexName(String vectorIndexName) Sets the value ofCfnKnowledgeBase.OpenSearchManagedClusterConfigurationProperty.getVectorIndexName()- Parameters:
vectorIndexName- The name of the vector store. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnKnowledgeBase.OpenSearchManagedClusterConfigurationProperty>- Returns:
- a new instance of
CfnKnowledgeBase.OpenSearchManagedClusterConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-