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