libZSservicesZSamazonka-sesZSamazonka-ses
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SES.Types.Message

Description

 
Synopsis

Documentation

data Message Source #

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

See: newMessage smart constructor.

Constructors

Message' 

Fields

  • subject :: Content

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

  • body :: Body

    The message body.

Instances

Instances details
Eq Message Source # 
Instance details

Defined in Amazonka.SES.Types.Message

Methods

(==) :: Message -> Message -> Bool #

(/=) :: Message -> Message -> Bool #

Read Message Source # 
Instance details

Defined in Amazonka.SES.Types.Message

Show Message Source # 
Instance details

Defined in Amazonka.SES.Types.Message

Generic Message Source # 
Instance details

Defined in Amazonka.SES.Types.Message

Associated Types

type Rep Message :: Type -> Type #

Methods

from :: Message -> Rep Message x #

to :: Rep Message x -> Message #

NFData Message Source # 
Instance details

Defined in Amazonka.SES.Types.Message

Methods

rnf :: Message -> () #

Hashable Message Source # 
Instance details

Defined in Amazonka.SES.Types.Message

Methods

hashWithSalt :: Int -> Message -> Int #

hash :: Message -> Int #

ToQuery Message Source # 
Instance details

Defined in Amazonka.SES.Types.Message

type Rep Message Source # 
Instance details

Defined in Amazonka.SES.Types.Message

type Rep Message = D1 ('MetaData "Message" "Amazonka.SES.Types.Message" "libZSservicesZSamazonka-sesZSamazonka-ses" 'False) (C1 ('MetaCons "Message'" 'PrefixI 'True) (S1 ('MetaSel ('Just "subject") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Content) :*: S1 ('MetaSel ('Just "body") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Body)))

newMessage Source #

Create a value of Message with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

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

$sel:body:Message', message_body - The message body.

message_subject :: Lens' Message Content Source #

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

message_body :: Lens' Message Body Source #

The message body.