{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

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

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

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

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