Class DetectKeyPhrasesRequest

    • Method Detail

      • text

        public final String text()

        A UTF-8 text string. The string must contain less than 100 KB of UTF-8 encoded characters.

        Returns:
        A UTF-8 text string. The string must contain less than 100 KB of UTF-8 encoded characters.
      • languageCode

        public final LanguageCode languageCode()

        The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. All documents must be in the same language.

        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:
        The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. All documents must be in the same language.
        See Also:
        LanguageCode
      • languageCodeAsString

        public final String languageCodeAsString()

        The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. All documents must be in the same language.

        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:
        The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. All documents must be in the same language.
        See Also:
        LanguageCode
      • 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