Class CfnKnowledgeBase.StorageConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.StorageConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKnowledgeBase.StorageConfigurationProperty>
- Enclosing interface:
CfnKnowledgeBase.StorageConfigurationProperty
@Stability(Stable)
public static final class CfnKnowledgeBase.StorageConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKnowledgeBase.StorageConfigurationProperty>
A builder for
CfnKnowledgeBase.StorageConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.opensearchServerlessConfiguration
(IResolvable opensearchServerlessConfiguration) opensearchServerlessConfiguration
(CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty opensearchServerlessConfiguration) pineconeConfiguration
(IResolvable pineconeConfiguration) Sets the value ofCfnKnowledgeBase.StorageConfigurationProperty.getPineconeConfiguration()
pineconeConfiguration
(CfnKnowledgeBase.PineconeConfigurationProperty pineconeConfiguration) Sets the value ofCfnKnowledgeBase.StorageConfigurationProperty.getPineconeConfiguration()
rdsConfiguration
(IResolvable rdsConfiguration) Sets the value ofCfnKnowledgeBase.StorageConfigurationProperty.getRdsConfiguration()
rdsConfiguration
(CfnKnowledgeBase.RdsConfigurationProperty rdsConfiguration) Sets the value ofCfnKnowledgeBase.StorageConfigurationProperty.getRdsConfiguration()
Sets the value ofCfnKnowledgeBase.StorageConfigurationProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnKnowledgeBase.StorageConfigurationProperty.getType()
- Parameters:
type
- The vector store service in which the knowledge base is stored. This parameter is required.- Returns:
this
-
opensearchServerlessConfiguration
@Stability(Stable) public CfnKnowledgeBase.StorageConfigurationProperty.Builder opensearchServerlessConfiguration(IResolvable opensearchServerlessConfiguration) Sets the value ofCfnKnowledgeBase.StorageConfigurationProperty.getOpensearchServerlessConfiguration()
- Parameters:
opensearchServerlessConfiguration
- Contains the storage configuration of the knowledge base in Amazon OpenSearch Service.- Returns:
this
-
opensearchServerlessConfiguration
@Stability(Stable) public CfnKnowledgeBase.StorageConfigurationProperty.Builder opensearchServerlessConfiguration(CfnKnowledgeBase.OpenSearchServerlessConfigurationProperty opensearchServerlessConfiguration) Sets the value ofCfnKnowledgeBase.StorageConfigurationProperty.getOpensearchServerlessConfiguration()
- Parameters:
opensearchServerlessConfiguration
- Contains the storage configuration of the knowledge base in Amazon OpenSearch Service.- Returns:
this
-
pineconeConfiguration
@Stability(Stable) public CfnKnowledgeBase.StorageConfigurationProperty.Builder pineconeConfiguration(IResolvable pineconeConfiguration) Sets the value ofCfnKnowledgeBase.StorageConfigurationProperty.getPineconeConfiguration()
- Parameters:
pineconeConfiguration
- Contains the storage configuration of the knowledge base in Pinecone.- Returns:
this
-
pineconeConfiguration
@Stability(Stable) public CfnKnowledgeBase.StorageConfigurationProperty.Builder pineconeConfiguration(CfnKnowledgeBase.PineconeConfigurationProperty pineconeConfiguration) Sets the value ofCfnKnowledgeBase.StorageConfigurationProperty.getPineconeConfiguration()
- Parameters:
pineconeConfiguration
- Contains the storage configuration of the knowledge base in Pinecone.- Returns:
this
-
rdsConfiguration
@Stability(Stable) public CfnKnowledgeBase.StorageConfigurationProperty.Builder rdsConfiguration(IResolvable rdsConfiguration) Sets the value ofCfnKnowledgeBase.StorageConfigurationProperty.getRdsConfiguration()
- Parameters:
rdsConfiguration
- Contains details about the storage configuration of the knowledge base in Amazon RDS. For more information, see Create a vector index in Amazon RDS .- Returns:
this
-
rdsConfiguration
@Stability(Stable) public CfnKnowledgeBase.StorageConfigurationProperty.Builder rdsConfiguration(CfnKnowledgeBase.RdsConfigurationProperty rdsConfiguration) Sets the value ofCfnKnowledgeBase.StorageConfigurationProperty.getRdsConfiguration()
- Parameters:
rdsConfiguration
- Contains details about the storage configuration of the knowledge base in Amazon RDS. For more information, see Create a vector index in Amazon RDS .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnKnowledgeBase.StorageConfigurationProperty>
- Returns:
- a new instance of
CfnKnowledgeBase.StorageConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-