Class LexiconAttributes
- java.lang.Object
-
- software.amazon.awssdk.services.polly.model.LexiconAttributes
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<LexiconAttributes.Builder,LexiconAttributes>
@Generated("software.amazon.awssdk:codegen") public final class LexiconAttributes extends Object implements SdkPojo, Serializable, 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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLexiconAttributes.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringalphabet()Phonetic alphabet used in the lexicon.static LexiconAttributes.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()LanguageCodelanguageCode()Language code that the lexicon applies to.StringlanguageCodeAsString()Language code that the lexicon applies to.InstantlastModified()Date lexicon was last modified (a timestamp value).IntegerlexemesCount()Number of lexemes in the lexicon.StringlexiconArn()Amazon Resource Name (ARN) of the lexicon.List<SdkField<?>>sdkFields()static Class<? extends LexiconAttributes.Builder>serializableBuilderClass()Integersize()Total size of the lexicon, in characters.LexiconAttributes.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
alphabet
public final String alphabet()
Phonetic alphabet used in the lexicon. Valid values are
ipaandx-sampa.- Returns:
- Phonetic alphabet used in the lexicon. Valid values are
ipaandx-sampa.
-
languageCode
public final LanguageCode 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,
languageCodewill 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:
LanguageCode
-
languageCodeAsString
public final String 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,
languageCodewill 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:
LanguageCode
-
lastModified
public final Instant lastModified()
Date lexicon was last modified (a timestamp value).
- Returns:
- Date lexicon was last modified (a timestamp value).
-
lexiconArn
public final String lexiconArn()
Amazon Resource Name (ARN) of the lexicon.
- Returns:
- Amazon Resource Name (ARN) of the lexicon.
-
lexemesCount
public final Integer lexemesCount()
Number of lexemes in the lexicon.
- Returns:
- Number of lexemes in the lexicon.
-
size
public final Integer size()
Total size of the lexicon, in characters.
- Returns:
- Total size of the lexicon, in characters.
-
toBuilder
public LexiconAttributes.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<LexiconAttributes.Builder,LexiconAttributes>
-
builder
public static LexiconAttributes.Builder builder()
-
serializableBuilderClass
public static Class<? extends LexiconAttributes.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
-