{-# 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.FinSpaceData.Types.ExportFileFormat
-- 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.FinSpaceData.Types.ExportFileFormat
  ( ExportFileFormat
      ( ..,
        ExportFileFormat_DELIMITED_TEXT,
        ExportFileFormat_PARQUET
      ),
  )
where

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

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

pattern ExportFileFormat_DELIMITED_TEXT :: ExportFileFormat
pattern $bExportFileFormat_DELIMITED_TEXT :: ExportFileFormat
$mExportFileFormat_DELIMITED_TEXT :: forall {r}. ExportFileFormat -> ((# #) -> r) -> ((# #) -> r) -> r
ExportFileFormat_DELIMITED_TEXT = ExportFileFormat' "DELIMITED_TEXT"

pattern ExportFileFormat_PARQUET :: ExportFileFormat
pattern $bExportFileFormat_PARQUET :: ExportFileFormat
$mExportFileFormat_PARQUET :: forall {r}. ExportFileFormat -> ((# #) -> r) -> ((# #) -> r) -> r
ExportFileFormat_PARQUET = ExportFileFormat' "PARQUET"

{-# COMPLETE
  ExportFileFormat_DELIMITED_TEXT,
  ExportFileFormat_PARQUET,
  ExportFileFormat'
  #-}