Interface UpdateThesaurusRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateThesaurusRequest.Builder,
,UpdateThesaurusRequest> KendraRequest.Builder
,SdkBuilder<UpdateThesaurusRequest.Builder,
,UpdateThesaurusRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateThesaurusRequest
public static interface UpdateThesaurusRequest.Builder
extends KendraRequest.Builder, SdkPojo, CopyableBuilder<UpdateThesaurusRequest.Builder,UpdateThesaurusRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) A new description for the thesaurus.The identifier of the thesaurus you want to update.The identifier of the index for the thesaurus.A new name for the thesaurus.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.An IAM role that gives Amazon Kendra permissions to access thesaurus file specified inSourceS3Path
.default UpdateThesaurusRequest.Builder
sourceS3Path
(Consumer<S3Path.Builder> sourceS3Path) Sets the value of the SourceS3Path property for this object.sourceS3Path
(S3Path sourceS3Path) Sets the value of the SourceS3Path property for this object.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 Details
-
id
The identifier of the thesaurus you want to update.
- Parameters:
id
- The identifier of the thesaurus you want to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
A new name for the thesaurus.
- Parameters:
name
- A new name for the thesaurus.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
description
A new description for the thesaurus.
- Parameters:
description
- A new description for the thesaurus.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
An IAM role that gives Amazon Kendra permissions to access thesaurus file specified in
SourceS3Path
.- Parameters:
roleArn
- An IAM role that gives Amazon Kendra permissions to access thesaurus file specified inSourceS3Path
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceS3Path
Sets the value of the SourceS3Path property for this object.- Parameters:
sourceS3Path
- The new value for the SourceS3Path property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceS3Path
Sets the value of the SourceS3Path property for this object. This is a convenience method that creates an instance of theS3Path.Builder
avoiding the need to create one manually viaS3Path.builder()
.When the
Consumer
completes,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:
-
overrideConfiguration
UpdateThesaurusRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateThesaurusRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-