{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Discovery.Types.ExportDataFormat
( ExportDataFormat
( ..,
ExportDataFormat_CSV,
ExportDataFormat_GRAPHML
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ExportDataFormat = ExportDataFormat'
{ ExportDataFormat -> Text
fromExportDataFormat ::
Core.Text
}
deriving stock
( Int -> ExportDataFormat -> ShowS
[ExportDataFormat] -> ShowS
ExportDataFormat -> String
(Int -> ExportDataFormat -> ShowS)
-> (ExportDataFormat -> String)
-> ([ExportDataFormat] -> ShowS)
-> Show ExportDataFormat
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ExportDataFormat] -> ShowS
$cshowList :: [ExportDataFormat] -> ShowS
show :: ExportDataFormat -> String
$cshow :: ExportDataFormat -> String
showsPrec :: Int -> ExportDataFormat -> ShowS
$cshowsPrec :: Int -> ExportDataFormat -> ShowS
Prelude.Show,
ReadPrec [ExportDataFormat]
ReadPrec ExportDataFormat
Int -> ReadS ExportDataFormat
ReadS [ExportDataFormat]
(Int -> ReadS ExportDataFormat)
-> ReadS [ExportDataFormat]
-> ReadPrec ExportDataFormat
-> ReadPrec [ExportDataFormat]
-> Read ExportDataFormat
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ExportDataFormat]
$creadListPrec :: ReadPrec [ExportDataFormat]
readPrec :: ReadPrec ExportDataFormat
$creadPrec :: ReadPrec ExportDataFormat
readList :: ReadS [ExportDataFormat]
$creadList :: ReadS [ExportDataFormat]
readsPrec :: Int -> ReadS ExportDataFormat
$creadsPrec :: Int -> ReadS ExportDataFormat
Prelude.Read,
ExportDataFormat -> ExportDataFormat -> Bool
(ExportDataFormat -> ExportDataFormat -> Bool)
-> (ExportDataFormat -> ExportDataFormat -> Bool)
-> Eq ExportDataFormat
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ExportDataFormat -> ExportDataFormat -> Bool
$c/= :: ExportDataFormat -> ExportDataFormat -> Bool
== :: ExportDataFormat -> ExportDataFormat -> Bool
$c== :: ExportDataFormat -> ExportDataFormat -> Bool
Prelude.Eq,
Eq ExportDataFormat
Eq ExportDataFormat
-> (ExportDataFormat -> ExportDataFormat -> Ordering)
-> (ExportDataFormat -> ExportDataFormat -> Bool)
-> (ExportDataFormat -> ExportDataFormat -> Bool)
-> (ExportDataFormat -> ExportDataFormat -> Bool)
-> (ExportDataFormat -> ExportDataFormat -> Bool)
-> (ExportDataFormat -> ExportDataFormat -> ExportDataFormat)
-> (ExportDataFormat -> ExportDataFormat -> ExportDataFormat)
-> Ord ExportDataFormat
ExportDataFormat -> ExportDataFormat -> Bool
ExportDataFormat -> ExportDataFormat -> Ordering
ExportDataFormat -> ExportDataFormat -> ExportDataFormat
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 :: ExportDataFormat -> ExportDataFormat -> ExportDataFormat
$cmin :: ExportDataFormat -> ExportDataFormat -> ExportDataFormat
max :: ExportDataFormat -> ExportDataFormat -> ExportDataFormat
$cmax :: ExportDataFormat -> ExportDataFormat -> ExportDataFormat
>= :: ExportDataFormat -> ExportDataFormat -> Bool
$c>= :: ExportDataFormat -> ExportDataFormat -> Bool
> :: ExportDataFormat -> ExportDataFormat -> Bool
$c> :: ExportDataFormat -> ExportDataFormat -> Bool
<= :: ExportDataFormat -> ExportDataFormat -> Bool
$c<= :: ExportDataFormat -> ExportDataFormat -> Bool
< :: ExportDataFormat -> ExportDataFormat -> Bool
$c< :: ExportDataFormat -> ExportDataFormat -> Bool
compare :: ExportDataFormat -> ExportDataFormat -> Ordering
$ccompare :: ExportDataFormat -> ExportDataFormat -> Ordering
$cp1Ord :: Eq ExportDataFormat
Prelude.Ord,
(forall x. ExportDataFormat -> Rep ExportDataFormat x)
-> (forall x. Rep ExportDataFormat x -> ExportDataFormat)
-> Generic ExportDataFormat
forall x. Rep ExportDataFormat x -> ExportDataFormat
forall x. ExportDataFormat -> Rep ExportDataFormat x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ExportDataFormat x -> ExportDataFormat
$cfrom :: forall x. ExportDataFormat -> Rep ExportDataFormat x
Prelude.Generic
)
deriving newtype
( Int -> ExportDataFormat -> Int
ExportDataFormat -> Int
(Int -> ExportDataFormat -> Int)
-> (ExportDataFormat -> Int) -> Hashable ExportDataFormat
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ExportDataFormat -> Int
$chash :: ExportDataFormat -> Int
hashWithSalt :: Int -> ExportDataFormat -> Int
$chashWithSalt :: Int -> ExportDataFormat -> Int
Prelude.Hashable,
ExportDataFormat -> ()
(ExportDataFormat -> ()) -> NFData ExportDataFormat
forall a. (a -> ()) -> NFData a
rnf :: ExportDataFormat -> ()
$crnf :: ExportDataFormat -> ()
Prelude.NFData,
Text -> Either String ExportDataFormat
(Text -> Either String ExportDataFormat)
-> FromText ExportDataFormat
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ExportDataFormat
$cfromText :: Text -> Either String ExportDataFormat
Core.FromText,
ExportDataFormat -> Text
(ExportDataFormat -> Text) -> ToText ExportDataFormat
forall a. (a -> Text) -> ToText a
toText :: ExportDataFormat -> Text
$ctoText :: ExportDataFormat -> Text
Core.ToText,
ExportDataFormat -> ByteString
(ExportDataFormat -> ByteString) -> ToByteString ExportDataFormat
forall a. (a -> ByteString) -> ToByteString a
toBS :: ExportDataFormat -> ByteString
$ctoBS :: ExportDataFormat -> ByteString
Core.ToByteString,
ExportDataFormat -> ByteStringBuilder
(ExportDataFormat -> ByteStringBuilder) -> ToLog ExportDataFormat
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ExportDataFormat -> ByteStringBuilder
$cbuild :: ExportDataFormat -> ByteStringBuilder
Core.ToLog,
HeaderName -> ExportDataFormat -> [Header]
(HeaderName -> ExportDataFormat -> [Header])
-> ToHeader ExportDataFormat
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ExportDataFormat -> [Header]
$ctoHeader :: HeaderName -> ExportDataFormat -> [Header]
Core.ToHeader,
ExportDataFormat -> QueryString
(ExportDataFormat -> QueryString) -> ToQuery ExportDataFormat
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ExportDataFormat -> QueryString
$ctoQuery :: ExportDataFormat -> QueryString
Core.ToQuery,
Value -> Parser [ExportDataFormat]
Value -> Parser ExportDataFormat
(Value -> Parser ExportDataFormat)
-> (Value -> Parser [ExportDataFormat])
-> FromJSON ExportDataFormat
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ExportDataFormat]
$cparseJSONList :: Value -> Parser [ExportDataFormat]
parseJSON :: Value -> Parser ExportDataFormat
$cparseJSON :: Value -> Parser ExportDataFormat
Core.FromJSON,
FromJSONKeyFunction [ExportDataFormat]
FromJSONKeyFunction ExportDataFormat
FromJSONKeyFunction ExportDataFormat
-> FromJSONKeyFunction [ExportDataFormat]
-> FromJSONKey ExportDataFormat
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ExportDataFormat]
$cfromJSONKeyList :: FromJSONKeyFunction [ExportDataFormat]
fromJSONKey :: FromJSONKeyFunction ExportDataFormat
$cfromJSONKey :: FromJSONKeyFunction ExportDataFormat
Core.FromJSONKey,
[ExportDataFormat] -> Encoding
[ExportDataFormat] -> Value
ExportDataFormat -> Encoding
ExportDataFormat -> Value
(ExportDataFormat -> Value)
-> (ExportDataFormat -> Encoding)
-> ([ExportDataFormat] -> Value)
-> ([ExportDataFormat] -> Encoding)
-> ToJSON ExportDataFormat
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ExportDataFormat] -> Encoding
$ctoEncodingList :: [ExportDataFormat] -> Encoding
toJSONList :: [ExportDataFormat] -> Value
$ctoJSONList :: [ExportDataFormat] -> Value
toEncoding :: ExportDataFormat -> Encoding
$ctoEncoding :: ExportDataFormat -> Encoding
toJSON :: ExportDataFormat -> Value
$ctoJSON :: ExportDataFormat -> Value
Core.ToJSON,
ToJSONKeyFunction [ExportDataFormat]
ToJSONKeyFunction ExportDataFormat
ToJSONKeyFunction ExportDataFormat
-> ToJSONKeyFunction [ExportDataFormat]
-> ToJSONKey ExportDataFormat
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ExportDataFormat]
$ctoJSONKeyList :: ToJSONKeyFunction [ExportDataFormat]
toJSONKey :: ToJSONKeyFunction ExportDataFormat
$ctoJSONKey :: ToJSONKeyFunction ExportDataFormat
Core.ToJSONKey,
[Node] -> Either String ExportDataFormat
([Node] -> Either String ExportDataFormat)
-> FromXML ExportDataFormat
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ExportDataFormat
$cparseXML :: [Node] -> Either String ExportDataFormat
Core.FromXML,
ExportDataFormat -> XML
(ExportDataFormat -> XML) -> ToXML ExportDataFormat
forall a. (a -> XML) -> ToXML a
toXML :: ExportDataFormat -> XML
$ctoXML :: ExportDataFormat -> XML
Core.ToXML
)
pattern ExportDataFormat_CSV :: ExportDataFormat
pattern $bExportDataFormat_CSV :: ExportDataFormat
$mExportDataFormat_CSV :: forall r. ExportDataFormat -> (Void# -> r) -> (Void# -> r) -> r
ExportDataFormat_CSV = ExportDataFormat' "CSV"
pattern ExportDataFormat_GRAPHML :: ExportDataFormat
pattern $bExportDataFormat_GRAPHML :: ExportDataFormat
$mExportDataFormat_GRAPHML :: forall r. ExportDataFormat -> (Void# -> r) -> (Void# -> r) -> r
ExportDataFormat_GRAPHML = ExportDataFormat' "GRAPHML"
{-# COMPLETE
ExportDataFormat_CSV,
ExportDataFormat_GRAPHML,
ExportDataFormat'
#-}