Interface CreateThesaurusRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateThesaurusRequest.Builder,CreateThesaurusRequest>,KendraRequest.Builder,SdkBuilder<CreateThesaurusRequest.Builder,CreateThesaurusRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateThesaurusRequest
public static interface CreateThesaurusRequest.Builder extends KendraRequest.Builder, SdkPojo, CopyableBuilder<CreateThesaurusRequest.Builder,CreateThesaurusRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateThesaurusRequest.BuilderclientToken(String clientToken)A token that you provide to identify the request to create a thesaurus.CreateThesaurusRequest.Builderdescription(String description)A description for the thesaurus.CreateThesaurusRequest.BuilderindexId(String indexId)The identifier of the index for the thesaurus.CreateThesaurusRequest.Buildername(String name)A name for the thesaurus.CreateThesaurusRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateThesaurusRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateThesaurusRequest.BuilderroleArn(String roleArn)The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket that contains the thesaurus file.default CreateThesaurusRequest.BuildersourceS3Path(Consumer<S3Path.Builder> sourceS3Path)The path to the thesaurus file in S3.CreateThesaurusRequest.BuildersourceS3Path(S3Path sourceS3Path)The path to the thesaurus file in S3.CreateThesaurusRequest.Buildertags(Collection<Tag> tags)A list of key-value pairs that identify or categorize the thesaurus.CreateThesaurusRequest.Buildertags(Consumer<Tag.Builder>... tags)A list of key-value pairs that identify or categorize the thesaurus.CreateThesaurusRequest.Buildertags(Tag... tags)A list of key-value pairs that identify or categorize the thesaurus.-
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
CreateThesaurusRequest.Builder indexId(String indexId)
The identifier of the index for the thesaurus.
- Parameters:
indexId- The identifier of the index for the thesaurus.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
CreateThesaurusRequest.Builder name(String name)
A name for the thesaurus.
- Parameters:
name- A name for the thesaurus.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
CreateThesaurusRequest.Builder description(String description)
A description for the thesaurus.
- Parameters:
description- A description for the thesaurus.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
CreateThesaurusRequest.Builder roleArn(String roleArn)
The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket that contains the thesaurus 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 thesaurus 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
CreateThesaurusRequest.Builder tags(Collection<Tag> tags)
A list of key-value pairs that identify or categorize the thesaurus. You can also use tags to help control access to the thesaurus. 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 thesaurus. You can also use tags to help control access to the thesaurus. 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
CreateThesaurusRequest.Builder tags(Tag... tags)
A list of key-value pairs that identify or categorize the thesaurus. You can also use tags to help control access to the thesaurus. 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 thesaurus. You can also use tags to help control access to the thesaurus. 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
CreateThesaurusRequest.Builder tags(Consumer<Tag.Builder>... tags)
A list of key-value pairs that identify or categorize the thesaurus. You can also use tags to help control access to the thesaurus. 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)
-
sourceS3Path
CreateThesaurusRequest.Builder sourceS3Path(S3Path sourceS3Path)
The path to the thesaurus file in S3.
- Parameters:
sourceS3Path- The path to the thesaurus file in S3.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceS3Path
default CreateThesaurusRequest.Builder sourceS3Path(Consumer<S3Path.Builder> sourceS3Path)
The path to the thesaurus file in S3.
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
CreateThesaurusRequest.Builder clientToken(String clientToken)
A token that you provide to identify the request to create a thesaurus. Multiple calls to the
CreateThesaurusAPI with the same client token will create only one thesaurus.- Parameters:
clientToken- A token that you provide to identify the request to create a thesaurus. Multiple calls to theCreateThesaurusAPI with the same client token will create only one thesaurus.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateThesaurusRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateThesaurusRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-