Class DescribeThesaurusResponse
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<DescribeThesaurusResponse.Builder,DescribeThesaurusResponse>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final InstantThe Unix timestamp when the thesaurus was created.final StringThe thesaurus description.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringWhen theStatusfield value isFAILED, theErrorMessagefield provides more information.final LongThe size of the thesaurus file in bytes.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) Used to retrieve the value of a field from any class that extendsSdkResponse.final inthashCode()final Stringid()The identifier of the thesaurus.final StringindexId()The identifier of the index for the thesaurus.final Stringname()The thesaurus name.final StringroleArn()An IAM role that gives Amazon Kendra permissions to access thesaurus file specified inSourceS3Path.static Class<? extends DescribeThesaurusResponse.Builder> final S3PathReturns the value of the SourceS3Path property for this object.final ThesaurusStatusstatus()The current status of the thesaurus.final StringThe current status of the thesaurus.final LongThe number of synonym rules in the thesaurus file.final LongThe number of unique terms in the thesaurus file.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final InstantThe Unix timestamp when the thesaurus was last updated.Methods inherited from class software.amazon.awssdk.services.kendra.model.KendraResponse
responseMetadataMethods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponseMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
id
-
indexId
The identifier of the index for the thesaurus.
- Returns:
- The identifier of the index for the thesaurus.
-
name
-
description
-
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.If the service returns an enum value that is not available in the current SDK version,
statuswill returnThesaurusStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- 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. - See Also:
-
statusAsString
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.If the service returns an enum value that is not available in the current SDK version,
statuswill returnThesaurusStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- 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. - See Also:
-
errorMessage
When the
Statusfield value isFAILED, theErrorMessagefield provides more information.- Returns:
- When the
Statusfield value isFAILED, theErrorMessagefield provides more information.
-
createdAt
The Unix timestamp when the thesaurus was created.
- Returns:
- The Unix timestamp when the thesaurus was created.
-
updatedAt
The Unix timestamp when the thesaurus was last updated.
- Returns:
- The Unix timestamp when the thesaurus was last updated.
-
roleArn
An IAM role that gives Amazon Kendra permissions to access thesaurus file specified in
SourceS3Path.- Returns:
- An IAM role that gives Amazon Kendra permissions to access thesaurus file specified in
SourceS3Path.
-
sourceS3Path
Returns the value of the SourceS3Path property for this object.- Returns:
- The value of the SourceS3Path property for this object.
-
fileSizeBytes
The size of the thesaurus file in bytes.
- Returns:
- The size of the thesaurus file in bytes.
-
termCount
The number of unique terms in the thesaurus file. For example, the synonyms
a,b,canda=>d, the term count would be 4.- Returns:
- The number of unique terms in the thesaurus file. For example, the synonyms
a,b,canda=>d, the term count would be 4.
-
synonymRuleCount
The number of synonym rules in the thesaurus file.
- Returns:
- The number of synonym rules in the thesaurus file.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<DescribeThesaurusResponse.Builder,DescribeThesaurusResponse> - Specified by:
toBuilderin classAwsResponse- Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsResponse
-
equals
- Overrides:
equalsin classAwsResponse
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
Description copied from class:SdkResponseUsed to retrieve the value of a field from any class that extendsSdkResponse. The field name specified should match the member name from the corresponding service-2.json model specified in the codegen-resources folder for a given service. The class specifies what class to cast the returned value to. If the returned value is also a modeled class, theSdkResponse.getValueForField(String, Class)method will again be available.- Overrides:
getValueForFieldin classSdkResponse- Parameters:
fieldName- The name of the member to be retrieved.clazz- The class to cast the returned object to.- Returns:
- Optional containing the casted return value
-
sdkFields
-