Class CfnKnowledgeBaseProps.Builder
java.lang.Object
software.amazon.awscdk.services.wisdom.CfnKnowledgeBaseProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKnowledgeBaseProps>
- Enclosing interface:
- CfnKnowledgeBaseProps
@Stability(Stable)
public static final class CfnKnowledgeBaseProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKnowledgeBaseProps>
A builder for
CfnKnowledgeBaseProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnKnowledgeBaseProps.getDescription()knowledgeBaseType(String knowledgeBaseType) Sets the value ofCfnKnowledgeBaseProps.getKnowledgeBaseType()Sets the value ofCfnKnowledgeBaseProps.getName()renderingConfiguration(IResolvable renderingConfiguration) Sets the value ofCfnKnowledgeBaseProps.getRenderingConfiguration()renderingConfiguration(CfnKnowledgeBase.RenderingConfigurationProperty renderingConfiguration) Sets the value ofCfnKnowledgeBaseProps.getRenderingConfiguration()serverSideEncryptionConfiguration(IResolvable serverSideEncryptionConfiguration) Sets the value ofCfnKnowledgeBaseProps.getServerSideEncryptionConfiguration()serverSideEncryptionConfiguration(CfnKnowledgeBase.ServerSideEncryptionConfigurationProperty serverSideEncryptionConfiguration) Sets the value ofCfnKnowledgeBaseProps.getServerSideEncryptionConfiguration()sourceConfiguration(IResolvable sourceConfiguration) Sets the value ofCfnKnowledgeBaseProps.getSourceConfiguration()sourceConfiguration(CfnKnowledgeBase.SourceConfigurationProperty sourceConfiguration) Sets the value ofCfnKnowledgeBaseProps.getSourceConfiguration()Sets the value ofCfnKnowledgeBaseProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
knowledgeBaseType
Sets the value ofCfnKnowledgeBaseProps.getKnowledgeBaseType()- Parameters:
knowledgeBaseType- The type of knowledge base. This parameter is required. Only CUSTOM knowledge bases allow you to upload your own content. EXTERNAL knowledge bases support integrations with third-party systems whose content is synchronized automatically.- Returns:
this
-
name
Sets the value ofCfnKnowledgeBaseProps.getName()- Parameters:
name- The name of the knowledge base. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnKnowledgeBaseProps.getDescription()- Parameters:
description- The description.- Returns:
this
-
renderingConfiguration
@Stability(Stable) public CfnKnowledgeBaseProps.Builder renderingConfiguration(IResolvable renderingConfiguration) Sets the value ofCfnKnowledgeBaseProps.getRenderingConfiguration()- Parameters:
renderingConfiguration- Information about how to render the content.- Returns:
this
-
renderingConfiguration
@Stability(Stable) public CfnKnowledgeBaseProps.Builder renderingConfiguration(CfnKnowledgeBase.RenderingConfigurationProperty renderingConfiguration) Sets the value ofCfnKnowledgeBaseProps.getRenderingConfiguration()- Parameters:
renderingConfiguration- Information about how to render the content.- Returns:
this
-
serverSideEncryptionConfiguration
@Stability(Stable) public CfnKnowledgeBaseProps.Builder serverSideEncryptionConfiguration(IResolvable serverSideEncryptionConfiguration) Sets the value ofCfnKnowledgeBaseProps.getServerSideEncryptionConfiguration()- Parameters:
serverSideEncryptionConfiguration- The KMS key used for encryption.- Returns:
this
-
serverSideEncryptionConfiguration
@Stability(Stable) public CfnKnowledgeBaseProps.Builder serverSideEncryptionConfiguration(CfnKnowledgeBase.ServerSideEncryptionConfigurationProperty serverSideEncryptionConfiguration) Sets the value ofCfnKnowledgeBaseProps.getServerSideEncryptionConfiguration()- Parameters:
serverSideEncryptionConfiguration- The KMS key used for encryption.- Returns:
this
-
sourceConfiguration
@Stability(Stable) public CfnKnowledgeBaseProps.Builder sourceConfiguration(IResolvable sourceConfiguration) Sets the value ofCfnKnowledgeBaseProps.getSourceConfiguration()- Parameters:
sourceConfiguration- The source of the knowledge base content. Only set this argument for EXTERNAL knowledge bases.- Returns:
this
-
sourceConfiguration
@Stability(Stable) public CfnKnowledgeBaseProps.Builder sourceConfiguration(CfnKnowledgeBase.SourceConfigurationProperty sourceConfiguration) Sets the value ofCfnKnowledgeBaseProps.getSourceConfiguration()- Parameters:
sourceConfiguration- The source of the knowledge base content. Only set this argument for EXTERNAL knowledge bases.- Returns:
this
-
tags
Sets the value ofCfnKnowledgeBaseProps.getTags()- Parameters:
tags- The tags used to organize, track, or control access for this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnKnowledgeBaseProps>- Returns:
- a new instance of
CfnKnowledgeBaseProps - Throws:
NullPointerException- if any required attribute was not provided
-