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