amazonka-pinpoint-email-2.0: Amazon Pinpoint Email Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.PinpointEmail.Types.Body

Description

 
Synopsis

Documentation

data Body Source #

Represents the body of the email message.

See: newBody smart constructor.

Constructors

Body' 

Fields

  • 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.

  • 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.

Instances

Instances details
ToJSON Body Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Body

Generic Body Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Body

Associated Types

type Rep Body :: Type -> Type #

Methods

from :: Body -> Rep Body x #

to :: Rep Body x -> Body #

Read Body Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Body

Show Body Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Body

Methods

showsPrec :: Int -> Body -> ShowS #

show :: Body -> String #

showList :: [Body] -> ShowS #

NFData Body Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Body

Methods

rnf :: Body -> () #

Eq Body Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Body

Methods

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

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

Hashable Body Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Body

Methods

hashWithSalt :: Int -> Body -> Int #

hash :: Body -> Int #

type Rep Body Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Body

type Rep Body = D1 ('MetaData "Body" "Amazonka.PinpointEmail.Types.Body" "amazonka-pinpoint-email-2.0-EgVsRBIHQXMGA9Xbyu2BvI" 'False) (C1 ('MetaCons "Body'" 'PrefixI 'True) (S1 ('MetaSel ('Just "html") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Content)) :*: S1 ('MetaSel ('Just "text") '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: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.

$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.

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.

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.