{-# 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.Glue.Types.TargetFormat
-- 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.Glue.Types.TargetFormat
  ( TargetFormat
      ( ..,
        TargetFormat_Avro,
        TargetFormat_Csv,
        TargetFormat_Json,
        TargetFormat_Orc,
        TargetFormat_Parquet
      ),
  )
where

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

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

pattern TargetFormat_Avro :: TargetFormat
pattern $bTargetFormat_Avro :: TargetFormat
$mTargetFormat_Avro :: forall {r}. TargetFormat -> ((# #) -> r) -> ((# #) -> r) -> r
TargetFormat_Avro = TargetFormat' "avro"

pattern TargetFormat_Csv :: TargetFormat
pattern $bTargetFormat_Csv :: TargetFormat
$mTargetFormat_Csv :: forall {r}. TargetFormat -> ((# #) -> r) -> ((# #) -> r) -> r
TargetFormat_Csv = TargetFormat' "csv"

pattern TargetFormat_Json :: TargetFormat
pattern $bTargetFormat_Json :: TargetFormat
$mTargetFormat_Json :: forall {r}. TargetFormat -> ((# #) -> r) -> ((# #) -> r) -> r
TargetFormat_Json = TargetFormat' "json"

pattern TargetFormat_Orc :: TargetFormat
pattern $bTargetFormat_Orc :: TargetFormat
$mTargetFormat_Orc :: forall {r}. TargetFormat -> ((# #) -> r) -> ((# #) -> r) -> r
TargetFormat_Orc = TargetFormat' "orc"

pattern TargetFormat_Parquet :: TargetFormat
pattern $bTargetFormat_Parquet :: TargetFormat
$mTargetFormat_Parquet :: forall {r}. TargetFormat -> ((# #) -> r) -> ((# #) -> r) -> r
TargetFormat_Parquet = TargetFormat' "parquet"

{-# COMPLETE
  TargetFormat_Avro,
  TargetFormat_Csv,
  TargetFormat_Json,
  TargetFormat_Orc,
  TargetFormat_Parquet,
  TargetFormat'
  #-}