com.amazonaws.services.simpleemail.model

## クラス Message

- java.lang.Object
- - com.amazonaws.services.simpleemail.model.Message

- すべての実装されたインタフェース:
    java.io.Serializable

      public class Message
      extends java.lang.Object
      implements java.io.Serializable

  Represents the message to be sent, composed of a subject and a body.

  関連項目:
    直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `Message()` Default constructor for a new Message object.
    `Message(Content subject, Body body)` Constructs a new Message object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `Body` | `getBody()` The message body.
    `Content` | `getSubject()` The subject of the message: A short summary of the content, which will appear in the recipient's inbox.
    `int` | `hashCode()`
    `void` | `setBody(Body body)` The message body.
    `void` | `setSubject(Content subject)` The subject of the message: A short summary of the content, which will appear in the recipient's inbox.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `Message` | `withBody(Body body)` The message body.
    `Message` | `withSubject(Content subject)` The subject of the message: A short summary of the content, which will appear in the recipient's inbox.

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### Message

          public Message()

      Default constructor for a new Message object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

    - #### Message

          public Message(Content subject,
                 Body body)

      Constructs a new Message object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `subject` - The subject of the message: A short summary of the content, which will appear in the recipient's inbox.
        `body` - The message body.

  - ### メソッドの詳細

    - #### getSubject

          public Content getSubject()

      The subject of the message: A short summary of the content, which will appear in the recipient's inbox.
      戻り値:
        The subject of the message: A short summary of the content, which will appear in the recipient's inbox.

    - #### setSubject

          public void setSubject(Content subject)

      The subject of the message: A short summary of the content, which will appear in the recipient's inbox.
      パラメータ:
        `subject` - The subject of the message: A short summary of the content, which will appear in the recipient's inbox.

    - #### withSubject

          public Message withSubject(Content subject)

      The subject of the message: A short summary of the content, which will appear in the recipient's inbox.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `subject` - The subject of the message: A short summary of the content, which will appear in the recipient's inbox.

    - #### getBody

          public Body getBody()

      The message body.
      戻り値:
        The message body.

    - #### setBody

          public void setBody(Body body)

      The message body.
      パラメータ:
        `body` - The message body.

    - #### withBody

          public Message withBody(Body body)

      The message body.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `body` - The message body.

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`