Class CfnQuerySuggestionsBlockListProps.Builder
java.lang.Object
software.amazon.awscdk.services.kendra.CfnQuerySuggestionsBlockListProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnQuerySuggestionsBlockListProps>
- Enclosing interface:
CfnQuerySuggestionsBlockListProps
@Stability(Stable)
public static final class CfnQuerySuggestionsBlockListProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnQuerySuggestionsBlockListProps>
A builder for
CfnQuerySuggestionsBlockListProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnQuerySuggestionsBlockListProps.getDescription()Sets the value ofCfnQuerySuggestionsBlockListProps.getIndexId()Sets the value ofCfnQuerySuggestionsBlockListProps.getName()Sets the value ofCfnQuerySuggestionsBlockListProps.getRoleArn()sourceS3Path(IResolvable sourceS3Path) Sets the value ofCfnQuerySuggestionsBlockListProps.getSourceS3Path()sourceS3Path(CfnQuerySuggestionsBlockList.S3PathProperty sourceS3Path) Sets the value ofCfnQuerySuggestionsBlockListProps.getSourceS3Path()Sets the value ofCfnQuerySuggestionsBlockListProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
indexId
Sets the value ofCfnQuerySuggestionsBlockListProps.getIndexId()- Parameters:
indexId- The identifier of the index for the block list. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnQuerySuggestionsBlockListProps.getName()- Parameters:
name- The name of the block list. This parameter is required.- Returns:
this
-
roleArn
Sets the value ofCfnQuerySuggestionsBlockListProps.getRoleArn()- Parameters:
roleArn- The Amazon Resource Name (ARN) of an IAM role with permission to access the S3 bucket that contains the block list text file. This parameter is required.- Returns:
this
-
sourceS3Path
@Stability(Stable) public CfnQuerySuggestionsBlockListProps.Builder sourceS3Path(IResolvable sourceS3Path) Sets the value ofCfnQuerySuggestionsBlockListProps.getSourceS3Path()- Parameters:
sourceS3Path- Information required to find a specific file in an Amazon S3 bucket. This parameter is required.- Returns:
this
-
sourceS3Path
@Stability(Stable) public CfnQuerySuggestionsBlockListProps.Builder sourceS3Path(CfnQuerySuggestionsBlockList.S3PathProperty sourceS3Path) Sets the value ofCfnQuerySuggestionsBlockListProps.getSourceS3Path()- Parameters:
sourceS3Path- Information required to find a specific file in an Amazon S3 bucket. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnQuerySuggestionsBlockListProps.getDescription()- Parameters:
description- A description for the block list.- Returns:
this
-
tags
@Stability(Stable) public CfnQuerySuggestionsBlockListProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnQuerySuggestionsBlockListProps.getTags()- Parameters:
tags- A list of key-value pairs that identify or categorize the block list.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnQuerySuggestionsBlockListProps>- Returns:
- a new instance of
CfnQuerySuggestionsBlockListProps - Throws:
NullPointerException- if any required attribute was not provided
-