libZSservicesZSamazonka-supportZSamazonka-support
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.Support.Types.Attachment

Description

 
Synopsis

Documentation

data Attachment Source #

An attachment to a case communication. The attachment consists of the file name and the content of the file.

See: newAttachment smart constructor.

Constructors

Attachment' 

Fields

Instances

Instances details
Eq Attachment Source # 
Instance details

Defined in Amazonka.Support.Types.Attachment

Read Attachment Source # 
Instance details

Defined in Amazonka.Support.Types.Attachment

Show Attachment Source # 
Instance details

Defined in Amazonka.Support.Types.Attachment

Generic Attachment Source # 
Instance details

Defined in Amazonka.Support.Types.Attachment

Associated Types

type Rep Attachment :: Type -> Type #

NFData Attachment Source # 
Instance details

Defined in Amazonka.Support.Types.Attachment

Methods

rnf :: Attachment -> () #

Hashable Attachment Source # 
Instance details

Defined in Amazonka.Support.Types.Attachment

ToJSON Attachment Source # 
Instance details

Defined in Amazonka.Support.Types.Attachment

FromJSON Attachment Source # 
Instance details

Defined in Amazonka.Support.Types.Attachment

type Rep Attachment Source # 
Instance details

Defined in Amazonka.Support.Types.Attachment

type Rep Attachment = D1 ('MetaData "Attachment" "Amazonka.Support.Types.Attachment" "libZSservicesZSamazonka-supportZSamazonka-support" 'False) (C1 ('MetaCons "Attachment'" 'PrefixI 'True) (S1 ('MetaSel ('Just "data'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Base64)) :*: S1 ('MetaSel ('Just "fileName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newAttachment :: Attachment Source #

Create a value of Attachment 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:data':Attachment', attachment_data - The content of the attachment file.-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.

$sel:fileName:Attachment', attachment_fileName - The name of the attachment file.

attachment_data :: Lens' Attachment (Maybe ByteString) Source #

The content of the attachment file.-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.

attachment_fileName :: Lens' Attachment (Maybe Text) Source #

The name of the attachment file.