{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.DynamoDB.Types.ExportFormat
-- 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)
module Amazonka.DynamoDB.Types.ExportFormat
  ( ExportFormat
      ( ..,
        ExportFormat_DYNAMODB_JSON,
        ExportFormat_ION
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

newtype ExportFormat = ExportFormat'
  { ExportFormat -> Text
fromExportFormat ::
      Core.Text
  }
  deriving stock
    ( Int -> ExportFormat -> ShowS
[ExportFormat] -> ShowS
ExportFormat -> String
(Int -> ExportFormat -> ShowS)
-> (ExportFormat -> String)
-> ([ExportFormat] -> ShowS)
-> Show ExportFormat
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ExportFormat] -> ShowS
$cshowList :: [ExportFormat] -> ShowS
show :: ExportFormat -> String
$cshow :: ExportFormat -> String
showsPrec :: Int -> ExportFormat -> ShowS
$cshowsPrec :: Int -> ExportFormat -> ShowS
Prelude.Show,
      ReadPrec [ExportFormat]
ReadPrec ExportFormat
Int -> ReadS ExportFormat
ReadS [ExportFormat]
(Int -> ReadS ExportFormat)
-> ReadS [ExportFormat]
-> ReadPrec ExportFormat
-> ReadPrec [ExportFormat]
-> Read ExportFormat
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ExportFormat]
$creadListPrec :: ReadPrec [ExportFormat]
readPrec :: ReadPrec ExportFormat
$creadPrec :: ReadPrec ExportFormat
readList :: ReadS [ExportFormat]
$creadList :: ReadS [ExportFormat]
readsPrec :: Int -> ReadS ExportFormat
$creadsPrec :: Int -> ReadS ExportFormat
Prelude.Read,
      ExportFormat -> ExportFormat -> Bool
(ExportFormat -> ExportFormat -> Bool)
-> (ExportFormat -> ExportFormat -> Bool) -> Eq ExportFormat
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ExportFormat -> ExportFormat -> Bool
$c/= :: ExportFormat -> ExportFormat -> Bool
== :: ExportFormat -> ExportFormat -> Bool
$c== :: ExportFormat -> ExportFormat -> Bool
Prelude.Eq,
      Eq ExportFormat
Eq ExportFormat
-> (ExportFormat -> ExportFormat -> Ordering)
-> (ExportFormat -> ExportFormat -> Bool)
-> (ExportFormat -> ExportFormat -> Bool)
-> (ExportFormat -> ExportFormat -> Bool)
-> (ExportFormat -> ExportFormat -> Bool)
-> (ExportFormat -> ExportFormat -> ExportFormat)
-> (ExportFormat -> ExportFormat -> ExportFormat)
-> Ord ExportFormat
ExportFormat -> ExportFormat -> Bool
ExportFormat -> ExportFormat -> Ordering
ExportFormat -> ExportFormat -> ExportFormat
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ExportFormat -> ExportFormat -> ExportFormat
$cmin :: ExportFormat -> ExportFormat -> ExportFormat
max :: ExportFormat -> ExportFormat -> ExportFormat
$cmax :: ExportFormat -> ExportFormat -> ExportFormat
>= :: ExportFormat -> ExportFormat -> Bool
$c>= :: ExportFormat -> ExportFormat -> Bool
> :: ExportFormat -> ExportFormat -> Bool
$c> :: ExportFormat -> ExportFormat -> Bool
<= :: ExportFormat -> ExportFormat -> Bool
$c<= :: ExportFormat -> ExportFormat -> Bool
< :: ExportFormat -> ExportFormat -> Bool
$c< :: ExportFormat -> ExportFormat -> Bool
compare :: ExportFormat -> ExportFormat -> Ordering
$ccompare :: ExportFormat -> ExportFormat -> Ordering
$cp1Ord :: Eq ExportFormat
Prelude.Ord,
      (forall x. ExportFormat -> Rep ExportFormat x)
-> (forall x. Rep ExportFormat x -> ExportFormat)
-> Generic ExportFormat
forall x. Rep ExportFormat x -> ExportFormat
forall x. ExportFormat -> Rep ExportFormat x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ExportFormat x -> ExportFormat
$cfrom :: forall x. ExportFormat -> Rep ExportFormat x
Prelude.Generic
    )
  deriving newtype
    ( Int -> ExportFormat -> Int
ExportFormat -> Int
(Int -> ExportFormat -> Int)
-> (ExportFormat -> Int) -> Hashable ExportFormat
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ExportFormat -> Int
$chash :: ExportFormat -> Int
hashWithSalt :: Int -> ExportFormat -> Int
$chashWithSalt :: Int -> ExportFormat -> Int
Prelude.Hashable,
      ExportFormat -> ()
(ExportFormat -> ()) -> NFData ExportFormat
forall a. (a -> ()) -> NFData a
rnf :: ExportFormat -> ()
$crnf :: ExportFormat -> ()
Prelude.NFData,
      Text -> Either String ExportFormat
(Text -> Either String ExportFormat) -> FromText ExportFormat
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ExportFormat
$cfromText :: Text -> Either String ExportFormat
Core.FromText,
      ExportFormat -> Text
(ExportFormat -> Text) -> ToText ExportFormat
forall a. (a -> Text) -> ToText a
toText :: ExportFormat -> Text
$ctoText :: ExportFormat -> Text
Core.ToText,
      ExportFormat -> ByteString
(ExportFormat -> ByteString) -> ToByteString ExportFormat
forall a. (a -> ByteString) -> ToByteString a
toBS :: ExportFormat -> ByteString
$ctoBS :: ExportFormat -> ByteString
Core.ToByteString,
      ExportFormat -> ByteStringBuilder
(ExportFormat -> ByteStringBuilder) -> ToLog ExportFormat
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ExportFormat -> ByteStringBuilder
$cbuild :: ExportFormat -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ExportFormat -> [Header]
(HeaderName -> ExportFormat -> [Header]) -> ToHeader ExportFormat
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ExportFormat -> [Header]
$ctoHeader :: HeaderName -> ExportFormat -> [Header]
Core.ToHeader,
      ExportFormat -> QueryString
(ExportFormat -> QueryString) -> ToQuery ExportFormat
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ExportFormat -> QueryString
$ctoQuery :: ExportFormat -> QueryString
Core.ToQuery,
      Value -> Parser [ExportFormat]
Value -> Parser ExportFormat
(Value -> Parser ExportFormat)
-> (Value -> Parser [ExportFormat]) -> FromJSON ExportFormat
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ExportFormat]
$cparseJSONList :: Value -> Parser [ExportFormat]
parseJSON :: Value -> Parser ExportFormat
$cparseJSON :: Value -> Parser ExportFormat
Core.FromJSON,
      FromJSONKeyFunction [ExportFormat]
