{-# 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.LexV2Models.Types.ImportExportFileFormat
-- 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.LexV2Models.Types.ImportExportFileFormat
  ( ImportExportFileFormat
      ( ..,
        ImportExportFileFormat_LexJson,
        ImportExportFileFormat_TSV
      ),
  )
where

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

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

pattern ImportExportFileFormat_LexJson :: ImportExportFileFormat
pattern $bImportExportFileFormat_LexJson :: ImportExportFileFormat
$mImportExportFileFormat_LexJson :: forall {r}.
ImportExportFileFormat -> ((# #) -> r) -> ((# #) -> r) -> r
ImportExportFileFormat_LexJson = ImportExportFileFormat' "LexJson"

pattern ImportExportFileFormat_TSV :: ImportExportFileFormat
pattern $bImportExportFileFormat_TSV :: ImportExportFileFormat
$mImportExportFileFormat_TSV :: forall {r}.
ImportExportFileFormat -> ((# #) -> r) -> ((# #) -> r) -> r
ImportExportFileFormat_TSV = ImportExportFileFormat' "TSV"

{-# COMPLETE
  ImportExportFileFormat_LexJson,
  ImportExportFileFormat_TSV,
  ImportExportFileFormat'
  #-}