libZSservicesZSamazonka-sesv2ZSamazonka-sesv2
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.SESV2.Types.Body

Description

 
Synopsis

Documentation

data Body Source #

Represents the body of the email message.

See: newBody smart constructor.

Constructors

Body' 

Fields

  • text :: Maybe Content

    An object that represents the version of the message that is displayed in email clients that don't support HTML, or clients where the recipient has disabled HTML rendering.

  • html :: Maybe Content

    An object that represents the version of the message that is displayed in email clients that support HTML. HTML messages can include formatted text, hyperlinks, images, and more.

Instances

Instances details
Eq Body Source # 
Instance details

Defined in Amazonka.SESV2.Types.Body

Methods

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

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

Read Body Source # 
Instance details

Defined in Amazonka.SESV2.Types.Body

Show Body Source # 
Instance details

Defined in Amazonka.SESV2.Types.Body

Methods

showsPrec :: Int -> Body -> ShowS #

show :: Body -> String #

showList :: [Body] -> ShowS #

Generic Body Source # 
Instance details

Defined in Amazonka.SESV2.Types.Body

Associated Types

type Rep Body :: Type -> Type #

Methods

from :: Body -> Rep Body x #

to :: Rep Body x -> Body #

NFData Body Source # 
Instance details

Defined in Amazonka.SESV2.Types.Body

Methods

rnf :: Body -> () #

Hashable Body Source # 
Instance details

Defined in Amazonka.SESV2.Types.Body

Methods

hashWithSalt :: Int -> Body -> Int #

hash :: Body -> Int #

ToJSON Body Source # 
Instance details

Defined in Amazonka.SESV2.Types.Body

type Rep Body Source # 
Instance details

Defined in Amazonka.SESV2.Types.Body

type Rep Body = D1 ('MetaData "Body" "Amazonka.SESV2.Types.Body" "libZSservicesZSamazonka-sesv2ZSamazonka-sesv2" 'False) (C1 ('MetaCons "Body'" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Content)) :*: S1 ('MetaSel ('Just "html") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Content))))

newBody :: Body Source #

Create a value of Body 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:text:Body', body_text - An object that represents the version of the message that is displayed in email clients that don't support HTML, or clients where the recipient has disabled HTML rendering.

$sel:html:Body', body_html - An object that represents the version of the message that is displayed in email clients that support HTML. HTML messages can include formatted text, hyperlinks, images, and more.

body_text :: Lens' Body (Maybe Content) Source #

An object that represents the version of the message that is displayed in email clients that don't support HTML, or clients where the recipient has disabled HTML rendering.

body_html :: Lens' Body (Maybe Content) Source #

An object that represents the version of the message that is displayed in email clients that support HTML. HTML messages can include formatted text, hyperlinks, images, and more.