Class CfnThesaurusMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.kendra.CfnThesaurusMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnThesaurusMixinProps>
- Enclosing interface:
CfnThesaurusMixinProps
@Stability(Stable)
public static final class CfnThesaurusMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnThesaurusMixinProps>
A builder for
CfnThesaurusMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnThesaurusMixinProps.getDescription()Sets the value ofCfnThesaurusMixinProps.getIndexId()Sets the value ofCfnThesaurusMixinProps.getName()Sets the value ofCfnThesaurusMixinProps.getRoleArn()sourceS3Path(CfnThesaurusPropsMixin.S3PathProperty sourceS3Path) Sets the value ofCfnThesaurusMixinProps.getSourceS3Path()sourceS3Path(IResolvable sourceS3Path) Sets the value ofCfnThesaurusMixinProps.getSourceS3Path()Sets the value ofCfnThesaurusMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnThesaurusMixinProps.getDescription()- Parameters:
description- A description for the thesaurus.- Returns:
this
-
indexId
Sets the value ofCfnThesaurusMixinProps.getIndexId()- Parameters:
indexId- The identifier of the index for the thesaurus.- Returns:
this
-
name
Sets the value ofCfnThesaurusMixinProps.getName()- Parameters:
name- A name for the thesaurus.- Returns:
this
-
roleArn
Sets the value ofCfnThesaurusMixinProps.getRoleArn()- Parameters:
roleArn- An IAM role that gives Amazon Kendra permissions to access the thesaurus file specified in SourceS3Path.- Returns:
this
-
sourceS3Path
Sets the value ofCfnThesaurusMixinProps.getSourceS3Path()- Parameters:
sourceS3Path- Information required to find a specific file in an Amazon S3 bucket.- Returns:
this
-
sourceS3Path
@Stability(Stable) public CfnThesaurusMixinProps.Builder sourceS3Path(CfnThesaurusPropsMixin.S3PathProperty sourceS3Path) Sets the value ofCfnThesaurusMixinProps.getSourceS3Path()- Parameters:
sourceS3Path- Information required to find a specific file in an Amazon S3 bucket.- Returns:
this
-
tags
Sets the value ofCfnThesaurusMixinProps.getTags()- Parameters:
tags- A list of key-value pairs that identify or categorize the thesaurus.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnThesaurusMixinProps>- Returns:
- a new instance of
CfnThesaurusMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-