{-# 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.DataBrew.Types.InputFormat
-- 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.DataBrew.Types.InputFormat
  ( InputFormat
      ( ..,
        InputFormat_CSV,
        InputFormat_EXCEL,
        InputFormat_JSON,
        InputFormat_PARQUET
      ),
  )
where

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

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

pattern InputFormat_CSV :: InputFormat
pattern $bInputFormat_CSV :: InputFormat
$mInputFormat_CSV :: forall r. InputFormat -> (Void# -> r) -> (Void# -> r) -> r
InputFormat_CSV = InputFormat' "CSV"

pattern InputFormat_EXCEL :: InputFormat
pattern $bInputFormat_EXCEL :: InputFormat
$mInputFormat_EXCEL :: forall r. InputFormat -> (Void# -> r) -> (Void# -> r) -> r
InputFormat_EXCEL = InputFormat' "EXCEL"

pattern InputFormat_JSON :: InputFormat
pattern $bInputFormat_JSON :: InputFormat
$mInputFormat_JSON :: forall r. InputFormat -> (Void# -> r) -> (Void# -> r) -> r
InputFormat_JSON = InputFormat' "JSON"

pattern InputFormat_PARQUET :: InputFormat
pattern $bInputFormat_PARQUET :: InputFormat
$mInputFormat_PARQUET :: forall r. InputFormat -> (Void# -> r) -> (Void# -> r) -> r
InputFormat_PARQUET = InputFormat' "PARQUET"

{-# COMPLETE
  InputFormat_CSV,
  InputFormat_EXCEL,
  InputFormat_JSON,
  InputFormat_PARQUET,
  InputFormat'
  #-}