JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.793

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.comprehend.model

Class DetectSentimentRequest

    • Constructor Detail

      • DetectSentimentRequest

        public DetectSentimentRequest()
    • Method Detail

      • setText

        public void setText(String text)

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

        Parameters:
        text - A UTF-8 text string. The maximum string size is 5 KB.
      • getText

        public String getText()

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

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

        public DetectSentimentRequest withText(String text)

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

        Parameters:
        text - A UTF-8 text string. The maximum string size is 5 KB.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setLanguageCode

        public void setLanguageCode(String 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.

        Parameters:
        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.
        See Also:
        LanguageCode
      • getLanguageCode

        public String getLanguageCode()

        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.

        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
      • withLanguageCode

        public DetectSentimentRequest withLanguageCode(String 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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        LanguageCode
      • withLanguageCode

        public DetectSentimentRequest withLanguageCode(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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        LanguageCode
      • toString

        public 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
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /