Class LexiconAttributes

    • Method Detail

      • alphabet

        public final String alphabet()

        Phonetic alphabet used in the lexicon. Valid values are ipa and x-sampa.

        Returns:
        Phonetic alphabet used in the lexicon. Valid values are ipa and x-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, languageCode will return LanguageCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from languageCodeAsString().

        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, languageCode will return LanguageCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from languageCodeAsString().

        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.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)