{-# 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.Firehose.Types.OrcFormatVersion
-- 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.Firehose.Types.OrcFormatVersion
  ( OrcFormatVersion
      ( ..,
        OrcFormatVersion_V0_11,
        OrcFormatVersion_V0_12
      ),
  )
where

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

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

pattern OrcFormatVersion_V0_11 :: OrcFormatVersion
pattern $bOrcFormatVersion_V0_11 :: OrcFormatVersion
$mOrcFormatVersion_V0_11 :: forall {r}. OrcFormatVersion -> ((# #) -> r) -> ((# #) -> r) -> r
OrcFormatVersion_V0_11 = OrcFormatVersion' "V0_11"

pattern OrcFormatVersion_V0_12 :: OrcFormatVersion
pattern $bOrcFormatVersion_V0_12 :: OrcFormatVersion
$mOrcFormatVersion_V0_12 :: forall {r}. OrcFormatVersion -> ((# #) -> r) -> ((# #) -> r) -> r
OrcFormatVersion_V0_12 = OrcFormatVersion' "V0_12"

{-# COMPLETE
  OrcFormatVersion_V0_11,
  OrcFormatVersion_V0_12,
  OrcFormatVersion'
  #-}