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.BuildersourceS3Path(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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.kendra.model.KendraRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.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:
-
overrideConfiguration
UpdateThesaurusRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-