Class CfnKnowledgeBasePolicyMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnKnowledgeBasePolicyMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKnowledgeBasePolicyMixinProps>
- Enclosing interface:
CfnKnowledgeBasePolicyMixinProps
@Stability(Stable)
public static final class CfnKnowledgeBasePolicyMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKnowledgeBasePolicyMixinProps>
A builder for
CfnKnowledgeBasePolicyMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.knowledgeBaseId(String knowledgeBaseId) Sets the value ofCfnKnowledgeBasePolicyMixinProps.getKnowledgeBaseId()policyDocument(Object policyDocument) Sets the value ofCfnKnowledgeBasePolicyMixinProps.getPolicyDocument()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
knowledgeBaseId
@Stability(Stable) public CfnKnowledgeBasePolicyMixinProps.Builder knowledgeBaseId(String knowledgeBaseId) Sets the value ofCfnKnowledgeBasePolicyMixinProps.getKnowledgeBaseId()- Parameters:
knowledgeBaseId- The unique identifier of the knowledge base.- Returns:
this
-
policyDocument
@Stability(Stable) public CfnKnowledgeBasePolicyMixinProps.Builder policyDocument(Object policyDocument) Sets the value ofCfnKnowledgeBasePolicyMixinProps.getPolicyDocument()- Parameters:
policyDocument- The IAM policy document defining access permissions for the knowledge base.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnKnowledgeBasePolicyMixinProps>- Returns:
- a new instance of
CfnKnowledgeBasePolicyMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-