FromJSONKeyFunction ExportFormat
FromJSONKeyFunction ExportFormat
-> FromJSONKeyFunction [ExportFormat] -> FromJSONKey ExportFormat
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ExportFormat]
$cfromJSONKeyList :: FromJSONKeyFunction [ExportFormat]
fromJSONKey :: FromJSONKeyFunction ExportFormat
$cfromJSONKey :: FromJSONKeyFunction ExportFormat
Core.FromJSONKey,
      [ExportFormat] -> Encoding
[ExportFormat] -> Value
ExportFormat -> Encoding
ExportFormat -> Value
(ExportFormat -> Value)
-> (ExportFormat -> Encoding)
-> ([ExportFormat] -> Value)
-> ([ExportFormat] -> Encoding)
-> ToJSON ExportFormat
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ExportFormat] -> Encoding
$ctoEncodingList :: [ExportFormat] -> Encoding
toJSONList :: [ExportFormat] -> Value
$ctoJSONList :: [ExportFormat] -> Value
toEncoding :: ExportFormat -> Encoding
$ctoEncoding :: ExportFormat -> Encoding
toJSON :: ExportFormat -> Value
$ctoJSON :: ExportFormat -> Value
Core.ToJSON,
      ToJSONKeyFunction [ExportFormat]
ToJSONKeyFunction ExportFormat
ToJSONKeyFunction ExportFormat
-> ToJSONKeyFunction [ExportFormat] -> ToJSONKey ExportFormat
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ExportFormat]
$ctoJSONKeyList :: ToJSONKeyFunction [ExportFormat]
toJSONKey :: ToJSONKeyFunction ExportFormat
$ctoJSONKey :: ToJSONKeyFunction ExportFormat
Core.ToJSONKey,
      [Node] -> Either String ExportFormat
([Node] -> Either String ExportFormat) -> FromXML ExportFormat
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ExportFormat
$cparseXML :: [Node] -> Either String ExportFormat
Core.FromXML,
      ExportFormat -> XML
(ExportFormat -> XML) -> ToXML ExportFormat
forall a. (a -> XML) -> ToXML a
toXML :: ExportFormat -> XML
$ctoXML :: ExportFormat -> XML
Core.ToXML
    )

pattern ExportFormat_DYNAMODB_JSON :: ExportFormat
pattern $bExportFormat_DYNAMODB_JSON :: ExportFormat
$mExportFormat_DYNAMODB_JSON :: forall r. ExportFormat -> (Void# -> r) -> (Void# -> r) -> r
ExportFormat_DYNAMODB_JSON = ExportFormat' "DYNAMODB_JSON"

pattern ExportFormat_ION :: ExportFormat
pattern $bExportFormat_ION :: ExportFormat
$mExportFormat_ION :: forall r. ExportFormat -> (Void# -> r) -> (Void# -> r) -> r
ExportFormat_ION = ExportFormat' "ION"

{-# COMPLETE
  ExportFormat_DYNAMODB_JSON,
  ExportFormat_ION,
  ExportFormat'
  #-}