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.simpleemail.model

Class Content

  • All Implemented Interfaces:
    Serializable, Cloneable


    @Generated(value="com.amazonaws:aws-java-sdk-code-generator")
    public class Content
    extends Object
    implements Serializable, Cloneable 

    Represents textual data, plus an optional character set specification.

    By default, the text must be 7-bit ASCII, due to the constraints of the SMTP protocol. If the text must contain any other characters, then you must also specify a character set. Examples include UTF-8, ISO-8859-1, and Shift_JIS.

    See Also:
    AWS API Documentation, Serialized Form
    • Constructor Detail

      • Content

        public Content()
        Default constructor for Content object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
      • Content

        public Content(String data)
        Constructs a new Content object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
        Parameters:
        data - The textual data of the content.
    • Method Detail

      • setData

        public void setData(String data)

        The textual data of the content.

        Parameters:
        data - The textual data of the content.
      • getData

        public String getData()

        The textual data of the content.

        Returns:
        The textual data of the content.
      • withData

        public Content withData(String data)

        The textual data of the content.

        Parameters:
        data - The textual data of the content.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setCharset

        public void setCharset(String charset)

        The character set of the content.

        Parameters:
        charset - The character set of the content.
      • getCharset

        public String getCharset()

        The character set of the content.

        Returns:
        The character set of the content.
      • withCharset

        public Content withCharset(String charset)

        The character set of the content.

        Parameters:
        charset - The character set of the content.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • 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 によって変換されたページ (->オリジナル) /