{-# 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.DMS.Types.ParquetVersionValue
-- 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.DMS.Types.ParquetVersionValue
  ( ParquetVersionValue
      ( ..,
        ParquetVersionValue_Parquet_1_0,
        ParquetVersionValue_Parquet_2_0
      ),
  )
where

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

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

pattern ParquetVersionValue_Parquet_1_0 :: ParquetVersionValue
pattern $bParquetVersionValue_Parquet_1_0 :: ParquetVersionValue
$mParquetVersionValue_Parquet_1_0 :: forall {r}.
ParquetVersionValue -> ((# #) -> r) -> ((# #) -> r) -> r
ParquetVersionValue_Parquet_1_0 = ParquetVersionValue' "parquet-1-0"

pattern ParquetVersionValue_Parquet_2_0 :: ParquetVersionValue
pattern $bParquetVersionValue_Parquet_2_0 :: ParquetVersionValue
$mParquetVersionValue_Parquet_2_0 :: forall {r}.
ParquetVersionValue -> ((# #) -> r) -> ((# #) -> r) -> r
ParquetVersionValue_Parquet_2_0 = ParquetVersionValue' "parquet-2-0"

{-# COMPLETE
  ParquetVersionValue_Parquet_1_0,
  ParquetVersionValue_Parquet_2_0,
  ParquetVersionValue'
  #-}