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

Description

 
Synopsis

Documentation

data Content Source #

An object that represents the content of the email, and optionally a character set specification.

See: newContent smart constructor.

Constructors

Content' 

Fields

  • charset :: Maybe Text

    The character set for the content. Because of the constraints of the SMTP protocol, Amazon Pinpoint uses 7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character set. For example, you could specify UTF-8, ISO-8859-1, or Shift_JIS.

  • data' :: Text

    The content of the message itself.

Instances

Instances details
Eq Content Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Content

Methods

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

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

Read Content Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Content

Show Content Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Content

Generic Content Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Content

Associated Types

type Rep Content :: Type -> Type #

Methods

from :: Content -> Rep Content x #

to :: Rep Content x -> Content #

NFData Content Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Content

Methods

rnf :: Content -> () #

Hashable Content Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Content

Methods

hashWithSalt :: Int -> Content -> Int #

hash :: Content -> Int #

ToJSON Content Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Content

type Rep Content Source # 
Instance details

Defined in Amazonka.PinpointEmail.Types.Content

type Rep Content = D1 ('MetaData "Content" "Amazonka.PinpointEmail.Types.Content" "libZSservicesZSamazonka-pinpoint-emailZSamazonka-pinpoint-email" 'False) (C1 ('MetaCons "Content'" 'PrefixI 'True) (S1 ('MetaSel ('Just "charset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "data'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newContent Source #

Create a value of Content 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:charset:Content', content_charset - The character set for the content. Because of the constraints of the SMTP protocol, Amazon Pinpoint uses 7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character set. For example, you could specify UTF-8, ISO-8859-1, or Shift_JIS.

$sel:data':Content', content_data - The content of the message itself.

content_charset :: Lens' Content (Maybe Text) Source #

The character set for the content. Because of the constraints of the SMTP protocol, Amazon Pinpoint uses 7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character set. For example, you could specify UTF-8, ISO-8859-1, or Shift_JIS.

content_data :: Lens' Content Text Source #

The content of the message itself.