Class LexiconAttributes
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<LexiconAttributes.Builder,
LexiconAttributes>
Contains metadata describing the lexicon such as the number of lexemes, language code, and so on. For more information, see Managing Lexicons.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
alphabet()
Phonetic alphabet used in the lexicon.static LexiconAttributes.Builder
builder()
final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final LanguageCode
Language code that the lexicon applies to.final String
Language code that the lexicon applies to.final Instant
Date lexicon was last modified (a timestamp value).final Integer
Number of lexemes in the lexicon.final String
Amazon Resource Name (ARN) of the lexicon.static Class
<? extends LexiconAttributes.Builder> final Integer
size()
Total size of the lexicon, in characters.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
alphabet
Phonetic alphabet used in the lexicon. Valid values are
ipa
andx-sampa
.- Returns:
- Phonetic alphabet used in the lexicon. Valid values are
ipa
andx-sampa
.
-
languageCode
Language code that the lexicon applies to. A lexicon with a language code such as "en" would be applied to all English languages (en-GB, en-US, en-AUS, en-WLS, and so on.
If the service returns an enum value that is not available in the current SDK version,
languageCode
will returnLanguageCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromlanguageCodeAsString()
.- Returns:
- Language code that the lexicon applies to. A lexicon with a language code such as "en" would be applied to all English languages (en-GB, en-US, en-AUS, en-WLS, and so on.
- See Also:
-
languageCodeAsString
Language code that the lexicon applies to. A lexicon with a language code such as "en" would be applied to all English languages (en-GB, en-US, en-AUS, en-WLS, and so on.
If the service returns an enum value that is not available in the current SDK version,
languageCode
will returnLanguageCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromlanguageCodeAsString()
.- Returns:
- Language code that the lexicon applies to. A lexicon with a language code such as "en" would be applied to all English languages (en-GB, en-US, en-AUS, en-WLS, and so on.
- See Also:
-
lastModified
Date lexicon was last modified (a timestamp value).
- Returns:
- Date lexicon was last modified (a timestamp value).
-
lexiconArn
Amazon Resource Name (ARN) of the lexicon.
- Returns:
- Amazon Resource Name (ARN) of the lexicon.
-
lexemesCount
Number of lexemes in the lexicon.
- Returns:
- Number of lexemes in the lexicon.
-
size
Total size of the lexicon, in characters.
- Returns:
- Total size of the lexicon, in characters.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<LexiconAttributes.Builder,
LexiconAttributes> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in 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
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-