Class CfnKnowledgeBase.PineconeConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.PineconeConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKnowledgeBase.PineconeConfigurationProperty>
- Enclosing interface:
CfnKnowledgeBase.PineconeConfigurationProperty
@Stability(Stable)
public static final class CfnKnowledgeBase.PineconeConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKnowledgeBase.PineconeConfigurationProperty>
A builder for
CfnKnowledgeBase.PineconeConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.connectionString(String connectionString) Sets the value ofCfnKnowledgeBase.PineconeConfigurationProperty.getConnectionString()credentialsSecretArn(String credentialsSecretArn) Sets the value ofCfnKnowledgeBase.PineconeConfigurationProperty.getCredentialsSecretArn()fieldMapping(IResolvable fieldMapping) Sets the value ofCfnKnowledgeBase.PineconeConfigurationProperty.getFieldMapping()fieldMapping(CfnKnowledgeBase.PineconeFieldMappingProperty fieldMapping) Sets the value ofCfnKnowledgeBase.PineconeConfigurationProperty.getFieldMapping()Sets the value ofCfnKnowledgeBase.PineconeConfigurationProperty.getNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connectionString
@Stability(Stable) public CfnKnowledgeBase.PineconeConfigurationProperty.Builder connectionString(String connectionString) Sets the value ofCfnKnowledgeBase.PineconeConfigurationProperty.getConnectionString()- Parameters:
connectionString- The endpoint URL for your index management page. This parameter is required.- Returns:
this
-
credentialsSecretArn
@Stability(Stable) public CfnKnowledgeBase.PineconeConfigurationProperty.Builder credentialsSecretArn(String credentialsSecretArn) Sets the value ofCfnKnowledgeBase.PineconeConfigurationProperty.getCredentialsSecretArn()- Parameters:
credentialsSecretArn- The Amazon Resource Name (ARN) of the secret that you created in AWS Secrets Manager that is linked to your Pinecone API key. This parameter is required.- Returns:
this
-
fieldMapping
@Stability(Stable) public CfnKnowledgeBase.PineconeConfigurationProperty.Builder fieldMapping(IResolvable fieldMapping) Sets the value ofCfnKnowledgeBase.PineconeConfigurationProperty.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.PineconeConfigurationProperty.Builder fieldMapping(CfnKnowledgeBase.PineconeFieldMappingProperty fieldMapping) Sets the value ofCfnKnowledgeBase.PineconeConfigurationProperty.getFieldMapping()- Parameters:
fieldMapping- Contains the names of the fields to which to map information about the vector store. This parameter is required.- Returns:
this
-
namespace
@Stability(Stable) public CfnKnowledgeBase.PineconeConfigurationProperty.Builder namespace(String namespace) Sets the value ofCfnKnowledgeBase.PineconeConfigurationProperty.getNamespace()- Parameters:
namespace- The namespace to be used to write new data to your database.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnKnowledgeBase.PineconeConfigurationProperty>- Returns:
- a new instance of
CfnKnowledgeBase.PineconeConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-