Interface CreateQuerySuggestionsBlockListRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateQuerySuggestionsBlockListRequest.Builder,CreateQuerySuggestionsBlockListRequest>,KendraRequest.Builder,SdkBuilder<CreateQuerySuggestionsBlockListRequest.Builder,CreateQuerySuggestionsBlockListRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateQuerySuggestionsBlockListRequest
public static interface CreateQuerySuggestionsBlockListRequest.Builder extends KendraRequest.Builder, SdkPojo, CopyableBuilder<CreateQuerySuggestionsBlockListRequest.Builder,CreateQuerySuggestionsBlockListRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateQuerySuggestionsBlockListRequest.BuilderclientToken(String clientToken)A token that you provide to identify the request to create a query suggestions block list.CreateQuerySuggestionsBlockListRequest.Builderdescription(String description)A description for the block list.CreateQuerySuggestionsBlockListRequest.BuilderindexId(String indexId)The identifier of the index you want to create a query suggestions block list for.CreateQuerySuggestionsBlockListRequest.Buildername(String name)A name for the block list.CreateQuerySuggestionsBlockListRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateQuerySuggestionsBlockListRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateQuerySuggestionsBlockListRequest.BuilderroleArn(String roleArn)The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket that contains the block list text file.default CreateQuerySuggestionsBlockListRequest.BuildersourceS3Path(Consumer<S3Path.Builder> sourceS3Path)The S3 path to your block list text file in your S3 bucket.CreateQuerySuggestionsBlockListRequest.BuildersourceS3Path(S3Path sourceS3Path)The S3 path to your block list text file in your S3 bucket.CreateQuerySuggestionsBlockListRequest.Buildertags(Collection<Tag> tags)A list of key-value pairs that identify or categorize the block list.CreateQuerySuggestionsBlockListRequest.Buildertags(Consumer<Tag.Builder>... tags)A list of key-value pairs that identify or categorize the block list.CreateQuerySuggestionsBlockListRequest.Buildertags(Tag... tags)A list of key-value pairs that identify or categorize the block list.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.kendra.model.KendraRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
indexId
CreateQuerySuggestionsBlockListRequest.Builder indexId(String indexId)
The identifier of the index you want to create a query suggestions block list for.
- Parameters:
indexId- The identifier of the index you want to create a query suggestions block list for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
CreateQuerySuggestionsBlockListRequest.Builder name(String name)
A name for the block list.
For example, the name 'offensive-words', which includes all offensive words that could appear in user queries and need to be blocked from suggestions.
- Parameters:
name- A name for the block list.For example, the name 'offensive-words', which includes all offensive words that could appear in user queries and need to be blocked from suggestions.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
CreateQuerySuggestionsBlockListRequest.Builder description(String description)
A description for the block list.
For example, the description "List of all offensive words that can appear in user queries and need to be blocked from suggestions."
- Parameters:
description- A description for the block list.For example, the description "List of all offensive words that can appear in user queries and need to be blocked from suggestions."
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceS3Path
CreateQuerySuggestionsBlockListRequest.Builder sourceS3Path(S3Path sourceS3Path)
The S3 path to your block list text file in your S3 bucket.
Each block word or phrase should be on a separate line in a text file.
For information on the current quota limits for block lists, see Quotas for Amazon Kendra.
- Parameters:
sourceS3Path- The S3 path to your block list text file in your S3 bucket.Each block word or phrase should be on a separate line in a text file.
For information on the current quota limits for block lists, see Quotas for Amazon Kendra.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceS3Path
default CreateQuerySuggestionsBlockListRequest.Builder sourceS3Path(Consumer<S3Path.Builder> sourceS3Path)
The S3 path to your block list text file in your S3 bucket.
Each block word or phrase should be on a separate line in a text file.
For information on the current quota limits for block lists, see Quotas for Amazon Kendra.
This is a convenience method that creates an instance of theS3Path.Builderavoiding the need to create one manually viaS3Path.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosourceS3Path(S3Path).- Parameters:
sourceS3Path- a consumer that will call methods onS3Path.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
sourceS3Path(S3Path)
-
clientToken
CreateQuerySuggestionsBlockListRequest.Builder clientToken(String clientToken)
A token that you provide to identify the request to create a query suggestions block list.
- Parameters:
clientToken- A token that you provide to identify the request to create a query suggestions block list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
CreateQuerySuggestionsBlockListRequest.Builder roleArn(String roleArn)
The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket that contains the block list text file. For more information, see IAM access roles for Amazon Kendra.
- Parameters:
roleArn- The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket that contains the block list text file. For more information, see IAM access roles for Amazon Kendra.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateQuerySuggestionsBlockListRequest.Builder tags(Collection<Tag> tags)
A list of key-value pairs that identify or categorize the block list. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.
- Parameters:
tags- A list of key-value pairs that identify or categorize the block list. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateQuerySuggestionsBlockListRequest.Builder tags(Tag... tags)
A list of key-value pairs that identify or categorize the block list. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.
- Parameters:
tags- A list of key-value pairs that identify or categorize the block list. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateQuerySuggestionsBlockListRequest.Builder tags(Consumer<Tag.Builder>... tags)
A list of key-value pairs that identify or categorize the block list. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
overrideConfiguration
CreateQuerySuggestionsBlockListRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateQuerySuggestionsBlockListRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-