Interface DescribeThesaurusResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeThesaurusResponse.Builder,DescribeThesaurusResponse>,KendraResponse.Builder,SdkBuilder<DescribeThesaurusResponse.Builder,DescribeThesaurusResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- DescribeThesaurusResponse
public static interface DescribeThesaurusResponse.Builder extends KendraResponse.Builder, SdkPojo, CopyableBuilder<DescribeThesaurusResponse.Builder,DescribeThesaurusResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DescribeThesaurusResponse.BuildercreatedAt(Instant createdAt)The Unix timestamp when the thesaurus was created.DescribeThesaurusResponse.Builderdescription(String description)The thesaurus description.DescribeThesaurusResponse.BuildererrorMessage(String errorMessage)When theStatusfield value isFAILED, theErrorMessagefield provides more information.DescribeThesaurusResponse.BuilderfileSizeBytes(Long fileSizeBytes)The size of the thesaurus file in bytes.DescribeThesaurusResponse.Builderid(String id)The identifier of the thesaurus.DescribeThesaurusResponse.BuilderindexId(String indexId)The identifier of the index for the thesaurus.DescribeThesaurusResponse.Buildername(String name)The thesaurus name.DescribeThesaurusResponse.BuilderroleArn(String roleArn)An IAM role that gives Amazon Kendra permissions to access thesaurus file specified inSourceS3Path.default DescribeThesaurusResponse.BuildersourceS3Path(Consumer<S3Path.Builder> sourceS3Path)Sets the value of the SourceS3Path property for this object.DescribeThesaurusResponse.BuildersourceS3Path(S3Path sourceS3Path)Sets the value of the SourceS3Path property for this object.DescribeThesaurusResponse.Builderstatus(String status)The current status of the thesaurus.DescribeThesaurusResponse.Builderstatus(ThesaurusStatus status)The current status of the thesaurus.DescribeThesaurusResponse.BuildersynonymRuleCount(Long synonymRuleCount)The number of synonym rules in the thesaurus file.DescribeThesaurusResponse.BuildertermCount(Long termCount)The number of unique terms in the thesaurus file.DescribeThesaurusResponse.BuilderupdatedAt(Instant updatedAt)The Unix timestamp when the thesaurus was last updated.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.kendra.model.KendraResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
id
DescribeThesaurusResponse.Builder id(String id)
The identifier of the thesaurus.
- Parameters:
id- The identifier of the thesaurus.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
indexId
DescribeThesaurusResponse.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
DescribeThesaurusResponse.Builder name(String name)
The thesaurus name.
- Parameters:
name- The thesaurus name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
DescribeThesaurusResponse.Builder description(String description)
The thesaurus description.
- Parameters:
description- The thesaurus description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
DescribeThesaurusResponse.Builder status(String status)
The current status of the thesaurus. When the value is
ACTIVE, queries are able to use the thesaurus. If theStatusfield value isFAILED, theErrorMessagefield provides more information.If the status is
ACTIVE_BUT_UPDATE_FAILED, it means that Amazon Kendra could not ingest the new thesaurus file. The old thesaurus file is still active.- Parameters:
status- The current status of the thesaurus. When the value isACTIVE, queries are able to use the thesaurus. If theStatusfield value isFAILED, theErrorMessagefield provides more information.If the status is
ACTIVE_BUT_UPDATE_FAILED, it means that Amazon Kendra could not ingest the new thesaurus file. The old thesaurus file is still active.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ThesaurusStatus,ThesaurusStatus
-
status
DescribeThesaurusResponse.Builder status(ThesaurusStatus status)
The current status of the thesaurus. When the value is
ACTIVE, queries are able to use the thesaurus. If theStatusfield value isFAILED, theErrorMessagefield provides more information.If the status is
ACTIVE_BUT_UPDATE_FAILED, it means that Amazon Kendra could not ingest the new thesaurus file. The old thesaurus file is still active.- Parameters:
status- The current status of the thesaurus. When the value isACTIVE, queries are able to use the thesaurus. If theStatusfield value isFAILED, theErrorMessagefield provides more information.If the status is
ACTIVE_BUT_UPDATE_FAILED, it means that Amazon Kendra could not ingest the new thesaurus file. The old thesaurus file is still active.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ThesaurusStatus,ThesaurusStatus
-
errorMessage
DescribeThesaurusResponse.Builder errorMessage(String errorMessage)
When the
Statusfield value isFAILED, theErrorMessagefield provides more information.- Parameters:
errorMessage- When theStatusfield value isFAILED, theErrorMessagefield provides more information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
DescribeThesaurusResponse.Builder createdAt(Instant createdAt)
The Unix timestamp when the thesaurus was created.
- Parameters:
createdAt- The Unix timestamp when the thesaurus was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
DescribeThesaurusResponse.Builder updatedAt(Instant updatedAt)
The Unix timestamp when the thesaurus was last updated.
- Parameters:
updatedAt- The Unix timestamp when the thesaurus was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
DescribeThesaurusResponse.Builder roleArn(String 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
DescribeThesaurusResponse.Builder sourceS3Path(S3Path 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
default DescribeThesaurusResponse.Builder sourceS3Path(Consumer<S3Path.Builder> 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:
sourceS3Path(S3Path)
-
fileSizeBytes
DescribeThesaurusResponse.Builder fileSizeBytes(Long fileSizeBytes)
The size of the thesaurus file in bytes.
- Parameters:
fileSizeBytes- The size of the thesaurus file in bytes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
termCount
DescribeThesaurusResponse.Builder termCount(Long termCount)
The number of unique terms in the thesaurus file. For example, the synonyms
a,b,canda=>d, the term count would be 4.- Parameters:
termCount- The number of unique terms in the thesaurus file. For example, the synonymsa,b,canda=>d, the term count would be 4.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
synonymRuleCount
DescribeThesaurusResponse.Builder synonymRuleCount(Long synonymRuleCount)
The number of synonym rules in the thesaurus file.
- Parameters:
synonymRuleCount- The number of synonym rules in the thesaurus file.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-