{-# 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.S3.Types.InventoryFormat
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.S3.Types.InventoryFormat
  ( InventoryFormat
      ( ..,
        InventoryFormat_CSV,
        InventoryFormat_ORC,
        InventoryFormat_Parquet
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import Amazonka.S3.Internal

newtype InventoryFormat = InventoryFormat'
  { InventoryFormat -> Text
fromInventoryFormat ::
      Data.Text
  }
  deriving stock
    ( Int -> InventoryFormat -> ShowS
[InventoryFormat] -> ShowS
InventoryFormat -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq InventoryFormat
Int -> InventoryFormat -> Int
InventoryFormat -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: InventoryFormat -> ()
$crnf :: InventoryFormat -> ()
Prelude.NFData,
      Text -> Either String InventoryFormat
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String InventoryFormat
$cfromText :: Text -> Either String InventoryFormat
Data.FromText,
      InventoryFormat -> Text
forall a. (a -> Text) -> ToText a
toText :: InventoryFormat -> Text
$ctoText :: InventoryFormat -> Text
Data.ToText,
      InventoryFormat -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: InventoryFormat -> ByteString
$ctoBS :: InventoryFormat -> ByteString
Data.ToByteString,
      InventoryFormat -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: InventoryFormat -> ByteStringBuilder
$cbuild :: InventoryFormat -> ByteStringBuilder
Data.ToLog,
      HeaderName -> InventoryFormat -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> InventoryFormat -> [Header]
$ctoHeader :: HeaderName -> InventoryFormat -> [Header]
Data.ToHeader,
      InventoryFormat -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: InventoryFormat -> QueryString
$ctoQuery :: InventoryFormat -> QueryString
Data.ToQuery,
      Value -> Parser [InventoryFormat]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [InventoryFormat]
FromJSONKeyFunction InventoryFormat
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [InventoryFormat]
$cfromJSONKeyList :: FromJSONKeyFunction [InventoryFormat]
fromJSONKey :: FromJSONKeyFunction InventoryFormat
$cfromJSONKey :: FromJSONKeyFunction InventoryFormat
Data.FromJSONKey,
      [InventoryFormat] -> Encoding
[InventoryFormat] -> Value
InventoryFormat -> Encoding
InventoryFormat -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [InventoryFormat]
ToJSONKeyFunction InventoryFormat
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [InventoryFormat]
$ctoJSONKeyList :: ToJSONKeyFunction [InventoryFormat]
toJSONKey :: ToJSONKeyFunction InventoryFormat
$ctoJSONKey :: ToJSONKeyFunction InventoryFormat
Data.ToJSONKey,
      [Node] -> Either String InventoryFormat
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String InventoryFormat
$cparseXML :: [Node] -> Either String InventoryFormat
Data.FromXML,
      InventoryFormat -> XML
forall a. (a -> XML) -> ToXML a
toXML :: InventoryFormat -> XML
$ctoXML :: InventoryFormat -> XML
Data.ToXML
    )

pattern InventoryFormat_CSV :: InventoryFormat
pattern $bInventoryFormat_CSV :: InventoryFormat
$mInventoryFormat_CSV :: forall {r}. InventoryFormat -> ((# #) -> r) -> ((# #) -> r) -> r
InventoryFormat_CSV = InventoryFormat' "CSV"

pattern InventoryFormat_ORC :: InventoryFormat
pattern $bInventoryFormat_ORC :: InventoryFormat
$mInventoryFormat_ORC :: forall {r}. InventoryFormat -> ((# #) -> r) -> ((# #) -> r) -> r
InventoryFormat_ORC = InventoryFormat' "ORC"

pattern InventoryFormat_Parquet :: InventoryFormat
pattern $bInventoryFormat_Parquet :: InventoryFormat
$mInventoryFormat_Parquet :: forall {r}. InventoryFormat -> ((# #) -> r) -> ((# #) -> r) -> r
InventoryFormat_Parquet = InventoryFormat' "Parquet"

{-# COMPLETE
  InventoryFormat_CSV,
  InventoryFormat_ORC,
  InventoryFormat_Parquet,
  InventoryFormat'
  #-}