Class DataSourceReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.bedrock.DataSourceReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataSourceReference>
- Enclosing interface:
DataSourceReference
@Stability(Stable)
public static final class DataSourceReference.Builder
extends Object
implements software.amazon.jsii.Builder<DataSourceReference>
A builder for
DataSourceReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dataSourceId(String dataSourceId) Sets the value ofDataSourceReference.getDataSourceId()knowledgeBaseId(String knowledgeBaseId) Sets the value ofDataSourceReference.getKnowledgeBaseId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataSourceId
Sets the value ofDataSourceReference.getDataSourceId()- Parameters:
dataSourceId- The DataSourceId of the DataSource resource. This parameter is required.- Returns:
this
-
knowledgeBaseId
Sets the value ofDataSourceReference.getKnowledgeBaseId()- Parameters:
knowledgeBaseId- The KnowledgeBaseId of the DataSource resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataSourceReference>- Returns:
- a new instance of
DataSourceReference - Throws:
NullPointerException- if any required attribute was not provided
-