Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
Documentation
data ValueHolder Source #
A structure that can contain a value in multiple encoding formats.
See: newValueHolder
smart constructor.
Instances
newValueHolder :: ValueHolder Source #
Create a value of ValueHolder
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:ionText:ValueHolder'
, valueHolder_ionText
- An Amazon Ion plaintext value contained in a ValueHolder
structure.
$sel:ionBinary:ValueHolder'
, valueHolder_ionBinary
- An Amazon Ion binary value contained in a ValueHolder
structure.--
-- 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.
valueHolder_ionText :: Lens' ValueHolder (Maybe Text) Source #
An Amazon Ion plaintext value contained in a ValueHolder
structure.
valueHolder_ionBinary :: Lens' ValueHolder (Maybe ByteString) Source #
An Amazon Ion binary value contained in a ValueHolder
structure.--
-- 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.