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 DetectToxicContentRequest

    • Constructor Detail

      • DetectToxicContentRequest

        public DetectToxicContentRequest()
    • Method Detail

      • getTextSegments

        public List<TextSegment> getTextSegments()

        A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list is 10 KB.

        Returns:
        A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list is 10 KB.
      • setTextSegments

        public void setTextSegments(Collection<TextSegment> textSegments)

        A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list is 10 KB.

        Parameters:
        textSegments - A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list is 10 KB.
      • withTextSegments

        public DetectToxicContentRequest withTextSegments(TextSegment... textSegments)

        A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list is 10 KB.

        NOTE: This method appends the values to the existing list (if any). Use setTextSegments(java.util.Collection) or withTextSegments(java.util.Collection) if you want to override the existing values.

        Parameters:
        textSegments - A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list is 10 KB.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withTextSegments

        public DetectToxicContentRequest withTextSegments(Collection<TextSegment> textSegments)

        A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list is 10 KB.

        Parameters:
        textSegments - A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list is 10 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 text. Currently, English is the only supported language.

        Parameters:
        languageCode - The language of the input text. Currently, English is the only supported language.
        See Also:
        LanguageCode
      • getLanguageCode

        public String getLanguageCode()

        The language of the input text. Currently, English is the only supported language.

        Returns:
        The language of the input text. Currently, English is the only supported language.
        See Also:
        LanguageCode
      • withLanguageCode

        public DetectToxicContentRequest withLanguageCode(String languageCode)

        The language of the input text. Currently, English is the only supported language.

        Parameters:
        languageCode - The language of the input text. Currently, English is the only supported language.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        LanguageCode
      • withLanguageCode

        public DetectToxicContentRequest withLanguageCode(LanguageCode languageCode)

        The language of the input text. Currently, English is the only supported language.

        Parameters:
        languageCode - The language of the input text. Currently, English is the only supported 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 によって変換されたページ (->オリジナル) /