Class DetectSyntaxRequest

    • Method Detail

      • text

        public final String text()

        A UTF-8 string. The maximum string size is 5 KB.

        Returns:
        A UTF-8 string. The maximum string size is 5 KB.
      • languageCode

        public final SyntaxLanguageCode languageCode()

        The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").

        If the service returns an enum value that is not available in the current SDK version, languageCode will return SyntaxLanguageCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from languageCodeAsString().

        Returns:
        The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").
        See Also:
        SyntaxLanguageCode
      • languageCodeAsString

        public final String languageCodeAsString()

        The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").

        If the service returns an enum value that is not available in the current SDK version, languageCode will return SyntaxLanguageCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from languageCodeAsString().

        Returns:
        The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").
        See Also:
        SyntaxLanguageCode
      • 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