libZSservicesZSamazonka-pinpoint-emailZSamazonka-pinpoint-email
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.PinpointEmail.Types.Message

Description

 
Synopsis

Documentation

data Message Source #

Represents the email message that you're sending. The Message object consists of a subject line and a message body.

See: newMessage smart constructor.

Constructors

Message' 

Fields

  • subject :: Content

    The subject line of the email. The subject line can only contain 7-bit ASCII characters. However, you can specify non-ASCII characters in the subject line by using encoded-word syntax, as described in RFC 2047.

  • body :: Body

    The body of the message. You can specify an HTML version of the message, a text-only version of the message, or both.

Instances

Instances details
Eq Message Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Message

Methods

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

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

Read Message Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Message

Show Message Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Message

Generic Message Source # 
Instance details

Defined in Amazonka.PinpointEmail.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.PinpointEmail.Types.Message

Methods

rnf :: Message -> () #

Hashable Message Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Message

Methods

hashWithSalt :: Int -> Message -> Int #

hash :: Message -> Int #

ToJSON Message Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Message

type Rep Message Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Message

type Rep Message = D1 ('MetaData "Message" "Amazonka.PinpointEmail.Types.Message" "libZSservicesZSamazonka-pinpoint-emailZSamazonka-pinpoint-email" '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 line of the email. The subject line can only contain 7-bit ASCII characters. However, you can specify non-ASCII characters in the subject line by using encoded-word syntax, as described in RFC 2047.

$sel:body:Message', message_body - The body of the message. You can specify an HTML version of the message, a text-only version of the message, or both.

message_subject :: Lens' Message Content Source #

The subject line of the email. The subject line can only contain 7-bit ASCII characters. However, you can specify non-ASCII characters in the subject line by using encoded-word syntax, as described in RFC 2047.

message_body :: Lens' Message Body Source #

The body of the message. You can specify an HTML version of the message, a text-only version of the message, or both.